/* ============================================
   SHEIN-STYLE E-COMMERCE REDESIGN
   ============================================ */

/* ===== PHASE 1: Color Variables & Typography ===== */
:root {
    /* SHEIN Primary Colors - Override existing */
    --primary: #000000 !important;
    --hov-primary: #333333 !important;
    --secondary-base: #ff4747 !important;
    --shein-black: #000000;
    --shein-black-hover: #333333;
    --shein-white: #ffffff;
    --shein-sale-red: #ff4747;
    --shein-promo-pink: #ff6b9d;
    --shein-accent-gold: #ffc519;
    --shein-bg-light: #f5f5f5;
    --shein-bg-card: #ffffff;
    --shein-bg-overlay: rgba(0, 0, 0, 0.6);
    --shein-text-primary: #222222;
    --shein-text-secondary: #767676;
    --shein-text-muted: #999999;
    --shein-border-light: #e5e5e5;
    --shein-border-dark: #cccccc;
    --shein-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shein-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shein-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shein-shadow-popup: 0 10px 40px rgba(0, 0, 0, 0.25);
    --shein-transition-fast: 0.2s ease;
    --shein-transition-normal: 0.3s ease;
    --shein-transition-slow: 0.5s ease;
    --shein-radius-sm: 4px;
    --shein-radius-md: 8px;
    --shein-radius-lg: 12px;
    --shein-radius-xl: 16px;
    --shein-radius-full: 50%;
}

/* ===== HEADER - BLACK THEME ===== */
header,
.aiz-header,
header.position-sticky,
.top-navbar,
.aiz-main-wrapper header {
    background: #000000 !important;
    background-color: #000000 !important;
}

header *,
.aiz-header *,
.top-navbar * {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Header text and icons white */
header a,
header span,
header .nav-link,
header .text-dark,
header .text-reset,
.aiz-header a,
.aiz-header span,
.top-navbar a,
.top-navbar span {
    color: #ffffff !important;
}

header a:hover,
.aiz-header a:hover,
.top-navbar a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Logo - invert to white */
header .logo img,
header img.logo,
.aiz-header .logo img,
.logo-area img {
    filter: brightness(0) invert(1) !important;
}

/* Search Bar */
header .search-box,
header form.search-box,
.search-box,
#search,
header input[type="text"],
header input[type="search"] {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: none !important;
}

header .search-box input,
#search {
    background: transparent !important;
    color: #222 !important;
}

/* Cart Badge Red */
.cart-count,
.badge-circle,
.badge-primary,
header .badge {
    background: #ff4747 !important;
    background-color: #ff4747 !important;
    color: #fff !important;
}

/* ===== PRODUCT CARDS ===== */
.aiz-card-box {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
}

.aiz-card-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px) !important;
    border-color: #e5e5e5 !important;
}

/* Product Image Zoom */
.aiz-card-box img,
.aiz-card-box .lazyload,
.hov-scale-img img {
    transition: transform 0.5s ease !important;
}

.aiz-card-box:hover img,
.aiz-card-box:hover .lazyload,
.hov-scale-img:hover img {
    transform: scale(1.08) !important;
}

/* Discount Badge */
.aiz-card-box .absolute-top-left,
.aiz-card-box .bg-primary,
.aiz-card-box [class*="discount"],
.shein-discount-badge {
    background: #ff4747 !important;
    background-color: #ff4747 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
}

/* Floating Action Buttons (wishlist, compare) */
.aiz-p-hov-icon {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    opacity: 0 !important;
    transform: translateX(10px) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.aiz-card-box:hover .aiz-p-hov-icon {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.aiz-p-hov-icon a {
    width: 36px !important;
    height: 36px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.aiz-p-hov-icon a:hover {
    background: #000000 !important;
}

.aiz-p-hov-icon a:hover svg path {
    fill: #ffffff !important;
}

/* Add to Cart Button */
.aiz-card-box .cart-btn,
.cart-btn {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    border: none !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.aiz-card-box:hover .cart-btn {
    transform: translateY(0) !important;
}

.cart-btn:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

/* Price Styling */
.aiz-card-box .text-primary,
.aiz-card-box .fw-700,
.shein-price-current {
    color: #ff4747 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.aiz-card-box del,
.shein-price-original {
    color: #999999 !important;
    font-size: 13px !important;
}

/* ===== BUTTONS ===== */
.btn-primary,
button.btn-primary,
a.btn-primary {
    background: #000000 !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background: #333333 !important;
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* ===== FLASH DEAL SECTION ===== */
#flash_deal,
.flash-deal-section {
    background: linear-gradient(135deg, #ff4747 0%, #ff6b6b 100%) !important;
}

#flash_deal .fw-700,
#flash_deal .text-dark,
.flash-deal-section .fw-700 {
    color: #ffffff !important;
}

/* ===== POPUPS ===== */
.website-popup .modal-content,
.modal-content {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: none !important;
}

.website-popup .btn,
.modal .btn-primary {
    background: #000000 !important;
    border: none !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons-section {
    position: fixed !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 998 !important;
}

.aiz-floating-button {
    margin-bottom: 8px !important;
}

.aiz-floating-button a {
    display: flex !important;
    align-items: center !important;
    background: #000000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.aiz-floating-button a:hover {
    background: #333333 !important;
    padding-right: 16px !important;
}

.aiz-floating-button .circle {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.aiz-floating-button .text {
    display: none !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.aiz-floating-button a:hover .text {
    display: flex !important;
    align-items: center !important;
}

/* Event Button */
.shein-floating-event {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    z-index: 998 !important;
}

.shein-event-btn {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #ff4747 0%, #ff6b9d 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(255, 71, 71, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    animation: pulse-event 2s infinite !important;
    text-decoration: none !important;
}

.shein-event-btn:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: scale(1.1) !important;
}

@keyframes pulse-event {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 71, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 71, 71, 0);
    }
}

/* Scroll to Top */
.shein-scroll-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 48px !important;
    height: 48px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 997 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.shein-scroll-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.shein-scroll-top:hover {
    background: #333333 !important;
    transform: translateY(-4px) !important;
}

/* ===== CAROUSEL ARROWS ===== */
.slick-prev,
.slick-next {
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50% !important;
    z-index: 10 !important;
}

.slick-prev:hover,
.slick-next:hover {
    background: #000000 !important;
}

.slick-prev:before,
.slick-next:before {
    color: #ffffff !important;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-menu .dropdown-item:hover {
    background: #f5f5f5 !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991px) {
    .floating-buttons-section {
        left: 10px !important;
    }
    
    .aiz-floating-button .circle {
        width: 40px !important;
        height: 40px !important;
    }
    
    .shein-floating-event {
        bottom: 80px !important;
        right: 16px !important;
    }
    
    .shein-event-btn {
        width: 52px !important;
        height: 52px !important;
    }
}

@media (max-width: 575px) {
    .aiz-card-box {
        border-radius: 8px !important;
    }
    
    .shein-scroll-top {
        width: 40px !important;
        height: 40px !important;
        bottom: 16px !important;
        right: 16px !important;
    }
}
