/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --primary: #D32F2F; /* Brand Red */
    --primary-hover: #B71C1C;
    --primary-light: rgba(211, 47, 47, 0.08);
    --accent: #FFC107; /* Brand Yellow */
    --accent-hover: #FFB300;
    --accent-light: rgba(255, 193, 7, 0.15);
    --secondary: #1E293B; /* Deep Blue-Gray for sophisticated darks */
    --secondary-hover: #0F172A;
    --dark: #0F172A;
    --light-bg: #F8FAFC; /* Clean White-ish background */
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --text-main: #334155;
    --text-muted: #64748B;
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, select, input, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: var(--font-heading);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(253, 56, 34, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--dark);
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-text-danger {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text-danger:hover {
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input-sm {
    padding: 6px 10px;
    font-size: 12px;
}

/* Checkbox Style */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Dividers */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.panel-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 16px 0;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
    background-color: #191919;
    color: #aeaeae;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #2c2c2c;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   MAIN HEADER & NAVIGATION (ALIEXPRESS EXACT STYLE)
   ========================================================================== */
.main-header {
    background-color: var(--card-bg);
    padding: 12px 0 0 0; /* padding bottom is handled by nav-bar */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #000000; /* Solid Black text as in screenshot */
    letter-spacing: -0.5px;
}

/* Search Bar Pill Style */
.search-container {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary); /* Brand Red */
    border-radius: var(--radius-sm); /* Not pill shaped */
    overflow: hidden;
    background-color: #ffffff;
    padding: 2px;
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    border: none;
    padding: 8px 40px 8px 16px;
    font-size: 13px;
    color: var(--dark);
    background: transparent;
}

.camera-search-icon {
    position: absolute;
    right: 14px;
    color: #777777;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
}

.camera-search-icon:hover {
    color: #000000;
}

.search-btn-round {
    background-color: var(--primary); /* Brand Red */
    border: none;
    color: #ffffff;
    width: 44px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.search-btn-round:hover {
    background-color: var(--primary-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.action-icon-small {
    font-size: 16px;
    color: var(--dark);
}

.flag-icon {
    font-size: 18px;
    line-height: 1;
}

.action-icon {
    font-size: 20px;
    color: var(--dark);
}

.nav-chevron {
    font-size: 9px;
    color: var(--text-muted);
    margin-left: 2px;
}

.action-text-wrapper {
    display: flex;
    flex-direction: column;
}

.action-subtext {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.1;
}

.action-maintext {
    font-weight: 500;
    color: var(--dark);
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Cart Badge */
.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 4px;
    line-height: 1;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(253, 56, 34, 0.3);
}

/* User Account Dropdown Menu */
.user-dropdown-trigger {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    width: 260px;
    display: none;
    flex-direction: column;
    z-index: 101;
    border: 1px solid var(--border-color);
    margin-top: 12px;
    animation: slideUpFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-trigger:hover .user-dropdown-menu {
    display: flex;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 12px; /* transparent hover bridge to prevent flicker */
}

.user-dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 24px;
    border: 6px solid transparent;
    border-bottom-color: var(--card-bg);
}

.dropdown-welcome {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 13px;
}

.dropdown-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 13px;
    color: var(--text-main);
    border-radius: var(--radius-sm);
}

.dropdown-link:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
}

.user-email {
    font-size: 11px;
    color: var(--text-muted);
}

.logout-form {
    width: 100%;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: var(--primary);
}

/* ==========================================================================
   NAVIGATION BAR (ALL CATEGORIES DRAPDOWN + HORIZONTAL LINKS)
   ========================================================================== */
.nav-bar {
    background-color: #ffffff;
    border-top: 1px solid #f2f2f2;
    padding: 8px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* All Categories Pill Dropdown */
.all-categories-btn-container {
    position: relative;
}

.all-categories-btn {
    background-color: var(--primary); /* Brand Red */
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-sm); /* Standard rounded corner */
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.all-categories-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

/* Dropdown categories flyout menu */
.categories-header-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 240px;
    display: none;
    padding: 8px 0;
    z-index: 150;
    margin-top: 8px;
    animation: slideUpFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.all-categories-btn-container:hover .categories-header-dropdown {
    display: block;
}

.dropdown-category-list {
    list-style: none;
}

.dropdown-category-item {
    position: relative;
}

.dropdown-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.dropdown-category-item:hover .dropdown-category-link {
    background-color: #fafafa;
    color: var(--primary);
}

.dropdown-subcategory-popover {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    width: 320px;
    display: none;
    z-index: 151;
    margin-left: 4px;
    animation: popIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-category-item:hover .dropdown-subcategory-popover {
    display: block;
}

.dropdown-popover-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.dropdown-popover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dropdown-popover-link {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
}

.dropdown-popover-link:hover {
    color: var(--primary);
}

/* Nav Links List */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
}

.nav-link-item {
    color: #191919;
}

.nav-link-item.text-red {
    color: var(--primary); /* Bundle deals red */
}

.nav-link-item:hover {
    color: var(--primary);
}

/* ==========================================================================
   HOMEPAGE HERO SECTION & GRID RESTRUCTURE
   ========================================================================== */

.category-title {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list {
    list-style: none;
    padding: 8px 0;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.cat-icon-wrap {
    width: 24px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.cat-name {
    flex: 1;
}

.arrow-icon {
    font-size: 10px;
    color: #ccc;
    transition: transform 0.2s ease;
}

.category-item:hover .category-link {
    background-color: var(--primary-light);
    color: var(--primary);
}

.category-item:hover .cat-icon-wrap,
.category-item:hover .arrow-icon {
    color: var(--primary);
}

.category-item:hover .arrow-icon {
    transform: translateX(2px);
}

/* Subcategory Popover Menu */
.subcategory-popover {
    position: absolute;
    top: -8px;
    left: 100%;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    width: 480px;
    display: none;
    z-index: 90;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-left: 8px;
    animation: popIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover .subcategory-popover {
    display: block;
}

.popover-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.popover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.popover-link {
    font-size: 13px;
    color: var(--text-main);
    padding: 6px 4px;
    border-radius: var(--radius-sm);
}

.popover-link:hover {
    color: var(--primary);
    background-color: var(--light-bg);
    padding-left: 8px;
}

/* ==========================================================================
   ALIEXPRESS EXACT HERO BANNER (CREAM BANNER WITH POLAROIDS)
   ========================================================================== */
.ali-hero-banner {
    background-color: #f6f8ee; /* Cream light green-yellow background */
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 48px;
    height: 300px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #ebede0;
}

.hero-left-content {
    max-width: 40%;
    z-index: 5;
}

.hero-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #111111;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 16px;
    color: #333333;
    margin-bottom: 24px;
}

.btn-shop-now {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.btn-shop-now:hover {
    background-color: #222;
    transform: scale(1.03);
}

.hero-right-graphics {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 100%;
    position: relative;
    width: 55%;
    justify-content: flex-end;
}

/* Polaroid Card Style */
.polaroid-card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 6px 6px 12px 6px;
    box-shadow: var(--shadow-md);
    width: 120px;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

.polaroid-card:hover {
    transform: translateY(-8px) rotate(0deg) !important;
    z-index: 20;
}

.polaroid-img-box {
    width: 100%;
    height: 108px;
    overflow: hidden;
    background-color: #f7f7f7;
    border-radius: 2px;
}

.polaroid-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-price-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 2px;
    text-align: center;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tilt-left {
    transform: translateY(-20px) rotate(-8deg);
}

.tilt-right {
    transform: translateY(-5px) rotate(6deg);
}

/* Blue 3D Platform Stand Render */
.blue-platform-render {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.platform-base {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #ccd9e8; /* Soft blue geometric stand */
    border-radius: var(--radius-md);
    transform: skewX(-15deg);
    box-shadow: inset 0 -4px 10px rgba(0,0,0,0.05);
}

.render-switch {
    width: 120px;
    position: absolute;
    top: 20px;
    transform: rotate(-10deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.render-fan {
    position: absolute;
    right: 10px;
    bottom: 50px;
    font-size: 32px;
    color: #4a6fa5;
    animation: spin 8s linear infinite;
}

.render-humidifier {
    position: absolute;
    left: 15px;
    bottom: 55px;
    font-size: 28px;
    color: #8da9c4;
}

/* ==========================================================================
   SECURITY NOTICE & MAIN HEADER
   ========================================================================== */
.security-privacy-notice-bar {
    background-color: #fff9f9;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    text-align: center;
    font-size: 11px;
    color: #c62828;
    margin-bottom: 24px;
    font-weight: 500;
}

.security-privacy-notice-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.security-privacy-notice-bar i {
    font-size: 12px;
}

.todays-deals-header {
    text-align: center;
    margin-bottom: 20px;
}

.todays-deals-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111111;
}

/* ==========================================================================
   TODAY'S DEALS SPLIT GRID LAYOUT (BUNDLE DEALS & SUPERDEALS)
   ========================================================================== */
.todays-deals-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.split-deal-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.split-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.split-deal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
}

.orange-badge {
    background-color: #fff3e0;
    color: #ef6c00;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.red-timer-badge {
    background-color: #ffebee;
    color: #c62828;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.split-items-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.split-item-box {
    background-color: transparent;
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.split-item-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.split-item-box a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.split-item-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background-color: #fff;
    margin-bottom: 0;
    display: block;
}

.item-price-pill {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}

.item-price-pill.discounted {
    background-color: var(--primary);
}

.item-discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Fan rotation keyframe */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
}

.deal-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.deal-discounted-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.deal-original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Progress bar */
.sales-progress-bar {
    height: 6px;
    background-color: #f1f1f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.sales-progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 3px;
}

.deal-sales-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   MORE TO LOVE GRID
   ========================================================================== */
.more-to-love-section {
    margin-bottom: 40px;
}

.section-header-simple {
    border-bottom: 2px solid var(--dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.more-love-title {
    font-size: 22px;
    text-transform: capitalize;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image-wrap {
    position: relative;
    padding-top: 100%;
    background-color: var(--light-bg);
}

.product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-details {
    padding: 16px;
}

.product-title {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 8px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 8px;
}

.stars {
    color: #ffb300;
}

.rating-val {
    font-weight: 600;
    color: var(--dark);
}

.sales-val {
    color: var(--text-muted);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-shipping-row {
    font-size: 11px;
    color: var(--success);
}

.shipping-badge {
    background-color: var(--success-light);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail-layout {
    padding-top: 16px;
    padding-bottom: 40px;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .active {
    color: var(--dark);
    font-weight: 500;
}

.product-top-grid {
    display: grid;
    grid-template-columns: 460px 1fr 260px;
    gap: 24px;
    margin-bottom: 30px;
}

/* Gallery Component */
.product-media-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-display {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding-top: 100%;
    background-color: #ffffff;
}

.main-image-display img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active, .thumbnail-item:hover {
    border-color: var(--primary);
}

/* Purchase details panel */
.product-purchase-panel {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.promo-sale-banner {
    background: linear-gradient(90deg, var(--primary), #ff6b4a);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.promo-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-detail-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.product-feedback-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.rating-stars {
    color: #ffb300;
}

.review-count-link:hover {
    text-decoration: underline;
}

/* Detail pricing box */
.detail-price-card {
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.discounted-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.discount-badge-percentage {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}

.pricing-subtext {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 8px;
}

.coupon-line-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 12px;
    color: var(--dark);
    font-weight: 500;
}

.coupon-tag {
    background-color: var(--primary);
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

/* Variants Selectors */
.variants-selectors-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-group-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.variant-group-title strong {
    color: var(--dark);
}

.variant-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-chip-btn {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.variant-chip-btn:hover {
    border-color: var(--dark);
}

.variant-chip-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Shipping Details */
.shipping-details-box {
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.shipping-price-main {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-delivery-estimate {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Quantity Selection picker */
.quantity-picker {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #ffffff;
}

.qty-btn {
    background-color: #f7f7f7;
    border: none;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: #ededed;
}

.qty-input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
}

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

.stock-left-label {
    font-size: 12px;
    color: var(--text-muted);
}

.quantity-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.action-btn-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    margin-top: 24px;
}

/* Store details panel */
.store-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-header-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.store-name-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

.store-positive-feedback {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.feedback-number {
    color: var(--success);
    font-weight: 700;
}

.store-stat-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 16px;
}

.store-stat {
    display: flex;
    justify-content: space-between;
}

.stat-lbl {
    color: var(--text-muted);
}

.stat-val {
    font-weight: 600;
}

.stat-val.high {
    color: var(--success);
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buyer-protection-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.buyer-protection-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.buyer-protection-card ul {
    list-style: none;
}

.buyer-protection-card li {
    font-size: 11px;
    color: var(--text-main);
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.buyer-protection-card li:last-child {
    margin-bottom: 0;
}

.buyer-protection-card li i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* Tabs specifications & reviews */
.product-description-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.desc-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.desc-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.desc-tab-btn:hover, .desc-tab-btn.active {
    color: var(--primary);
}

.desc-tab-btn.active {
    border-bottom-color: var(--primary);
}

.desc-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.desc-tab-content.active {
    display: block;
}

.overview-rich-text p {
    font-size: 14px;
    margin-bottom: 16px;
}

.overview-rich-text h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.overview-rich-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.overview-rich-text li {
    margin-bottom: 6px;
}

.overview-promo-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}

.specs-label {
    width: 25%;
    font-weight: 600;
    color: var(--text-muted);
    background-color: #fafafa;
}

.specs-val {
    color: var(--dark);
}

/* Reviews Panel */
.reviews-summary-box {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: #fafafa;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.reviews-avg-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.avg-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-heading);
    line-height: 1;
}

.avg-stars {
    color: #ffb300;
    margin: 8px 0;
}

.avg-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

.reviews-breakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.breakdown-row span:first-child {
    width: 50px;
}

.breakdown-row span:last-child {
    width: 30px;
    text-align: right;
}

.progress-bar-wrap {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #ffb300;
    border-radius: 4px;
}

.reviews-feed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-post {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.review-header {
    display: flex;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 6px;
}

.review-author {
    font-weight: 600;
    color: var(--dark);
}

.review-country {
    color: var(--text-muted);
}

.review-date {
    color: var(--text-muted);
    margin-left: auto;
}

.review-stars-row {
    color: #ffb300;
    font-size: 11px;
    margin-bottom: 8px;
}

.review-text {
    font-size: 13px;
    color: var(--text-main);
}

/* ==========================================================================
   SHOPPING CART PAGE
   ========================================================================== */
.cart-layout {
    padding-top: 24px;
    padding-bottom: 45px;
}

.cart-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.cart-select-all-row {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.cart-store-group {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.store-group-header {
    background-color: #fafafa;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    font-size: 13px;
}

.store-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 30px 100px 1fr 180px;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-row:hover {
    background-color: #fafafa;
}

.item-checkbox-wrap {
    align-self: center;
}

.cart-item-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variant {
    font-size: 11px;
    color: var(--text-muted);
    background-color: var(--light-bg);
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
}

.cart-item-shipping-info {
    font-size: 11px;
    color: var(--success);
    margin-top: 4px;
}

.cart-item-price-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-item-unit-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
}

.cart-qty-picker {
    border-radius: var(--radius-sm);
}

.cart-qty-picker .qty-btn {
    width: 28px;
    height: 28px;
}

.cart-qty-picker .qty-input {
    width: 36px;
    height: 28px;
    font-size: 12px;
}

.btn-delete-cart-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-delete-cart-item:hover {
    color: var(--primary);
}

/* Cart summary panel styling */
.cart-summary-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.cart-summary-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.promo-code-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.summary-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 16px 0;
}

.total-row {
    font-size: 16px;
    font-weight: 700;
}

.total-row span:last-child {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary);
}

.summary-tax-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.buyer-security-badges {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.buyer-security-badges p {
    font-size: 11px;
    color: var(--text-main);
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.buyer-security-badges p i {
    color: var(--success);
    font-size: 12px;
    flex-shrink: 0;
}

/* Empty cart layout styling */
.empty-cart-state {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 48px;
    text-align: center;
}

.empty-cart-icon {
    font-size: 64px;
    color: #aeaeae;
    margin-bottom: 16px;
}

.empty-cart-state h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-cart-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.checkout-layout {
    padding-top: 24px;
    padding-bottom: 45px;
}

.checkout-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.checkout-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 20px;
}

.checkout-card h2 {
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    background-color: var(--secondary);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

/* Payment Options Selector */
.payment-tabs-header {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.payment-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.payment-tab:hover {
    border-color: var(--dark);
}

.payment-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.payment-radio {
    accent-color: var(--primary);
}

.card-input-wrapper {
    position: relative;
}

.card-brand-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.paypal-info-text {
    font-size: 13px;
    color: var(--text-muted);
    background-color: var(--light-bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid #00457c;
}

/* Items Review Rows */
.checkout-items-list {
    display: flex;
    flex-direction: column;
}

.checkout-item-row {
    display: grid;
    grid-template-columns: 60px 1fr 180px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item-title {
    font-weight: 500;
    color: var(--dark);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-item-specs {
    font-size: 11px;
    color: var(--text-muted);
}

.checkout-item-store {
    font-size: 11px;
    color: var(--text-muted);
}

.checkout-item-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.checkout-item-price {
    color: var(--text-muted);
}

.checkout-item-total {
    font-weight: 600;
    color: var(--dark);
}

.checkout-summary-column {
    display: flex;
    flex-direction: column;
}

.checkout-summary-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.checkout-summary-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* ==========================================================================
   ORDER SUCCESS / TRACKING PAGE
   ========================================================================== */
.success-layout {
    padding-top: 40px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
}

.success-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    max-width: 720px;
    width: 100%;
    text-align: center;
}

.success-check-icon {
    font-size: 72px;
    color: var(--success);
    margin-bottom: 16px;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-card h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.success-thank-you {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.success-details-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background-color: var(--light-bg);
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    text-align: left;
}

.detail-box {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
}

/* Tracking Timeline Progress */
.tracking-timeline-container {
    text-align: left;
    margin-bottom: 35px;
    padding: 0 10px;
}

.tracking-timeline-container h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.timeline-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
    text-align: center;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
}

.step-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Completed and active states */
.timeline-step.completed .step-icon {
    border-color: var(--success);
    background-color: var(--success);
    color: #ffffff;
}

.timeline-step.completed .step-title {
    color: var(--success);
}

.timeline-step.active .step-icon {
    border-color: var(--primary);
    background-color: #ffffff;
    color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-step.active .step-title {
    color: var(--primary);
    font-weight: 700;
}

.success-recap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    margin-bottom: 35px;
}

.recap-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.recap-box h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.recap-box p {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-main);
}

.recap-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recap-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    gap: 12px;
}

.recap-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recap-item-qty {
    color: var(--text-muted);
}

.recap-item-price {
    font-weight: 600;
}

.success-actions-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   MODAL WINDOW BACKDROP
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.active {
    display: flex;
}

.auth-modal-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 400px;
    max-width: 90%;
    padding: 30px;
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--primary);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.auth-tab-btn:hover, .auth-tab-btn.active {
    color: var(--primary);
}

.auth-tab-btn.active {
    border-bottom-color: var(--primary);
}

.auth-form-container {
    display: none;
}

.auth-form-container.active {
    display: block;
}

.auth-error-message {
    color: var(--primary);
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.demo-credentials-tip {
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-top: 16px;
    font-size: 11px;
    border-left: 3px solid var(--primary);
}

.demo-credentials-tip p {
    margin-bottom: 2px;
}

.demo-credentials-tip p:last-child {
    margin-bottom: 0;
}

.spinner-icon {
    display: none;
    margin-left: 8px;
}

.btn-loading.loading .spinner-icon {
    display: inline-block;
}

.btn-loading.loading span {
    opacity: 0.8;
}

/* Become a Seller CTA inside auth modal */
.become-seller-cta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.become-seller-cta p {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.btn-become-seller {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}

.btn-become-seller:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
    color: #fff;
}

/* ==========================================================================
   ANIMATIONS KEYFRAMES
   ========================================================================== */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scaleUp {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVENESS / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 200px 1fr;
    }
    .right-promo-panel {
        display: none;
    }
    .super-deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-top-grid {
        grid-template-columns: 1fr;
    }
    .store-sidebar-panel {
        flex-direction: row;
        grid-column: span 1;
    }
    .store-header-card, .buyer-protection-card {
        flex: 1;
    }
    .cart-grid, .checkout-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary-column, .checkout-summary-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    .search-container {
        width: 100%;
    }
    .hero-section {
        grid-template-columns: 1fr;
    }
    .category-sidebar {
        display: none;
    }
    .super-deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .success-recap-grid {
        grid-template-columns: 1fr;
    }
    .success-details-row {
        grid-template-columns: 1fr 1fr;
    }
    .cart-item-row {
        grid-template-columns: 30px 60px 1fr;
    }
    .cart-item-price-actions {
        grid-column: span 3;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed var(--border-color);
        padding-top: 10px;
        margin-top: 6px;
    }
}

/* ==========================================================================
   ADMIN / VENDOR PANEL — MODERN PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* --- Layout Foundation --- */
.admin-body-layout {
    display: flex;
    min-height: 100vh;
    background: #f0f2f8;
    color: #1e2235;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* =====================================================================
   SIDEBAR — Deep navy gradient with glowing accents
   ===================================================================== */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0d0f1a 0%, #131629 60%, #0f1120 100%);
    color: #8892b0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.04);
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.admin-logo-section {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-logo-section a {
    display: flex;
    align-items: center;
    height: 52px;
    justify-content: flex-start;
}

.admin-logo-section .logo-accent {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
}

.admin-logo-section .logo-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fd3822;
    font-weight: 700;
    display: block;
    margin-top: 2px;
    opacity: 0.9;
}

/* Sidebar vendor info card */
.sidebar-vendor-card {
    margin: 0 16px 8px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-vendor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fd3822, #ff6b4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-vendor-name {
    font-size: 12px;
    font-weight: 600;
    color: #e8eaf0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-vendor-role {
    font-size: 10px;
    color: #556;
    letter-spacing: 0.5px;
}

/* Nav */
.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0 20px;
    flex: 1;
}

.nav-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(136,146,176,0.45);
    padding: 18px 24px 6px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    margin: 2px 12px;
    color: #8892b0;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    border-left: none;
    text-decoration: none;
}

.admin-nav-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.admin-nav-item:hover {
    color: #ccd6f6;
    background: rgba(255,255,255,0.06);
}

.admin-nav-item:hover i { opacity: 1; }

.admin-nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(253,56,34,0.18), rgba(253,56,34,0.08));
    box-shadow: inset 3px 0 0 #fd3822, 0 4px 14px rgba(253,56,34,0.12);
}

.admin-nav-item.active i {
    color: #fd3822;
    opacity: 1;
}

.nav-badge-pill {
    margin-left: auto;
    background: #f59e0b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 10px 20px;
}

.admin-logout-form {
    padding: 16px;
}

.admin-nav-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 10px;
    padding: 11px 16px;
    color: #f87171;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.admin-nav-logout-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(239,68,68,0.3);
    transform: translateY(-1px);
}

/* =====================================================================
   MAIN CONTENT AREA
   ===================================================================== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Header */
.admin-header {
    background: #ffffff;
    padding: 14px 32px;
    border-bottom: 1px solid #e8eaf2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #0d1117;
    margin: 0;
    letter-spacing: -0.3px;
}

.admin-header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fd3822, #ff6b4a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(253,56,34,0.3);
}

.profile-info { display: flex; flex-direction: column; }

.profile-name {
    font-size: 13px;
    font-weight: 700;
    color: #0d1117;
    margin: 0;
}

.profile-role {
    font-size: 11px;
    color: #8892b0;
    font-weight: 500;
}

/* Content Area */
.admin-content {
    padding: 28px 32px 40px;
    flex: 1;
}

/* =====================================================================
   ALERTS
   ===================================================================== */
.admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 500;
    animation: slideDownFade 0.3s ease both;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #14532d;
    border: 1px solid #86efac;
}

.alert-danger {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* =====================================================================
   KPI CARDS — Premium gradient icon style
   ===================================================================== */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #eef0f8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.025) 0%, transparent 70%);
    transform: translate(25px, -25px);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.kpi-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Gradient icon backgrounds */
.bg-soft-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.text-blue { color: #1d4ed8; }

.bg-soft-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.text-green { color: #15803d; }

.bg-soft-orange {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}
.text-orange { color: #c2410c; }

.bg-soft-purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.text-purple { color: #7c3aed; }

.kpi-details { min-width: 0; }

.kpi-details h3 {
    font-size: 11px;
    font-weight: 600;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    white-space: nowrap;
}

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0d1117;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================================
   CARDS & SPLIT GRID
   ===================================================================== */
.admin-split-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.admin-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef0f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f8;
}

.admin-card-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: #0d1117;
    margin: 0;
    letter-spacing: -0.2px;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn-admin-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #0d1117, #1e2235);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
}

.btn-admin-add:hover {
    background: linear-gradient(135deg, #1e2235, #2d3452);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.btn-admin-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #f4f5fa;
    color: #3d4463 !important;
    font-weight: 600;
    font-size: 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #e8eaf2;
}

.btn-admin-back:hover {
    background: #eef0f8;
    color: #0d1117 !important;
}

/* =====================================================================
   TABLES
   ===================================================================== */
.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: #8892b0;
    padding: 11px 16px;
    border-bottom: 1px solid #eef0f8;
    background: #f8f9fe;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.admin-table th:first-child { border-radius: 10px 0 0 0; }
.admin-table th:last-child  { border-radius: 0 10px 0 0; }

.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f0f2f8;
    color: #374151;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
    background: #f8f9fe;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.table-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eef0f8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.table-prod-name {
    font-size: 13px;
    font-weight: 600;
    color: #0d1117;
    margin-bottom: 2px;
}

.table-prod-cat {
    font-size: 11px;
    color: #8892b0;
}

.font-semibold { font-weight: 600; }

/* =====================================================================
   BADGES & STATUS PILLS
   ===================================================================== */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-processing, .status-pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-delivered, .status-shipped {
    background: #f0fdf4;
    color: #15803d;
}

.status-cancelled {
    background: #fff1f2;
    color: #be123c;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}

.badge-info    { background: rgba(29,78,216,0.07); color: #1d4ed8; }
.badge-success { background: rgba(21,128,61,0.07); color: #15803d; }
.badge-danger  { background: rgba(190,18,60,0.07); color: #be123c; }

/* =====================================================================
   ACTION BUTTONS
   ===================================================================== */
.action-buttons-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-table-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5fa;
    border: 1px solid #eef0f8;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    transition: all 0.18s ease;
    text-decoration: none;
}

.btn-table-action:hover { background: #eef0f8; }

.btn-table-action.btn-edit:hover {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.btn-table-action.btn-delete:hover {
    border-color: #fca5a5;
    color: #be123c;
    background: #fff1f2;
}

/* =====================================================================
   FORM LAYOUTS
   ===================================================================== */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-third {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eef0f8;
    padding-bottom: 10px;
    margin-bottom: 2px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #3d4463;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* Modern Inputs */
.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e4f0;
    border-radius: 10px;
    background: #fafbff;
    font-size: 13.5px;
    color: #0d1117;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.admin-input::placeholder,
.admin-textarea::placeholder {
    color: #b0b8d4;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    background: #ffffff;
}

.admin-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.admin-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Compact inputs for variants table */
.admin-input-compact {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e4f0;
    border-radius: 8px;
    font-size: 12px;
    background: #fafbff;
    font-family: 'Inter', sans-serif;
    color: #0d1117;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
    box-sizing: border-box;
}

.admin-input-compact:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-help {
    font-size: 11.5px;
    color: #8892b0;
    margin-top: 2px;
    line-height: 1.5;
}

.field-hint {
    font-size: 11px;
    color: #b0b8d4;
    margin-top: 3px;
}

/* =====================================================================
   UPLOAD CARDS — Drag-and-drop zones
   ===================================================================== */
.upload-card {
    border: 2px dashed #d1d5f0;
    border-radius: 14px;
    background: #f8f9fe;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    position: relative;
}

.upload-card:hover, .upload-card.drag-over {
    border-color: #6366f1;
    background: #eef0ff;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}

.upload-card.drag-over {
    border-style: solid;
    background: #e0e3ff;
}

.upload-card-compact {
    padding: 16px 18px;
}

.upload-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e3ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #4f46e5;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.upload-card:hover .upload-card-icon {
    transform: scale(1.08);
}

.upload-card-copy {
    flex: 1;
    min-width: 0;
}

.upload-card-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e2235;
    margin-bottom: 3px;
}

.upload-card-subtitle {
    display: block;
    font-size: 11.5px;
    color: #8892b0;
    line-height: 1.5;
}

.upload-file-preview {
    margin-top: 8px;
    font-size: 11.5px;
    color: #6366f1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.upload-preview-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #c7d2fe;
}

.upload-preview-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-preview-text strong {
    font-size: 12px;
    color: #1e2235;
}

.upload-preview-text span {
    font-size: 11px;
    color: #8892b0;
}

.upload-card-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.upload-card-button:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 4px 14px rgba(99,102,241,0.4);
    transform: translateY(-1px);
}

.file-upload-input { display: none !important; }

/* =====================================================================
   FORM INFO BOX
   ===================================================================== */
.form-info-box {
    background: linear-gradient(135deg, #eff6ff, #e0ecff);
    border: 1px solid #bfdbfe;
    padding: 16px 18px;
    border-radius: 12px;
    color: #1d4ed8;
    font-size: 12.5px;
    line-height: 1.6;
}

.form-info-box h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =====================================================================
   VARIANTS MANAGEMENT
   ===================================================================== */
.variants-management-section {
    border: 1px solid #e8eaf2;
    border-radius: 14px;
    padding: 18px;
    background: #f8f9fe;
}

.variants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.variants-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: #0d1117;
    border: none;
    padding: 0;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.section-tip {
    font-size: 11.5px;
    color: #8892b0;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-admin-add-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #0d1117, #1e2235);
    color: white !important;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.btn-admin-add-compact:hover {
    background: linear-gradient(135deg, #1e2235, #2d3452);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

.btn-remove-row {
    background: none;
    border: none;
    color: #be123c;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
}

.btn-remove-row:hover {
    background: #fff1f2;
}

/* Compact variant table */
.compact-table-wrap {
    border-radius: 10px;
    border: 1px solid #eef0f8;
    overflow: hidden;
}

.compact-table th {
    padding: 9px 12px;
    font-size: 10px;
    background: #f0f2f8;
}

.compact-table td {
    padding: 9px 10px;
}

/* =====================================================================
   FORM ACTIONS
   ===================================================================== */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef0f8;
}

.btn-form-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #fd3822, #ff5940);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(253,56,34,0.35);
    font-family: 'Inter', sans-serif;
}

.btn-form-save:hover {
    background: linear-gradient(135deg, #e02e14, #fd3822);
    box-shadow: 0 6px 20px rgba(253,56,34,0.45);
    transform: translateY(-2px);
}

.btn-form-save:active {
    transform: translateY(0);
}

.btn-form-cancel {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: #f4f5fa;
    color: #3d4463 !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.18s ease;
    border: 1px solid #e8eaf2;
    text-decoration: none;
}

.btn-form-cancel:hover {
    background: #eef0f8;
    color: #0d1117 !important;
}

/* =====================================================================
   UPLOAD LEGACY (container box)
   ===================================================================== */
.upload-container-box {
    background: #f8f9fe;
    border: 1.5px dashed #d1d5f0;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.upload-container-box:hover {
    border-color: #6366f1;
    background: #eef0ff;
}

.current-uploaded-file {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef0f8;
}

/* =====================================================================
   MISC UTILITY
   ===================================================================== */
.checkbox-form-group {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.checkbox-form-group input { cursor: pointer; }

.checkbox-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.admin-color-picker {
    width: 44px;
    height: 38px;
    padding: 0;
    border: 1.5px solid #e2e4f0;
    border-radius: 10px;
    cursor: pointer;
    background: none;
}

/* =====================================================================
   PAGINATION
   ===================================================================== */
.admin-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.admin-pagination nav {
    display: flex;
    align-items: center;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 4px;
    margin: 0;
}

.page-item .page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    color: var(--text-main);
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 38px;
    height: 38px;
}

.page-item .page-link:hover {
    z-index: 2;
    color: var(--primary);
    background-color: var(--light-bg);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    background-color: #fff;
    border-color: var(--border-color);
}

/* =====================================================================
   HERO UPLOAD GRAPHIC
   ===================================================================== */
.hero-custom-uploaded-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    height: 100%;
}

.hero-custom-uploaded-graphic img {
    max-height: 177px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 992px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-split-grid { grid-template-columns: 1fr; }
    .form-grid-two { grid-template-columns: 1fr; }
    .admin-content { padding: 20px 16px 32px; }
    .admin-header { padding: 12px 16px; }
}

@media (max-width: 600px) {
    .admin-kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-grid-third { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .btn-form-save, .btn-form-cancel { width: 100%; justify-content: center; }
}

/* ==========================================================================
   ALIEXPRESS HIGH-DENSITY FOOTER STYLES
   ========================================================================== */
.footer {
    background-color: #f2f2f2;
    color: #555555;
    padding: 40px 0 20px 0;
    font-family: var(--font-body);
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #191919;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul.two-col-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #666666;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-desc {
    color: #666666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: var(--radius-sm);
    font-size: 12px;
    background-color: #ffffff;
}

.newsletter-btn {
    padding: 8px 16px;
    background-color: #191919;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
    background-color: #000000;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #e5e5e5;
    color: #333333;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.footer-divider-line {
    height: 1px;
    background-color: #e5e5e5;
    margin: 25px auto;
    max-width: 1200px;
    width: calc(100% - 32px);
}

.footer-dense-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 16px;
    margin-bottom: 30px;
}

.dense-link-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dense-group-title {
    font-weight: 700;
    color: #333333;
    font-size: 12px;
}

.dense-links-paragraph {
    color: #888888;
    font-size: 11px;
    line-height: 1.6;
}

.dense-links-paragraph a {
    color: #666666;
    margin: 0 2px;
}

.dense-links-paragraph a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    background-color: #e8e8e8;
    padding: 20px 0;
    border-top: 1px solid #dcdcdc;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.bottom-legal-links {
    font-size: 11px;
    color: #666666;
    line-height: 1.6;
}

.bottom-legal-links a {
    color: #555555;
    margin: 0 4px;
}

.bottom-legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.copyright-text {
    font-size: 11px;
    color: #777777;
}

.payment-partners {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: #555555;
}

/* ==========================================================================
   ADMIN PANEL LISTINGS AND EXTENSIONS
   ========================================================================== */
.badge-info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.status-pill.status-pending {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

.status-pill.status-processing {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.status-pill.status-shipped {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.status-pill.status-delivered {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-pill.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   DYNAMIC HERO SLIDER & ANIMATIONS
   ========================================================================== */
.shop24-hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    height: 300px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #ebede0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 30px 48px;
    box-sizing: border-box;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 48px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #111;
    width: 20px;
    border-radius: 4px;
}

/* Floating Animations */
.float-animation-1 {
    animation: floatUp 4s ease-in-out infinite;
}

.float-animation-2 {
    animation: floatDown 4.5s ease-in-out infinite;
}

.float-animation-3 {
    animation: floatSimple 3s ease-in-out infinite;
}

.rotating-animation {
    animation: rotateFan 2.5s linear infinite;
}

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

@keyframes floatUp {
    0%, 100% { transform: translateY(-20px) rotate(-8deg); }
    50% { transform: translateY(-10px) rotate(-6deg); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(-5px) rotate(6deg); }
    50% { transform: translateY(-15px) rotate(4deg); }
}

@keyframes floatSimple {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotateFan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseHumidifier {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-slide.active .animate-fade-in-down {
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide.active .animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   Breakpoints: 1024px, 768px, 480px
   ========================================================================== */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #222;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 3px solid #fd3822;
    padding: 12px 16px 20px;
    gap: 2px;
    animation: slideDownFade 0.22s ease;
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    border-bottom: 1px solid #f4f4f4;
    text-decoration: none;
}
.mobile-nav-drawer .mobile-nav-link:hover { color: #fd3822; background: #f4f4f6; }
.mobile-nav-drawer .mobile-nav-link i { width: 20px; text-align: center; color: #777; }
.mobile-nav-drawer .mobile-nav-link.text-red { color: #fd3822; }
.mobile-nav-drawer .dropdown-divider { height: 1px; background: #e5e5e5; margin: 8px 0; }

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ENHANCED SEARCH BAR & VISUAL SEARCH STYLES
   ========================================================================== */

/* Search bar wrapper relative positioning */
#search-container-wrapper {
    position: relative;
}

.search-form {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(253, 56, 34, 0.25), 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Search Dropdown Styles */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    z-index: 1000;
    max-height: 480px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Suggestions Sections */
.suggestion-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggestion-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2px;
}

/* Tags (Recent & Trending) */
.search-tags-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.recent-search-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--light-bg);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.recent-search-item:hover {
    border-color: #d1d1d6;
    background-color: #e5e5ea;
}

.recent-search-delete {
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.recent-search-delete:hover {
    background-color: rgba(253, 56, 34, 0.15);
    color: var(--primary);
}

.trending-search-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(253, 56, 34, 0.05);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(253, 56, 34, 0.1);
}

.trending-search-item:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Suggestion Categories */
.suggestion-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-category-item:hover, .suggestion-category-item.suggestion-item-active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.suggestion-category-item i {
    font-size: 11px;
}

/* Suggestion Products */
.suggestion-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.suggestion-product-item:hover, .suggestion-product-item.suggestion-item-active {
    background-color: var(--light-bg);
    border-left-color: var(--primary);
}

.suggestion-product-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: #f9f9fb;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.suggestion-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.suggestion-product-name {
    font-weight: 500;
    font-size: 13px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.suggestion-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.suggestion-rating {
    color: #ffa726;
    display: flex;
    align-items: center;
    gap: 2px;
}

.suggestion-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.suggestion-price {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.suggestion-discount {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    background-color: var(--primary-light);
    padding: 1px 4px;
    border-radius: 2px;
}

/* Highlight matching letters */
.search-highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Loading & No Match state */
.suggestion-loading, .suggestion-no-match {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.suggestion-loading i {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Image Search Modal Styles */
.image-search-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    width: 440px;
    max-width: 90%;
    z-index: 1001;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUpFade 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-search-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.image-search-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.drag-drop-zone {
    border: 2px dashed #d1d1d6;
    background-color: rgba(244, 244, 246, 0.6);
    border-radius: var(--radius-md);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drag-drop-zone.dragover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.drag-icon {
    font-size: 36px;
    color: #8e8e93;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.drag-drop-zone:hover .drag-icon {
    transform: translateY(-4px);
    color: var(--primary);
}

.drag-text {
    font-size: 13px;
    color: var(--text-main);
}

.browse-link {
    color: var(--primary);
    font-weight: 600;
}

/* Scanning Overlay Inside Modal */
.scanning-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.scanning-preview-wrapper {
    position: relative;
    width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

#scanning-preview-img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

/* The laser scanning animation line */
.laser-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(253, 56, 34, 0), rgba(253, 56, 34, 1) 50%, rgba(253, 56, 34, 0));
    box-shadow: 0 0 10px var(--primary), 0 0 18px var(--primary);
    animation: laser-scan 2s infinite ease-in-out;
}

@keyframes laser-scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scanning-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

.scanning-spinner {
    color: var(--primary);
    font-size: 15px;
}

/* Toast Success Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1100;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 320px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    font-size: 20px;
    color: var(--success);
}

.toast-text-wrapper {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.toast-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.toast-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
}

.toast-close-btn:hover {
    color: var(--dark);
}

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; }

/* Small desktop (<=1024px) */
@media (max-width: 1024px) {
    .header-content { gap: 12px; }
    .logo-img { height: 90px; }
    .search-container { max-width: 420px; }
    .header-actions { gap: 10px; }
    .app-download, .ship-to-lang { display: none; }
    .nav-links { gap: 14px; font-size: 12px; }
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Tablet (<=768px) */
@media (max-width: 768px) {
    .main-header { padding: 8px 0 0; }
    .header-content { flex-wrap: nowrap; gap: 8px; padding-bottom: 8px; align-items: center; }
    .logo-img { height: 75px; }
    .search-container { flex: 1; max-width: unset; min-width: 0; }
    .search-input { padding: 7px 36px 7px 12px; font-size: 13px; }
    .action-text-wrapper { display: none; }
    .app-download, .ship-to-lang { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-actions { gap: 4px; }
    .header-action-item { padding: 4px; gap: 0; }
    .action-icon { font-size: 20px; }
    .nav-bar { display: none !important; }

    .shop24-hero-slider { height: 200px; border-radius: 8px; margin-bottom: 12px; }
    .hero-slide-content { flex-direction: column; justify-content: center; align-items: flex-start; padding: 20px; gap: 8px; }
    .hero-right-graphics { display: none; }
    .hero-main-title { font-size: 22px !important; line-height: 1.2; }
    .hero-subtitle { font-size: 13px !important; }
    .btn-shop-now { padding: 8px 18px; font-size: 13px; }
    .slider-dots { left: 20px; bottom: 10px; }

    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

    .todays-deals-split-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .split-items-row { grid-template-columns: repeat(3, 1fr); }
    .split-deal-header { flex-wrap: wrap; gap: 6px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom-content { flex-direction: column; gap: 12px; text-align: center; }
    .bottom-legal-links { font-size: 11px; }
    .newsletter-form { flex-direction: column; gap: 8px; }
    .newsletter-input, .newsletter-btn { border-radius: 8px !important; width: 100%; }

    .cart-layout { flex-direction: column; }
    .cart-summary-panel { width: 100%; }
    .cart-item { flex-wrap: wrap; gap: 10px; }
    .cart-item-image { width: 80px; height: 80px; flex-shrink: 0; }

    .checkout-layout { flex-direction: column; }
    .checkout-summary { width: 100%; order: -1; }

    .product-detail-layout { flex-direction: column; }
    .product-gallery { width: 100%; }
    .product-thumbnails { flex-direction: row; overflow-x: auto; }

    .auth-modal-card { width: 95vw; padding: 24px 20px; max-height: 90vh; overflow-y: auto; }

    .admin-layout, .vendor-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; max-height: 280px; overflow-y: auto; }

    .more-love-title, .todays-deals-header h2 { font-size: 18px; }
}

/* Mobile (<=480px) */
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .logo-img { height: 65px; }
    .search-input { font-size: 12px; padding: 6px 32px 6px 10px; }
    .search-btn-round { width: 28px; height: 28px; font-size: 11px; }
    .camera-search-icon { font-size: 14px; right: 10px; }
    .cart-badge { font-size: 8px; min-width: 13px; top: -5px; right: -6px; }
    .action-icon { font-size: 18px; }

    .shop24-hero-slider { height: 170px; }
    .hero-slide-content { padding: 16px; }
    .hero-main-title { font-size: 18px !important; }
    .hero-subtitle { font-size: 12px !important; }
    .btn-shop-now { padding: 7px 14px; font-size: 12px; }

    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .product-card .product-title { font-size: 12px; }
    .current-price { font-size: 13px; }
    .old-price { font-size: 11px; }
    .product-image-wrap img { height: 140px; object-fit: cover; }

    .split-items-row { grid-template-columns: repeat(2, 1fr); }
    .split-deal-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .flash-sales-section .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .flash-sales-header { flex-direction: column; gap: 10px; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-dense-links { display: none; }
    .footer-bottom-content { padding: 16px 0; }
    .payment-partners { font-size: 20px; gap: 12px; display: flex; justify-content: center; flex-wrap: wrap; }
    .copyright-text { font-size: 10px; }
    .social-links { justify-content: center; }

    .cart-item-image { width: 68px; height: 68px; }
    .qty-btn { width: 28px; height: 28px; }
    .cart-item-title { font-size: 12px; }

    .countdown-box { width: 30px !important; height: 30px !important; font-size: 13px !important; }

    .auth-modal-card { width: 98vw; border-radius: 16px; padding: 20px 16px; }

    .security-privacy-notice-bar { font-size: 11px; padding: 6px 10px; }
    .todays-deals-header h2, .more-love-title { font-size: 16px; }
    .home-layout { gap: 12px; }
}

/* Bundle Deals Slider Styles */
.bundle-deals-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.bundle-deals-slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.bundle-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 2px;
}

/* Nav Buttons */
.bundle-nav-btn {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 12px;
    color: #555;
    transition: all 0.2s ease;
}

.bundle-nav-btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.bundle-nav-btn.prev {
    left: 8px;
}

.bundle-nav-btn.next {
    right: 8px;
}

/* Dots */
.bundle-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.bundle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bundle-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Force two items per row inside slider on all screens */
.bundle-deals-slider .split-items-row {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Super Deals Slider Styles */
.super-deals-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.super-deals-slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.super-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 2px;
}

/* Nav Buttons */
.super-nav-btn {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 12px;
    color: #555;
    transition: all 0.2s ease;
}

.super-nav-btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.super-nav-btn.prev {
    left: 8px;
}

.super-nav-btn.next {
    right: 8px;
}

/* Dots */
.super-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.super-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.super-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Force two items per row inside slider on all screens */
.super-deals-slider .split-items-row {
    grid-template-columns: repeat(2, 1fr) !important;
}


