
/* Ciguatera Font for Mauli Branding */
@font-face {
    font-family: 'Ciguatera';
    src: url('fonts/Ciguatera.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-specific reset */
@media (max-width: 768px) {
    * {
        box-sizing: border-box !important;
    }
    
    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background: #F8F8F8;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}
.blog-article {
    max-width: 900px;
    margin: 120px auto 60px;
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
}

/* Standard section paddings */
section.collections,
section.about,
section.crafting-process,
section.video-section,
section.sustainability,
section.craftsmanship,
section.contact {
    padding-left: 0;
    padding-right: 0;
}

/* Enhanced Typography with Fluid Scaling */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    color: #2D5016;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Navigation with Sophisticated Design */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
    height: 80px;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 4px;
    transition: all 0.3s ease;
    max-height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Ciguatera', 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2D5016;
    letter-spacing: 2px;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2C2C2C;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: #2D5016;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #2D5016;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFF8DC 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 8fr 5fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 40px;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    margin-bottom: 2rem;
}

.brand-large {
    display: block;
    font-family: 'Ciguatera', 'Cormorant Garamond', serif;
    font-size: var(--font-size-4xl);
    font-weight: 300;
    color: #2D5016;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

/* Mauli Text Styling - Apply to any element containing "Mauli" */
.mauli-text {
    font-family: 'Ciguatera', 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.mauli-text.bold {
    font-weight: 700;
}

.mauli-text.large {
    font-size: var(--font-size-4xl);
}

.mauli-text.medium {
    font-size: var(--font-size-2xl);
}

.mauli-text.small {
    font-size: var(--font-size-lg);
}

.hero-subtitle {
    display: block;
    font-size: var(--font-size-xl);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #8B7355;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.hero-description {
    display: block;
    font-size: var(--font-size-lg);
    color: #555;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature {
    background: rgba(45, 80, 22, 0.05);
    color: #2D5016;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(45, 80, 22, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature:hover {
    background: #2D5016;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #2D5016;
    color: white;
    border: 2px solid #2D5016;
}

.btn-primary:hover {
    background: transparent;
    color: #2D5016;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #2D5016;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background: #FFD700;
    color: #2D5016;
    transform: none;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Clean rectangular hero carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 360px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f3f3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    touch-action: pan-y; /* Allow vertical scrolling but handle horizontal swipes */
    user-select: none; /* Prevent text selection during swipe */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D5016;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
}

.carousel-dots button.active {
    background: #2D5016;
}

.carousel-buy {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 10px 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-height: 44px;
    min-width: 44px;
}

/* Mobile alignment for carousel buy button */
@media (max-width: 768px) {
    .carousel-buy {
        position: absolute;
        left: 50%;
        right: auto;
        bottom: 20px;
        transform: translateX(-50%);
        padding: 12px 20px;
        min-height: 48px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 4rem;
}

.heritage-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 10px;
}

.heritage-text {
    font-size: 0.875rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.est-text {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll arrow styles removed for cleaner presentation */

/* Collections Section */
.collections {
    padding: 6rem 0;
    background: #F8F8F8;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--font-size-3xl);
    color: #2D5016;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
    font-weight: 400;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: #8B7355;
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
    font-style: italic;
}

.section-description {
    font-size: var(--font-size-lg);
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.bestseller {
    background: #2D5016;
    color: white;
}

.product-badge.eco-luxury {
    background: #8B7355;
    color: white;
}

.product-badge.limited {
    background: #FFD700;
    color: #2D5016;
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.quick-view-btn {
    background: white;
    color: #2D5016;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-view-btn:hover {
    background: #2D5016;
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    color: #FFD700;
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: #666;
}

.product-title {
    font-size: 1.25rem;
    color: #2D5016;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 400;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D5016;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.product-variant {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.add-to-cart-btn {
    width: 100%;
    background: #2D5016;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.add-to-cart-btn:hover {
    background: #8B7355;
    transform: translateY(-2px);
}

.collection-footer {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    background: transparent;
    color: #2D5016;
    border: 2px solid #2D5016;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-btn:hover {
    background: #2D5016;
    color: white;
    transform: translateY(-2px);
}

.shipping-info {
    font-size: 0.875rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #FFF8DC;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text {
    max-width: 500px;
}

.about-description {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2D5016;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto; /* center within column */
}

.image-container img {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    display: block;
}

.legacy-section {
    text-align: center;
}

.legacy-title {
    font-size: 2.5rem;
    color: #2D5016;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.legacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.legacy-text {
    text-align: left;
}

.legacy-text p {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.learn-more-btn {
    display: inline-block;
    background: #2D5016;
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learn-more-btn:hover {
    background: #8B7355;
    transform: translateY(-2px);
}

.legacy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

.legacy-image {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto; /* center within column */
    display: flex;
    justify-content: center;
}

/* Crafting Process Section */
.crafting-process {
    padding: 6rem 0;
    background: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: #fafafa;
    border-radius: 4px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #2D5016;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    color: #2D5016;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-description {
    color: #555;
    line-height: 1.6;
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: #2D5016;
    color: white;
}

.video-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.video-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.video-description {
    font-size: 1.125rem;
    color: #ccc;
    line-height: 1.7;
}

.video-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.craft-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-button-large:hover {
    transform: scale(1.1);
}

.play-button-large i {
    font-size: 1.5rem;
    color: #2D5016;
    margin-left: 4px;
}

/* Sustainability & Craftsmanship Sections */
.sustainability,
.craftsmanship {
    padding: 4rem 0;
    text-align: center;
}

.sustainability {
    background: #FFF8DC;
}

.craftsmanship {
    background: white;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #2D5016;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-logo .brand-text {
    display: flex;
    flex-direction: column;
}

.footer-logo .brand-name {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.brand-description {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-section h3 {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.sustainability-banner {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sustainability-banner h3 {
    color: white;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sustainability-banner p {
    color: #ccc;
    margin-bottom: 1rem;
}

.sustainability-icons span {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .footer-bottom {
        border-top: 1px solid #333;
        padding-top: 2rem;
        text-align: center;
    }

.footer-bottom p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-features span {
    color: #ccc;
    font-size: 0.875rem;
}

/* Enhanced Responsive Design - Mobile First Approach */

/* Fluid Typography */
:root {
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --font-size-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);
    --font-size-4xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
    
    --spacing-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
    --spacing-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --spacing-xl: clamp(2rem, 1.6rem + 2vw, 3rem);
    --spacing-2xl: clamp(3rem, 2.4rem + 3vw, 4rem);
    --spacing-3xl: clamp(4rem, 3.2rem + 4vw, 6rem);
}

/* Touch-friendly minimum sizes */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Enhanced Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--spacing-lg);
    }
    
    .hero-content {
        grid-template-columns: 8fr 5fr;
        gap: 3rem;
        max-width: 1200px;
    }
    
    .hero-carousel { height: 420px; max-width: 600px; }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 8fr 5fr;
        gap: 2rem;
    }

    .about-content,
    .legacy-content,
    .video-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .hero-carousel { height: 380px; max-width: 560px; }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 100px var(--spacing-md) 40px;
    }

    .about-content,
    .legacy-content,
    .video-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .hero-carousel { height: 320px; max-width: 520px; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Tablet Portrait (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .logo {
        height: 55px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 100px var(--spacing-sm) 30px;
    }

    .about-content,
    .legacy-content,
    .video-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .hero-carousel { height: 280px; max-width: 460px; }
    
    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .product-info {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-description {
        font-size: 14px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .brand-large {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
}

/* Mobile Landscape (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) and (orientation: landscape) {
    .hero-content {
        padding: 60px var(--spacing-sm) 20px;
    }
    
    .hero-carousel { height: 240px; max-width: 380px; }
}

/* Mobile and Tablet Navigation (768px and below) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-sm);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1000;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-base);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* iPhone 14 Pro Max and Mobile Device Fixes */
@media screen and (max-width: 430px) {
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 20px !important;
    }
    
    .container {
        padding: 0 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .hero-content {
        padding: 120px 16px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    section.collections,
    section.about,
    section.crafting-process,
    section.video-section,
    section.sustainability,
    section.craftsmanship,
    section.contact {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-carousel {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .product-info {
        padding: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
    }
    
    .legacy-content,
    .about-content,
    .video-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
    
    .carousel-buy {
        left: 50% !important;
        right: auto !important;
        bottom: 12px !important;
        transform: translateX(-50%) !important;
        padding: 8px 16px !important;
        min-height: 44px !important;
        font-size: 12px !important;
        width: auto !important;
        max-width: 180px !important;
        border-radius: 4px !important;
    }
}


/* Mobile Portrait (320px - 800px) */
@media (max-width: 800px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .blog-article {
        margin: 100px auto 40px;
        padding-top: var(--spacing-2xl);
        padding-bottom: var(--spacing-xl);
    }

    /* Ensure consistent inner spacing for sections on mobile */
    section.collections,
    section.about,
    section.crafting-process,
    section.video-section,
    section.sustainability,
    section.craftsmanship,
    section.contact {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        height: 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 120px var(--spacing-sm) 20px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        display: grid;
        grid-template-areas:
            "title"
            "image"
            "subtitle"
            "desc"
            "stats";
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .about-text {
        max-width: 100%;
        display: contents; /* allow children to participate in parent grid */
    }

    .about-description {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }

    /* Grid placement to show image right after OUR STORY heading */
    .about-text > h2.section-title { grid-area: title; }
    .about-image { grid-area: image; justify-self: center; }
    .about-text > h3.section-subtitle { grid-area: subtitle; }
    .about-text > .about-description { grid-area: desc; }
    .about-content .stats-grid { grid-area: stats; }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-3xl);
    }

    .stat-label {
        font-size: var(--font-size-xs);
    }

    .legacy-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .legacy-text {
        text-align: center;
    }

    .legacy-text p {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }

    .image-container img,
    .legacy-image img {
        width: 100%;
        max-width: 640px;
        aspect-ratio: 16/9;
        height: auto;
        object-fit: cover;
    }

    .video-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .video-text h2 {
        color: white;
        margin-bottom: 1rem;
    }

    .video-description {
        font-size: var(--font-size-base);
        color: #ccc;
        line-height: 1.6;
    }

    .video-container {
        aspect-ratio: 16/9;
        margin: var(--spacing-md) 0;
    }

    /* Blog/History section mobile readability */
    #blog .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    #blog .section-header .section-title {
        font-size: var(--font-size-2xl);
        letter-spacing: 1px;
    }
    #blog .section-header .section-description {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }
    #blog .legacy-title {
        font-size: var(--font-size-xl);
        letter-spacing: 1px;
    }
    #blog .legacy-text p {
        font-size: var(--font-size-base);
        line-height: 1.7;
        margin-bottom: var(--spacing-sm);
    }

    /* Place legacy section image right after its heading and center */
    .legacy-section .legacy-content {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        gap: var(--spacing-md);
        text-align: center;
    }
    .legacy-section .legacy-image { grid-area: image; justify-self: center; }
    .legacy-section .legacy-text { grid-area: text; }

    /* Blog History: ensure media centered and can be placed after heading */
    #blog .legacy-content {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        gap: var(--spacing-md);
        text-align: center;
    }
    #blog .legacy-image { grid-area: image; justify-self: center; }
    #blog .legacy-text { grid-area: text; }

    .brand-large {
        font-size: var(--font-size-4xl);
        line-height: 1.1;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }

    .hero-description {
        font-size: var(--font-size-base);
        line-height: 1.6;
        margin-bottom: var(--spacing-sm);
    }

    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xs);
        margin: var(--spacing-md) 0;
    }

    .feature {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
        min-height: 32px;
        display: flex;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
        width: 100%;
        margin-top: var(--spacing-lg);
    }

    .btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .section-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-sm);
    }

    .section-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }

    .section-description {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .product-card {
        margin-bottom: var(--spacing-sm);
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xs);
    }

    .product-description {
        font-size: var(--font-size-sm);
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }

    .add-to-cart-btn {
        min-height: 48px;
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-3xl);
    }

    .stat-label {
        font-size: var(--font-size-xs);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: left;
    }

    .footer-features {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }

    .footer-bottom {
        text-align: left;
    }

    .hero-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        margin-top: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .process-step {
        padding: var(--spacing-md);
    }

    .step-number {
        font-size: var(--font-size-3xl);
    }

    .step-title {
        font-size: var(--font-size-lg);
    }

    .step-description {
        font-size: var(--font-size-sm);
    }

    .legacy-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .legacy-text {
        text-align: center;
    }

    .legacy-text p {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }

    .saree-showcase {
        flex-direction: column;
        height: auto;
        gap: 10px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .main-saree {
        width: 100%;
        max-width: 140px;
        height: 180px;
        order: 1;
        transform: none;
        box-sizing: border-box;
    }

    .secondary-saree {
        width: 100%;
        max-width: 140px;
        height: 180px;
        order: 2;
        transform: none;
        box-sizing: border-box;
    }

    /* Sustainability mobile tweaks */
    #sustainability .section-title {
        font-size: var(--font-size-2xl);
        letter-spacing: 1px;
    }
    #sustainability .section-description {
        font-size: var(--font-size-base);
        line-height: 1.6;
        max-width: 100%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    #sustainability ul {
        max-width: 100%;
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-inline-start: 1.25rem !important;
        box-sizing: border-box;
    }
}


/* Extra Small Mobile (320px - 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 var(--spacing-xs);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding: 120px var(--spacing-xs) 20px;
    }
    
    .brand-large {
        font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem);
        line-height: 1;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-buttons {
        gap: var(--spacing-xs);
    }
    
    .btn {
        max-width: 100%;
        width: 100%;
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
        box-sizing: border-box;
    }
    
    .hero-features {
        gap: var(--spacing-xs);
    }
    
    .feature {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .saree-showcase {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-saree {
        width: 100%;
        max-width: 120px;
        height: 150px;
        box-sizing: border-box;
    }
    
    .secondary-saree {
        width: 100%;
        max-width: 100px;
        height: 130px;
        box-sizing: border-box;
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-sm);
    }
    
    .process-step {
        padding: var(--spacing-sm);
    }
}

/* General Mobile Layout Fix */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        padding-top: 20px;
    }
    
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .product-info {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-description {
        font-size: 14px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
}

/* Touch and Mobile Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .product-card:hover,
    .stat-item:hover,
    .process-step:hover,
    .btn:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Increase touch targets */
    .nav-link,
    .btn,
    .add-to-cart-btn,
    .feature {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve button visibility */
    .btn {
        border-width: 2px;
    }
    
    /* Better spacing for touch */
    .hero-features {
        gap: var(--spacing-sm);
    }
    
    .footer-features {
        gap: var(--spacing-sm);
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .hero-saree,
    .product-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-saree {
        transform: none !important;
    }
}


/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2D5016;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.notification.show {
    transform: translateX(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: fadeInUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #2D5016;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #2D5016;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

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

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D5016;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-image {
        height: 200px;
    }

    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }

    /* Premium Gallery Responsive */
    .premium-gallery {
        height: 500px;
        max-width: 700px;
        gap: 15px;
    }

    .image-overlay {
        padding: 1.5rem;
    }

    .overlay-content h3 {
        font-size: 1.5rem;
    }

    .overlay-content h4 {
        font-size: 1.1rem;
    }

    .overlay-content p {
        font-size: 0.9rem;
    }

    .gallery-actions {
        top: 15px;
        right: 15px;
    }

    .action-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .action-btn.zoom {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .premium-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        height: auto;
        max-width: 350px;
        gap: 15px;
    }

    .gallery-item.featured {
        grid-row: 1;
        grid-column: 1;
    }

    .gallery-item:not(.featured) {
        grid-column: 1;
    }

    .gallery-item {
        height: 200px;
    }

    .image-overlay {
        padding: 1rem;
        transform: translateY(0);
    }

    .overlay-content h3 {
        font-size: 1.2rem;
    }

    .overlay-content h4 {
        font-size: 1rem;
    }

    .overlay-content p {
        font-size: 0.8rem;
    }

    .gallery-actions {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-top: 15px;
    }

    .action-btn span {
        display: none;
    }
}

/* Enhanced hover effects */
.product-card,
.stat-item,
.process-step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance Optimizations */
.product-image {
    background: #f8f8f8;
    position: relative;
    will-change: transform;
}

.product-image::before {
    content: 'Premium Saree Collection';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
    z-index: 1;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-image img {
    position: relative;
    z-index: 2;
}

/* Image optimization for mobile */
@media (max-width: 768px) {
    .hero-saree,
    .product-image img,
    .image-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Smooth scrolling optimization */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* GPU acceleration for animations */
.hero-saree,
.product-card,
.stat-item,
.process-step,
.btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce layout shifts */
.hero-content,
.about-content,
.legacy-content {
    contain: layout;
}

/* Optimize repaints */
.navbar {
    contain: layout style;
}

/* Critical above-the-fold styles */
.hero {
    contain: layout style paint;
}

/* Refined typography */
.hero-description,
.section-description,
.about-description,
.legacy-text p {
    font-weight: 400;
    line-height: 1.8;
}

/* Clean button states */
.btn,
.add-to-cart-btn,
.quick-view-btn,
.view-all-btn,
.learn-more-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

/* Typography consistency */
.product-title,
.step-title,
.legacy-title {
    font-family: 'Cormorant Garamond', serif;
}

/* Subtle shadows */
.product-card,
.stat-item,
.process-step,
.image-container,
.legacy-image img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product-card:hover,
.stat-item:hover,
.process-step:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Lightbox Modal Styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: none;
    border-radius: 8px;
}

.lightbox-img.active {
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: all;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.lightbox-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-dot.active {
    background: #2D5016;
}

/* Product Image Modal Styles */
.product-img-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-img-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Desktop modal enhancements */
@media (min-width: 769px) {
    .modal-content {
        margin: 3% auto;
        padding: 30px;
        max-width: 1200px;
    }
    
    .modal-image-container {
        aspect-ratio: 1;
        max-width: 600px;
        margin: 0 auto 30px;
    }
    
    .modal-thumbnails {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .modal-thumb {
        width: 100px;
        height: 100px;
    }
    
    .modal-nav {
        padding: 18px 24px;
        font-size: 28px;
    }
    
    .modal-nav.prev {
        left: 30px;
    }
    
    .modal-nav.next {
        right: 30px;
    }
    
    .modal-close {
        top: 20px;
        right: 25px;
        font-size: 24px;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover,
.modal-close:focus {
    color: #2D5016;
}

.modal-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 80, 22, 0.8);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(45, 80, 22, 1);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.modal-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-thumb.active {
    border-color: #2D5016;
    opacity: 1;
}

.modal-info {
    text-align: center;
    padding: 0 20px 20px;
    flex-shrink: 0;
    margin-top: auto;
}

.modal-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #2D5016;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-book-btn {
    background: #2D5016;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Desktop specific styling */
@media (min-width: 769px) {
    .modal-book-btn {
        padding: 14px 28px;
        font-size: 16px;
        max-width: 220px;
        margin: 20px auto 0;
    }
    
    .modal-info {
        padding: 0 40px 20px;
    }
    
    .modal-info h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .modal-info p {
        font-size: 17px;
        line-height: 1.7;
        margin-bottom: 25px;
    }
}

.modal-book-btn:hover {
    background: #1e3a0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.modal-book-btn:focus {
    outline: 2px solid #2D5016;
    outline-offset: 2px;
}

/* Ensure button is always visible */
#modalBookBtn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 15px;
    }
    
    .modal-image-container {
        aspect-ratio: 1;
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
    .modal-nav {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .modal-nav.prev {
        left: 10px;
    }
    
    .modal-nav.next {
        right: 10px;
    }
    
    .modal-thumb {
        width: 60px;
        height: 60px;
    }
    
    .modal-info h3 {
        font-size: 20px;
    }
    
    .modal-info p {
        font-size: 14px;
    }
    
    .modal-book-btn {
        padding: 10px 20px;
        font-size: 14px;
        max-width: 100%;
    }
    
    .carousel-buy {
        left: 50%;
        right: auto;
        bottom: 15px;
        transform: translateX(-50%);
        padding: 10px 18px;
        min-height: 46px;
        font-size: 13px;
        width: auto;
        max-width: 200px;
    }
}

