/* ============================================
   BELE PARFUM - Custom Styles
   Perfumes Árabes Exclusivos
   ============================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #3d161f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4a574, #c08c5a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e8cba6, #d4a574);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(212, 165, 116, 0.3);
    color: #fff;
}

/* ============================================
   Hero Background
   ============================================ */
.hero-bg {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(163, 68, 89, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(109, 42, 58, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #3d161f 0%, #5a2532 50%, #3d161f 100%);
    background-size: 100% 100%;
}

/* Arabic Pattern */
.arabic-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='%23d4a574' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%23d4a574' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* ============================================
   Animations
   ============================================ */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Floating Particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-25px) translateX(15px);
        opacity: 0.7;
    }
}

.floating-particle {
    animation: float 6s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(212, 165, 116, 0) 0%,
        rgba(212, 165, 116, 0.2) 50%,
        rgba(212, 165, 116, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 165, 116, 0.4);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    position: relative;
    background: linear-gradient(180deg, rgba(90, 37, 50, 0.6) 0%, rgba(61, 22, 31, 0.8) 100%);
    border: 1px solid rgba(109, 42, 58, 0.5);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    border-color: rgba(212, 165, 116, 0.4);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(212, 165, 116, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(90, 37, 50, 0.8) 0%, rgba(61, 22, 31, 1) 100%);
}

.product-card .product-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card .product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(61, 22, 31, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* ============================================
   Category Cards
   ============================================ */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(61, 22, 31, 0.95) 100%);
    z-index: 1;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 1.5rem;
    transition: border-color 0.3s;
    z-index: 2;
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.category-card:hover::after {
    border-color: rgba(212, 165, 116, 0.5);
}

.category-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-card .category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 3;
}

/* ============================================
   Filter Buttons
   ============================================ */
.filter-btn {
    background: rgba(90, 37, 50, 0.6);
    border: 1px solid rgba(109, 42, 58, 0.5);
    color: rgba(255, 255, 255, 0.6);
}

.filter-btn:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: rgba(212, 165, 116, 0.3);
    color: #d4a574;
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4a574 0%, #c08c5a 100%);
    border-color: #d4a574;
    color: #3d161f;
    font-weight: 600;
}

/* ============================================
   Cart Item
   ============================================ */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(90, 37, 50, 0.4);
    border: 1px solid rgba(109, 42, 58, 0.3);
    border-radius: 1rem;
    transition: all 0.3s;
}

.cart-item:hover {
    border-color: rgba(212, 165, 116, 0.2);
}

.cart-item .quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(61, 22, 31, 0.5);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.cart-item .quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(109, 42, 58, 0.5);
    border-radius: 0.375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.cart-item .quantity-btn:hover {
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
}

/* ============================================
   Empty Cart State
   ============================================ */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.empty-cart svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ============================================
   Search Results
   ============================================ */
.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(90, 37, 50, 0.4);
    border: 1px solid rgba(109, 42, 58, 0.3);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-result-item:hover {
    border-color: rgba(212, 165, 116, 0.3);
    background: rgba(90, 37, 50, 0.6);
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-new {
    background: linear-gradient(135deg, #d4a574 0%, #c08c5a 100%);
    color: #3d161f;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-bestseller {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.badge-exclusive {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

/* ============================================
   Price Styles
   ============================================ */
.price-current {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4a574;
}

.price-original {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-product-image {
    position: relative;
    background: linear-gradient(180deg, rgba(90, 37, 50, 0.8) 0%, rgba(61, 22, 31, 1) 100%);
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
}

.modal-product-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 2rem;
}

.modal-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-note {
    padding: 0.5rem 1rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #d4a574;
}

/* ============================================
   Toast Animation
   ============================================ */
.toast-show {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
}

/* ============================================
   Loading States
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(109, 42, 58, 0.3) 0%,
        rgba(109, 42, 58, 0.5) 50%,
        rgba(109, 42, 58, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* ============================================
   Decorative Elements
   ============================================ */
.ornament {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
}

.moon-icon {
    color: #d4a574;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .product-card {
        border-radius: 1rem;
    }
    
    .category-card {
        border-radius: 1rem;
    }
    
    .price-current {
        font-size: 1.25rem;
    }
    
    .modal-product-image img {
        height: 200px;
        padding: 1rem;
    }
}

/* ============================================
   Hover States for Touch Devices
   ============================================ */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .category-card:hover {
        transform: none;
    }
    
    .category-card:active {
        transform: scale(0.98);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .fixed,
    #floatingWhatsapp,
    #cartSidebar,
    #cartOverlay,
    #productModal,
    #toast {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .product-card {
        page-break-inside: avoid;
    }
}
