/* ========================================
   Gaudhuni Group — Main Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
    --cream: #fdf6ee;
    --saffron: #d4760a;
    --saffron-dark: #b5630a;
    --saffron-light: #f0a84c;
    --gold: #c9a84c;
    --gold-light: #e0cc8a;
    --brown: #5c3317;
    --brown-dark: #3d210e;
    --brown-light: #7a4e2d;
    --white: #ffffff;
    --off-white: #faf7f2;
    --text-primary: #2d1a0e;
    --text-secondary: #6b5344;
    --text-muted: #9b8a7c;
    --border-color: #e8ddd1;
    --shadow-sm: 0 1px 3px rgba(92, 51, 23, 0.08);
    --shadow-md: 0 4px 12px rgba(92, 51, 23, 0.12);
    --shadow-lg: 0 8px 30px rgba(92, 51, 23, 0.15);
    --shadow-xl: 0 16px 50px rgba(92, 51, 23, 0.18);
    --shadow-hover: 0 12px 36px rgba(92, 51, 23, 0.2);
    --shadow-btn: 0 4px 14px rgba(212, 118, 10, 0.3);
    --shadow-btn-hover: 0 6px 20px rgba(212, 118, 10, 0.45);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-pill: 40px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-height: 72px;
    --container-max: 1200px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--saffron);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: rgba(212, 118, 10, 0.2);
    color: var(--text-primary);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: var(--white);
    border-color: var(--saffron);
    box-shadow: 0 2px 4px rgba(212, 118, 10, 0.2), 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--saffron-light) 0%, var(--saffron) 100%);
    border-color: var(--saffron);
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 1px 3px rgba(212, 118, 10, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, var(--saffron-dark) 0%, var(--saffron-dark) 100%);
    transition-duration: 0.1s;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--saffron);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-outline:active {
    transform: translateY(0px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition-duration: 0.1s;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1.05rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    height: var(--nav-height);
    transition: box-shadow var(--transition);
    border: none;
    box-shadow: none;
}

.navbar::after {
    display: none;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(92, 51, 23, 0.1);
    border: none;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.97);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--saffron);
    background: rgba(212, 118, 10, 0.06);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--saffron);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.dropdown-arrow {
    transition: transform var(--transition);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(92, 51, 23, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    border: 1px solid rgba(232, 221, 209, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.dropdown-link:hover {
    color: var(--saffron);
    background: rgba(212, 118, 10, 0.06);
    padding-left: 24px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   FLASH MESSAGES
   ======================================== */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    width: 100%;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    animation: flashSlideIn 0.4s ease forwards;
    border-left: 4px solid var(--gold);
}

.flash-success {
    border-left-color: #2e7d32;
}

.flash-error, .flash-danger {
    border-left-color: #c62828;
}

.flash-warning {
    border-left-color: var(--saffron);
}

.flash-close {
    font-size: 1.3rem;
    color: var(--text-muted);
    padding: 0 0 0 12px;
    line-height: 1;
}

.flash-close:hover {
    color: var(--text-primary);
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c26 30%, #6b8f3c 50%, #c9a84c 80%, #d4760a 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 118, 10, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(45, 80, 22, 0.3) 0%, transparent 60%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.02) 40px,
            rgba(255, 255, 255, 0.02) 80px
        );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(45, 26, 14, 0.25) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 120px 20px 60px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 4px 30px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 50%, var(--brown-light) 100%);
    padding: 48px 0;
    position: relative;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
}

.stat-item {
    padding: 12px 20px;
    position: relative;
    transition: all var(--transition);
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.4), transparent);
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   SECTIONS (Generic)
   ======================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
    margin: 16px auto 0;
    border-radius: 2px;
    background-size: 200% 100%;
    animation: shimmerLine 3s ease infinite;
}

@keyframes shimmerLine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 50%, var(--brown-light) 100%);
    padding: 120px 0 50px;
    text-align: center;
    margin-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Override margin-top for hero (home page has no page-header) */
.hero {
    margin-top: var(--nav-height);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(232, 221, 209, 0.6);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 118, 10, 0.15);
}

.product-card-link {
    display: block;
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--off-white);
    border-bottom: 1px solid rgba(232, 221, 209, 0.4);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 26, 14, 0.06) 0%, transparent 40%);
    pointer-events: none;
    transition: opacity var(--transition);
}

.product-card:hover .product-card-image::after {
    opacity: 0;
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: var(--white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(212, 118, 10, 0.3);
}

.product-card-body {
    padding: 20px 22px 24px;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--saffron);
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
}

.price-old {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

/* ========================================
   PRODUCT SLIDER
   ======================================== */
.slider-section {
    background: var(--off-white);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(232, 221, 209, 0.5);
}

.slider-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 118, 10, 0.12);
}

.slider-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.slider-card-info {
    padding: 12px 14px 16px;
}

.slider-card-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-card-info .price-current {
    font-size: 1rem;
}

.slider-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition);
    z-index: 2;
    border: 1px solid rgba(232, 221, 209, 0.5);
}

.slider-btn:hover {
    background: var(--saffron);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
    border-color: var(--saffron);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(232, 221, 209, 0.5);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 118, 10, 0.1);
}

.why-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.why-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.why-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   CATEGORY FILTERS
   ======================================== */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 30px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-secondary);
    transition: all var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-btn:hover {
    border-color: var(--saffron);
    color: var(--saffron);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(212, 118, 10, 0.12);
}

.filter-btn.active {
    background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    border-color: var(--saffron);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(212, 118, 10, 0.3);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg {
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto 28px;
}

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.breadcrumb-bar {
    background: var(--off-white);
    padding: 14px 0;
    margin-top: var(--nav-height);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--saffron);
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--saffron);
    font-weight: 500;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--off-white);
    aspect-ratio: 1 / 1;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.gallery-no-image {
    aspect-ratio: 1 / 1;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    flex: 0 0 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all var(--transition);
    cursor: pointer;
    padding: 0;
}

.gallery-thumb.active {
    border-color: var(--saffron);
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-detail-name {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.price-large {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--saffron);
}

.price-large-old {
    font-size: 1.1rem;
    opacity: 0.6;
}

.product-detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.product-detail-desc p {
    margin-bottom: 12px;
}

.product-detail-desc ul,
.product-detail-desc ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.product-detail-desc li {
    list-style: disc;
    margin-bottom: 4px;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
}

.meta-item svg {
    color: var(--saffron);
    flex-shrink: 0;
}

/* Related */
.related-section {
    background: var(--off-white);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-story-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text .section-title::after {
    display: none;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(212, 118, 10, 0.08));
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
    text-align: center;
    padding: 40px;
}

.about-image-placeholder span {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.about-mission-section {
    background: var(--cream);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mission-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(232, 221, 209, 0.5);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--saffron));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 118, 10, 0.1);
}

.mission-icon {
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.mission-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-values-section {
    padding: 60px 0;
}

.values-banner {
    text-align: center;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown), var(--brown-light));
    padding: 56px 36px;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.values-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 168, 76, 0.1), transparent 60%);
    pointer-events: none;
}

.values-banner h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--gold);
    margin-bottom: 8px;
}

.values-banner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid rgba(232, 221, 209, 0.5);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 118, 10, 0.12);
}

.contact-icon {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.contact-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card-info {
    font-size: 1rem;
    font-weight: 500;
    color: var(--saffron);
    margin-bottom: 4px;
}

.contact-card-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ========================================
   DYNAMIC PAGE
   ======================================== */
.dynamic-page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.dynamic-page-content h2,
.dynamic-page-content h3 {
    margin: 28px 0 12px;
}

.dynamic-page-content p {
    margin-bottom: 16px;
}

.dynamic-page-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

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

.dynamic-page-content li {
    list-style: disc;
    margin-bottom: 8px;
}

/* ========================================
   ERROR PAGE
   ======================================== */
.error-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--nav-height);
}

.error-content {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    margin-bottom: 20px;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.error-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto 32px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--brown-dark) 0%, #2a1508 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 72px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--saffron), var(--gold), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 0.8fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-logo-wrap {
    margin-bottom: 16px;
}
.footer-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.15));
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--saffron);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(212, 118, 10, 0.4);
    border-color: var(--saffron);
}

/* Platform-specific social hover colors */
.social-link[aria-label*="Facebook"]:hover,
.social-link[href*="facebook"]:hover {
    background: #1877f2;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
    border-color: #1877f2;
}

.social-link[aria-label*="Instagram"]:hover,
.social-link[href*="instagram"]:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
    border-color: #e6683c;
}

.social-link[aria-label*="YouTube"]:hover,
.social-link[href*="youtube"]:hover {
    background: #ff0000;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
    border-color: #ff0000;
}

.social-link[aria-label*="Twitter"]:hover,
.social-link[href*="twitter"]:hover,
.social-link[href*="x.com"]:hover {
    background: #1da1f2;
    box-shadow: 0 4px 14px rgba(29, 161, 242, 0.4);
    border-color: #1da1f2;
}

.social-link[aria-label*="WhatsApp"]:hover,
.social-link[href*="whatsapp"]:hover {
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    border-color: #25d366;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* Fade-in-up animation (reusable keyframe) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Gentle pulse for trust elements */
@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ========================================
   RESPONSIVE — Tablet (max-width: 992px)
   ======================================== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .mission-card:last-child {
        grid-column: 1 / -1;
        max-width: 450px;
        margin: 0 auto;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ========================================
   RESPONSIVE — Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 40px;
        gap: 4px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: transparent;
        display: none;
    }

    .nav-dropdown.mobile-open .nav-dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding: 10px 16px;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        min-height: 90vh;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(201, 168, 76, 0.2);
        padding-bottom: 16px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

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

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

    .mission-card:last-child {
        max-width: none;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .slider-btn {
        display: none;
    }

    .slider-card {
        flex: 0 0 180px;
    }

    .page-header {
        padding: 100px 0 36px;
    }

    .gallery-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
}

/* ========================================
   RESPONSIVE — Small (max-width: 600px)
   ======================================== */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Cart table: horizontal scroll on mobile */
    .cart-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Checkout form: single column on mobile */
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }

    /* Hero section: proper padding */
    .hero {
        padding: 80px 16px 40px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Language toggle: don't overlap navbar */
    .lang-toggle {
        top: auto;
        bottom: 80px;
        right: 14px;
        z-index: 998;
    }
}

/* ========================================
   RESPONSIVE — Small Phone (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 11px 28px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 260px;
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.82rem;
    }

    .product-detail-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========================================
   FEATURED PRODUCTS (override on home)
   ======================================== */
.featured-section {
    background: var(--white);
}

/* ========================================
   CART
   ======================================== */
/* Cart badge */
.cart-link { position: relative; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: #fff;
    font-size: 0.68rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(212, 118, 10, 0.35);
    border: 2px solid var(--white);
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.product-card-cart { margin-top: 8px; text-align: center; padding: 0 22px 20px; }

/* Cart page */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--border-color); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.cart-table td { padding: 12px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-total { font-size: 1.3rem; font-weight: 700; color: var(--brown); }
.cart-checkout-form { background: var(--off-white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border-color); margin-top: 2rem; }
.qty-input { width: 60px; padding: 6px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); text-align: center; font-size: 0.95rem; }

/* ========================================
   PRINT
   ======================================== */
@media print {
    .navbar,
    .footer,
    .hero-cta,
    .slider-section,
    .flash-container {
        display: none !important;
    }

    body {
        background: white;
        color: #000;
    }

    .section {
        padding: 20px 0;
    }
}

/* ========================================
   Language Toggle
   ======================================== */
.lang-toggle {
    position: fixed;
    top: 82px;
    right: 18px;
    z-index: 1000;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(232, 221, 209, 0.6);
    overflow: hidden;
    transition: all var(--transition);
}

.lang-toggle:hover {
    box-shadow: var(--shadow-lg);
}

.lang-btn {
    padding: 7px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

.lang-btn.active {
    background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-btn:hover:not(.active) {
    background: rgba(212, 118, 10, 0.08);
    color: var(--saffron);
}

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: all var(--transition-bounce);
    text-decoration: none;
    color: #fff;
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ========================================
   Navbar Extras
   ======================================== */
.nav-donate {
    color: var(--saffron) !important;
    font-weight: 700 !important;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-donate::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--saffron);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-donate:hover::after {
    transform: scaleX(1);
}

.nav-donate:hover {
    color: var(--saffron-dark) !important;
    background: rgba(212, 118, 10, 0.08);
}

.nav-signup-btn {
    background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 118, 10, 0.25);
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.nav-signup-btn:hover {
    background: linear-gradient(180deg, var(--saffron-light) 0%, var(--saffron) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 118, 10, 0.35);
}

.nav-signup-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(212, 118, 10, 0.2);
}

.nav-user-link {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.nav-user-link:hover {
    color: var(--saffron);
}

/* ========================================
   Product Card Button Overrides
   ======================================== */
.product-card .btn-primary,
.product-card .btn {
    border-radius: var(--radius-pill);
    padding: 10px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
