/* --- CSS Variables & Resets --- */
:root {
    --primary-color: #5C3D46;
    /* Dark Mauve/Aubergine */
    --primary-light: #8A6B76;
    --accent-color: #D4A3A5;
    /* Dusty Rose */
    --accent-hover: #C28B8D;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.display-none {
    display: none !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

/* --- Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.nav-contact i {
    color: #25D366;
    font-size: 1.2rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 99999;
    position: relative;
    padding: 5px;
}

/* --- Slider Section --- */
.slider {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(92, 61, 70, 0.8) 0%, rgba(92, 61, 70, 0.2) 100%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    max-width: 700px;
}

.slide-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slide-subtitle-color, var(--accent-color));
    display: block;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 32px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.slide .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.slide.active .slide-subtitle,
.slide.active .slide-title,
.slide.active .btn {
    transform: translateY(0);
    opacity: 1;
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--bg-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.slider-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent-color);
    width: 40px;
}

/* --- Features Section --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.feature-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 163, 165, 0.15);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Catalog Section --- */
.catalog {
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Filters */
.filter-controls {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.categories-tab,
.subcategories-tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.subcategories-tab .filter-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    background-color: transparent;
    border-color: transparent;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.subcategories-tab .filter-btn:hover {
    color: var(--accent-color);
}

.subcategories-tab .filter-btn.active {
    background-color: transparent;
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    min-height: 400px;
}

.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    gap: 10px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-info-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-img-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect ratio */
    overflow: hidden;
}

.product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.mini-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.mini-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .mini-slider-btn {
    opacity: 1;
}

.mini-slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.mini-slider-btn.prev {
    left: 10px;
}

.mini-slider-btn.next {
    right: 10px;
}

.mini-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.mini-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mini-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.product-img-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect ratio */
    overflow: hidden;
}

.product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.product-card:hover .product-action {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* --- Product Detail Page Specifics --- */
.product-detail-section {
    padding: 80px 24px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.pd-image-col {
    position: relative;
    width: 100%;
}

.product-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
}

.product-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.product-slider-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.pd-slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.pd-slider-btn.prev {
    left: 10px;
}

.pd-slider-btn.next {
    right: 10px;
}

.pd-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.pd-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pd-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.pd-info-col h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #E8F5E9;
    color: #2E7D32;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pd-stock.out-of-stock {
    background-color: #ffebee;
    color: #c62828;
}

.pd-price-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pd-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.pd-old-price {
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.pd-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.whatsapp-box {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.whatsapp-box p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Map Section --- */
.map-section {
    position: relative;
    border-top: 4px solid var(--accent-color);
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    filter: grayscale(40%) sepia(30%) hue-rotate(-30deg) contrast(1.1) opacity(0.85);
    transition: var(--transition);
}

.map-section iframe:hover {
    filter: grayscale(0%) sepia(0%) hue-rotate(0deg) contrast(1) opacity(1);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--footer-bg, var(--primary-color));
    color: var(--footer-text, var(--bg-white));
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--footer-text, var(--bg-white));
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text, var(--bg-white));
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--footer-text, var(--bg-white));
    opacity: 1;
    padding-left: 5px;
}

.footer-col p {
    color: var(--footer-text, var(--bg-white));
    opacity: 0.85;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    padding: 24px 0;
    text-align: center;
    color: var(--footer-text, var(--bg-white));
    opacity: 0.6;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: -30px;
        padding: 0 24px;
    }

    .slide-title {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .main-nav,
    .nav-contact {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .slider {
        height: 60vh;
        min-height: 500px;
    }

    .slider-nav {
        display: none;
    }

    #pdBreadcrumb {
        display: none !important;
    }
}

/* --- Mobile Menu Overlay --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: none;
    /* Hide on desktop by default */
    flex-direction: column;
}

@media (max-width: 768px) {
    .mobile-nav-overlay {
        display: flex;
        /* Only allow flex display on mobile widths */
    }
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.mobile-nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-content a {
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-content a:hover {
    color: var(--accent-color);
}

.mobile-nav-cat-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}