        /* Üldine */
        html{
    scroll-behavior:smooth;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f4f4;
    color:#333;
    line-height:1.6;
}

/* Header */
header{
    background:linear-gradient(135deg,#5c0d1f,#8b1e3f);
    color:white;
    padding:40px 30px;
}

.header-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    gap:40px;
}

.logo{
    width:170px;
    height:auto;
    flex-shrink:0;
}

.header-text{
    flex:1;
}

.header-text h1{
    font-size:3rem;
    margin-bottom:15px;
}

.header-text p{
    font-size:1.15rem;
    line-height:1.8;
    max-width:700px;
}


/* Menüü */
nav{
    background:#420915;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    padding:8px 12px;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,.2);
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:600;
    font-size:0.9rem;
    padding:6px 12px;
    border-radius:20px;
    transition:0.3s;
}

nav a:hover{
    background:#8b1e3f;
}


/* Sisu */
main{
    width:90%;
    max-width:1200px;
    margin:40px auto;
}

.container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

/* Kaardid */
.card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    transition:.3s;
     scroll-margin-top:90px;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,.18);
}

.card img{
    width:100%;
    height:230px;
    object-fit:cover;
}

.card h2{
    color:#5c0d1f;
    padding:20px 20px 10px;
}

.card p{
    padding:0 20px 20px;
    text-align:justify;
}
.card h3{
    color:#5c0d1f;
    font-size:1.2rem;
    font-weight:bold;
    margin:25px 20px 12px;
    position:relative;
}

.card h3::after{
    content:"";
    display:block;
    width:55px;
    height:3px;
    background:#d6b36a;
    border-radius:2px;
    margin-top:6px;
}
.card a{
    color:#5c0d1f;
    font-weight:bold;
    text-decoration:none;
    transition:.3s;
}

.card a:hover{
    color:#8b1e3f;
    text-decoration:underline;
}

.contact-card{
    text-align:center;
}

.profile-picture{
    width:170px;
    height:170px;
    margin:30px auto 20px;
    border-radius:50%;
    overflow:hidden;
    border:5px solid #d6b36a;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

.profile-picture img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
}

.contact-card h3{
    margin-top:10px;
    margin-bottom:5px;
    border:none;
}

.contact-card h3::after{
    display:none;
}

.job-title{
    display:block;
    color:#777;
    font-size:1rem;
    margin-bottom:15px;
}

.email{
    display:inline-block;
    color:#5c0d1f;
    text-decoration:none;
    font-weight:600;
    font-size:1rem;
    margin-bottom:20px;
}

.email:hover{
    color:#8b1e3f;
    text-decoration:underline;
}

/* Footer */
footer{
    background:#420915;
    color:white;
    text-align:center;
    padding:25px;
    margin-top:50px;
}

/* Tahvelarvutid */
@media(max-width:768px){

    header{
        padding:40px 15px;
    }

    header h1{
        font-size:2.2rem;
    }

    header p{
        font-size:1rem;
    }

    nav{
        gap:10px;
    }

    nav a{
        padding:8px 12px;
        font-size:0.95rem;
    }
}

/* Telefonid */
@media(max-width:480px){

    header h1{
        font-size:1.8rem;
    }

    nav{
        gap:5px;
        padding:6px;
    }

    nav a{
        font-size:0.8rem;
        padding:5px 10px;
    }

    .container{
        grid-template-columns:1fr;
    }

    .card img{
        height:200px;
    }
}
@media(max-width:768px){

    .header-container{
        flex-direction:column;
        text-align:center;
    }

    .logo{
        width:300px;
    }

    .header-text h1{
        font-size:2rem;
    }
    .profile-picture img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
}

}

/* Tausta hägustus */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

/* Küpsiste aken */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(520px, 92%);
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    font-family: "Segoe UI", Arial, sans-serif;
    animation: fadeInUp 0.3s ease;
}

/* Pealkiri */
.cookie-banner h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #222;
}

/* Tekst */
.cookie-banner p {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Küpsiste valikud */
.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.cookie-option:hover {
    background: #f3f7ff;
    border-color: #2563eb;
}

.cookie-option label {
    font-weight: 600;
    color: #222;
    cursor: pointer;
}

.cookie-option small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.82rem;
    line-height: 1.4;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    margin-top: 2px;
}

/* Nupud */
.cookie-buttons {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Luba kõik */
#acceptAll {
    background: #2563eb;
    color: white;
}

#acceptAll:hover {
    background: #1d4ed8;
}

/* Salvesta valik */
#saveSelection {
    background: #16a34a;
    color: white;
}

#saveSelection:hover {
    background: #15803d;
}

/* Keeldu */
#rejectAll {
    background: #ffffff;
    color: #444;
    border: 1px solid #d1d5db;
}

#rejectAll:hover {
    background: #f3f4f6;
}

/* Lingid */
.cookie-links {
    margin-top: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.cookie-links a {
    color: #2563eb;
    text-decoration: none;
}

.cookie-links a:hover {
    text-decoration: underline;
}

/* Animatsioon */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Mobiil */
@media (max-width: 600px) {
    .cookie-banner {
        width: calc(100% - 20px);
        bottom: 10px;
        padding: 18px;
        border-radius: 12px;
    }

    .cookie-banner h2 {
        font-size: 1.15rem;
    }

    .cookie-banner p {
        font-size: 0.9rem;
    }

    .cookie-option {
        flex-direction: column;
        gap: 6px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }
    
}
.buy-form{
    padding:0 20px 20px;
}

.btn{
    display:block;
    width:100%;

    padding:14px;

    background:#5c0d1f;
    color:#fff;

    border:none;
    border-radius:10px;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;

    transition:.25s;

    text-align:center;
}

.btn:hover{

    background:#7c1831;

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}
/* Ostukorvi nupud */

.cart-buttons{
    display:flex;
    justify-content:center;
    gap:12px;
    padding:20px;
}

.cart-buttons form{
    margin:0;
}

.cart-btn{

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    cursor:pointer;

    color:#fff;
    font-size:22px;
    font-weight:bold;

    transition:.25s;

}

.plus{
    background:#2e7d32;
}

.plus:hover{
    background:#388e3c;
    transform:scale(1.08);
}

.minus{
    background:#c62828;
}

.minus:hover{
    background:#d32f2f;
    transform:scale(1.08);
}

/* Suured nupud */

.btn{

    display:block;

    width:calc(100% - 40px);

    margin:20px auto;

    padding:14px;

    background:#5c0d1f;

    color:white;

    text-decoration:none;

    text-align:center;

    border:none;
    border-radius:10px;

    font-weight:bold;

    transition:.25s;

    cursor:pointer;

}

.btn:hover{

    background:#7c1831;

    transform:translateY(-2px);

}
/* ===== OSTUKORV ===== */

.cart-container{

    max-width:1200px;
    margin:40px auto;

}

.cart-table{

    width:100%;
    border-collapse:collapse;

    background:white;

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

}

.cart-table th{

    background:#5c0d1f;

    color:white;

    padding:18px;

    text-align:center;

}

.cart-table td{

    padding:20px;

    border-bottom:1px solid #eee;

    text-align:center;

}

.cart-table tr:last-child td{

    border-bottom:none;

}

.cart-image{

    width:90px;

    height:90px;

    object-fit:cover;

    border-radius:10px;

}

.cart-buttons{

    display:flex;

    justify-content:center;

    gap:10px;

}

.cart-buttons form{

    margin:0;

}

.cart-btn{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    color:white;

    font-size:22px;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

}

.plus{

    background:#2e7d32;

}

.plus:hover{

    background:#388e3c;

    transform:scale(1.1);

}

.minus{

    background:#b71c1c;

}

.minus:hover{

    background:#d32f2f;

    transform:scale(1.1);

}

.cart-summary{

    margin-top:30px;

    background:white;

    border-radius:15px;

    padding:30px;

    text-align:right;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.cart-summary h2{

    color:#5c0d1f;

    margin-bottom:10px;

}

/* Mobiil */

@media(max-width:768px){

.cart-table{

    display:block;

    overflow-x:auto;

    white-space:nowrap;

}

.cart-summary{

    text-align:center;

}

}

.product-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:20px;
    gap:15px;
}

.price{
    font-size:1.8rem;
    font-weight:bold;
    color:#5c0d1f;
}

.stock{
    font-weight:bold;
    font-size:.95rem;
}

.stock-green{
    color:#2e7d32;
}

.stock-orange{
    color:#ef6c00;
}

.stock-red{
    color:#c62828;
}

.buy-form{
    margin:0 20px 20px;
}

.btn{
    display:block;
    width:100%;
    padding:14px;
    background:#5c0d1f;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
    text-align:center;
    text-decoration:none;
}

.btn:hover{
    background:#7c1831;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.badge{
    display:inline-block;
    margin:15px 20px 0;
    padding:6px 14px;
    background:#d6b36a;
    color:#5c0d1f;
    border-radius:20px;
    font-size:.85rem;
    font-weight:bold;
}