/* CSS Variables */
:root {
    --primary: #8E7051;
    --primary-hover: #755B41;
    --secondary: #2C2C2C;
    --text-dark: #1F1F1F;
    --text-light: #666666;
    --bg-main: #F9F8F6;
    --bg-light: #FFFFFF;
    --border: #E5E5E5;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Remove the blue tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Highlights */
span {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

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

.btn-primary span,
.btn-primary:hover span {
    color: #fff;
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--text-dark);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    color: var(--text-dark);
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Hide the lucide icon — we use custom bars */
}

/* Hide the injected lucide icon inside the button */
.mobile-menu-btn i,
.mobile-menu-btn svg {
    display: none;
}

/* 3-bar hamburger built purely in CSS */
.mobile-menu-btn::before,
.mobile-menu-btn::after,
.mobile-menu-btn .bar-mid {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.25s ease,
        top 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu-btn::before {
    top: 9px;
}

.mobile-menu-btn .bar-mid {
    top: 17px;
}

.mobile-menu-btn::after {
    top: 25px;
}

/* When the menu is open — morph to X */
.mobile-menu-btn.open::before {
    top: 17px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn.open .bar-mid {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.mobile-menu-btn.open::after {
    top: 17px;
    transform: translateX(-50%) rotate(-45deg);
}

.link-arrow i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(249, 248, 246, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

#header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

#header.scrolled .header-container {
    height: 60px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
}

.hero-content {
    color: #fff;
    max-width: 600px;
    padding-top: 80px;
    /* Offset for header */
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.3s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    transition: var(--transition);
}

.category-card img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition);
}

.category-card:hover .category-info {
    transform: translateY(0);
}

.category-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-info .link-arrow {
    opacity: 0;
    color: #fff;
}

.category-card:hover .link-arrow {
    opacity: 1;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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


.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 8px;
    z-index: -1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: #fff;
    padding-top: 5rem;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Floating WA */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: var(--transition);
}

.floating-wa i {
    width: 30px;
    height: 30px;
}

.floating-wa:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #1ebe5d;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: 400px;
    height: 100dvh;
    background: var(--bg-main);
    z-index: 3000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-active .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-active .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 {
    font-size: 1.25rem;
}

.close-cart {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
    display: none;
}

.empty-cart-msg.active {
    display: block;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-main);
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--border);
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #e53e3e;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.remove-btn:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-main);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

.toast.show {
    bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .about-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 110%;
        left: 5%;
        width: 90%;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transform-origin: top;
    }

    .nav-links.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
        border-bottom: none;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: block;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background-color: rgba(142, 112, 81, 0.08);
        color: var(--primary);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
    }

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

    .stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* 2-column product grid on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-info {
        padding: 0.85rem;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 0.95rem;
    }
}

/* Page Header */
.page-header {
    padding: 10rem 0 6rem;
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #fff;
    border-bottom: none;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Catalog Controls (Search & Filters) */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 112, 81, 0.1);
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.pt-0 {
    padding-top: 3rem;
}

.active-link {
    color: var(--primary);
}

.active-link::after {
    width: 100% !important;
}

/* --- PRODUCT MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: #e0e0e0;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-gallery {
    padding: 20px;
    background: linear-gradient(145deg, #f7f5f2 0%, #f0ede8 100%);
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-main-img-wrapper {
    width: 100%;
    aspect-ratio: 3/3;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.modal-main-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
    padding: 15px;
    transition: opacity 0.25s ease, transform 0.35s ease;
    transform: scale(1);
}

.modal-main-img-wrapper img.switching {
    opacity: 0;
    transform: scale(0.97);
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
}

.modal-tap-hint {
    font-size: 0.7rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    margin: -15px 0 0;
    opacity: 0.65;
    letter-spacing: 0.02em;
}

.modal-info {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.modal-category {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.modal-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.modal-add-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- CONTACT PAGE STYLES --- */
.contact-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #fff;
    padding: 120px 5% 80px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info-card {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: var(--bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-text p,
.contact-text a {
    color: var(--text-light);
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.5;
}

.contact-text a:hover {
    color: var(--primary);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    transition: var(--transition);
}

.btn-instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.contact-map-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.contact-map-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.map-container {
    flex-grow: 1;
    background: #eee;
    min-height: 250px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.instagram-section {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

.instagram-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.instagram-section>p {
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.instagram-content {
    text-align: left;
}

.instagram-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.instagram-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.instagram-image {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.instagram-image .single-ig {
    aspect-ratio: 20/8;
}

.single-ig {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.single-ig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ig-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow);
    display: block;
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ig-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.ig-post-overlay i {
    color: #fff;
    width: 32px;
    height: 32px;
}

.ig-post:hover img {
    transform: scale(1.05);
}

.ig-post:hover .ig-post-overlay {
    opacity: 1;
}

/* --- RESPONSIVE MODAL & CONTACT --- */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-gallery {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 14px 14px 8px;
    }

    .modal-info {
        padding: 10px 14px 16px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .contact-hero {
        padding: 100px 5% 50px;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 8rem 0 4rem;
    }

    .instagram-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .instagram-content {
        text-align: center;
    }

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

/* ================================================
   LIGHTBOX - Fullscreen Image Viewer
   ================================================ */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Back button */
#lbClose {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: none;
    color: #1a1a1a;
    padding: 12px 22px 12px 14px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.01em;
}

#lbClose:hover {
    background: #f0f0f0;
    transform: translateX(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

#lbClose:active {
    transform: scale(0.96);
}

#lbClose svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: #1a1a1a;
}

/* Image wrapper — fills the viewport */
#lbImgWrap {
    width: 100vw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
    position: relative;
}

/* The actual image */
#lbImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transform: translate(0, 0) scale(1);
    transition: transform 0.08s linear;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    /* let the wrapper handle events */
    border-radius: 4px;
}

/* Hint toast at bottom */
#lbHint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
}

#lbHint.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modal image — show pointer/zoom-in cursor */
.modal-main-img-wrapper img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.modal-main-img-wrapper img:hover {
    opacity: 0.92;
}

@media (max-width: 768px) {
    #lbClose {
        top: 16px;
        left: 16px;
        padding: 13px 22px 13px 14px;
        font-size: 1rem;
        font-weight: 700;
    }

    #lbClose svg {
        width: 24px;
        height: 24px;
    }
}