/* =========================================
   BASE STYLES & RESET
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-color: #fffaf0; /* Floral White base */
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fffaf0; }
::-webkit-scrollbar-thumb { background: #d6c0b3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bf9b8a; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
.serif-font { font-family: 'Playfair Display', serif; }

/* =========================================
   NAVIGATION
   ========================================= */
/* Фиксираме навигацията да е винаги отгоре */
#navbar {
    background-color: rgba(255, 250, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #efeae0;
    transition: all 0.3s ease;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fffbf7;
    border: 1px solid #ebd5d5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   VELVET EFFECT (РЕАЛИСТИЧНО КАДИФЕ)
   ========================================= */
.bg-velvet {
    /* Дълбока, тъмна основа */
    background-color: #38040e; 
    /* Игра на светлината върху плата */
    background-image: 
        radial-gradient(circle at 50% 0%, #630e20 0%, #38040e 60%, #1f0205 100%);
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5); /* Вътрешна сянка за дълбочина */
}

/* Текстура на плата (Noise) */
.bg-velvet::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* =========================================
   SECTION BACKGROUNDS
   ========================================= */
.bg-section-swarovski {
    background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
}

.bg-section-gold {
    background: linear-gradient(180deg, #fffdf5 0%, #fff0e0 100%);
}

.bg-section-silver {
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

.bg-section-occasions {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    color: white;
}

.bg-section-pearls {
    background: linear-gradient(135deg, #fff 0%, #fdfcf8 100%);
}

/* =========================================
   PRODUCT CARDS (1:1 SQUARE)
   ========================================= */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(94, 58, 64, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(94, 58, 64, 0.12);
}

.aspect-square-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(50, 20, 30, 0.85) 0%, rgba(50, 20, 30, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

/* =========================================
   CART & MISC
   ========================================= */
.floating-cart-btn {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 50; /* Намали го на 50 */
    display: flex; 
    align-items: center; 
    gap: 12px;
    background: #fffcf5; 
    padding: 8px 16px 8px 8px; 
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(100, 50, 50, 0.15); 
    cursor: pointer; 
    border: 1px solid #ebd5d5;
    transition: transform 0.3s ease;
}
.floating-cart-btn:hover { transform: translateY(-2px); }

.cart-icon-circle {
    background: #883446; color: white; width: 45px; height: 45px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative;
}
.cart-count {
    position: absolute; top: -2px; right: -2px; background: #d4af37; color: white;
    font-size: 11px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: 2px solid white;
}

#cart-modal { 
    z-index: 9999 !important; /* Сложи 9999 */
    background-color: rgba(0, 0, 0, 0.7); /* Малко по-тъмен фон за по-добър фокус */
    backdrop-filter: blur(5px); 
}

.badge-promo {
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.5); color: white;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 99px; letter-spacing: 0.05em;
}
.badge-coming-soon {
    background: #883446; color: white;
    padding: 6px 12px; font-size: 0.75rem; letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Animations */
@keyframes zoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.animate-slow-zoom { animation: zoom 20s infinite alternate; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
/* =========================================
   NESTED DROPDOWNS (Вложени менюта)
   ========================================= */
/* Контейнер на елемент, който има подменю */
.dropdown-item {
    position: relative;
}

/* Самото вложено меню */
.submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px); /* Идва леко отляво */
    transition: all 0.3s ease;
    position: absolute;
    left: 100%; /* Застава плътно до родителя */
    top: -1px;  /* Подравняване по горния ръб */
    width: 200px;
    background-color: #fffbf7; /* Същия топъл цвят */
    border: 1px solid #ebd5d5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Показване при ховър върху родителя */
.dropdown-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}