/* ==========================================================================
   SIEUTHICLOUD247 MODERN THEME FOR SHOPMMOSTUDIO.COM
   Inspired by https://sieuthicloud247.com
   Font: Space Grotesk | Primary: #00c6ff -> #0072ff
   ========================================================================== */

:root {
    --primary: #00c6ff;
    --primary-light: #0072ff;
    --primary-soft: rgba(0, 198, 255, 0.08);
    --primary-shadow: rgba(0, 198, 255, 0.30);
    --primary-shadow-soft: rgba(0, 198, 255, 0.15);
    --secondary: #0072ff;
    --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --primary-gradient-hover: linear-gradient(135deg, #00b0e6 0%, #0060db 100%);
    --card-radius: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

body, html {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ==========================================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.header-top {
    background: var(--primary-gradient) !important;
    border-bottom: none !important;
    padding: 7px 0 !important;
    color: #ffffff !important;
}

.header-top a {
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    transition: opacity 0.2s ease !important;
}

.header-top a:hover {
    opacity: 0.9 !important;
    color: #ffffff !important;
}

.header-top-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.header-top-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-top-notice .dot-pulse {
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: topDotPulse 1.8s infinite;
}

@keyframes topDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.header-top-notice-badge {
    background: rgba(255, 255, 255, 0.22);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-top-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-top-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   2. MAIN HEADER & LOGO & PILL SEARCH & WIDGETS
   ========================================================================== */
.header-part {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="dark"] .header-part {
    background: #0f172a !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.header-logo img {
    height: 44px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Search input rounded pill */
.header-search-wrapper {
    flex: 1 !important;
    max-width: 580px !important;
    margin: 0 20px !important;
}

.header-form {
    position: relative !important;
    width: 100% !important;
}

.header-form input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 46px 0 42px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-full) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    transition: all 0.25s ease !important;
}

[data-theme="dark"] .header-form input {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}

.header-form input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px var(--primary-soft), 0 4px 12px var(--primary-shadow-soft) !important;
}

.header-form button[type="submit"] {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    padding: 0 !important;
    font-size: 15px !important;
    pointer-events: none !important;
}

/* Header widgets: flag, bell, heart, auth */
.header-widget-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.header-widget-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .header-widget-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.header-widget-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.header-widget-btn .count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: #3b82f6;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* User Auth Pill Button */
.user-auth-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 5px;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 198, 255, 0.25);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
    position: relative;
}

.user-auth-pill:hover {
    background: rgba(0, 198, 255, 0.14);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-shadow-soft);
}

.user-auth-pill .user-auth-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px var(--primary-shadow);
}

.user-auth-pill .user-auth-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.user-auth-pill .user-role {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

.user-auth-pill .user-action {
    font-size: 11.5px;
    font-weight: 700;
    color: #0284c7;
}

[data-theme="dark"] .user-auth-pill .user-action {
    color: #38bdf8;
}

/* ==========================================================================
   3. NAVIGATION MENU BAR
   ========================================================================== */
.navbar-part {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0 !important;
}

[data-theme="dark"] .navbar-part {
    background: #0f172a !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.sknav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 54px !important;
}

.sknav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sknav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    background: transparent !important;
}

.sknav-link iconify-icon,
.sknav-link i {
    font-size: 16px !important;
    color: #64748b !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

[data-theme="dark"] .sknav-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .sknav-link iconify-icon,
[data-theme="dark"] .sknav-link i {
    color: #94a3b8 !important;
}

.sknav-link:hover {
    color: var(--primary) !important;
    background: rgba(0, 168, 255, 0.05) !important;
}

.sknav-link:hover iconify-icon,
.sknav-link:hover i {
    color: var(--primary) !important;
}

.sknav-arrow-icon {
    font-size: 10px !important;
    opacity: 0.45 !important;
    transition: transform 0.25s ease !important;
    margin-left: 2px !important;
}

.sknav-item:hover .sknav-arrow-icon {
    transform: rotate(180deg) !important;
    opacity: 0.85 !important;
}

/* Active State (Trang Chủ) - Exactly matching SieuThiCloud247 */
.sknav-item.active .sknav-link,
.sknav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
}

.sknav-item.active .sknav-link iconify-icon,
.sknav-link.active iconify-icon,
.sknav-item.active .sknav-link i,
.sknav-link.active i {
    color: var(--primary) !important;
}

.sknav-link.active::after,
.sknav-item.active .sknav-link::after,
.sknav-indicator-bar {
    content: "" !important;
    position: absolute !important;
    bottom: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 32px !important;
    height: 3.5px !important;
    background: var(--primary) !important;
    border-radius: 4px 4px 0 0 !important;
}

/* Admin Link - Refined style matching SieuThiCloud247 */
.sknav-link.sknav-link-admin,
.sknav-link-admin {
    background: linear-gradient(135deg, #0088ff, #00c6ff) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    height: 34px !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(0, 136, 255, 0.25) !important;
    margin-left: 6px !important;
}

.sknav-link.sknav-link-admin iconify-icon,
.sknav-link.sknav-link-admin i,
.sknav-link-admin iconify-icon,
.sknav-link-admin i {
    color: #ffffff !important;
}

.sknav-link.sknav-link-admin:hover,
.sknav-link-admin:hover {
    box-shadow: 0 5px 16px rgba(0, 136, 255, 0.4) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.sknav-link.sknav-link-admin::after,
.sknav-link-admin::after {
    display: none !important;
}

/* Nav right: currency & theme toggle */
.sknav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .currency-pill-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

/* Theme switch pill */
.theme-switch-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 4px 8px;
}

.theme-pill-track {
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: #e2e8f0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-pill-track {
    background: var(--primary-gradient);
}

.theme-pill-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-pill-thumb {
    left: 21px;
}

/* ==========================================================================
   4. SYSTEM ANNOUNCEMENT BANNER (Matching SieuThiCloud247 & Admin tab=notification)
   ========================================================================== */
.system-announcement-card {
    background: #ffffff;
    border: 1px solid rgba(0, 198, 255, 0.25);
    border-radius: var(--card-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px -5px rgba(0, 198, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .system-announcement-card {
    background: #131a26;
    border-color: rgba(0, 198, 255, 0.2);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.4);
}

.system-announcement-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 24px -4px var(--primary-shadow-soft);
}

/* Bell Icon */
.announcement-bell-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 198, 255, 0.1);
    color: #0072ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

[data-theme="dark"] .announcement-bell-wrapper {
    background: rgba(0, 198, 255, 0.15);
    color: #38bdf8;
}

.announcement-bell-icon {
    font-size: 24px;
    position: relative;
    z-index: 2;
    animation: bellShake 2.5s infinite ease-in-out;
}

@keyframes bellShake {
    0%, 50%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-14deg); }
}

.announcement-bell-glow {
    position: absolute;
    inset: 4px;
    border-radius: 12px;
    background: var(--primary);
    opacity: 0.2;
    filter: blur(8px);
    transition: opacity 0.3s;
}

.system-announcement-card:hover .announcement-bell-glow {
    opacity: 0.35;
}

/* Content Wrap */
.announcement-content-wrap {
    flex: 1;
    min-width: 0;
}

.announcement-badge-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.announcement-badge-top .badge-hot {
    background: #ef4444;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.announcement-header-title {
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1;
}

[data-theme="dark"] .announcement-header-title {
    color: #f87171;
}

/* Rich Content from CKEditor */
.announcement-body-content {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
}

[data-theme="dark"] .announcement-body-content {
    color: #f1f5f9;
}

.announcement-body-content p {
    margin: 0 0 4px 0;
}

.announcement-body-content p:last-child {
    margin-bottom: 0;
}

.announcement-body-content a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 800;
}

@media (max-width: 575px) {
    .system-announcement-card {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 14px;
    }
    .announcement-bell-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .announcement-bell-icon {
        font-size: 20px;
    }
    .announcement-body-content {
        font-size: 12.5px;
    }
}

/* ==========================================================================
   5. CATEGORY FILTER HORIZONTAL PILLS (Matching Screenshot 4)
   ========================================================================== */
.parent-categories-filter {
    margin-bottom: 24px !important;
}

.parent-categories-filter .d-flex {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
}

.parent-categories-filter .d-flex::-webkit-scrollbar {
    display: none !important;
}

.btn-parent-category {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-md) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #475569 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
}

[data-theme="dark"] .btn-parent-category {
    background: #131a26 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.btn-parent-category:hover {
    border-color: var(--primary) !important;
    color: var(--secondary) !important;
    background: var(--primary-soft) !important;
    transform: translateY(-1px) !important;
}

.btn-parent-category.active {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--primary-shadow) !important;
}

.btn-parent-category.active:hover {
    color: #ffffff !important;
    background: var(--primary-gradient-hover) !important;
}

/* Child category cards */
.categories-card-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
}

.category-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 14px !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="dark"] .category-card {
    background: #131a26 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.category-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 6px 16px var(--primary-shadow-soft) !important;
    transform: translateY(-2px) !important;
}

.category-card.active-category {
    border-color: var(--primary) !important;
    background: var(--primary-soft) !important;
}

/* ==========================================================================
   6. FLASH SALE SECTION (Matching Screenshot 4)
   ========================================================================== */
.flash-sale-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .flash-sale-box {
    background: #131a26;
    border-color: rgba(255, 255, 255, 0.08);
}

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .flash-sale-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.flash-sale-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-sale-fire-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #f43f5e 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.35);
}

.flash-sale-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin: 0;
}

[data-theme="dark"] .flash-sale-title {
    color: #f1f5f9;
}

.flash-sale-status-badge {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 6px;
}

.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.countdown-box {
    background: #f43f5e;
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   7. PRODUCT CATEGORY SECTIONS & MODERN HORIZONTAL CARDS (Matching Screenshot 3)
   ========================================================================== */
.products-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
}

[data-theme="dark"] .products-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.products-section-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #0f172a !important;
    margin: 0 !important;
}

[data-theme="dark"] .products-section-title {
    color: #f8fafc !important;
}

.products-section-title::before {
    content: "" !important;
    width: 5px !important;
    height: 22px !important;
    background: var(--primary-gradient) !important;
    border-radius: 999px !important;
    display: inline-block !important;
    box-shadow: 0 0 10px var(--primary-shadow) !important;
}

.products-section-count-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .products-section-count-badge {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* Products Grid Layout: 3 columns desktop, 2 tablet, 1 mobile */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* THE MODERN PRODUCT CARD (Matching Screenshot 3) */
.product-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: var(--card-radius) !important;
    padding: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 14px !important;
    min-height: 154px !important;
    position: relative !important;
}

[data-theme="dark"] .product-card {
    background: #0c111c !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.product-card:hover {
    transform: translateY(-3px) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 14px 28px -6px var(--primary-shadow-soft), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

/* Left Image Box */
.product-card-thumb-wrap {
    width: 135px !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-md) !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    text-decoration: none !important;
}

[data-theme="dark"] .product-card-thumb-wrap {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.product-card-thumb-wrap img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.product-card:hover .product-card-thumb-wrap img {
    transform: scale(1.06) !important;
}

/* Discount Pill top-left */
.product-discount-tag {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
    z-index: 2 !important;
}

/* Auto badge bottom */
.product-auto-tag {
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 2px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 2 !important;
}

/* Right Content Box */
.product-card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
}

.product-card-top-tags {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-bottom: 5px !important;
}

.product-category-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    background: var(--primary-soft) !important;
    color: #0284c7 !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

[data-theme="dark"] .product-category-tag {
    color: #38bdf8 !important;
}

.product-delivery-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap !important;
}

.product-delivery-tag .status-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6) !important;
}

/* Title */
.product-modern-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin: 0 0 6px 0 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.2s ease !important;
}

[data-theme="dark"] .product-modern-title {
    color: #f1f5f9 !important;
}

.product-modern-title:hover {
    color: var(--secondary) !important;
}

/* Stock & Sold Progress Box */
.product-stats-box {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 6px 8px !important;
    margin-bottom: 8px !important;
}

[data-theme="dark"] .product-stats-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.product-stats-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
}

.product-stats-row .stat-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.product-stats-row .stat-num {
    color: #0f172a !important;
    font-weight: 800 !important;
}

[data-theme="dark"] .product-stats-row .stat-num {
    color: #f8fafc !important;
}

.product-progress-track {
    width: 100% !important;
    height: 4px !important;
    background: #e2e8f0 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .product-progress-track {
    background: rgba(255, 255, 255, 0.1) !important;
}

.product-progress-bar {
    height: 100% !important;
    background: var(--primary-gradient) !important;
    border-radius: 999px !important;
    box-shadow: 0 0 6px var(--primary-shadow) !important;
}

/* Price & Buy Button Row */
.product-card-bottom-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-top: 6px !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: auto !important;
}

[data-theme="dark"] .product-card-bottom-row {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

.product-price-col {
    min-width: 0 !important;
}

.product-original-price {
    font-size: 10px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    line-height: 1 !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.product-sale-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

[data-theme="dark"] .product-sale-price {
    color: #38bdf8 !important;
}

.btn-buy-modern {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: 0 3px 10px var(--primary-shadow) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.btn-buy-modern:hover {
    background: var(--primary-gradient-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 14px var(--primary-shadow) !important;
    transform: translateY(-1px) !important;
}

.btn-buy-modern:active {
    transform: scale(0.97) !important;
}

/* ==========================================================================
   8. FLOATING SOCIAL CONTACT BUTTONS (Matching Screenshot)
   ========================================================================== */
.floating-contact-pills {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-contact-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.floating-contact-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
}

.floating-contact-btn.facebook {
    background: #1877f2;
}

.floating-contact-btn.zalo {
    background: #0068ff;
}

.floating-contact-btn.telegram {
    background: #229ed9;
}

.floating-contact-btn iconify-icon {
    font-size: 22px;
}

@media (max-width: 768px) {
    .header-top-contacts {
        display: none !important;
    }
    .header-top-notice {
        font-size: 11px !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .floating-contact-pills {
        right: 12px;
        bottom: 75px;
        gap: 8px;
    }
    .floating-contact-btn {
        width: 38px;
        height: 38px;
    }
    .floating-contact-btn iconify-icon {
        font-size: 19px;
    }
}

@media (max-width: 575px) {
    .product-card {
        padding: 10px !important;
        gap: 10px !important;
        min-height: 135px !important;
    }
    .product-card-thumb-wrap {
        width: 105px !important;
        padding: 6px !important;
    }
    .product-modern-title {
        font-size: 12.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    .product-stats-box {
        padding: 4px 6px !important;
        margin-bottom: 6px !important;
    }
    .product-stats-row {
        font-size: 9.5px !important;
    }
    .btn-buy-modern {
        padding: 6px 10px !important;
        font-size: 10px !important;
    }
    .product-sale-price {
        font-size: 13.5px !important;
    }
    .system-announcement-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }
    .announcement-brand-sub {
        font-size: 13px !important;
    }
}


/* ==========================================================================
   9. QUICK BUY MODAL (Matching SieuThiCloud247 Popup Screenshot)
   ========================================================================== */
/* SweetAlert2 Popup must always be above Quick Buy modal and all other overlays */
.swal2-container {
    z-index: 9999999 !important;
}

.quick-buy-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.quick-buy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 29, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: qbFadeIn 0.2s ease-out;
}

.quick-buy-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 840px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.85);
    padding: 26px 28px;
    animation: qbScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .quick-buy-dialog {
    background: #0d1527;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@keyframes qbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qbScaleIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.quick-buy-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

[data-theme="dark"] .quick-buy-close {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.quick-buy-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

[data-theme="dark"] .quick-buy-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Header */
.quick-buy-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-right: 36px;
}

[data-theme="dark"] .quick-buy-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.quick-buy-header-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    flex-shrink: 0;
}

[data-theme="dark"] .quick-buy-header-thumb {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.quick-buy-header-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.quick-buy-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.3;
}

[data-theme="dark"] .quick-buy-title {
    color: #f8fafc;
}

.quick-buy-subtitle {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: block;
}

/* Modal Body */
.quick-buy-body {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 24px;
    align-items: stretch;
    overflow-y: auto;
}

/* Left Column */
.quick-buy-col-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-buy-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

[data-theme="dark"] .quick-buy-label {
    color: #94a3b8;
}

.quick-buy-plans-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qb-plan-pill {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .qb-plan-pill {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.qb-plan-pill:hover {
    border-color: var(--primary);
    color: var(--secondary);
}

.qb-plan-pill.active {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 8px var(--primary-shadow);
}

.quick-buy-desc-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #475569;
    max-height: 180px;
    min-height: 110px;
    overflow-y: auto;
    flex: 1;
}

[data-theme="dark"] .quick-buy-desc-box {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.quick-buy-desc-inner p {
    margin-bottom: 6px;
}

.quick-buy-desc-inner p:last-child {
    margin-bottom: 0;
}

.quick-buy-desc-inner ul,
.quick-buy-desc-inner ol {
    margin-bottom: 6px;
    padding-left: 18px;
}

.quick-buy-share-section {
    margin-top: auto;
}

.quick-buy-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qb-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 17px;
    text-decoration: none !important;
    transition: transform 0.2s;
}

.qb-share-btn:hover {
    transform: translateY(-2px);
}

.qb-share-fb {
    background: #1877f2;
}

.qb-share-tele {
    background: #229ed9;
}

.qb-share-btn-copy {
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .qb-share-btn-copy {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.qb-share-btn-copy:hover {
    border-color: var(--primary);
    color: var(--secondary);
}

/* Right Column */
.quick-buy-col-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Dark Navy Price & Stock Card (Matching Screenshot 2) */
.quick-buy-price-card {
    background: #0b1329;
    border-radius: 14px;
    padding: 16px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(11, 19, 41, 0.25);
}

.qb-price-label,
.qb-stock-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.qb-price-val {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    margin: 3px 0 2px;
    line-height: 1.1;
}

.qb-price-sub {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
}

.qb-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

.qb-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
}

.qb-stock-badge.ready,
.qb-stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.qb-stock-badge.out-stock {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Custom Field Inputs */
.qb-field-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #0f172a;
    transition: border-color 0.2s;
}

[data-theme="dark"] .qb-field-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.qb-field-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Quick Buy Input Wrap with Icon */
.qb-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.qb-input-wrap .qb-input-icon {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-input-wrap .qb-field-input {
    padding-left: 38px !important;
}

/* Form Groups */
.quick-buy-form-group {
    margin-bottom: 12px;
}

/* Quantity Stepper */
.qb-quantity-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    width: 130px;
}

[data-theme="dark"] .qb-quantity-stepper {
    background: #0c111c;
    border-color: rgba(255, 255, 255, 0.08);
}

.qb-qty-btn {
    width: 38px;
    height: 36px;
    background: #f8fafc;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

[data-theme="dark"] .qb-qty-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.qb-qty-btn:hover {
    background: #e2e8f0;
}

.qb-qty-input {
    flex: 1;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #0f172a;
    background: transparent;
}

[data-theme="dark"] .qb-qty-input {
    color: #f8fafc;
}

.qb-qty-input::-webkit-inner-spin-button,
.qb-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Coupon Group */
.qb-coupon-group {
    display: flex;
    gap: 8px;
}

.qb-coupon-input {
    flex: 1;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0f172a;
}

[data-theme="dark"] .qb-coupon-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.qb-coupon-btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.qb-coupon-btn:hover {
    opacity: 0.9;
}

.qb-coupon-msg {
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
}

.qb-coupon-msg.success {
    color: #10b981;
}

.qb-coupon-msg.error {
    color: #ef4444;
}

/* Total Row */
.quick-buy-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 10px;
    border-top: 1px dashed #e2e8f0;
    margin-top: 6px;
}

[data-theme="dark"] .quick-buy-total-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.qb-total-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .qb-total-label {
    color: #94a3b8;
}

.qb-total-val {
    font-size: 21px;
    font-weight: 800;
    color: #0284c7;
    font-family: 'Space Grotesk', sans-serif;
}

[data-theme="dark"] .qb-total-val {
    color: #38bdf8;
}

/* Actions */
.quick-buy-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-quick-buy-action {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--primary-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-quick-buy-action:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-shadow);
}

.btn-quick-buy-action.btn-login-prompt {
    background: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-quick-buy-action.btn-login-prompt:hover {
    background: #1e293b !important;
}

.btn-quick-cart-action {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .btn-quick-cart-action {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.btn-quick-cart-action:hover {
    border-color: var(--primary);
    color: var(--secondary);
    background: var(--primary-soft);
}

/* Loading Overlay inside Modal */
.quick-buy-loading {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

[data-theme="dark"] .quick-buy-loading {
    background: rgba(13, 21, 39, 0.88);
    color: #f8fafc;
}

.qb-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 198, 255, 0.2);
    border-top-color: #0072ff;
    border-radius: 50%;
    animation: qbSpin 0.7s linear infinite;
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .quick-buy-dialog {
        padding: 20px 16px;
        border-radius: 18px;
    }
    .quick-buy-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .quick-buy-desc-box {
        min-height: auto;
        max-height: 120px;
    }
    .quick-buy-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .quick-buy-title {
        font-size: 16px;
    }
    .qb-price-val {
        font-size: 19px;
    }
}

/* ==========================================================================
   10. AUTH POPUP MODAL (Login & Register Popup)
   ========================================================================== */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 29, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: qbFadeIn 0.2s ease-out;
}

.auth-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.85);
    padding: 30px 28px 24px;
    animation: qbScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .auth-modal-dialog {
    background: #0d1527;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

[data-theme="dark"] .auth-modal-close {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.auth-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

[data-theme="dark"] .auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.auth-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0 2px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.25;
}

[data-theme="dark"] .auth-modal-title {
    color: #f8fafc;
}

.auth-modal-subtitle {
    font-size: 9.5px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 18px;
}

/* Tab Switcher */
.auth-tabs-switcher {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 18px;
}

[data-theme="dark"] .auth-tabs-switcher {
    background: rgba(255, 255, 255, 0.04);
}

.auth-tab-btn {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .auth-tab-btn {
    color: #94a3b8;
}

.auth-tab-btn.active {
    background: #ffffff !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 800;
}

[data-theme="dark"] .auth-tab-btn.active {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

/* Alert */
.auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Form */
.auth-form-group {
    margin-bottom: 13px;
}

.auth-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

[data-theme="dark"] .auth-label {
    color: #94a3b8;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 17px;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-input {
    width: 100%;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 42px 0 42px;
    font-size: 13px;
    color: #0f172a;
    transition: all 0.2s ease;
    font-family: inherit;
}

[data-theme="dark"] .auth-input {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.auth-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-soft);
}

[data-theme="dark"] .auth-input:focus {
    background: #0f172a;
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.auth-pwd-toggle:hover {
    color: #0f172a;
}

[data-theme="dark"] .auth-pwd-toggle:hover {
    color: #ffffff;
}

.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 4px;
}

.auth-remember-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
}

[data-theme="dark"] .auth-remember-check {
    color: #94a3b8;
}

.auth-forgot-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-forgot-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--primary-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 14px;
}

.btn-auth-submit:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-shadow);
}

.btn-auth-submit:active {
    transform: scale(0.98);
}

/* Auth Modal Social Login */
.auth-social-wrap {
    margin-top: 14px;
}

.auth-social-wrap .social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0 12px;
}

.auth-social-wrap .social-login-divider::before,
.auth-social-wrap .social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .auth-social-wrap .social-login-divider::before,
[data-theme="dark"] .auth-social-wrap .social-login-divider::after {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-social-wrap .social-login-divider span {
    padding: 0 12px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .auth-social-wrap .social-login-divider span {
    color: #94a3b8;
}

.auth-social-wrap .social-login-buttons {
    display: flex;
    margin-top: 0;
}

.auth-social-wrap .btn-google-signin {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100% !important;
    height: 44px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.auth-social-wrap .btn-google-signin:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

[data-theme="dark"] .auth-social-wrap .btn-google-signin {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .auth-social-wrap .btn-google-signin:hover {
    background: #273549 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

.auth-modal-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12.5px;
    color: #64748b;
}

[data-theme="dark"] .auth-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.auth-footer-link {
    color: var(--secondary);
    font-weight: 800;
    text-decoration: none;
    margin-left: 4px;
}

.auth-footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-modal-dialog {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }
}

/* ==========================================================================
   14. SIEUTHICLOUD247 MODERN FOOTER (Matching Screenshot)
   ========================================================================== */
.footer-cloud {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 48px 20px 36px;
    position: relative;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #475569;
}

[data-theme="dark"] .footer-cloud {
    background: #0c111c;
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.footer-cloud-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.footer-cloud-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 0.85fr 1.25fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-cloud-col {
    display: flex;
    flex-direction: column;
}

/* Cột 1: Brand & Socials */
.footer-cloud-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-cloud-logo {
    height: 46px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.footer-logo-dark {
    display: none !important;
}

.footer-logo-light {
    display: block !important;
}

[data-theme="dark"] .footer-logo-light {
    display: none !important;
}

[data-theme="dark"] .footer-logo-dark {
    display: block !important;
}

.footer-cloud-desc {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 20px 0;
    max-width: 320px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .footer-cloud-desc {
    color: #94a3b8;
}

.footer-cloud-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social-btn:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .footer-social-btn {
    background: #131a26;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

[data-theme="dark"] .footer-social-btn:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Tiêu đề các cột */
.footer-cloud-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 22px 0;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .footer-cloud-title {
    color: #ffffff;
}

/* Menu danh sách liên kết & sản phẩm */
.footer-cloud-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-cloud-nav li {
    margin: 0;
    padding: 0;
}

.footer-cloud-nav li a {
    font-size: 14px;
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.footer-cloud-nav li a:hover {
    color: #ef4444;
    transform: translateX(2px);
}

[data-theme="dark"] .footer-cloud-nav li a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-cloud-nav li a:hover {
    color: #ef4444;
}

/* Cột 4: Hỗ trợ khách hàng */
.footer-cloud-contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.footer-contact-icon {
    font-size: 18px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.footer-contact-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

[data-theme="dark"] .footer-contact-label {
    color: #94a3b8;
}

.footer-contact-val {
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}

[data-theme="dark"] .footer-contact-val {
    color: #f1f5f9;
}

/* Dòng bản quyền dưới cùng (Bottom Bar) */
.footer-cloud-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #64748b;
}

[data-theme="dark"] .footer-cloud-bottom {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.footer-cloud-copy p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

[data-theme="dark"] .footer-cloud-copy p {
    color: #94a3b8;
}

.footer-cloud-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-cloud-sublinks {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-cloud-sublinks a {
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.18s ease;
    font-size: 13px;
}

.footer-cloud-sublinks a:hover {
    color: #0f172a;
}

[data-theme="dark"] .footer-cloud-sublinks a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-cloud-sublinks a:hover {
    color: #ffffff;
}

.footer-cloud-badge-wrap {
    display: flex;
    align-items: center;
}

.footer-cloud-badge {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.footer-cloud-badge:hover {
    transform: scale(1.05);
}

/* Nút scroll to top trong floating contact pills */
.floating-contact-btn.scroll-to-top {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

[data-theme="dark"] .floating-contact-btn.scroll-to-top {
    background: #131a26 !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.15);
}

.floating-contact-btn.scroll-to-top:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    transform: scale(1.1) translateY(-2px);
}

[data-theme="dark"] .floating-contact-btn.scroll-to-top:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-cloud-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .footer-cloud {
        padding: 36px 16px 85px;
    }
    .footer-cloud-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 32px;
    }
    .footer-cloud-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .footer-cloud-bottom-right {
        flex-direction: column;
        gap: 16px;
    }
}
