/* static/css/style.css - CSS fail */
:root {
    --burgundy: #722F37;
    --burgundy-dark: #5a252c;
    --burgundy-light: #8a3a44;
    --gold: #D4AF37;
    --gold-light: #e6c158;
    --cream: #F7F3E8;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}


/*montonio*/
/* Lisage need stiilid */

/* Makseviiside valik */
.payment-method {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #4CAF50;
    background-color: #f9f9f9;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + label {
    color: #4CAF50;
    font-weight: bold;
}

.payment-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.payment-method label img {
    margin-right: 10px;
}

/* Montonio pankade widget */
#montonio-checkout {
margin-top: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}

/* Ostukorvi kokkuvõte */
.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #333;
    font-size: 18px;
}

/* Nupp */
button[type="submit"] {
    background-color: var(--burgundy);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--burgundy);
    flex: 1;
}

button[type="submit"] {
    flex: 1;
    box-sizing: border-box;
}


button[type="submit"]:hover {
    background-color: #990000;
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Vormi väljad */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}








.toode-omadused {
    text-color: black;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--gold);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    color: var(--burgundy);
    font-size: 1.8rem;
    margin-bottom: 0;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: -5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--burgundy);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--burgundy);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(114, 47, 55, 0.85), rgba(114, 47, 55, 0.8)), url('/static/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content h2:after {
    background-color: var(--gold);
    left: 50%;
    transform: translateX(-50%);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--burgundy);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--burgundy-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Products section */
.products {
    padding: 100px 0;
    background-color: var(--cream);
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--burgundy);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(114, 47, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--burgundy);
}

.price {
    font-weight: bold;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

/* About section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: var(--burgundy);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Product detail */
.product-detail {
    padding: 80px 0;
    background-color: var(--cream);
}

.product-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.product-detail .product-image {
    flex: 1;
    min-width: 300px;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail .product-info {
    flex: 1;
    min-width: 300px;
    padding: 0;
    text-align: left;
}

.product-detail .product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--burgundy);
}

.product-detail .product-info .price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-detail .description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.features {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.quantity-selector {
    margin: 20px 0;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.quantity-selector input {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 2px;
    font-family: inherit;
}

/* Cart */
.cart {
    padding: 80px 0;
    background-color: var(--cream);
}

.cart h2 {
    color: var(--burgundy);
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 25px;
    background-color: var(--white);
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    margin-bottom: 5px;
    color: var(--burgundy);
}

.item-quantity {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    background-color: var(--burgundy);
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--burgundy-dark);
}

.quantity {
    margin: 0 15px;
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.item-total {
    font-weight: bold;
    margin: 0 20px;
    min-width: 80px;
    text-align: right;
    color: var(--burgundy);
    font-size: 1.1rem;
}

.remove-btn {
    background-color: transparent;
    color: var(--gray);
    border: 1px solid var(--light-gray);
    padding: 8px 15px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.cart-summary {
    background-color: var(--white);
    padding: 25px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    text-align: right;
}

.total {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--burgundy);
}

.empty-cart {
    text-align: center;
    padding: 60px;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.empty-cart p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Checkout */
.checkout {
    padding: 80px 0;
    background-color: var(--cream);
}

.checkout h2 {
    color: var(--burgundy);
}

.checkout-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.order-summary {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--burgundy);
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--light-gray);
    font-size: 1.2rem;
    color: var(--burgundy);
}

.checkout-form {
    flex: 2;
    min-width: 300px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.checkout-form h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--burgundy);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 2px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 2px rgba(114, 47, 55, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.payment-details {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--cream);
    border-radius: 4px;
}

.payment-details h4 {
    margin-bottom: 15px;
    color: var(--burgundy);
}

/* Confirmation */
.confirmation {
    padding: 100px 0;
    background-color: var(--cream);
}

.confirmation-content {
    text-align: center;
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background-color: var(--burgundy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px;
}

.confirmation h2 {
    margin-bottom: 15px;
    color: var(--burgundy);
}

.order-id {
    margin: 25px 0;
    font-size: 1.2rem;
    background-color: var(--cream);
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Footer */
footer {
    background-color: var(--burgundy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--gold);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        margin-top: 15px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .item-details {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-content {
        flex-direction: column;
    }
}


/* Toodete lehe spetsiifilised stiilid */
.tooted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.toode-kaart {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.toode-kaart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.toode-pilt {
    height: 200px;
    overflow: hidden;
}

.toode-pilt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.toode-kaart:hover .toode-pilt img {
    transform: scale(1.05);
}

.toode-info {
    padding: 20px;
}

.toode-nimi {
    font-size: 1.2rem;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.toode-hind {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.toode-kirjeldus {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.toode-nupud {
    display: flex;
    gap: 10px;
}

/* Ostukorvi teavitused */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--burgundy);
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
