/* ================================================================
   MISA STORE — Premium Handmade E-Commerce Stylesheet
   ================================================================ */

:root {
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --color-cream: #faf7f4;
    --color-ivory: #f5f0eb;
    --color-warm-white: #fdfaf7;
    --color-soft-beige: #e8dfd6;
    --color-sand: #d4c8bb;
    --color-taupe: #b8a99a;
    --color-charcoal: #3a3530;
    --color-deep-charcoal: #2a2522;
    --color-dark: #1a1816;
    --color-accent: #c4a882;
    --color-accent-deep: #a07848;
    --color-rose: #c9a99b;
    --color-sage: #b0b8a4;
    --color-clay: #c49b8a;
    --color-error: #c0392b;
    --color-success: #5d8a68;
    --shadow-sm: 0 1px 3px rgba(26, 24, 22, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 24, 22, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 24, 22, 0.12);
    --shadow-xl: 0 20px 60px rgba(26, 24, 22, 0.16);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1320px;
    --header-height: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-warm-white);
    color: var(--color-charcoal);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth);
}


/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-ivory);
}
::-webkit-scrollbar-thumb {
    background: var(--color-sand);
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-taupe);
}

/* ============ TYPOGRAPHY ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-deep-charcoal);
    letter-spacing: -0.01em;
}
h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 600;
}
h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500;
}
h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
}
p {
    font-size: 1rem;
    color: #5c5650;
    line-height: 1.75;
}

/* ============ LINKS ============ */
a {
    color: var(--color-accent-deep);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-charcoal);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background-color: var(--color-deep-charcoal);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-secondary {
    background-color: transparent;
    color: var(--color-deep-charcoal);
    border: 1.5px solid var(--color-deep-charcoal);
}
.btn-secondary:hover {
    background-color: var(--color-deep-charcoal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--color-accent-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--color-sand);
    color: var(--color-charcoal);
}
.btn-outline:hover {
    border-color: var(--color-charcoal);
    background: var(--color-ivory);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}
.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    font-weight: 500;
}
.btn-whatsapp:hover {
    background-color: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.3);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 250, 247, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(180, 165, 150, 0.2);
    height: var(--header-height);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow var(--transition-smooth),
                background var(--transition-smooth);
}


.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(253, 250, 247, 0.97);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}
.header-logo img:hover {
    transform: scale(1.04);
}
.header-logo .logo-fallback {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-deep-charcoal);
    white-space: nowrap;
}
.header-logo .logo-fallback span {
    color: var(--color-accent-deep);
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
    background: var(--color-ivory);
    color: var(--color-deep-charcoal);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    color: var(--color-charcoal);
    font-size: 1.2rem;
}
.header-icon-btn:hover {
    background: var(--color-ivory);
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-accent-deep);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform var(--transition-fast);
}
.cart-badge.pulse {
    animation: badgePulse 0.4s ease;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-deep-charcoal);
    border-radius: 2px;
    transition: all var(--transition-fast);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-warm-white);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
}
body.banner-hidden .mobile-nav {
    top: var(--header-height);
}
.mobile-nav.open {
    transform: translateX(0);
    display: flex;
}
.mobile-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-charcoal);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.mobile-nav a:hover {
    background: var(--color-ivory);
}
.mobile-nav-divider {
    height: 1px;
    background: var(--color-soft-beige);
    margin: 8px 0;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ SECTION STYLES ============ */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1.1rem;
    color: #7a7268;
    max-width: 600px;
    margin: 0 auto;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-deep);
    margin-bottom: 12px;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #fdfaf7 0%, #f5f0eb 50%, #ede5db 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content .section-tag {
    margin-bottom: 16px;
}
.hero-content h1 {
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero-content p {
    font-size: 1.15rem;
    color: #6b6258;
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #e8dfd6 0%, #d4c8bb 30%, #c9b9a8 60%, #e0d5c5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.hero-image-wrapper:hover img {
    transform: scale(1.04);
}
.hero-image-placeholder {
    text-align: center;
    color: #9b8c7a;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    padding: 40px;
}
.hero-accent-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(196, 168, 130, 0.12);
    top: -40px;
    right: -40px;
    z-index: 0;
    pointer-events: none;
}

/* ============ CATEGORIES ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}
.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-soft-beige);
}
.category-card .cat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    transition: transform var(--transition-smooth);
}
.category-card:hover .cat-icon {
    transform: scale(1.15);
}
.category-card h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: var(--color-charcoal);
}
.category-card .cat-count {
    font-size: 0.8rem;
    color: #a0988e;
    margin-top: 4px;
}

/* ============ PRODUCT GRID ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.product-card-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--color-ivory);
}
.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.06);
}
.product-card-image .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c4b8a8;
    background: linear-gradient(135deg, #f5f0eb 0%, #e8dfd6 100%);
}
.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-accent-deep);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}
.product-card-badge.out-of-stock {
    background: #9b8c7a;
}
.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-card-body h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}
.product-card-body .product-material {
    font-size: 0.8rem;
    color: #9b8c7a;
    font-weight: 400;
}
.product-card-body .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
    margin-top: auto;
}
.product-card-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-card-actions .btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.8rem;
    padding: 10px 14px;
}

/* ============ SHOP TOOLBAR ============ */
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.shop-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.shop-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid var(--color-soft-beige);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--color-warm-white);
    transition: all var(--transition-fast);
    color: var(--color-charcoal);
}
.shop-search input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.1);
}
.shop-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b8a99a;
    pointer-events: none;
    font-size: 1rem;
}
.shop-sort select {
    padding: 12px 36px 12px 16px;
    border: 1.5px solid var(--color-soft-beige);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--color-warm-white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    color: var(--color-charcoal);
    transition: all var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23b8a99a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.shop-sort select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.1);
}
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-ivory);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.filter-chip:hover,
.filter-chip.active {
    background: var(--color-deep-charcoal);
    color: #fff;
    border-color: var(--color-deep-charcoal);
}
.filter-chip .chip-close {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ============ PRODUCT DETAIL MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 22, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: translateY(30px);
    transition: transform var(--transition-smooth);
}
.modal-overlay.open .modal {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    color: var(--color-charcoal);
}
.modal-close:hover {
    background: var(--color-ivory);
    transform: scale(1.05);
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.modal-gallery {
    position: relative;
    background: var(--color-ivory);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-gallery .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    cursor: zoom-in;
}
.modal-gallery .main-image.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}
.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
}
.modal-thumbnails button {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-xs);
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: all var(--transition-fast);
    background: #fff;
}
.modal-thumbnails button.active {
    border-color: var(--color-accent-deep);
}
.modal-thumbnails button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-thumbnails button .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #e8dfd6;
    color: #b8a99a;
}
.modal-info {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 80vh;
}
.modal-info .product-category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-deep);
}
.modal-info h2 {
    font-size: 1.6rem;
    margin: 0;
}
.modal-info .product-id {
    font-size: 0.8rem;
    color: #b8a99a;
}
.modal-info .product-price-lg {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-deep-charcoal);
}
.modal-info .product-desc {
    color: #5c5650;
    line-height: 1.7;
}
.modal-info .product-material-info {
    font-size: 0.9rem;
    color: #7a7268;
    padding: 10px 14px;
    background: var(--color-ivory);
    border-radius: var(--radius-sm);
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quantity-selector button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--color-sand);
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal);
}
.quantity-selector button:hover {
    background: var(--color-ivory);
    border-color: var(--color-charcoal);
}
.quantity-selector span {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* ============ CART SIDEBAR ============ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: #fff;
    z-index: 3000;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    transform: translateX(0);
}
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 22, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}
.cart-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-soft-beige);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: var(--color-warm-white);
    border-radius: var(--radius-md);
    align-items: center;
}
.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-ivory);
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-image .img-placeholder-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #c4b8a8;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-info h4 {
    font-size: 0.9rem;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-info .cart-item-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-deep-charcoal);
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-item-actions button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-sand);
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal);
}
.cart-item-actions button:hover {
    background: var(--color-ivory);
}
.cart-item-actions .btn-remove {
    color: #c0392b;
    border-color: #e8c8c4;
    font-size: 0.7rem;
}
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #b8a99a;
}
.cart-empty .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--color-soft-beige);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
}
.cart-footer .btn {
    width: 100%;
}

/* ============ CHECKOUT SECTION ============ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.checkout-form {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.checkout-form h3 {
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-charcoal);
}
.form-group label .required {
    color: #c0392b;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-soft-beige);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background: var(--color-warm-white);
    color: var(--color-charcoal);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.1);
}
.form-group textarea {
    min-height: 80px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.checkout-summary {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
body.banner-hidden .checkout-summary {
    top: calc(var(--header-height) + 20px);
}
.checkout-summary h3 {
    margin-bottom: 20px;
}
.checkout-summary-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-soft-beige);
    align-items: center;
}
.checkout-summary-item img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    background: var(--color-ivory);
}
.checkout-summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--color-deep-charcoal);
    display: flex;
    justify-content: space-between;
}
.shipping-note {
    background: #fef9f3;
    border-left: 3px solid var(--color-accent);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #6b5e4e;
    margin-top: 16px;
    line-height: 1.6;
}

/* ============ HOW TO ORDER ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-smooth);
    counter-increment: step;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.step-card .step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-deep-charcoal);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}
.step-card p {
    font-size: 0.85rem;
    color: #7a7268;
}

/* ============ SOCIAL REWARDS ============ */
.rewards-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 720px;
    margin: 0 auto;
}
.rewards-card .reward-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
}
.rewards-card h3 {
    margin-bottom: 12px;
}
.rewards-card .reward-highlight {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent-deep);
    margin: 16px 0;
    font-family: var(--font-heading);
}
.reward-rules {
    text-align: left;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #7a7268;
    line-height: 1.8;
    padding: 20px;
    background: var(--color-warm-white);
    border-radius: var(--radius-md);
}
.reward-rules li {
    margin-bottom: 6px;
}

/* ============ TRUST SECTION ============ */
.trust-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.trust-card .trust-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}
.trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}
.trust-point {
    padding: 14px;
    background: var(--color-warm-white);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ ABOUT ============ */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.9;
}
.about-content p {
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.about-content .about-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--color-accent-deep);
    margin: 24px 0;
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: var(--color-charcoal);
    display: block;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--color-charcoal);
}
.contact-card .contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}
.contact-card h4 {
    margin-bottom: 4px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--color-deep-charcoal);
    color: #c4b8a8;
    padding: 48px 24px 32px;
    margin-top: 80px;
    background-color: transparent;  /* solid color hatao agar image use kar rahe ho */
    background-image: url('images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;         /* important for pseudo-element */
    isolation: isolate;         /* stacking context banaye */
    color: #000 !important;
    background-image: url('images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.20);   /* opacity adjust karo: 0 = transparent, 1 = solid white */
    backdrop-filter: blur(4px);               /* blur adjust karo: jitna bada number utna blur */
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
    pointer-events: none;                     /* clicks pass through */
}

/* Footer ke content ko glass layer ke upar lao */
.footer-inner,
.footer-bottom {
    position: relative;
    z-index: 1;
}

/* Footer links, headings ka color black rakho */
.footer h4,
.footer a,
.footer p,
.footer-bottom {
    color: #000 !important;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.footer h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer a {
    color: #c4b8a8;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
    transition: color var(--transition-fast);
}
.footer a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #8a7e72;
}

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--color-deep-charcoal);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease, toastOut 0.3s ease 2.5s forwards;
    max-width: 400px;
}
.toast.success {
    border-left: 3px solid #5d8a68;
}
.toast.error {
    border-left: 3px solid #c0392b;
}
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(10px); }
}

/* ============ LOADING & STATES ============ */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 12px;
    color: #b8a99a;
    font-size: 1rem;
}
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-soft-beige);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.error-state {
    text-align: center;
    padding: 60px;
    color: #c0392b;
}
.empty-state {
    text-align: center;
    padding: 60px;
    color: #b8a99a;
}
.empty-state .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: none; }
    .mobile-nav.open { display: flex; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content p {
        max-width: 100%;
        margin: 0 auto 32px;
    }
    .hero-buttons { justify-content: center; }
    .hero-visual { min-height: 300px; }
    .hero-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }
    .modal-body { grid-template-columns: 1fr; }
    .modal-gallery {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        min-height: 350px;
    }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}
@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .hero { padding: 32px 0 48px; min-height: auto; }
    .hero-content h1 { font-size: 2rem; }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .category-card { padding: 18px 12px; }
    .category-card .cat-icon { font-size: 1.8rem; }
    .category-card h4 { font-size: 0.8rem; }
    .shop-toolbar { flex-direction: column; gap: 10px; }
    .shop-search { width: 100%; }
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .step-card { padding: 18px 12px; }
    .step-card .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .cart-sidebar { width: 100vw; }
    .rewards-card { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-card-body { padding: 12px; }
    .product-card-body h3 { font-size: 0.85rem; }
    .product-card-actions {
        padding: 0 12px 12px;
        flex-direction: column;
    }
    .product-card-actions .btn {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; align-items: center; }
    .modal-info { padding: 20px 16px; }
    .modal-info h2 { font-size: 1.2rem; }
}

/* ============ MID-BANNER (Between Featured & Shop) ============ */
.mid-banner {
    max-width: var(--max-width);
    margin: 0 auto 60px;          /* top 0, auto left/right, bottom 60px */
    padding: 0 24px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.mid-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.mid-banner img:hover {
    transform: scale(1.01);
}

/* Responsive: reduce bottom margin on smaller screens */
@media (max-width: 768px) {
    .mid-banner {
        margin-bottom: 40px;
    }
}