/*
   Hakiman Ayurvedic E-commerce Global Design System
   Theme: Luxury, Premium Wellness, Ayurveda
*/

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

:root {
    /* Brand Colors */
    --primary-green: #26371F;
    --secondary-green: #344A2A;
    --light-cream: #F8F2DE;
    --warm-beige: #F4EBD5;
    --premium-gold: #B9913D;

    /* Neutral Colors */
    --text-color: #2B2B2B;
    --text-light: #5A5A5A;
    --light-gray: #F8F8F8;
    --border-color: #E2DFD2;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing & Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 25px rgba(38, 55, 31, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease-in-out;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* ==========================================================================
   Global Layout Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--premium-gold);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius-pill);
    transition: all var(--transition-smooth);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--premium-gold);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #a88133;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-green);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--premium-gold);
    box-shadow: 0 0 0 3px rgba(185, 145, 61, 0.1);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-padding { padding: 40px 0; }
}


/* ==========================================================================
   Header Styles
   ========================================================================== */
.top-bar {
    background-color: var(--primary-green);
    color: var(--light-cream);
    padding: 8px 0;
    text-align: center;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}
.header.transparent {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    width: 100%;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1280px;
    margin: 0 auto;
}
.logo-placeholder {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    letter-spacing: 1px;
}
.header.transparent .logo-placeholder {
    color: var(--white);
}
.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color var(--transition-fast);
}
.header.transparent .nav-link {
    color: var(--white);
}
.nav-link:hover {
    color: var(--premium-gold);
}
.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.icon-link {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color var(--transition-fast);
}
.header.transparent .icon-link {
    color: var(--white);
}
.icon-link:hover {
    color: var(--premium-gold);
}
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}
.header.transparent .mobile-menu-btn {
    color: var(--white);
}
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }
    .header-icons {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
    background-color: var(--primary-green);
    color: var(--light-cream);
    padding: 80px 0 20px;
    font-family: var(--font-body);
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand .logo-placeholder {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--premium-gold);
    margin-bottom: 20px;
    display: block;
}
.footer-text {
    color: var(--warm-beige);
    margin-bottom: 20px;
    opacity: 0.9;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(248, 242, 222, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--premium-gold);
    transition: all var(--transition-fast);
}
.social-icon:hover {
    background-color: var(--premium-gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 25px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--warm-beige);
    opacity: 0.8;
    transition: all var(--transition-fast);
}
.footer-links a:hover {
    color: var(--premium-gold);
    opacity: 1;
    padding-left: 5px;
}
.footer-newsletter-form {
    display: flex;
    margin-top: 20px;
}
.footer-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(248, 242, 222, 0.2);
    background: transparent;
    color: var(--white);
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}
.footer-input:focus {
    outline: none;
    border-color: var(--premium-gold);
}
.footer-btn {
    background-color: var(--premium-gold);
    color: var(--primary-green);
    border: none;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: background-color var(--transition-fast);
}
.footer-btn:hover {
    background-color: #a88133;
}
.footer-bottom {
    border-top: 1px solid rgba(248, 242, 222, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(248, 242, 222, 0.7);
}
.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--warm-beige);
}
.footer-contact-item {
    margin-bottom: 5px;
}
.footer-contact-item.last {
    margin-bottom: 0;
}
.footer-contact-wrapper {
    margin-top: 20px;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================================
   Home Page specific styles
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(38, 55, 31, 0.4), rgba(38, 55, 31, 0.8)), url('https://images.unsplash.com/photo-1608228079968-c768172cefc9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--premium-gold);
    display: block;
}
.hero-title {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 700;
}
.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--light-cream);
}
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.explore-section {
    background-color: var(--light-gray);
}
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.explore-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}
.explore-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--premium-gold);
}
.explore-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-cream);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all var(--transition-fast);
}
.explore-card:hover .explore-icon {
    background-color: var(--primary-green);
    color: var(--premium-gold);
}
.explore-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}
.explore-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

.promise-section {
    background-color: var(--white);
}
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.promise-box {
    text-align: center;
    padding: 30px 20px;
}
.promise-box i {
    font-size: 2.5rem;
    color: var(--premium-gold);
    margin-bottom: 20px;
}
.promise-box h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.promise-box p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.shop-category-section {
    background-color: var(--light-gray);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.category-card {
    position: relative;
    display: block;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.category-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(38,55,31,0.9), rgba(38,55,31,0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}
.category-card-title {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
}
.category-card-cta {
    color: var(--premium-gold);
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.category-card:hover img {
    transform: scale(1.05);
}

.medicine-type-section {
    background-color: var(--white);
}
.medicine-type-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.testimonials-section {
    background-color: var(--light-cream);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-icon {
    font-size: 3rem;
    color: var(--light-cream);
    position: absolute;
    top: 20px;
    left: 20px;
}
.testimonial-content {
    position: relative;
    z-index: 1;
}
.testimonial-stars {
    color: var(--premium-gold);
    margin-bottom: 15px;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
}
.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.testimonial-author-name {
    margin: 0;
    font-family: var(--font-body);
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
}
.testimonial-author-title {
    font-size: 0.85rem;
    color: var(--text-light);
}

.faq-section {
    background-color: var(--white);
}
.faq-container-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    cursor: pointer;
    text-align: left;
}
.faq-btn i {
    color: var(--premium-gold);
}
.faq-content {
    display: none;
    padding-top: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.blog-home-section {
    background-color: var(--light-gray);
}
.blog-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}
.blog-card:hover {
    transform: translateY(-5px);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body {
    padding: 25px;
}
.blog-card-category {
    color: var(--premium-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.blog-card-title {
    margin: 10px 0;
    font-size: 1.3rem;
}
.blog-card-title a {
    color: var(--primary-green);
}
.blog-card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.blog-card-link {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.blog-card-link i {
    font-size: 0.8rem;
}

.newsletter-home-section {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    background-image: url('data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b9913d' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}
.newsletter-home-wrapper {
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-home-icon {
    font-size: 3rem;
    color: var(--premium-gold);
    margin-bottom: 20px;
}
.newsletter-home-title {
    color: var(--light-cream);
    margin-bottom: 15px;
}
.newsletter-home-desc {
    color: var(--warm-beige);
    margin-bottom: 30px;
    opacity: 0.9;
}
.newsletter-home-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-home-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
}

/* ==========================================================================
   Inner Page Styles
   ========================================================================== */
.inner-hero {
    background-color: var(--light-cream);
    text-align: center;
}
.inner-hero-title {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}
.inner-hero-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.inner-content-center {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}
.inner-404-title {
    font-size: 5rem;
    color: var(--primary-green);
}
.inner-404-subtitle {
    color: var(--primary-green);
    margin-bottom: 20px;
}
.inner-404-desc {
    margin-bottom: 30px;
}
.explore-btn-sm {
    border-radius: var(--border-radius-sm);
    padding: 8px 20px;
}
@media (max-width: 991px) {
    .hero-title { font-size: 3.5rem; }
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .promise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .explore-grid { grid-template-columns: 1fr; }
    .promise-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile-First Responsive Updates (Phase 1 Update)
   ========================================================================== */

/* Typography Optimization for Mobile */
@media (max-width: 767px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.25rem !important; }
    p { font-size: 0.95rem; line-height: 1.5; }

    .section-padding { padding: 40px 0 !important; }
    .hero-title { font-size: 2.25rem !important; }
    .hero-desc { font-size: 1.1rem !important; }
    .hero-section { min-height: 500px !important; }
}

/* Base Component Sizing - Touch Friendly */
.btn, .form-control {
    min-height: 48px; /* Touch target minimum */
}
@media (max-width: 767px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}

/* Category Grid - 2 Per Row Mobile */
@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .category-card img {
        height: 200px !important; /* Smaller height for mobile */
    }
    .category-card-overlay {
        padding: 15px !important;
    }
    .category-card-title {
        font-size: 1.1rem !important;
    }
    .category-card-cta {
        font-size: 0.75rem !important;
    }
}

/* Testimonials / Blog Grid - Mobile Optimization */
@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    .blog-home-grid {
        grid-template-columns: 1fr !important;
    }
    .explore-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Product Listing Placeholder CSS (For phase 2 reference & inner pages) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Mobile Header Enhancements */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.mobile-search-overlay.active {
    display: flex;
    opacity: 1;
}
.mobile-search-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.close-search {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-green);
    cursor: pointer;
}
.mobile-search-form {
    display: flex;
    border-bottom: 2px solid var(--primary-green);
}
.mobile-search-input {
    flex: 1;
    border: none;
    font-size: 1.5rem;
    padding: 10px 0;
    background: transparent;
}
.mobile-search-input:focus {
    outline: none;
}
.mobile-search-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* Better mobile navigation */
@media (max-width: 991px) {
    .header-container {
        padding: 10px 15px;
    }
    .logo-placeholder {
        font-size: 1.5rem;
    }
    .mobile-menu-btn {
        font-size: 1.25rem;
    }
    .header-icons {
        display: flex; /* Show icons on mobile header */
        gap: 1rem;
    }
    /* Display specific desktop icons as requested for mobile */
    .header-icons .icon-link[aria-label="Wishlist"],
    .header-icons .icon-link[aria-label="Account"] {
        display: inline-block;
    }
    .header-icons {
        gap: 0.8rem; /* slightly tighter for mobile to fit all */
    }
}

/* Standardizing Product Card Hover Styles */
.product-card {
    transition: all var(--transition-fast);
}
.product-card:hover {
    border-color: var(--premium-gold) !important;
    transform: translateY(-5px) !important;
}
.product-card-img {
    transition: transform var(--transition-smooth);
}
.product-card:hover .product-card-img {
    transform: scale(1.05) !important;
}

/* ==========================================================================
   Inner Page Layout Refactoring
   ========================================================================== */

/* Auth Pages (Login, Register, Forgot Password) */
.auth-section {
    background-color: var(--light-cream);
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}
.auth-container {
    max-width: 500px;
    width: 100%;
}
.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-title {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 10px;
}
.auth-desc {
    color: var(--text-light);
}
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    cursor: pointer;
}
.auth-link {
    color: var(--premium-gold);
    font-weight: 500;
}
.auth-footer-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}
.auth-footer-link {
    color: var(--primary-green);
    font-weight: 600;
}

/* Base Sections */
.bg-white {
    background-color: var(--white);
}
.bg-light {
    background-color: var(--light-gray);
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-light {
    color: var(--text-light);
}
.text-primary {
    color: var(--primary-green);
}
.text-gold {
    color: var(--premium-gold);
}
.fw-600 {
    font-weight: 600;
}
.fw-700 {
    font-weight: 700;
}
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Flex & Grids */
.flex-between { display: flex; justify-content: space-between; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-align-center { display: flex; align-items: center; }
.flex-gap-10 { gap: 10px; }
.flex-gap-15 { gap: 15px; }
.flex-gap-20 { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* My Account */
.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}
.account-sidebar {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    height: fit-content;
}
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.account-nav-link {
    color: var(--text-light);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.account-nav-link.active {
    color: var(--primary-green);
    font-weight: 600;
}
.account-nav-icon {
    width: 25px;
}
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.account-stat-card {
    background: var(--light-cream);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius-lg);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}
.contact-info-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}
.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-cream);
    color: var(--premium-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}
.contact-form-card {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

/* Blog Details */
.article-container {
    max-width: 800px;
}
.article-header {
    text-align: center;
    margin-bottom: 40px;
}
.article-category {
    color: var(--premium-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.article-title {
    font-size: 3rem;
    margin: 15px 0;
}
.article-meta {
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}
.article-featured-img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}
.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}
.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}
.article-blockquote {
    background: var(--light-cream);
    border-left: 4px solid var(--premium-gold);
    padding: 20px 30px;
    font-style: italic;
    font-size: 1.25rem;
    margin: 40px 0;
}
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
}

@media (max-width: 767px) {
    .account-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .auth-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 2rem !important; }
}

/* Shop and Cart Specific Utilities */
.shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--premium-gold);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    z-index: 2;
}
.wishlist-btn-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.remove-wishlist-btn {
    color: #dc3545;
}
.product-card-body {
    padding: 20px;
}
.product-card-category {
    font-size: 0.85rem;
    text-transform: uppercase;
}
.product-card-title {
    font-size: 1.1rem;
    margin: 10px 0;
}
.product-card-price-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}
.product-old-price {
    text-decoration: line-through;
    font-size: 0.9rem;
}
.product-new-price {
    font-weight: 700;
    font-size: 1.1rem;
}
.add-to-cart-btn-full {
    width: 100%;
    border-radius: var(--border-radius-sm);
}

/* Mobile Filter Slide-in Panel */
.mobile-filter-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background-color: var(--white);
    z-index: 2000;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    transition: bottom var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.mobile-filter-panel.active {
    bottom: 0;
}
.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}
.mobile-filter-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.mobile-filter-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.mobile-filter-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}
.mobile-filter-btn {
    display: none;
}
@media (max-width: 767px) {
    .mobile-filter-btn {
        display: inline-flex;
    }
}

/* ==========================================================================
   Checkout & Cart specific layout
   ========================================================================== */
.cart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.cart-items-wrapper {
    grid-column: span 2;
}
.cart-table-border {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}
.cart-header {
    background-color: var(--light-cream);
    padding: 15px 20px;
    font-weight: 600;
    color: var(--primary-green);
    border-bottom: 1px solid var(--border-color);
    display: none;
}
@media(min-width: 768px) {
    .cart-header { display: flex; }
}
.cart-header-product { flex: 3; }
.cart-header-price { flex: 1; text-align: center; }
.cart-header-qty { flex: 1; text-align: center; }
.cart-header-subtotal { flex: 1; text-align: right; }
.cart-header-spacer { width: 30px; }

.cart-item-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.cart-item-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}
.cart-item-price {
    flex: 1;
    min-width: 100px;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}
.cart-item-qty {
    flex: 1;
    min-width: 120px;
    display: flex;
    justify-content: center;
}
.qty-control {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
    width: 100px;
}
.qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--primary-green);
}
.qty-input {
    width: 100%;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    color: var(--primary-green);
    font-weight: 600;
    outline: none;
}
.cart-item-subtotal {
    flex: 1;
    min-width: 100px;
    text-align: right;
    color: var(--primary-green);
    font-weight: 700;
}
.cart-item-remove {
    width: 30px;
    text-align: right;
}
.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px;
}
.cart-coupon-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.coupon-input {
    width: auto;
    min-width: 200px;
}
.cart-totals-wrapper {
    grid-column: span 1;
}
.cart-totals-box {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    position: sticky;
    top: 100px;
}
.cart-totals-title {
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-light);
}
.cart-total-row.bordered {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.cart-total-final {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.cart-total-final span:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
}
.cart-total-final span:last-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}
.checkout-billing-wrapper {
    grid-column: span 2;
}
.checkout-section-title {
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 25px;
}
.checkout-order-wrapper {
    grid-column: span 1;
}
.checkout-order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-green);
}
.payment-method-box {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.payment-method-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-green);
}

/* Product Details Layout */
.product-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}
.product-main-img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}
.product-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.product-thumb-active {
    width: 100%;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: 2px solid var(--premium-gold);
}
.product-thumb-inactive {
    width: 100%;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    opacity: 0.6;
}
.product-details-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin: 10px 0;
}
.product-reviews-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.product-details-price {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 20px;
}
.product-desc-short {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}
.product-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.qty-control-lg {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
    width: 120px;
}
.qty-btn-lg {
    background: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--primary-green);
    font-weight: 600;
}
.product-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
}
.product-tabs-header {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.product-tab-btn {
    background: none;
    border: none;
    padding-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    cursor: pointer;
}
.product-tab-btn.active {
    color: var(--primary-green);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-green);
}
.product-tab-btn.inactive {
    color: var(--text-light);
    font-weight: 500;
}
.mt-60 { margin-top: 60px; }
.hide-mobile { display: none; }
@media(min-width: 768px) {
    .hide-mobile { display: block; }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    transition: all var(--transition-fast);
}
.pagination-link:hover {
    border-color: var(--premium-gold);
    color: var(--primary-green);
}
.pagination-link.active {
    border: 1px solid var(--primary-green);
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 600;
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0 auto;
}
.legal-heading {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Article Lists / Share */
.article-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}
.article-tag {
    background: var(--light-gray);
    padding: 5px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    color: var(--text-light);
}
.article-share-icon {
    color: var(--text-light);
}
.article-share-icon:hover {
    color: var(--primary-green);
}
.mt-40 { margin-top: 40px; }
.mr-5 { margin-right: 5px; }
.fs-12 { font-size: 1.2rem; }
.mr-8 { margin-right: 8px; }
.cart-total-final-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
}
.cart-total-final-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Mobile Product Details Enhancements */
@media (max-width: 767px) {
    /* Swipeable Image Gallery */
    .product-gallery-mobile {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .product-gallery-mobile::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .product-main-img {
        min-width: 85%;
        scroll-snap-align: center;
        margin-bottom: 0;
    }
    .product-thumbs-grid {
        display: none; /* Hide thumbs on mobile, rely on swipe */
    }

    /* Sticky Add to Cart */
    .product-actions-wrap {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 15px 20px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        margin: 0;
        gap: 10px;
        justify-content: space-between;
    }
    .add-to-cart-btn-full {
        flex: 1;
    }
    /* Add padding to body to prevent footer overlap with sticky cart */
    .product-details-page {
        padding-bottom: 80px;
    }
}
@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}
.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--premium-gold);
    color: var(--primary-green);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
