/* Theme Name: Happiness Bakeyard
Author: Platypus
*/

/* --- 0. Load Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- 1. Variables --- */
:root {
    --ink: #333333;           /* Dark Grey Text */
    --ink-light: #555555;     /* Slightly lighter for meta info */
    
    /* YOUR NEW PALETTE */
    --site-bg: #FAE7EC;       /* Main Pink Background */
    --card-bg: #FFFFFF;       /* White for Boxes/Header */
    --btn-bg: #E88DA8;        /* Button Pink */
    --btn-hover: #D96C8D;     /* Hover Darker Pink */
    
    --border: #F0D0D8;        /* Soft Pink Border */
    --white: #ffffff;
}

/* --- 2. Base Settings --- */
* { box-sizing: border-box; } 

body {
    margin: 0;
    padding: 0;
    /* CHANGED: Poppins for Body */
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background-color: var(--site-bg);
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }

button { border: none; background: none; padding: 0; cursor: pointer; display: flex; align-items: center;}

/* Utilities */
.hidden { display: none; }

/* Sticky Wrapper */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000; 
    background-color: var(--card-bg); /* White Header */
    border-bottom: 1px solid var(--border); 
}

/* --- 3. Announcement Bar --- */
.announcement-bar {
    background-color: var(--btn-hover); /* Emphasis Color */
    height: 40px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

/* --- 4. Main Header --- */
.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
    height: auto; 
}

/* LEFT: Search */
.search-container { display: flex; align-items: center; }

.search-pill {
    background-color: #FFF5F8; /* Very light pink pill */
    border: 1px solid var(--border);
    border-radius: 999px; 
    padding: 6px 16px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box; 
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    margin-left: 10px;
    width: 100%;
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
}

/* CENTER: Logo */
.logo-container { display: flex; justify-content: center; }
.logo-img { height: 80px; width: auto; display: block; }

/* RIGHT: Actions */
.actions-container { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.action-link { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }

/* --- 5. Navigation & Dropdowns (Desktop) --- */
.desktop-nav {
    padding-bottom: 10px;
    padding-top: 0px; 
    display: flex;
    justify-content: center; 
    gap: 20px 30px; 
    flex-wrap: wrap; 
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 0px; 
}

.nav-item {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink);
    padding: 2px 0;
    position: relative;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.desktop-nav .nav-item:hover,
.has-dropdown:hover {
    border-bottom-color: var(--btn-bg);
}

/* Dropdown Logic */
.has-dropdown {
    position: relative;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink);
    padding: 2px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 200;
    padding: 10px 0; 
    border: 1px solid var(--border);
    text-align: center;
    border-radius: 0 0 4px 4px;
}

.has-dropdown:hover .dropdown-menu { display: block; }

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 12px;     
    font-weight: 500;      
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 1px;   
    font-family: inherit;  
}

.dropdown-item span {
    display: inline-block;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px; 
    transition: border-color 0.2s;
}

.dropdown-item:hover span { border-bottom-color: var(--btn-bg); }
.dropdown-item:hover { background-color: transparent; }

/* --- 6. Mobile & Responsive Logic --- */
.mobile-toggle { display: none; }

#mobile-drawer {
    display: none;
    flex-direction: column;
    background-color: var(--white); 
    border-top: 1px solid var(--border);
    padding: 20px;
    position: absolute;
    width: 100%;
    left: 0;
    box-sizing: border-box; 
    max-height: 90vh; 
    overflow-y: auto; 
    z-index: 900;
}

.mobile-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    color: var(--ink);
    font-weight: 600;
}

.mobile-submenu {
    display: none; 
    background-color: #FFF5F8; 
    padding: 10px 20px;
}

.mobile-submenu a {
    display: block;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ink);
}

.arrow-btn { padding: 10px; }

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .search-pill { display: none; } 
    .mobile-toggle { display: block; }
    .main-header { padding: 10px 20px; }
    
    .mobile-search {
        display: flex !important;
        margin-bottom: 20px;
        width: 100%; 
        max-width: 100%;
    }

    .search-input, 
    .checkout-grid input, 
    .checkout-grid select, 
    .checkout-grid textarea {
        font-size: 16px; 
    }
}

.show-drawer { display: flex !important; }
.show-submenu { display: block !important; }
.rotate-arrow { transform: rotate(180deg); }






















/* =========================
   FOOTER STYLES
   ========================= */
/* =========================
   FOOTER STYLES (FINAL FIX)
   ========================= */
.site-footer {
    background-color: var(--site-bg);
    padding: 50px 20px 30px 20px; 
    border-top: 1px solid var(--border);
    color: var(--ink);
    font-size: 13px;
    margin-top: auto; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Makes all columns full height */
    gap: 20px;
}

/* --- 1. SOCIAL COLUMN (Centered Icons) --- */
.footer-logo-col {
    flex: 0 0 250px;         /* Fixed Width */
    display: flex;
    flex-direction: column;
    align-items: center;     /* Horizontally Center Icons */
    justify-content: center; /* Vertically Center Icons */
    border-right: 1px solid transparent; /* Optional divider if needed */
}

/* --- 2. LINK COLUMNS (Shop, Valentines, Support) --- */
.footer-link-col {
    flex: 1;                 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* FIX: Left Align Content */
    text-align: left;        /* FIX: Left Align Text */
    justify-content: flex-start; /* Align to Top */
    padding-left: 20px;      /* Add breathing room */
}

/* --- Social Icons Styling --- */
.footer-socials {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.social-link:hover { transform: translateY(-3px); }

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--ink);
    transition: fill 0.2s ease;
}
.social-link:hover .social-icon { fill: var(--btn-hover); }


/* --- Headings & Spacers --- */
.footer-heading {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    margin-bottom: 20px;     /* Space below heading */
    color: var(--ink);
    display: block;
    width: 100%;
    line-height: 1.2;
}

/* FIX: The Invisible Spacer */
/* This forces the "Valentines" column to start lower, aligning with "Birthday Gifts" */
.spacer-heading {
    display: block !important; /* Make sure it exists */
    visibility: hidden;        /* Make it invisible */
    height: auto;              /* Let it take natural height */
    content: "Spacer";         /* Ensure it takes up space */
    margin-bottom: 33px;
}


/* --- Links List --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    text-decoration: none;
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 13px;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--btn-hover); }

/* --- Footer Bottom --- */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto; 
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--ink-light);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-link-col {
        align-items: center;  /* Center align on mobile */
        text-align: center;
        padding-left: 0;
    }
    
    .footer-logo-col {
        margin-bottom: 0px;
    }
}

/* --- FIX: Tighten Footer Spacing on Mobile --- */
@media (max-width: 768px) {
    
    /* 1. Reduce the big gap at the very top of the footer */
    .site-footer {
        padding-top: 30px !important;    /* Was 50px */
        padding-bottom: 20px !important; /* Slightly tighter bottom too */
    }

    /* 2. Reduce the gap between Social Icons and the "Shop" section */
    .footer-logo-col {
        margin-bottom: 15px !important;  /* Was 30px */
        flex: 0 0 auto !important;       /* Let it shrink to fit content */
        min-height: 0 !important;        /* Remove any minimum height enforcement */
    }

    /* 3. Reduce gap between the other sections (Shop -> Valentines -> Support) */
    .footer-link-col {
        margin-bottom: 20px !important;
    }
    .spacer-heading {
        display: none !important; /* Hide spacer on mobile so no weird gaps */
    }
    /* 4. Optional: Tweak the headings to sit tighter */
    .footer-heading {
        margin-bottom: 10px !important;  /* Was 20px */
    }
}
















/* =========================
   HOMEPAGE: HERO SECTION
   ========================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px; 
     
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Slightly darker overlay for white text readability */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    padding: 20px;
    color: var(--ink);
    transform: translateY(-10px); 
}

/* Keep Hero Text Light because of dark background image */
.hero-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    color: #FFF5F8; 
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF; 
    /* CHANGED: Playfair */
    font-family: 'Playfair Display', serif;
    margin: 0 0 20px 0;
}

.hero-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #F0F0F0; 
    font-family: 'Poppins', sans-serif;
	background-color: var(--btn-bg);
	border: 1px solid var(--btn-bg);
    transition: all 0.3s ease;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.hero-btn {
    display: inline-block;
    background-color: var(--btn-bg); /* Pink Button */
    color: #FFFFFF;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--btn-bg);
    transition: all 0.3s ease;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.hero-btn:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    padding: 15px 45px;
}

@media (max-width: 768px) {
    .hero-section { height: 450px; }
    .hero-title { font-size: 36px; }
    .hero-text { font-size: 16px; }
}


















/* =========================
   HOMEPAGE: PRODUCT SLIDERS
   ========================= */
.product-slider-section {
    padding: 40px 0; 
    background-color: var(--site-bg);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    text-transform: none; /* Playfair looks better not uppercase */
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    color: var(--ink);
    /* CHANGED: Playfair */
    font-family: 'Playfair Display', serif;
}

.slider-wrapper {
    position: relative;
    padding: 0 40px; 
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* THE PRODUCT CARD */
.product-card {
    flex: 0 0 16.666%; 
    max-width: 16.666%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.prod-img-box {
    width: 100%;
    aspect-ratio: 1 / 1; 
    background: #ffffff;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Soft shadow for card look */
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.prod-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 8px 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Poppins', sans-serif;
}

.prod-price {
    font-size: 14px;
    color: var(--ink); 
    font-weight: 500;
    margin-bottom: 10px;
}

.add-cart-btn {
    width: auto;            
    display: inline-block;   
    padding: 10px 25px;      
    background-color: var(--btn-bg); /* Pink */
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px auto 0 auto; 
    white-space: nowrap; 
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.add-cart-btn:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(217, 108, 141, 0.3);
}

.slider-arrow {
    position: absolute;
    top: 35%; 
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    color: var(--ink);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.slider-arrow:hover {
    background-color: var(--btn-bg);
    color: white;
    border-color: var(--btn-bg);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

@media (max-width: 900px) {
    .product-card {
        flex: 0 0 50%; 
        max-width: 50%;
    }
    .slider-wrapper { padding: 0 10px; } 
}

/* MOBILE vs DESKTOP VISIBILITY */
.mobile-only-slider { display: none; }
.desktop-only-slider { display: block; }

@media (max-width: 900px) {
    .desktop-only-slider { display: none; }
    .mobile-only-slider { display: block; }
}

body.home .product-slider-section {
    background-color: transparent; 
}

.prod-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


























/* =========================
   SINGLE PRODUCT PAGE
   ========================= */
.product-layout {
    display: grid;
    grid-template-columns: 35% 60%; 
    gap: 5%;
    align-items: start;
    background-color: var(--card-bg); /* White Box for Product */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.product-gallery-wrapper {
    position: relative;
    text-align: center;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; 
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8); 
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    z-index: 10;
    transition: 0.2s;
}
.nav-arrow:hover { background-color: white; }
.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.dot {
    width: 8px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background-color: var(--btn-bg); }

.single-prod-title {
    font-size: 38px;
    /* CHANGED: Playfair */
    font-family: 'Playfair Display', serif;
    margin: 0 0 10px 0;
    line-height: 1.2;
    color: var(--ink);
}

.single-prod-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--btn-bg); /* Pink Price */
    font-family: 'Poppins', sans-serif;
}

.old-price {
    text-decoration: line-through; 
    color: #999;                    
    font-size: 18px;               
    margin-left: 10px;             
    font-weight: 400;              
}

.product-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 500px;
    position: relative;
    z-index: 1;
    color: var(--ink); 
    font-family: 'Poppins', sans-serif;
}

.info-block { margin-bottom: 15px; }
.info-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: var(--ink);
}
.info-list { margin: 0; padding-left: 20px; }
.info-list li { margin-bottom: 5px; font-size: 15px; color: var(--ink); }

.product-actions {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    max-width: 100%;
    position: relative; 
    z-index: 100;       
    clear: both;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: #fff;
    height: 46px;
    overflow: hidden; 
}

.qty-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 400;
    width: 40px;      
    height: 100%;     
    cursor: pointer;
    color: var(--ink); 
    display: flex;             
    align-items: center;       
    justify-content: center;   
    transition: background 0.2s;
}
.qty-btn:hover { background-color: #FFF5F8; color: var(--btn-bg); }

#qty-input {
    width: 40px;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    padding: 0;
    margin: 0;
    appearance: textfield; 
    -moz-appearance: textfield; 
}
#qty-input::-webkit-inner-spin-button, 
#qty-input::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.add-cart-btn-compact {
    background-color: var(--btn-bg);
    color: var(--white);
    border: none;
    padding: 0 35px; 
    height: 46px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    white-space: nowrap; 
    font-family: 'Poppins', sans-serif;
}

.add-cart-btn-compact:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(217, 108, 141, 0.3);
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    .product-actions {
        flex-direction: row; 
        flex-wrap: nowrap;
        width: 100%;
    }
    .qty-wrapper { flex: 0 0 auto; }
    .add-cart-btn-compact {
        flex: 1; 
        width: auto;
        min-width: 0; 
        text-align: center;
        padding: 0 10px;
    }
}























/* =========================
   LIGHTBOX 
   ========================= */
.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 2100; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 85vw;   
    height: 85vh;  
    object-fit: contain; 
    background-color: transparent; 
    border-radius: 4px;
    animation: zoom 0.3s;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 95vw;
        height: 60vh;
    }
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: 0.2s;
}
.lb-arrow:hover { color: #ccc; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.lb-close:hover { color: #bbb; }

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}






















/* =========================
   SHOP ARCHIVE & SIDEBAR
   ========================= */
.shop-layout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start; 
}

.shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--card-bg); /* White Sidebar */
    padding: 25px;
    border-radius: 8px;
    margin-top: 0;
    border: 1px solid #fceef2; 
}

.sidebar-title {
    /* CHANGED: Playfair */
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--ink);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.custom-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-sidebar-list > li {
    border-bottom: 1px solid #f9f9f9; 
}

.custom-sidebar-list a {
    text-decoration: none;
    color: var(--ink); 
    font-size: 15px;
    display: block;
    padding: 12px 0; 
    transition: 0.2s;
}

.custom-sidebar-list a:hover {
    color: var(--btn-bg);
    padding-left: 5px; 
}

.link-row {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    width: 100%;
}

.arrow-toggle {
    cursor: pointer;
    font-size: 12px;
    color: var(--ink); 
    padding: 0 10px;      
    line-height: 1;       
    transition: transform 0.2s;
}

.arrow-toggle:hover {
    color: var(--btn-bg);
}

.rotate-arrow {
    transform: rotate(180deg);
}
.sidebar-submenu {
    list-style: none;
    padding: 0 0 10px 20px; 
    margin: 0;
    background: #FFF5F8; 
}

.sidebar-submenu li { border-bottom: none; }
.sidebar-submenu a {
    font-size: 13px;
    padding: 8px 0;
    color: var(--ink); 
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.old-price-sm {
    text-decoration: line-through;
    color: #999; 
    font-size: 12px;
    margin-left: 5px;
}

.shop-main-content {
    flex: 1;      
    width: 100%;  
    min-width: 0; 
}

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

/* Updated Product Card for Grid */
.shop-grid .product-card {
    width: 100% !important;      
    max-width: 100% !important;  
    flex: none !important;       
    padding: 15px;                  
    background: var(--card-bg); /* White */
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.shop-grid .product-card .prod-img-box {
    width: 100%;
    aspect-ratio: 1 / 1; 
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.shop-grid .product-card .prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.shop-grid .product-card:hover .prod-img-box img {
    transform: scale(1.05); 
}

.shop-grid .add-cart-btn {
    width: auto;            
    display: inline-block;  
    white-space: nowrap;
    padding: 10px 25px;     
    font-size: 13px;
    letter-spacing: 0.5px;
    margin: 10px auto 0 auto; 
}

.container-width {
    max-width: 1300px; 
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
/*
@media (max-width: 768px) {
    .shop-sidebar.desktop-only { display: none !important; }
    .shop-layout-wrapper { display: block; }
    .shop-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px; 
    }
    .shop-grid .product-card { padding: 10px; }
    .shop-grid .prod-title { font-size: 13px; }
    .shop-grid .add-cart-btn {
        font-size: 11px;
        padding: 8px 0;
        width: 80%;
    }
}  */


/* =========================================
   GLOBAL LAYOUT & TEXT FIX (Home + Shop)
   ========================================= */

/* 1. GLOBAL: Fix Text Wrapping for EVERY Product Title (Home, Shop, Search) */
.prod-title {
    white-space: normal !important;   /* Allow text to wrap to next line */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;            /* Limit to exactly 2 lines */
    -webkit-box-orient: vertical;
    line-height: 1.3;                 /* Good spacing between lines */
    height: 2.6em;                    /* Fixed height for alignment */
    margin-bottom: 5px;
}

/* 2. MOBILE SPECIFIC FIXES */
@media (max-width: 768px) {
    
    /* --- A. The Vertical Grid (Categories & Search) --- */
    .shop-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 Columns */
        gap: 15px !important; 
    }

    .shop-grid .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;      /* Allows card to shrink to fit screen */
        padding: 8px !important;
    }

    /* --- B. The Home Page Sliders (Horizontal Scroll) --- */
    /* Forces them to respect the 50% width even with long text */
    .slider-track .product-card {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;      /* Prevents long text from widening the card */
    }
}

  /* --- FIX: Hide Sidebar on Mobile --- */
@media (max-width: 900px) {
    .shop-sidebar {
        display: none !important;
    }
    
    /* Ensure the products take full width since sidebar is gone */
    .shop-main-content {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}



















/* =========================
   CART DRAWER & ICON
   ========================= */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--btn-bg);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open { right: 0; }

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    margin: 0;
    /* CHANGED: Playfair */
    font-family: 'Playfair Display', serif;
    font-size: 24px;
}

.close-drawer {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.drawer-items {
    flex: 1; 
    overflow-y: auto; 
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--ink); 
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
}

.cart-item-price { font-size: 13px; color: var(--btn-bg); font-weight: 500;}

.remove-item-btn {
    font-size: 11px;
    color: var(--ink-light); 
    text-decoration: underline;
    cursor: pointer;
    width: fit-content;
    transition: color 0.2s;
}
.remove-item-btn:hover { color: var(--btn-hover); }

.cart-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    height: 30px; 
}

.cart-qty-btn {
    width: 25px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-btn:hover { background-color: #FFF5F8; }

.cart-qty-val {
    width: 25px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border: none;
    pointer-events: none; 
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #FFF5F8; /* Light Pink Footer for Cart */
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ink);
    font-family: 'Playfair Display', serif;
}

.checkout-btn {
    display: block;
    width: 100%;
    background-color: var(--btn-bg);
    color: white;
    text-align: center;
    padding: 15px 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
    border-radius: 4px;
}
.checkout-btn:hover { background-color: var(--btn-hover); }

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none; 
}
.cart-overlay.open { display: block; }

@media (max-width: 480px) {
    .cart-drawer { width: 85%; }
}

/* =========================
   CHECKOUT PAGE
   ========================= */
.checkout-page-wrapper .container-width {
    max-width: 1100px; 
}
.checkout-page-wrapper {
    padding: 60px 0;
    background-color: var(--site-bg);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px; 
    gap: 0 60px; 
    align-items: start;
}
.checkout-details {
    grid-column: 1;
    grid-row: 1 / span 3; 
    max-width: 480px;
}

.checkout-summary-box {
    grid-column: 2;
    grid-row: 1;
    background-color: #fff;
    padding: 30px 30px 10px 30px; 
    border: 1px solid var(--border);
    border-bottom: none; 
    border-radius: 8px 8px 0 0; 
}

.checkout-final-actions {
    grid-column: 2;
    grid-row: 2;
    background-color: #fff;
    border: 1px solid var(--border);
    border-top: none; 
    border-radius: 0 0 8px 8px;
    padding: 10px 30px 30px 30px; 
    text-align: center; 
}

@media (max-width: 900px) {
    .checkout-grid {
        display: flex;        
        flex-direction: column; 
        gap: 30px;
    }
    .checkout-summary-box { order: 1; border-bottom: 1px solid #eee; border-radius: 8px; padding-bottom: 30px; }
    .checkout-details     { order: 2; }
    .checkout-final-actions { order: 3; background-color: transparent; border: none; padding: 0; margin-top: 10px; }
    
    .checkout-details, 
    .checkout-summary-box, 
    .checkout-final-actions {
        width: 100%;
        max-width: 100%; 
        box-sizing: border-box;
    }
}

.page-title {
    /* CHANGED: Playfair */
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}
.section-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.checkout-grid label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

.checkout-grid input, 
.checkout-grid select, 
.checkout-grid textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}
.checkout-grid input:focus {
    border-color: var(--btn-bg);
    outline: none;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
}
.summary-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.summary-info { flex: 1; }
.summary-title { font-size: 13px; font-weight: 600; }
.summary-meta { font-size: 12px; color: var(--ink); } 
.summary-price { font-size: 13px; font-weight: 700; }

.checkout-totals { margin-top: 20px; border-top: 2px solid #eee; padding-top: 20px; }
.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}
.final-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
}
.secure-text {
    text-align: center;
    font-size: 12px;
    color: var(--ink-light); 
    margin-top: 15px;
}

.place-order-btn {
    width: auto;
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--btn-bg);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-top: 0; 
}
.place-order-btn:hover { background-color: var(--btn-hover); }

.checkout-note {
    font-size: 13px;
    color: var(--ink); 
    margin-top: 20px;
    line-height: 1.5;
    background-color: #fff;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    text-align: left; 
}

/* =========================
   SEARCH RESULTS PAGE
   ========================= */
.no-results-box {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ink);
    font-family: 'Playfair Display', serif;
}

.no-results-box p {
    font-size: 16px;
    color: var(--ink); 
    margin-bottom: 30px;
}

.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
    border-radius: 4px;
    background: white;
}

.pagination .current {
    background-color: var(--btn-bg);
    color: white;
    border-color: var(--btn-bg);
}

.search-header-title { margin: 20px; font-size: 18px; }

/* =========================
   STANDARD PAGE TEMPLATE
   ========================= */
.page-header-section {
    padding: 60px 0 40px 0;
    text-align: center;
    background-color: var(--site-bg);
}

.page-main-title {
    /* CHANGED: Playfair */
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--ink);
    margin: 0;
}

.page-content-wrapper {
    max-width: 800px;
    margin: 0 auto 80px auto;
    background: #fff;
    padding: 50px;
    border: 1px solid #eee;
    border-radius: 8px;
    line-height: 1.8;
    color: var(--ink); 
}

.page-content-wrapper h2 {
    font-size: 24px;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.page-content-wrapper h3 {
    font-size: 20px;
    color: var(--ink);
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.page-content-wrapper p { margin-bottom: 20px; }

.page-content-wrapper ul, 
.page-content-wrapper ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.page-content-wrapper li { margin-bottom: 10px; }
.page-content-wrapper strong { color: var(--ink); }

@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 30px 20px; 
        border: none; 
        background: transparent;
    }
    .page-main-title { font-size: 32px; }
}

/* =========================
   404 ERROR PAGE
   ========================= */
.error-page-wrapper {
    text-align: center;
    padding: 100px 20px;
    background-color: var(--site-bg);
}

.error-code {
    font-family: 'Playfair Display', serif;
    font-size: 120px; 
    line-height: 1;
    color: #e0e0e0;
    margin: 0;
}

.error-message {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-top: -10px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.error-text {
    font-size: 16px;
    color: var(--ink); 
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.error-search {
    max-width: 400px;
    margin: 0 auto;
}

/* 1. Fix the Width & Centering */
.qty-input {
    width: 50px !important;       /* Force it small */
    text-align: center;           /* Center the number */
    border: none;                 /* Remove ugly border */
    background: transparent;
    font-weight: 500;
    color: var(--ink);
    
    -moz-appearance: textfield;   /* Hide arrows in Firefox */
}

/* 2. Hide the Default Browser Arrows (Chrome/Safari/Edge) */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 3. Ensure the wrapper stays tight */
.qty-wrapper {
    display: inline-flex;         /* Keeps buttons side-by-side */
    align-items: center;
    border: 1px solid #ccc;       /* The box border */
    border-radius: 4px;
    height: 44px;
    width: fit-content;           /* Shrink to fit content */
    overflow: hidden;
}


















/* =========================
   REVIEWS PAGE STYLES
   ========================= */
/* =========================
   REVIEWS PAGE STYLES (3 Cols Desktop / 1 Col Mobile)
   ========================= */
.reviews-grid {
    display: grid;
    /* Desktop: 3 Columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;                      
    align-items: start;
}

.review-card {
    background: transparent;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.review-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px 0; 
    text-align: left;   
}

.review-img-box {
    width: 100%;
    cursor: zoom-in;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* DESKTOP ONLY: Fix height to align grid */
    height: 400px; 
}

.review-img-box img {
    width: 100%;
    height: 100%;
    /* DESKTOP ONLY: Crop to fit box */
    object-fit: cover; 
    object-position: top; /* Show the top of the review */
}

.review-img-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}


/* --- MOBILE OVERRIDES (Screens smaller than 768px) --- */
@media (max-width: 768px) {
    .reviews-grid {
        /* Stack vertically */
        grid-template-columns: 1fr !important; 
        gap: 40px;
    }
    
    .review-img-box {
        /* UNLOCK HEIGHT: Let the image be as tall as it needs to be */
        height: auto !important;
        max-height: none !important;
    }
    
    .review-img-box img {
        /* Show full image without cropping */
        object-fit: contain !important;
        height: auto !important; 
    }
}



















/* Sorting Dropdown Styling */
.sorting-wrapper select {
    border: 1px solid var(--border);
    color: var(--ink);
    background-color: #fff;
    cursor: pointer;
    outline: none;
    font-size: 13px;
    padding: 8px 12px;
}

.sorting-wrapper select:hover {
    border-color: var(--btn-bg); /* Pink border on hover */
}