/* ==========================================================================
   ClothingStore Luxury Lingerie Styling & Micro-animations Engine
   Delicate Feminine Palette: Soft Blush Pink, Clean White & Vibrant Fuchsia
   ========================================================================== */

:root,
:root[data-theme-mode="light"],
:root[data-theme-mode="dark"] {
    --theme-primary: #DB2777;
    --theme-primary-hover: #BE185D;
    --theme-fuchsia: #E11D48;
    --theme-secondary: #9333EA;
    --theme-announcement: #3C225F;
    --theme-accent: #EC4899;
    --theme-accent-hover: #FCE7F3;
    --theme-bg: #FFF7F9;
    --theme-card: #FFFFFF;
    --theme-card-inner: #FFF0F5;
    --theme-border: rgba(236, 72, 153, 0.16);
    --theme-text-primary: #2D1236;
    --theme-text-muted: #6B5B73;
    --theme-input-bg: #FFFFFF;
    --theme-input-border: rgba(236, 72, 153, 0.22);
    --theme-btn-gradient: linear-gradient(135deg, #DB2777 0%, #E11D48 100%);
    --theme-btn-text: #FFFFFF;
}

body {
    font-family: 'IRANSans', system-ui, -apple-system, sans-serif !important;
    background-color: var(--theme-bg);
    color: var(--theme-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Custom luxury scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #FFF0F5;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #DB2777, #EC4899);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #BE185D;
}

/* Glassmorphism & Soft Card Shadows */
.glass-luxury {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(236, 72, 153, 0.16) !important;
    color: #2D1236 !important;
    box-shadow: 0 10px 25px -5px rgba(219, 39, 119, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
    border-color: rgba(219, 39, 119, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -8px rgba(219, 39, 119, 0.12);
}

/* Primary Brand Buttons matching mockups */
.lingerie-btn-primary,
.gold-gradient-btn,
.velvet-gradient-btn {
    background: linear-gradient(135deg, #DB2777 0%, #E11D48 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800;
    border: none !important;
    box-shadow: 0 6px 20px -3px rgba(219, 39, 119, 0.35);
    transition: all 0.25s ease;
}
.lingerie-btn-primary:hover,
.gold-gradient-btn:hover,
.velvet-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(219, 39, 119, 0.45);
    filter: brightness(1.04);
}

.lingerie-btn-outline {
    background: #FFFFFF !important;
    color: #DB2777 !important;
    border: 1.5px solid #F472B6 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.08);
    transition: all 0.25s ease;
}
.lingerie-btn-outline:hover {
    background: #FFF0F5 !important;
    border-color: #DB2777 !important;
    transform: translateY(-1px);
}

.gold-gradient-text {
    background: linear-gradient(135deg, #DB2777 0%, #E11D48 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Category Pastel Cards */
.category-pastel-card {
    background-color: #FFF0F5;
    border: 1px solid rgba(251, 207, 232, 0.6);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-pastel-card:hover {
    background-color: #FCE7F3;
    border-color: #F472B6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(219, 39, 119, 0.15);
}

/* Feature Top Cards */
.feature-box-card {
    background-color: #FFFFFF;
    border: 1.5px solid #FCE7F3;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}
.feature-box-card:hover {
    border-color: #F472B6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(219, 39, 119, 0.12);
}

/* Section Title With Decorative Dashed Lines */
.section-heading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.section-heading-line {
    flex: 1;
    max-width: 80px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #F472B6);
}
.section-heading-line.reverse {
    background: linear-gradient(90deg, #F472B6, transparent);
}

/* Multi-step Checkout & Cart Progress Wizard */
.checkout-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}
.checkout-step-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.checkout-step-circle.active {
    background: linear-gradient(135deg, #DB2777, #E11D48);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.35);
}
.checkout-step-circle.completed {
    background: #FFF0F5;
    color: #DB2777;
    border: 1.5px solid #F472B6;
}
.checkout-step-circle.inactive {
    background: #F1F5F9;
    color: #94A3B8;
    border: 1px solid #E2E8F0;
}

/* Instagram Story Avatar Rings */
.story-ring-unread {
    background: linear-gradient(45deg, #DB2777 0%, #E11D48 50%, #EC4899 100%);
    padding: 2.5px;
    border-radius: 9999px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.2);
}
.story-ring-unread:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(219, 39, 119, 0.35);
}
.story-ring-read {
    background: rgba(219, 39, 119, 0.2);
    padding: 2px;
    border-radius: 9999px;
    display: inline-block;
}
.story-avatar-img {
    border: 2px solid #FFF7F9;
    border-radius: 9999px;
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* UGC Instagram Grid Hover */
.ugc-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--theme-border);
    transition: all 0.3s ease;
}
.ugc-item:hover {
    border-color: var(--theme-primary);
    transform: scale(1.02);
}
.ugc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 18, 54, 0.85) 0%, rgba(219, 39, 119, 0.65) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    color: white;
}
.ugc-item:hover .ugc-overlay {
    opacity: 1;
}

/* Hide Scrollbars */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Luxury Range Slider Component */
.luxury-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 32px;
    background: transparent !important;
    cursor: pointer;
    direction: ltr !important;
    margin: 4px 0;
    vertical-align: middle;
}
.luxury-range-slider:focus { outline: none; }
.luxury-range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    border-radius: 9999px;
    background: #FCE7F3;
    border: 1px solid rgba(219, 39, 119, 0.2);
}
.luxury-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DB2777 0%, #E11D48 100%);
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(219, 39, 119, 0.4);
    cursor: grab;
    margin-top: -7px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.luxury-range-slider:hover::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(219, 39, 119, 0.6);
}
.luxury-range-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: #FCE7F3;
    border: 1px solid rgba(219, 39, 119, 0.2);
}
.luxury-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DB2777 0%, #E11D48 100%);
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(219, 39, 119, 0.4);
    cursor: grab;
}

/* Preset Buttons */
.preset-size-btn {
    background-color: #FFFFFF !important;
    color: #2D1236 !important;
    border: 1.5px solid #FCE7F3 !important;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.preset-size-btn:hover {
    border-color: #F472B6 !important;
    background-color: #FFF0F5 !important;
}
.preset-size-btn.active,
.preset-size-btn[data-active="true"] {
    background-color: #FFF0F5 !important;
    border: 2px solid #DB2777 !important;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15) !important;
}
.preset-size-btn.active span.preset-title,
.preset-size-btn[data-active="true"] span.preset-title {
    color: #DB2777 !important;
    font-weight: 800 !important;
}

/* Stepper Buttons */
.stepper-btn {
    background-color: #FFF0F5 !important;
    color: #2D1236 !important;
    border: 1px solid #FCE7F3 !important;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}
.stepper-btn:hover {
    background-color: #FCE7F3 !important;
    color: #DB2777 !important;
    border-color: #F472B6 !important;
}

/* SweetAlert2 High-Contrast Styling */
.swal2-popup {
    border-radius: 1.5rem !important;
    font-family: 'IRANSans', sans-serif !important;
    border: 1.5px solid rgba(219, 39, 119, 0.2) !important;
    box-shadow: 0 20px 40px rgba(45, 18, 54, 0.15) !important;
}
.swal2-title {
    color: #2D1236 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}
.swal2-html-container {
    color: #6B5B73 !important;
    font-size: 0.9rem !important;
}
.swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, #DB2777, #E11D48) !important;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    padding: 0.65rem 1.75rem !important;
}
