/* ============================================
   RESET & BASE
============================================ */
:root {
    --color-primary: #6B2D8B;
    --color-primary-dark: #4A1D6B;
    --color-rose: #E91E63;
    --color-rose-light: #F48FB1;
    --color-cream: #FDF8F5;
    --color-charcoal: #1A1A2E;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }

/* ============================================
   FLOATING MOBILE MENU BUTTON
============================================ */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(107, 45, 139, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

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

@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   LOGO STYLING
============================================ */
.header-logo {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1023px) {
    .header-logo {
        height: 55px;
        max-width: 240px;
    }
}

@media (max-width: 767px) {
    .header-logo {
        height: 50px;
        max-width: 200px;
    }
}

.footer-logo {
    height: 55px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
    .footer-logo {
        height: 45px;
        max-width: 200px;
    }
}

.logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
}

.logo-fallback[style*="display: flex"] {
    display: flex !important;
}

a:hover .header-logo {
    transform: scale(1.03);
}

/* ============================================
   TOP BAR
============================================ */
.top-bar {
    background: #fff;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    z-index: 49;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 250px;
    overflow: visible;
    position: relative;
}

.top-bar.hidden-on-scroll {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    border: none;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26, 26, 46, 0.15);
    border-radius: 6px;
    color: var(--color-charcoal);
    font-size: 13px;
    transition: all 0.3s ease;
    background: #fff;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 45, 139, 0.25);
}

@media (max-width: 1023px) {
    .top-bar .container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 60px;
    }
    
    .top-bar .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* ============================================
   SEARCH BAR
============================================ */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    border: 1px solid rgba(26, 26, 46, 0.15);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-charcoal);
    background: #fff;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: rgba(26, 26, 46, 0.4);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 45, 139, 0.1);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(26, 26, 46, 0.5);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--color-primary);
    background: rgba(107, 45, 139, 0.06);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.15);
    border: 1px solid rgba(107, 45, 139, 0.1);
    max-height: 420px;
    overflow: hidden;
    z-index: 100;
    animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-results.hidden {
    display: none;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(26, 26, 46, 0.5);
    background: #FAFAFA;
}

.search-results-list {
    max-height: 360px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(26, 26, 46, 0.04);
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(107, 45, 139, 0.04);
}

.search-result-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-charcoal);
    margin-bottom: 2px;
    font-family: 'Playfair Display', serif;
}

.search-result-meta {
    font-size: 11px;
    color: rgba(26, 26, 46, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-highlight {
    background: rgba(233, 30, 99, 0.15);
    color: var(--color-rose);
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: rgba(26, 26, 46, 0.4);
    font-size: 13px;
}

.search-no-results i {
    font-size: 28px;
    color: rgba(107, 45, 139, 0.15);
    display: block;
    margin-bottom: 10px;
}

/* ============================================
   MAIN NAV BAR (Desktop Only)
============================================ */
.main-nav {
    background: #fff;
    z-index: 48;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}

.main-nav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1023px) {
    .main-nav {
        display: none;
    }
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    color: var(--color-charcoal);
    text-decoration: none;
    padding: 4px 0;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* ============================================
   MOBILE MENU
============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-primary-dark);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu .search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mobile-menu .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-menu .search-btn {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-menu a.mobile-nav-link {
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    text-decoration: none;
}

.mobile-menu a.mobile-nav-link:hover {
    color: var(--color-rose-light);
    transform: translateX(10px);
}

/* ============================================
   HERO SLIDER
============================================ */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 45, 139, 0.75) 0%, rgba(26, 26, 46, 0.6) 100%);
}

/* ============================================
   PRODUCT CARDS
============================================ */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 26, 46, 0.12);
}

.product-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

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

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.85) 0%, transparent 50%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover .product-card-overlay {
    opacity: 0.95;
}

.product-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.product-card:hover .product-card-content {
    transform: translateY(0);
}

/* ============================================
   STATS COUNTER
============================================ */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    line-height: 1;
}

@media (max-width: 767px) {
    .stat-number {
        font-size: 2.25rem;
    }
}

/* ============================================
   FILTER BUTTONS
============================================ */
.filter-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: var(--color-charcoal);
    border: 1px solid rgba(107, 45, 139, 0.3);
    font-family: 'Inter', sans-serif;
}

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

.filter-btn:not(.active):hover {
    background: rgba(107, 45, 139, 0.1);
    border-color: var(--color-primary);
}

.filter-btn-purple {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Inter', sans-serif;
}

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

.filter-btn-purple:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 45, 139, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ============================================
   SECTION DIVIDER
============================================ */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-rose), var(--color-primary));
    border-radius: 2px;
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(107, 45, 139, 0.4);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-4px);
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   FORM
============================================ */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(107, 45, 139, 0.2);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 45, 139, 0.1);
}

/* ============================================
   LIGHTBOX
============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ============================================
   GALLERY
============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}