/* ==========================================================================
   Base Reset & Variables
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #1e2a2e;
    --secondary-color: #2c5538;
    --accent-color: #e67e22;
    --bg-light: #faf9f6;
    --text-dark: #1e2a2e;
    --text-muted: #7f8c8d;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: #f0eee6;
    color: black;
    padding: 1rem 2rem;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

/* Fixed logo dimensions to avoid conflict with product brand text */
header img.brand {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.Brand h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto; /* Pushes navigation balance naturally */
}

.nav-main nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-main nav ul li a {
    color: rgb(17, 0, 0);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s, color 0.2s;
}

.nav-main nav ul li a:hover {
    opacity: 0.9;
    color: #f39c12;
}

/* Cart Icon Badge */
.cart-icon {
    position: relative;
    left: 30px;
    cursor: pointer;
    background: #2c3e2f;
    padding: 10px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    user-select: none;
}

.cart-icon:hover {
    background: #3a5540;
}

.cart-icon:active {
    transform: scale(0.97);
}

.cart-count {
    background-color: var(--accent-color);
    position: absolute;
    right: 5px;
    bottom: 16px;
    border-radius: 40px;
    position: relative;  
    z-index: 10;
}

.cart-countt {
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

/* Burger Icon CSS */
 .burger{
         display: none;
         width: 40px;
         height: 40px;
         border: none;
         background: rgba(255,255,255,0.15);
         backdrop-filter: blur(10px);
         border-radius: 8px;
         cursor: pointer;
         position: absolute;
         top: 15px;
         left: 65%;
         z-index: 2000;

         /* Flex for lines */
         flex-direction: column;
         justify-content: center;
         align-items: center;
         gap: 3px;

        transition: all 0.3s ease;
}
         /* Burger Lines */
         .burger span{
         width: 24px;
         height: 3px;
         background: black;
         border-radius: 20px;
         transition: all 0.3s ease;
}       
        /* Animate to X */
         .burger.active span:nth-child(1){
          transform: rotate(45deg) translate(6px, 6px);
}

        .burger.active span:nth-child(2){
         opacity: 0;
}

         .burger.active span:nth-child(3){
          transform: rotate(-45deg) translate(6px, -6px);
}



        .sub-nav a:hover {
            background: var(--secondary);
            color: white;
            transform: translateY(-2px);
        }


/* ==========================================================================
   Products Grid & Cards
   ========================================================================== */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 280px;
    background-color: #f0ede8;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.prices {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    text-decoration: line-through;
    color: #b5b5b5;
    font-size: 0.9rem;
}

.discount-price {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Buttons */
.buy-now-btn, .add-to-cart-btn {
            background-color: #d4ae47e7;
            color: white;
            border: none;
            padding: 10px 0;
            width: 100%;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 5px;
        }
        .buy-now-btn:hover, .add-to-cart-btn:hover {
            background-color: #2c3e2f;
        }
        .cart-controls {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }
        .add-to-cart-btn {
            background-color: #3b744c;
        }

/* ==========================================================================
   Cart Sidebar Drawer
   ========================================================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.cart-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    background: #e9ecef;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover { background: #dee2e6; }

.remove-item {
    color: #c0392b;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: auto;
    text-decoration: none;
    font-weight: 500;
}
.remove-item:hover { text-decoration: underline; }

.cart-total {
    font-size: 1.4rem;
    font-weight: 700;
    border-top: 2px dashed #e9ecef;
    padding-top: 20px;
    text-align: right;
    margin-top: auto;
}

.checkout-cart-btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 40px;
    font-weight: bold;
    margin-top: 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.checkout-cart-btn:hover { background-color: #2c3e2f; }

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 0.95rem;
}

/* Background Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Checkout Purchase Form Viewports
   ========================================================================== */
.purchase-form {
    background-color: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 40px auto;
}

.purchase-form h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.product-sumary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 24px;
    border: 1px solid #f1f3f5;
}

.product-sumary img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ced4da;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 56, 0.15);
}

.submit-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}
.submit-btn:hover { background-color: var(--secondary-color); }

.email-instructions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ced4da;
}
.email-instructions h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.email-instructions p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Post-submission Feedback View */
.thank-you {
    text-align: center;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 40px 20px;
    border-radius: 24px;
    max-width: 600px;
    margin: 40px auto;
}
.thank-you h2 { margin-bottom: 12px; }
.thank-you p { color: #388e3c; font-size: 1rem; }


/* PROMO */
.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 14, 0.299); 
    backdrop-filter: blur(2px); 
    z-index: 10000 ;  
}
/* IMAGE */
.promo-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
    max-width: 90%;
    margin: auto; 
}
.promo-box img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 12px;
}
/* CLOSE (X) BUTTON */
.close-btn{
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 22px;
    cursor: pointer;
    color: #111;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}


/* ==========================================================================
   Mailchimp & Popups
   ========================================================================== */
#mc_embed_shell {
    text-align: center;
    align-items: center;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;    
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 14, 0.299); 
    backdrop-filter: blur(2px);    
    z-index: 10000;
    display: flex;  
    justify-content: center;
    align-items: center;
}   

#mc-embedded-subscribe {
    background: #f0ca07;
    color: #111;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.close-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #111;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Cookies Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    width: 90%;
    transform: translateX(-50%);
    max-width: 600px;
    background: rgba(0, 0, 14, 0.85);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.6s ease;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-accept {
    background: linear-gradient(45deg, #00c853, #64dd17);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.btn-decline {
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
footer {
    background-color: #f0eee6;
    color: black;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-section p, .footer-section li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.social-icons {
    display: flex;
    justify-content: center; 
    gap: 15px;
    margin-top: 1.5rem;
    width: 100%;  
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(7, 0, 0);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}
        
.social-icons a:hover {
    background: var(--primary-color);
    color: #f9f8f8;
    transform: translateY(-3px);
}

.footer-line {
    border: none;
    border-top: 1px solid #cfcece;
    margin: 20px 0;
}

.copy {
    font-size: x-small;
}

/* ==========================================================================
   Responsive Queries & Breakpoints
   ========================================================================== */
@media(max-width: 786px) {
    .nav-top, .nav-main {
        flex-wrap: wrap;
        gap: 15px;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 20px;
        gap: 20px;
    }
    
    .product-image {
        height: 250px;
    }
.Brand h1 {
    font-size: 20px;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 800;
    margin-right: 0%;
}

.Brand { 
    position: relative;
    right: 10px;
}

@media(max-width: 768px) {
    .burger{
        display: flex;
        position: absolute;     /* remove absolute positioning */
        margin: 0 0 0 8px;    /* small gap from cart */
        top: auto;
        left: 65%;
    }
}

    header {
        padding: 18px 15px;
    }

    header h1 {
        margin: 0;
        font-size: 20px;
        margin-right: 10px; 
        white-space: nowrap; /* Forces brand title onto a straight line */
    }

    .cart-icon {
        margin-left: auto; /* Aligns cart and adjacent burger cleanly to the right */
    }

    /* Fixed mobile nav vertical layout issue */
    .nav-main {
        position: absolute;
        top: 80px;
        right: 15px;
        width: 220px;
        padding: 20px;
        background: white;
        border-radius: 18px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
        gap: 18px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s ease;
    }

    .nav-main.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-main nav ul {
        flex-direction: column; /* Fixed: standard horizontal to vertical stack */
        gap: 8px;
        width: 100%;
    }

    .nav-main a {
        color: #222;
        margin: 0;
        font-size: 16px;
        padding: 8px 0;
        display: block;
    }

    .nav-main a:hover {
        color: var(--secondary-color);
    }  
    .cart-count {
    position: absolute;
    right: 5px;
    bottom: 16px;
    border-radius: 40px;
    position: relative;  
    z-index: 10;
    }
}   

@media (max-width: 480px) { 
    .popup-container {
        padding: 12px;
        align-items: center;
    }

    .popup-container * {
        box-sizing: border-box;
    }

    .popup-container form,
    .popup-container .mc-modal,
    .popup-container .popup-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .popup-container {
        transform: none !important;
        zoom: 1 !important;
    }

    .popup-container input,
    .popup-container button {
        width: 100% !important;
        font-size: 16px;
    }

    .popup-container {
        overflow-y: auto;
    }

    .cart-count {
     position: absolute;
    right: 5px;
    bottom: 16px;
    border-radius: 40px;
    position: relative;  
    z-index: 10;
    }
}