* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #8b7355;
    --cream: #f5f1ea;
    --beige: #e8e0d1;
    --text: #2c2c2c;
    --muted: #6b6b6b;
    --light: #fafafa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: 1.5rem; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

em { font-style: italic; color: var(--secondary); }

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(245, 236, 220, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.22);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1.2rem 0;
    padding-top: max(1.2rem, env(safe-area-inset-top));
}

body.nav-open {
    overflow: hidden;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.logo span {
    font-style: italic;
    color: var(--secondary);
    margin-left: 4px;
}

.logo img {
    display: block;
    height: 64px;
    width: auto;
    object-fit: contain;
    transform: none;
    transform-origin: left center;
}

.navbar .logo img {
    height: 96px;
    transform: scale(1.5);
}

.footer .logo img {
    height: 192px;
    transform: none;
    transform-origin: left center;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--secondary);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.cart-count {
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 4px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
}

.menu-toggle.active {
    color: var(--secondary);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream), var(--beige));
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/images/Hero_bg.png");
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero .hero-text,
.hero .hero-subtitle,
.hero h1 {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 3px rgba(0, 0, 0, 0.16);
}

.hero h1 {
    color: #0d0d0d;
    font-weight: 700;
}

.hero-subtitle {
    color: #3d3024;
    font-weight: 600;
    letter-spacing: 2.2px;
    font-size: 1.05rem;
}

.hero::before,
.hero::after {
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(139,115,85,0.2);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    transition: transform 0.2s ease-out;
}

.hero-text {
    font-size: 1.3rem;
    color: #1f1f1f;
    font-weight: 600;
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn-primary {
    font-weight: 600;
    letter-spacing: 2.2px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 1rem;
    font-family: inherit;
}

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

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.product-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.product-image {
    aspect-ratio: 3/4;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease;
    background: #efe9df;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.main-image img,
.thumb img,
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.02);
    filter: saturate(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    color: var(--primary);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.product-price {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* About */
.about-preview {
    padding: 6rem 2rem;
    background: var(--cream);
}

.about-preview.alt {
    background: var(--light);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.image-placeholder {
    aspect-ratio: 4/5;
    width: 100%;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

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

/* Features */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    text-align: center;
    background: transparent;
    border-radius: 0;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    background: var(--secondary);
    margin: 0 auto 0.9rem;
    box-shadow: 0 6px 16px rgba(139, 115, 85, 0.3);
}

.feature-item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(139, 115, 85, 0.15);
    border-radius: 8px;
    padding: 1.2rem 1.1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-item h3 {
    margin-bottom: 0.45rem;
    font-size: 1.25rem;
}

.feature-item p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.feature-item,
.value-card,
.contact-form,
.product-info,
.about-text,
.about-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover,
.value-card:hover,
.contact-form:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 115, 85, 0.35);
}

/* Newsletter */
.newsletter {
    background: var(--primary);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

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

.newsletter p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary);
}

.newsletter-form .btn-primary:hover {
    background: var(--secondary);
    color: white;
}

/* Footer */
.footer {
    background: #0f0f0f;
    color: rgba(255,255,255,0.7);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer .logo {
    color: white;
    margin-bottom: 2.2rem;
    display: block;
    line-height: 0;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer ul li {
    margin-bottom: 0.7rem;
}

.footer a {
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Page Header */
.page-header {
    padding: 5rem 2rem 3rem;
    text-align: center;
    background: var(--cream);
}

.page-header p:last-child {
    color: var(--muted);
    margin-top: 1rem;
}

/* Filter Bar */
.filter-bar {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.shop-grid .product-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.shop-grid .product-image {
    aspect-ratio: 3 / 4;
    background: #efe9df;
}

.shop-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.shop-grid .product-card.is-hiding {
    opacity: 0;
    transform: translateY(10px);
}

/* Values */
.values {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.value-card {
    padding: 2.5rem 2rem;
    background: var(--cream);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--muted);
}

/* Contact */
.contact-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info > p {
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
}

.contact-item p {
    font-size: 1rem;
}

.contact-item .social-links {
    flex-direction: row;
    gap: 1.5rem;
}

.contact-form {
    background: var(--cream);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group textarea {
    resize: vertical;
}

/* Product Detail */
.product-detail {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.main-image {
    aspect-ratio: 3/4;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.main-image.magnify-target {
    cursor: zoom-in;
    position: relative;
    overflow: visible;
}

.magnify-lens {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    display: none;
    z-index: 5;
    background-repeat: no-repeat;
}

.thumbnails {
    display: flex;
    gap: 1rem;
}

.thumb {
    width: 80px;
    height: 100px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 1px solid transparent;
    overflow: hidden;
}

.thumb.active, .thumb:hover {
    opacity: 1;
}

.thumb.active {
    border-color: rgba(0, 0, 0, 0.15);
}

.product-info h1 {
    margin: 1rem 0;
    font-size: 2.5rem;
}

.price-large {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.product-desc {
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.option-group {
    margin-bottom: 2rem;
}

.option-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.size-options {
    display: flex;
    gap: 0.8rem;
}

.size-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.size-btn.active, .size-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #ddd;
    width: fit-content;
    padding: 0.3rem;
}

.qty-btn {
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

#qtyValue {
    min-width: 30px;
    text-align: center;
}

.add-to-cart {
    width: 100%;
    margin-bottom: 2rem;
}

.product-details {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.product-details h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.product-details ul li {
    padding: 0.5rem 0;
    color: var(--muted);
    border-bottom: 1px solid #f5f5f5;
}

.toast {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 2000;
    background: #111;
    color: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 3000;
    background: linear-gradient(90deg, #8b7355, #1a1a1a);
}

.scroll-shift {
    --shift-y: 0px;
    --shift-scale: 1;
    --shift-opacity: 1;
    transform: translate3d(0, var(--shift-y), 0) scale(var(--shift-scale));
    opacity: var(--shift-opacity);
    will-change: transform, opacity;
    transition: transform 0.15s linear, opacity 0.15s linear;
}

.scroll-shift.in-focus {
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.08);
}

.hero.scroll-shift {
    transform: translate3d(0, calc(var(--shift-y) * 0.4), 0) scale(var(--shift-scale));
}

/* Keep features section visually stable (no scroll-shift edge artifacts) */
.features.scroll-shift,
.features.scroll-shift.in-focus {
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid #eee;
        transform: translateY(-150%);
        transition: transform 0.3s;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-grid, .contact-grid, .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-grid.reverse {
        direction: ltr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .section, .about-preview, .features, .values {
        padding: 4rem 1.5rem;
    }

    .scroll-shift {
        --shift-scale: 1 !important;
        --shift-opacity: 1 !important;
    }
}

@media (max-width: 500px) {
    h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
    h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }

    .btn-primary, .btn-secondary, .filter-btn, .size-btn {
        min-height: 44px;
    }

    .logo img {
        height: 56px;
    }

    .navbar .logo img {
        height: 80px;
        transform: scale(1.35);
    }

    .hero-text {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .scroll-shift {
        transform: none !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }
}
