/* ============================================
   NEW TEMPLATE STYLES - Based on Reference Design
   Modern E-commerce with Purple Theme
   ============================================ */

/* Main Color Variables - Purple Theme */
:root {
    --new-primary-color: #480297;
    --new-primary-hover: #3a027a;
    --new-primary-light: rgba(72, 2, 151, 0.1);
    --new-accent: #ff6b35;
    --new-accent-hover: #e55a2b;
    --new-dark: #1a1a2e;
    --new-gray: #6c757d;
    --new-light-gray: #f8f9fa;
    --new-success: #28a745;
    --new-danger: #dc3545;
}

/* Seller Avatar Wrapper */
.seller-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: inline-block;
}

.seller-avatar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #8B5CF6, #A78BFA, #C4B5FD, #8B5CF6);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.seller-avatar-wrapper:hover::before {
    opacity: 1;
    animation: rotate-border 1.5s linear infinite;
}

@keyframes rotate-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.seller-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Global Styles */
body {
    font-family: 'Open Sans', 'Inter', 'Noto Sans', sans-serif;
    background-color: var(--new-light-gray);
    color: #333;
}

/* Override original color variables */
:root {
    --primary: var(--new-primary-color);
    --hov-primary: var(--new-primary-hover);
    --soft-primary: var(--new-primary-light);
}

/* Header Styles */
header.sticky-top,
header {
   /* box-shadow: 0 2px 10px rgba(71, 0, 150, 0.15);*/
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
.top-navbar {
    background: var(--new-dark) !important;
}

.top-navbar .text-reset {
    color: rgba(255,255,255,0.8) !important;
}

.top-navbar .text-reset:hover {
    color: #fff !important;
}

.top-navbar .opacity-60 {
    color: rgba(255,255,255,0.7) !important;
}

/* ============================================
   HEADER / LOGO AREA
   ============================================ */
.logo-bar-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 3px solid var(--new-primary-color) !important;
}

/* ============================================
   NAVIGATION MENU BAR
   ============================================ */
.nav-menu-bar {
    background: linear-gradient(135deg, var(--new-primary-color) 0%, var(--new-primary-hover) 100%) !important;
}

.nav-menu-bar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}

.nav-menu-bar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

/* ============================================
   SEARCH BOX - Modern Style
   ============================================ */
.search-input-modern {
    border-radius: 25px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border: 2px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    height: 45px !important;
}

.search-input-modern:focus {
    border-color: var(--new-primary-color) !important;
    box-shadow: 0 0 0 3px rgba(71, 0, 150, 0.1) !important;
    outline: none !important;
}

.search-btn-modern {
    border-radius: 0 25px 25px 0 !important;
    background: var(--new-primary-color) !important;
    border: none !important;
    padding: 0 25px !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
}

.search-btn-modern:hover {
    background: var(--new-primary-hover) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-new-primary {
    background: var(--new-primary-color) !important;
    border-color: var(--new-primary-color) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-new-primary:hover {
    background: var(--new-primary-hover) !important;
    border-color: var(--new-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(71, 0, 150, 0.3);
    color: #fff !important;
}

.btn-new-accent {
    background: var(--new-accent) !important;
    border-color: var(--new-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-new-accent:hover {
    background: var(--new-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    color: #fff !important;
}

.btn-new-outline {
    background: transparent !important;
    border: 2px solid var(--new-primary-color) !important;
    color: var(--new-primary-color) !important;
    border-radius: 8px !important;
    padding: 8px 23px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-new-outline:hover {
    background: var(--new-primary-color) !important;
    color: #fff !important;
}

/* ============================================
   CARDS
   ============================================ */
.card-new {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    background: #fff;
}

.card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(71, 0, 150, 0.15) !important;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card-new {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eee !important;
}

.product-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(71, 0, 150, 0.12) !important;
    border-color: var(--new-primary-color) !important;
}

.product-card-new .product-img {
    position: relative !important;
    overflow: hidden !important;
}

.product-card-new .product-img img {
    transition: transform 0.5s ease !important;
}

.product-card-new:hover .product-img img {
    transform: scale(1.05) !important;
}

/* Product Price Styling */
.product-card-new .price {
    color: #000 !important;
    font-weight: 700 !important;
}

.product-card-new .price-old {
    color: #999 !important;
    text-decoration: line-through !important;
}

/* ============================================
   CATEGORY BOXES
   ============================================ */
.category-box-new {
    border-radius: 16px !important;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    border: 1px solid #eee !important;
    padding: 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.category-box-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(71, 0, 150, 0.1) !important;
    border-color: var(--new-primary-color) !important;
}

.category-box-new img {
    border-radius: 12px !important;
    transition: transform 0.3s ease !important;
}

.category-box-new:hover img {
    transform: scale(1.1) !important;
}

/* ============================================
   BANNER STYLES
   ============================================ */
.banner-new {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.banner-new:hover img {
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

/* Hero Banner - Main Sale Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--new-primary-color) 0%, #6b21a8 50%, var(--new-accent) 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: #fff;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-banner .sub-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title-new {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 25px !important;
    position: relative !important;
    display: inline-block !important;
}

.section-title-new::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 0 !important;
    width: 60px !important;
    height: 4px !important;
    background: var(--new-primary-color) !important;
    border-radius: 2px !important;
}

.section-title-light {
    color: #fff !important;
}

.section-title-light::after {
    background: #fff !important;
}

/* ============================================
   PRICE TAGS
   ============================================ */
.price-tag-new {
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.price-old-new {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 0.9rem !important;
}

/* ============================================
   BADGES
   ============================================ */
.discount-badge-new {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: var(--new-primary-color) !important;
    color: #fff !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    z-index: 10 !important;
}

.sale-badge-new {
    background: linear-gradient(135deg, #00c853, #2e7d32) !important;
    color: #fff !important;
    padding: 6px 20px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.hot-badge-new {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: #fff !important;
    padding: 6px 20px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

/* ============================================
   SERVICE FEATURES
   ============================================ */
.service-features {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.service-feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    transition: all 0.3s ease;
}

.service-feature-item:hover {
    background: var(--new-primary-light);
    border-radius: 10px;
}

.service-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--new-primary-color), var(--new-primary-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 1.5rem;
}

.service-feature-text h6 {
    font-weight: 600;
    margin-bottom: 2px;
    color: #333;
}

.service-feature-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown-new {
    background: linear-gradient(135deg, var(--new-primary-color), var(--new-primary-hover)) !important;
    color: #fff !important;
    padding: 15px 25px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    gap: 10px !important;
}

.countdown-box {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 8px;
    min-width: 60px;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* ============================================
   CAROUSEL / SLIDER STYLES
   ============================================ */
.slider-arrow-new {
    background: var(--new-primary-color) !important;
    color: #fff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(71, 0, 50, 0.3) !important;
}

.slider-arrow-new:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* ============================================
   FLASH SALE SECTION
   ============================================ */
.flash-sale-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
}

.flash-sale-section .section-title-new {
    color: #fff !important;
}

.flash-sale-timer {
    display: flex;
    gap: 8px;
}

.flash-sale-timer .time-block {
    background: var(--new-accent);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.flash-sale-timer .time-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.flash-sale-timer .time-label {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--new-primary-color) 0%, var(--new-primary-hover) 100%);
    border-radius: 16px;
    padding: 50px 30px;
    color: #fff;
    text-align: center;
}

.newsletter-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--new-accent);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--new-accent-hover);
    transform: translateY(-2px);
}

/* ============================================
   PROMOTIONAL BANNER
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    text-align: center;
}

.promo-banner-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.promo-banner-orange {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.promo-banner h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   TOP SELLING SECTION
   ============================================ */
.top-selling-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.top-selling-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.top-selling-item:hover {
    border-color: var(--new-primary-color);
    box-shadow: 0 5px 20px rgba(71, 0, 150, 0.1);
}

.top-selling-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.top-selling-info h6 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.top-selling-info .price {
    color: #000;
    font-weight: 700;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brand-item-new {
    padding: 20px !important;
    border-radius: 12px !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eee !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item-new:hover {
    border-color: var(--new-primary-color) !important;
    box-shadow: 0 5px 20px rgba(71, 0, 150, 0.1) !important;
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-new {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.footer-new a {
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.3s ease !important;
}

.footer-new a:hover {
    color: #fff !important;
}

/* ============================================
   CATEGORIES HORIZONTAL SCROLL
   ============================================ */
.categories-scroll-new {
    display: flex !important;
    gap: 15px !important;
    overflow-x: auto !important;
    padding: 15px 0 !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
}

.categories-scroll-new::-webkit-scrollbar {
    height: 6px !important;
}

.categories-scroll-new::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}

.categories-scroll-new::-webkit-scrollbar-thumb {
    background: var(--new-primary-color) !important;
    border-radius: 3px !important;
}

.categories-scroll-new .category-item {
    flex: 0 0 auto !important;
    width: 120px !important;
    scroll-snap-align: start !important;
}

/* ============================================
   RESPONSIVE STYLES - TABLET & MOBILE
   ============================================ */

/* Tablet - 992px and below */
@media (max-width: 992px) {
    .top-selling-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner-content {
        padding: 25px;
    }
    
    .flash-sale-section .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .flash-sale-timer {
        justify-content: center;
    }
    
    .promo-banner h2 {
        font-size: 2rem !important;
    }
    
    .service-feature-item {
        justify-content: center;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Section Titles */
    .section-title-new {
        font-size: 1.2rem !important;
    }
    
    .section-title-new::after {
        width: 40px;
        height: 3px;
    }
    
    /* Cards & Containers */
    .card-new {
        padding: 15px !important;
        border-radius: 10px !important;
    }
    
    /* Hero Banner */
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .hero-banner-content {
        padding: 20px 15px;
    }
    
    .hero-banner .badge {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }
    
    /* Category Boxes */
    .category-box-new {
        padding: 12px !important;
    }
    
    .category-box-new img {
        height: 50px !important;
    }
    
    .category-box-new h6 {
        font-size: 0.75rem !important;
    }
    
    /* Service Features - Stack vertically on mobile */
    .service-features {
        padding: 15px;
    }
    
    .service-feature-item {
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .service-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .service-feature-text h6 {
        font-size: 0.85rem;
    }
    
    .service-feature-text p {
        font-size: 0.75rem;
        display: none;
    }
    
    /* Flash Sale */
    .flash-sale-section {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .flash-sale-timer {
        gap: 5px;
    }
    
    .time-block {
        padding: 6px 10px;
        min-width: 45px;
    }
    
    .time-value {
        font-size: 1rem !important;
    }
    
    .time-label {
        font-size: 0.6rem !important;
    }
    
    /* Promo Banners */
    .promo-banner {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .promo-banner h4 {
        font-size: 1.2rem !important;
    }
    
    .promo-banner h2 {
        font-size: 1.8rem !important;
    }
    
    .countdown-box {
        padding: 5px 8px;
        min-width: 45px;
    }
    
    .countdown-value {
        font-size: 1rem !important;
    }
    
    .countdown-label {
        font-size: 0.55rem !important;
    }
    
    /* Newsletter */
    .newsletter-section {
        padding: 30px 15px;
    }
    
    .newsletter-section h3 {
        font-size: 1.3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input {
        width: 100%;
        padding: 12px 15px;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 12px 20px;
    }
    
    /* Top Selling */
    .top-selling-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .top-selling-item {
        padding: 10px;
        gap: 10px;
    }
    
    .top-selling-item img {
        width: 60px;
        height: 60px;
    }
    
    .top-selling-info h6 {
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn-new-primary,
    .btn-new-outline {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    
    .btn-new-accent {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    
    .btn-lg {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
    
    /* Product Grid */
    .featured-categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
    
    /* Carousel Arrows - Hide on mobile */
    .slick-prev,
    .slick-next {
        display: none !important;
    }
    
    /* Top 10 Sections */
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* General Padding */
    section {
        margin-bottom: 20px !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .px-3, .p-3 {
        padding: 10px !important;
    }
    
    .mb-4 {
        margin-bottom: 15px !important;
    }
    
    .mb-3 {
        margin-bottom: 10px !important;
    }
}

/* Extra Small Mobile - 576px and below */
@media (max-width: 576px) {
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    
    .hero-banner .sub-title {
        font-size: 0.9rem;
    }
    
    .featured-categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    
    .category-box-new {
        padding: 8px !important;
    }
    
    .category-box-new .badge {
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
    }
    
    .service-features .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .top-selling-grid {
        gap: 8px;
    }
    
    .top-selling-item img {
        width: 50px;
        height: 50px;
    }
    
    .promo-banner h2 {
        font-size: 1.5rem !important;
    }
    
    .countdown-new {
        padding: 10px 15px !important;
    }
    
    .countdown-box {
        min-width: 38px;
        padding: 4px 6px;
    }
    
    .countdown-value {
        font-size: 0.9rem !important;
    }
    
    .newsletter-section h3 {
        font-size: 1.1rem;
    }
    
    .newsletter-section p {
        font-size: 0.85rem;
    }
}

/* Touch-friendly interactions for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .service-feature-item,
    .category-box-new,
    .top-selling-item {
        cursor: pointer;
    }
    
    /* Remove hover effects on touch devices */
    .card-new:hover,
    .category-box-new:hover,
    .product-card-new:hover {
        transform: none !important;
    }
    
    /* Active states for touch */
    .btn:active,
    .btn-new-primary:active,
    .btn-new-accent:active {
        transform: scale(0.98);
    }
    
    /* Swipe hint for carousels */
    .aiz-carousel::after {
        content: '← swipe →';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        color: rgba(255,255,255,0.7);
        background: rgba(0,0,0,0.3);
        padding: 2px 8px;
        border-radius: 10px;
    }
    
    /* Mobile category horizontal scroll */
    .row.gutters-5 {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .row.gutters-5 > .col-4 {
        flex: 0 0 80px;
        min-width: 80px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(71, 0, 150, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(71, 0, 150, 0.8);
    }
}

.pulse-animation {
    animation: pulse-glow 2s infinite;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3 !important;
    border-top: 3px solid var(--new-primary-color) !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    animation: spin 1s linear infinite !important;
}

/* Seller Shop Avatar Border Animation */
.col-md-6 .lazyload.rounded-circle {
    transition: all 0.3s ease;
}

.col-md-6 .lazyload.rounded-circle:hover {
    border-width: 20px !important;
    border-color: #8B5CF6 !important;
    padding: 10px !important;
    animation: border-pulse 1s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 10px 5px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(139, 92, 246, 0.8);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-new {
    background: var(--new-primary-color) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* Payment Icons */
.payment-icons img {
    height: 25px !important;
    margin: 0 5px !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease !important;
    filter: grayscale(100%);
}

.payment-icons img:hover {
    opacity: 1 !important;
    filter: grayscale(0%);
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--new-primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-new:hover .quick-view-btn {
    bottom: 10px;
    opacity: 1;
}

/* Wishlist & Compare Icons */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-action-btn {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card-new:hover .product-action-btn {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn:hover {
    background: var(--new-primary-color);
    color: #fff;
}

/* Product Box Styles for Carousel */
.aiz-card-box {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eee !important;
}

.aiz-card-box:hover {
    border-color: var(--new-primary-color) !important;
    box-shadow: 0 10px 30px rgba(71, 0, 150, 0.12) !important;
    transform: translateY(-5px);
}

/* Featured Category Grid */
.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .featured-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .featured-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sidebar Category Menu */
.all-category {
    background: linear-gradient(135deg, var(--new-primary-color) 0%, var(--new-primary-hover) 100%) !important;
    border-radius: 12px 12px 0 0 !important;
}

.categories-menu {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Deal of the Day */
.deal-of-day {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    text-align: center;
}

.deal-of-day h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Stats Counter */
.stats-section {
    background: linear-gradient(135deg, var(--new-primary-color) 0%, var(--new-primary-hover) 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Trending Products */
.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--new-accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

/* Rating Stars */
.rating-stars {
    color: #ff8026;
}

.rating-stars i {
    font-size: 15px;
}

.rating {
    color: #ff8026;
}

.rating i {
    font-size: 15px;
}

/* Add to Cart Button on Product Card */
.add-to-cart-btn {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: var(--new-primary-color);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-new:hover .add-to-cart-btn {
    bottom: 0;
    opacity: 1;
}

.add-to-cart-btn:hover {
    background: var(--new-primary-hover);
}

/* ============================================
   MOBILE MODAL RESPONSIVE STYLES
   ============================================ */

/* Modal responsiveness for mobile devices */
@media (max-width: 576px) {
    /* Add to Cart Modal - Full screen on mobile */
    #addToCart .modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    #addToCart .modal-content {
        border-radius: 0 !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #addToCart .modal-body {
        padding: 15px !important;
    }
    
    /* Modal product gallery - Full width on mobile */
    #addToCart .modal-body .row .col-lg-6:first-child {
        margin-bottom: 15px;
    }
    
    #addToCart .modal-body .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Product title - Smaller on mobile */
    #addToCart .product-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    /* Price - Smaller on mobile */
    #addToCart .text-primary {
        font-size: 1.3rem !important;
    }
    
    #addToCart del {
        font-size: 0.9rem !important;
    }
    
    /* Quantity selector - Better touch targets */
    #addToCart .product-quantity {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    #addToCart .aiz-plus-minus {
        width: 120px !important;
    }
    
    #addToCart .btn-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    #addToCart .input-number {
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    /* Add to cart button - Full width on mobile */
    #addToCart .add-to-cart,
    #addToCart .buy-now {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Labels and text */
    #addToCart .opacity-50 {
        font-size: 0.85rem !important;
    }
    
    #addToCart .avialable-amount {
        font-size: 0.8rem !important;
    }
    
    /* Choice options - Stack vertically */
    #addToCart .choice-title {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
    }
    
    #addToCart .no-gutters {
        margin-bottom: 10px !important;
    }
    
    /* Thumbnails - Smaller on mobile */
    #addToCart .col-auto.w-90px {
        display: none !important;
    }
    
    /* Carousel indicators */
    #addToCart .aiz-carousel .slick-dots {
        padding: 0 20px !important;
    }
    
    #addToCart .aiz-carousel .slick-dots li button {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Option selection - Better touch targets */
    #addToCart .aiz-selectpicker,
    #addToCart select {
        font-size: 0.9rem !important;
        padding: 8px 30px 8px 10px !important;
        height: auto !important;
    }
    
    /* Hide horizontal scrollbars on mobile */
    #addToCart ::-webkit-scrollbar {
        width: 4px !important;
        height: 4px !important;
    }
    
    #addToCart ::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2) !important;
        border-radius: 4px !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    #addToCart .modal-dialog {
        max-width: 90% !important;
    }
    
    #addToCart .product-title {
        font-size: 1.2rem !important;
    }
    
    #addToCart .add-to-cart,
    #addToCart .buy-now {
        padding: 12px 16px !important;
    }
}

/* Fix for iOS Safari - prevent zoom on input focus */
@media (max-width: 576px) {
    #addToCart input[type="text"],
    #addToCart input[type="number"],
    #addToCart select {
        font-size: 16px !important;
    }
}

/* Smooth scroll for modal body */
#addToCart .modal-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ============================================
   后台侧边栏 - 清爽简洁风格
   ============================================ */

/* 侧边栏容器 - 纯净白色背景 */
.aiz-sidebar-wrap .aiz-sidebar.left {
    background: #ffffff !important;
    width: 300px !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03) !important;
}

/* 大屏幕下侧边栏默认显示 */
@media (min-width: 1200px) {
    .aiz-sidebar-wrap .aiz-sidebar.left {
        left: 0 !important;
    }
    [dir="rtl"] .aiz-sidebar-wrap .aiz-sidebar.left {
        left: auto !important;
        right: 0 !important;
    }
    /* 收缩侧边栏 */
    .side-menu-closed .aiz-sidebar-wrap .aiz-sidebar.left {
        left: -300px !important;
    }
    [dir="rtl"] .side-menu-closed .aiz-sidebar-wrap .aiz-sidebar.left {
        left: auto !important;
        right: -300px !important;
    }
}

/* 小屏幕下侧边栏隐藏/显示 */
@media (max-width: 1199.98px) {
    .aiz-sidebar-wrap .aiz-sidebar.left {
        left: -300px !important;
    }
    .aiz-sidebar-wrap .aiz-sidebar.left.active,
    .side-menu-open .aiz-sidebar-wrap .aiz-sidebar.left {
        left: 0 !important;
    }
    [dir="rtl"] .aiz-sidebar-wrap .aiz-sidebar.left {
        left: auto !important;
        right: -300px !important;
    }
    .side-menu-open [dir="rtl"] .aiz-sidebar-wrap .aiz-sidebar.left {
        right: 0 !important;
    }
}

/* 主内容区域 - 适配300px侧边栏 */
@media (min-width: 1200px) {
    .aiz-content-wrapper {
        padding-left: 300px !important;
    }
    [dir="rtl"] .aiz-content-wrapper {
        padding-left: 0 !important;
        padding-right: 300px !important;
    }
    .side-menu-closed .aiz-content-wrapper {
        padding-left: 0 !important;
    }
    [dir="rtl"] .side-menu-closed .aiz-content-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 顶部栏 - 适配300px侧边栏 */
@media (min-width: 1200px) {
    .aiz-topbar {
        width: calc(100% - 300px) !important;
        left: 310px !important;
    }
    [dir="rtl"] .aiz-topbar {
        left: auto !important;
        right: 300px !important;
    }
    .side-menu-closed .aiz-topbar {
        left: 0 !important;
        width: 100% !important;
    }
    [dir="rtl"] .side-menu-closed .aiz-topbar {
        left: auto !important;
        right: 0 !important;
        width: 100% !important;
    }
}

/* Logo 区域 - 简洁蓝色 */
.aiz-sidebar-wrap .aiz-side-nav-logo-wrap {
    background: #7913bf !important;
    padding: 18px 16px !important;
}

.aiz-sidebar-wrap .aiz-side-nav-logo-wrap a {
    padding: 5px 10px !important;
}

.aiz-sidebar-wrap .aiz-side-nav-logo-wrap img {
    height: 36px !important;
    filter: brightness(0) invert(1);
}

/* 菜单搜索框 - 简洁风格 */
.aiz-sidebar-wrap .px-20px.mb-3 {
    padding: 12px !important;
    margin-bottom: 8px !important;
}

.aiz-sidebar-wrap #menu-search,
.aiz-sidebar-wrap .px-20px.mb-3 input {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #374151 !important;
    width: 100% !important;
}

.aiz-sidebar-wrap #menu-search:focus,
.aiz-sidebar-wrap .px-20px.mb-3 input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
    background: #fff !important;
    outline: none !important;
}

.aiz-sidebar-wrap #menu-search::placeholder,
.aiz-sidebar-wrap .px-20px.mb-3 input::placeholder {
    color: #9ca3af !important;
}

/* 菜单容器 */
.aiz-sidebar-wrap .aiz-side-nav-wrap {
    padding: 8px !important;
}

/* 菜单项 */
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-item {
    margin: 2px 0 !important;
}

/* 顶级导航 - 简洁清晰 */
.aiz-sidebar-wrap .aiz-side-nav-list > .aiz-side-nav-item > .aiz-side-nav-link {
    padding: 12px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

/* 普通菜单链接 */
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link {
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link::before {
    display: none !important;
}

/* 菜单图标 - 简洁圆形 */
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    background: #f3f4f6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
}

/* 菜单文字 */
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-text {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* 顶级导航文字 */
.aiz-sidebar-wrap .aiz-side-nav-list > .aiz-side-nav-item > .aiz-side-nav-link .aiz-side-nav-text {
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* 二级菜单文字 - 不加粗 */
.aiz-sidebar-wrap .aiz-side-nav-list.level-2 .aiz-side-nav-link .aiz-side-nav-text {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* 三级菜单文字 - 不加粗 */
.aiz-sidebar-wrap .aiz-side-nav-list.level-3 .aiz-side-nav-link .aiz-side-nav-text {
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* 展开箭头 */
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-arrow {
    font-size: 11px !important;
    color: #9ca3af !important;
}

/* 悬停效果 - 浅灰背景 */
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link:hover {
    background: #f3f4f6 !important;
    color: #3b82f6 !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list > .aiz-side-nav-item > .aiz-side-nav-link:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link:hover .aiz-side-nav-icon {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* 激活状态 - 清爽蓝色 */
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link.active,
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link.level-2-active,
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link.level-3-active {
    background: #7caeff !important;
    color: #fff !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link.active .aiz-side-nav-icon,
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link.level-2-active .aiz-side-nav-icon {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link.active .aiz-side-nav-arrow::after,
.aiz-sidebar-wrap .aiz-side-nav-list .aiz-side-nav-link.level-2-active .aiz-side-nav-arrow::after {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 二级菜单 */
.aiz-sidebar-wrap .aiz-side-nav-list.level-2 .aiz-side-nav-link {
    padding: 9px 14px 9px 56px !important;
    font-size: 13px !important;
    margin: 1px 0 !important;
    border-radius: 6px !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list.level-2 .aiz-side-nav-link::after {
    display: none !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list.level-2 .aiz-side-nav-link:hover {
    background: #f3f4f6 !important;
    color: #3b82f6 !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list.level-2 .aiz-side-nav-link.active,
.aiz-sidebar-wrap .aiz-side-nav-list.level-2 .aiz-side-nav-link.level-2-active {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 500 !important;
}

/* 三级菜单 */
.aiz-sidebar-wrap .aiz-side-nav-list.level-3 .aiz-side-nav-link {
    padding: 8px 14px 8px 68px !important;
    font-size: 13px !important;
    margin: 1px 0 !important;
    border-radius: 6px !important;
}

/* 徽章样式 - 简洁 */
.aiz-sidebar-wrap .aiz-side-nav-list .badge {
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    background: #3b82f6 !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list .badge-danger {
    background: #ef4444 !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list .badge-info {
    background: #3b82f6 !important;
}

.aiz-sidebar-wrap .aiz-side-nav-list .badge-success {
    background: #10b981 !important;
}

/* 侧边栏覆盖层 */
.aiz-sidebar-wrap .aiz-sidebar-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
}

/* 滚动条美化 - 覆盖aiz-core.css的深色样式 */
body .aiz-sidebar-wrap .c-scrollbar::-webkit-scrollbar,
body .aiz-sidebar-wrap::-webkit-scrollbar {
    width: 4px !important;
    background: transparent !important;
}

body .aiz-sidebar-wrap .c-scrollbar::-webkit-scrollbar-track,
body .aiz-sidebar-wrap::-webkit-scrollbar-track {
    background: transparent !important;
}

body .aiz-sidebar-wrap .c-scrollbar::-webkit-scrollbar-thumb,
body .aiz-sidebar-wrap::-webkit-scrollbar-thumb {
    background: #f0f0f0 !important;
    border-radius: 4px !important;
}

body .aiz-sidebar-wrap .c-scrollbar::-webkit-scrollbar-thumb:hover,
body .aiz-sidebar-wrap::-webkit-scrollbar-thumb:hover {
    background: #e0e0e0 !important;
}

body .aiz-sidebar-wrap .c-scrollbar {
    scrollbar-color: #f0f0f0 transparent !important;
    scrollbar-width: thin !important;
}

/* 响应式 - 平板 */
@media (max-width: 1200px) {
    .aiz-sidebar-wrap .aiz-sidebar.left {
        width: 300px !important;
    }
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .aiz-sidebar-wrap .aiz-sidebar.left {
        width: 300px !important;
        max-width: 85vw !important;
    }
}

/* 清除缓存按钮 - 紫色样式 */
.btn-clear-cache,
.clear-cache-btn,
a[href*="clear-cache"],
.clear_cache,
.btn.btn-soft-danger a,
.onclick-event:has(.las.la-sync) {
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 50%, #9333ea 100%) !important;
    color: #fff !important;
    border: none !important;
}

.btn-clear-cache:hover,
.clear-cache-btn:hover,
a[href*="clear-cache"]:hover,
.clear_cache:hover {
    background: linear-gradient(135deg, #d8b4fe 0%, #a855f7 50%, #7e22ce 100%) !important;
}

/* 按钮 - 紫色背景 */
.btn-circle.btn-info,
.btn.btn-info {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%) !important;
    border-color: #7c3aed !important;
    color: #fff !important;
}

.btn-circle.btn-info:hover,
.btn.btn-info:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%) !important;
    border-color: #6d28d9 !important;
}

/* ============================================
   覆盖 gry-bg 类的背景图片 - 登录注册页面专用
   ============================================ */

/* 强制移除 gry-bg 背景图片并设置纯色背景 */
section.gry-bg.py-4,
section.gry-bg,
div.gry-bg,
.gry-bg {
    background-image: none !important;
    background-color: #f8fafc !important;
    background: #f8fafc !important;
}

/* 登录注册页面强制无背景图 */
.auth-page-wrapper section.gry-bg,
.auth-page-wrapper div.gry-bg,
.auth-page-wrapper .gry-bg,
body[class*="login"] section.gry-bg,
body[class*="register"] section.gry-bg,
body[class*="login"] div.gry-bg,
body[class*="register"] div.gry-bg {
    background-image: none !important;
    background-color: transparent !important;
    background: transparent !important;
}

/* ============================================
   登录注册页面 - 简洁大气清爽风格
   ============================================ */

/* 页面容器 */
.auth-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    position: relative;
    overflow: hidden;
}

/* 强制覆盖任何可能的背景图片 */
.auth-page-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
    z-index: 0 !important;
}

.auth-page-wrapper > * {
    position: relative;
    z-index: 1;
}

/* 背景装饰圆圈 */
.auth-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.auth-bg-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(72, 2, 151, 0.1), rgba(139, 92, 246, 0.05));
    top: -100px;
    right: -100px;
}

.auth-bg-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    bottom: -50px;
    left: -50px;
}

.auth-bg-circle-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.03));
    top: 50%;
    left: 30%;
}

/* 主容器 - 左右布局 */
.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 左侧品牌区域 */
.auth-brand-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--new-primary-color) 0%, #6b21a8 50%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* 强制隐藏左侧品牌区域在PC端 - 只显示右侧表单 */
@media (min-width: 992px) {
    .auth-brand-section {
        display: none !important;
    }
    
    .auth-form-section {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.auth-brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    color: #fff;
}

.auth-logo {
    filter: brightness(0) invert(1);
}

.auth-brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.auth-brand-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.auth-feature-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 右侧表单区域 */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    margin: 0 auto;
}

/* PC端隐藏左侧品牌区域后，表单区域占满宽度并居中 */
@media (min-width: 992px) {
    .auth-container {
        display: block !important;
        max-width: 550px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 60px 20px !important;
        float: none !important;
    }
    
    .auth-form-section {
        flex: none !important;
        display: flex !important;
        max-width: 550px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        float: none !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* 修复 Bootstrap 栅格容器居中问题 */
    .auth-page-wrapper .col-xxl-4.col-xl-5.col-lg-6.col-md-8.mx-auto,
    .auth-page-wrapper .col-xxl-5.col-xl-6.col-md-8.mx-auto {
        max-width: 550px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* 覆盖 Bootstrap 的 container 类 */
    .auth-page-wrapper .container,
    .auth-page-wrapper .container-fluid {
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
        float: none !important;
    }
}

/* 表单卡片 */
.auth-form-card {
    width: 100%;
    max-width: 550px;
    background: #fff;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-mobile-logo {
    margin-bottom: 20px;
}

.auth-mobile-logo img {
    height: 40px;
}

/* 表单头部 */
.auth-form-header {
    margin-bottom: 30px;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    margin-bottom: 0;
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    z-index: 2;
}

.auth-input {
    width: 100%;
    padding: 14px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--new-primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(72, 2, 151, 0.1);
}

.auth-input.is-invalid {
    border-color: #ef4444;
}

.auth-input::placeholder {
    color: #9ca3af;
}

/* 密码显示切换 */
.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: var(--new-primary-color);
}

/* 错误提示 */
.auth-error {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 6px;
}

.auth-error i {
    font-size: 0.9rem;
}

/* 提示文字 */
.auth-hint {
    display: block;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* 表单选项 */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

/* 自定义复选框 */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-checkbox input {
    display: none;
}

.auth-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

/* 轮播箭头样式 */
.aiz-carousel .slick-prev,
.aiz-carousel .slick-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #e2dbed !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
}

.aiz-carousel .slick-prev:hover,
.aiz-carousel .slick-next:hover {
    background: #d4c8e8 !important;
}

.aiz-carousel .slick-prev {
    left: 10px !important;
}

.aiz-carousel .slick-next {
    right: 10px !important;
}

.auth-checkbox input:checked + .auth-checkbox-mark {
    background: var(--new-primary-color);
    border-color: var(--new-primary-color);
}

.auth-checkbox input:checked + .auth-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-checkbox-label {
    line-height: 1.4;
}

/* 链接样式 */
.auth-link {
    color: var(--new-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--new-primary-hover);
}

.auth-link-primary {
    font-weight: 600;
}

/* 提交按钮 */
.btn-auth-submit {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--new-primary-color) 0%, #6b21a8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 2, 151, 0.35);
}

.btn-auth-submit i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn-auth-submit:hover i {
    transform: translateX(3px);
}

/* 条款 */
.auth-terms {
    margin: 5px 0;
}

.auth-terms .auth-checkbox {
    align-items: flex-start;
}

.auth-terms .auth-checkbox-mark {
    margin-top: 4px;
}

/* 分隔符 */
.auth-form-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #9ca3af;
    font-size: 0.85rem;
}

.auth-form-divider::before,
.auth-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-form-divider span {
    padding: 0 15px;
}

/* 社交登录 */
.auth-social-login {
    display: flex;
    gap: 15px;
}

.btn-auth-social {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-auth-social:hover {
    border-color: var(--new-primary-color);
    background: var(--new-primary-light);
    color: var(--new-primary-color);
}

.btn-auth-social i {
    font-size: 1.2rem;
}

.btn-auth-google:hover {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
}

.btn-auth-facebook:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    color: #2563eb;
}

/* 表单底部 */
.auth-form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.auth-form-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* 返回首页 */
.auth-back-home {
    text-align: center;
    margin-top: 20px;
}

.auth-back-home .auth-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.auth-back-home .auth-link:hover {
    color: var(--new-primary-color);
}

/* Demo提示 */
.auth-demo-hint {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .auth-brand-section {
        display: none !important;
    }
    
    .auth-form-section {
        padding: 30px 15px;
    }
    
    .auth-form-card {
        padding: 30px 25px;
        border-radius: 5px;
    }
}

@media (max-width: 576px) {
    .auth-form-card {
        padding: 25px 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    }
    
    .auth-form-title {
        font-size: 1.5rem;
    }
    
    .auth-input {
        padding: 12px 40px;
        font-size: 0.9rem;
    }
    
    .auth-form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .auth-social-login {
        flex-direction: column;
    }
    
    .btn-auth-submit {
        padding: 14px 25px;
    }
    
    .auth-form-footer,
    .auth-back-home {
        margin-top: 20px;
        padding-top: 20px;
    }
}

/* ============================================
   后台成功通知 - 紫色背景 (覆盖aiz-core.css)
   ============================================ */
body .aiz-notify.alert-success,
.aiz-notify.alert-success {
    background-color: #6f42c1 !important;
    background: #6f42c1 !important;
}

/* 成功通知文字颜色 */
body .aiz-notify.alert-success .alert-text,
.aiz-notify.alert-success .alert-text,
body .aiz-notify.alert-success,
.aiz-notify.alert-success {
    color: #ffffff !important;
}

/* 成功通知关闭按钮 */
body .aiz-notify.alert-success .close {
    color: #ffffff !important;
    opacity: 0.8 !important;
}

body .aiz-notify.alert-success .close:hover {
    color: var(--dark) !important;
    opacity: 1 !important;
}

/* 成功通知进度条 */
body .aiz-notify.alert-success .progress-bar {
    background-color: rgba(255, 255, 255, 0.5) !important;
}
