/* ============================================
   Kamalia Khaddar — Soft Luxury Light & Gold Theme
   ============================================ */

/* === CSS Custom Properties === */
:root {
    --gold-light: #ffd700;
    --gold: #ffb700;
    --gold-dark: #e6a200;
    --gold-deeper: #b37f00;
    --gold-shadow: #805c00;
    /* Light theme surfaces */
    --dark-base: #F8F9FA;
    --dark-card: #FFFFFF;
    --dark-surface: #F1F3F5;
    --dark-border: #E2E8F0;
    --dark-hover: #F8F9FA;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 183, 0, 0.2);
    --gold-glow: 0 0 20px rgba(255, 183, 0, 0.3);
    --gold-glow-strong: 0 0 30px rgba(255, 183, 0, 0.5), 0 0 60px rgba(255, 183, 0, 0.2);
}

/* === Global === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--dark-base) !important;
    color: var(--text-primary) !important;
}

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

::-webkit-scrollbar-track {
    background: #F1F3F5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--gold-deeper));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* === Selection === */
::selection {
    background: rgba(255, 183, 0, 0.3);
    color: #1E293B;
}

/* === Gold Gradient Text === */
.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deeper), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Glass Card Effect === */
.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
}

/* === Gold Border === */
.gold-border {
    border: 1px solid rgba(255, 183, 0, 0.2);
}

.gold-border:hover {
    border-color: rgba(255, 183, 0, 0.5);
}

/* === Animated Shimmer Border === */
@keyframes borderShimmer {
    0% {
        border-color: rgba(255, 183, 0, 0.15);
        box-shadow: 0 0 5px rgba(255, 183, 0, 0);
    }

    50% {
        border-color: rgba(255, 183, 0, 0.5);
        box-shadow: 0 0 20px rgba(255, 183, 0, 0.15);
    }

    100% {
        border-color: rgba(255, 183, 0, 0.15);
        box-shadow: 0 0 5px rgba(255, 183, 0, 0);
    }
}

.shimmer-border {
    border: 1px solid rgba(255, 183, 0, 0.2);
    animation: borderShimmer 3s ease-in-out infinite;
}

/* === Rotating Gradient Border (Premium) === */
@keyframes rotateBorder {
    0% {
        --angle: 0deg;
    }

    100% {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.animated-border {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), transparent 40%, var(--gold-light), var(--gold), var(--gold-deeper), transparent 60%);
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

.animated-border::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--dark-card);
    z-index: -1;
}

/* === Glowing Buttons === */
@keyframes buttonGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 183, 0, 0.35),
            0 0 10px rgba(255, 183, 0, 0.15);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 183, 0, 0.6),
            0 0 30px rgba(255, 183, 0, 0.3),
            0 0 45px rgba(255, 183, 0, 0.1);
    }
}

.glow-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0a0a0a !important;
    font-weight: 700 !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    animation: buttonGlow 2.5s ease-in-out infinite;
    transition: all 0.3s ease !important;
    /* Stronger shadow so it pops on light bg */
    box-shadow: 0 4px 20px rgba(180, 120, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.glow-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 183, 0, 0.6),
        0 0 50px rgba(255, 183, 0, 0.25) !important;
}

.glow-btn:active {
    transform: scale(0.97);
}

/* Button shimmer sweep */
.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnSweep 3s ease-in-out infinite;
}

@keyframes btnSweep {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Outline gold glow button */
.glow-btn-outline {
    background: transparent !important;
    color: var(--gold-deeper) !important;
    border: 2px solid var(--gold) !important;
    position: relative;
    transition: all 0.3s ease !important;
}

.glow-btn-outline:hover {
    background: rgba(255, 183, 0, 0.08) !important;
    box-shadow: 0 0 20px rgba(255, 183, 0, 0.25), inset 0 0 20px rgba(255, 183, 0, 0.04);
    border-color: var(--gold-light) !important;
    color: var(--gold-dark) !important;
}

/* === Gold Shimmer Effect (for logos, icons) === */
@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.gold-shimmer {
    background: linear-gradient(90deg, var(--gold-deeper), var(--gold-light), var(--gold), var(--gold-deeper));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
}

/* === Floating Animation === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

/* === Pulse Glow (icons, badges) === */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 183, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 183, 0, 0.5), 0 0 40px rgba(255, 183, 0, 0.15);
    }
}

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

/* === Card Hover Lift — Light Theme === */
.luxury-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.luxury-card:hover {
    border-color: rgba(255, 183, 0, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 183, 0, 0.08) !important;
    transform: translateY(-4px);
}

/* === Light Form Inputs === */
.dark-input {
    background: #F8F9FA !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
    transition: all 0.3s ease !important;
}

.dark-input::placeholder {
    color: #94A3B8 !important;
}

.dark-input:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15), 0 0 15px rgba(255, 183, 0, 0.08) !important;
    outline: none !important;
}

/* === Logo Glow Ring === */
@keyframes logoRingPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 183, 0, 0.4);
        border-color: var(--gold);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 183, 0, 0);
        border-color: var(--gold-light);
    }
}

.logo-ring {
    border: 2px solid var(--gold) !important;
    animation: logoRingPulse 3s ease-in-out infinite;
}

/* === Badge Glow === */
.gold-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0a0a0a !important;
    font-weight: 700;
}

/* === Animated Underline for Links === */
.gold-underline {
    position: relative;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.gold-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deeper));
    transition: width 0.3s ease;
}

.gold-underline:hover {
    color: var(--gold) !important;
}

.gold-underline:hover::after {
    width: 100%;
}

/* === Social Icon Hover === */
.social-icon {
    background: #F1F3F5 !important;
    transition: all 0.3s ease !important;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0a0a0a !important;
    box-shadow: 0 0 20px rgba(255, 183, 0, 0.4);
    transform: translateY(-3px);
}

/* === Product Image Overlay on Hover === */
.product-img-wrap {
    position: relative;
    overflow: hidden;
}

.product-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-img-wrap:hover::after {
    opacity: 1;
}

/* === Spinner === */
.spinner {
    border: 3px solid rgba(255, 183, 0, 0.3);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Fade In === */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* === Toast Animation === */
.toast {
    animation: slideIn 0.4s ease-out, fadeOut 0.4s ease-in 2.6s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* === Discount Badge Pulse === */
@keyframes discountPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.discount-badge {
    animation: discountPulse 2s ease-in-out infinite;
}

/* === Star Rating Glow === */
.star-glow {
    color: var(--gold) !important;
    filter: drop-shadow(0 0 4px rgba(255, 183, 0, 0.5));
}

/* === Section Divider === */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border: none;
}

/* === Product Image Zoom === */
.product-zoom {
    cursor: zoom-in;
}

.product-zoom:hover {
    cursor: zoom-in;
}

/* === Line Clamp === */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Light Form Inputs — Global Override for Django widgets === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea,
select {
    background-color: #F8F9FA !important;
    border-color: #CBD5E1 !important;
    color: #1E293B !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15), 0 0 15px rgba(255, 183, 0, 0.08) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: #94A3B8 !important;
}

/* Ensure radio & checkbox styling */
input[type="radio"] {
    accent-color: var(--gold);
}

/* === Keyframe for hero background particles === */
@keyframes heroFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-20px, -60px) scale(0.9);
        opacity: 0.12;
    }

    75% {
        transform: translate(30px, -20px) scale(1.05);
        opacity: 0.16;
    }
}

@keyframes heroFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }

    33% {
        transform: translate(-40px, 40px) scale(1.15);
        opacity: 0.15;
    }

    66% {
        transform: translate(30px, -50px) scale(0.95);
        opacity: 0.12;
    }
}