/* ==========================================
   PET SHOP - GLOBAL STYLES
   ========================================== */

/* Google Fonts are now loaded directly in HTML for better performance */
/* See App.razor for font loading with preconnect and display=swap */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-blue: #0145b2;
    --primary-blue-dark: #0146b3;
    --primary-blue-light: #eaf3ff;
    --primary-orange: #ffa819;
    --primary-yellow: #ffd46b;

    /* Secondary Colors */
    --secondary-cream: #FFF5E1;
    --secondary-light-blue: #E8F4FC;
    --secondary-sky-blue: #87CEEB;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Status Colors */
    --success: #10B981;
    --warning: #ffa819;
    --error: #EF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0145b2 0%, #eaf3ff 100%);
    --gradient-orange: linear-gradient(135deg, #ffa819 0%, #ff9a5c 100%);
    --gradient-yellow: linear-gradient(135deg, #ffd46b 0%, #ffe971 100%);
    --gradient-sky: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 102, 204, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 102, 204, 0.25);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Font Family */
    --font-primary: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-blue);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

.bg-primary-blue-light {
    background-color: var(--primary-blue-light) !important;
}

/* ==========================================
   LAYOUT COMPONENTS
   ========================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.section-title .icon {
    font-size: 1.5rem;
}

/* ==========================================
   HEADER STYLES
   ========================================== */

.header {
    background: var(--primary-blue);
}

/* Top Navigation Bar */
.header-top {
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav {
    flex: 1;
}

.top-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-item {
    color: var(--white);
    padding: 8px 40px;
    padding-left: 0 !important;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.top-nav-item:hover {
    color: var(--primary-yellow);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    border: none;
}

.lang-option:hover,
.lang-option.active {
    opacity: 1;
    color: var(--white);
}

.lang-option img {
    width: 20px;
    height: 20px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.5);
}

/* Sticky Sentinel (for detecting sticky state) */
#sticky-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    pointer-events: none;
}

/* Main Header */
.header-main {
    background: var(--primary-blue);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.header-main.active {
    padding: 5px 0;
}

#HeaderSuggestCategory {
    max-height: 50px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.header-main.active #HeaderSuggestCategory {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 80px;
    transition: height 0.3s ease;
}

.header-main.active .logo-img {
    height: 60px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.logo-tagline {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.search-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 10px;
}

.search-btn,
.camera-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    background: transparent;
    color: var(--gray-500);
    border: none;
    cursor: pointer;
    color: var(--gray-600);
}

.search-buttons .lang-divider {
    color: var(--gray-200);
}

.search-btn:hover,
.camera-btn:hover {
    background: var(--gray-200);
}

/* Quick Links */
.quick-links {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 10px;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.quick-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.login-link {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 15px;
    transition: ease 0.3s;
    border: solid 2px var(--white);
}

.login-link:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.register-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 25px;
    transition: ease 0.3s;
    border: solid 2px var(--primary-yellow);
}

.register-btn:hover {
    background-color: var(--white);
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.4rem;
    transition: ease 0.3s;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.cart-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu (Logged In State) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    transition: opacity var(--transition-fast);
    padding: 4px 8px;
    border-radius: 12px;
}

.user-profile-btn:hover {
    opacity: 0.85;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.user-profile-btn:hover .user-avatar {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.3);
}

.user-avatar i {
    font-size: 1rem;
    color: var(--white);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--white);
}

.user-points {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* User Dropdown */
.user-menu {
    position: relative;
}

.user-profile-btn {
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background: var(--gray-100, #f3f4f6);
    color: var(--primary-blue);
}

.user-dropdown-item i {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.user-dropdown-item:hover i {
    color: var(--primary-blue);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--gray-200, #e5e7eb);
    margin: 4px 8px;
}

.user-dropdown-item.logout {
    color: #dc2626;
}

.user-dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-dropdown-item.logout i {
    color: #dc2626;
}

/* Top Navigation - Mega Menu Styles */
.has-mega-menu {
    position: relative;
    list-style: none;
}

.has-mega-menu>.nav-item,
.has-mega-menu>.top-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    padding: 10px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 8px;
}

.has-mega-menu>.nav-item:hover,
.has-mega-menu>.top-nav-item:hover,
.has-mega-menu.active>.nav-item,
.has-mega-menu.active>.top-nav-item {
    color: var(--primary-yellow);
}

.has-mega-menu>.top-nav-item i:first-child {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dropdown-arrow {
    font-size: 0.55rem;
    transition: transform 0.25s ease;
    margin-left: 2px;
}

.has-mega-menu:hover .dropdown-arrow,
.has-mega-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow: hidden;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 40px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.04);
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile: Close button area at top */
@media (max-width: 1023px) {
    .mega-menu {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%) translateY(-15px);
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 0 0 16px 16px;
    }

    .mega-menu::before {
        display: none;
    }

    .has-mega-menu.active .mega-menu {
        transform: translateX(-50%) translateY(0);
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .mega-menu-section {
        padding: 15px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--gray-200);
    }

    .mega-menu-section:last-child {
        border-bottom: none;
    }
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 0;
}

.mega-menu-section {
    padding: 28px 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    background: #ffffff;
}

/* Last section (All Categories) - special styling */
.mega-menu-content>.mega-menu-section:last-child {
    border-right: none;
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f4fc 100%);
    display: flex;
    flex-direction: column;
}

/* Subcategories section - spans 2 grid columns with header */
.mega-menu-section.subcategories-section {
    grid-column: 2 / 4;
    background: #ffffff;
}

.subcategories-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.subcategories-columns .category-links {
    margin-bottom: 0;
}

.mega-menu-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animal Types Grid */
.animal-types-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.animal-type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.animal-type-card:hover,
.animal-type-card.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0156d4 100%);
    border-color: var(--primary-blue);
    transform: translateX(6px);
    box-shadow: 0 8px 25px rgba(1, 69, 178, 0.25);
    color: #ffffff;
}

.animal-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fc 100%);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.animal-type-card:hover .animal-icon,
.animal-type-card.active .animal-icon {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.1);
}

.animal-type-card .arrow {
    margin-left: auto;
    color: var(--gray-300);
    transition: all 0.25s ease;
    font-size: 0.85rem;
}

.animal-type-card:hover .arrow,
.animal-type-card.active .arrow {
    color: #ffffff;
    transform: translateX(4px);
}

/* Category Links */
.category-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.category-links a {
    font-size: 0.875rem;
    color: var(--gray-700);
    padding: 8px 12px;
    transition: all 0.2s ease;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.category-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: var(--primary-blue);
    border-radius: 0 4px 4px 0;
    transition: width 0.2s ease;
}

.category-links a:hover {
    color: var(--primary-blue);
    background: rgba(1, 69, 178, 0.06);
    padding-left: 18px;
}

.category-links a:hover::before {
    width: 3px;
}

/* Category Highlight */
.category-highlight {
    margin-top: auto;
    padding-top: 20px;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0156d4 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(1, 69, 178, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.view-all-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 69, 178, 0.4);
    color: #ffffff;
}

.view-all-link:hover::before {
    left: 100%;
}

.view-all-link .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.view-all-link:hover .arrow {
    transform: translateX(5px);
}

/* Link Arrow Icons */
.category-links .link-arrow {
    font-size: 0.65rem;
    margin-right: 10px;
    color: var(--gray-400);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.category-links a:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-blue);
}

/* Animal Name */
.animal-type-card .animal-name {
    flex: 1;
    font-weight: 500;
}

/* Animal Icon styling */
.animal-icon i {
    font-size: 1.1rem;
    color: var(--primary-blue);
    transition: color 0.25s ease;
}

.animal-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.25s ease;
}

.animal-type-card:hover .animal-icon i,
.animal-type-card.active .animal-icon i {
    color: #ffffff;
}

.animal-type-card:hover .animal-icon img,
.animal-type-card.active .animal-icon img {
    filter: none;
}

/* Section header icons */
.mega-menu-section h4 i {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* All categories section */
.category-links.all-categories {
    margin-bottom: 0;
}

/* Subcategory Level 2 Headers */
.category-links .subcat-header {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.875rem;
    margin-top: 8px;
}

.category-links .subcat-header:first-child {
    margin-top: 0;
}

.category-links .subcat-header:hover {
    background: rgba(1, 69, 178, 0.08);
}

/* Subcategory Level 3 Children */
.category-links .subcat-child {
    font-size: 0.8rem;
    color: var(--gray-600);
    padding: 5px 12px 5px 28px;
    border-left: 2px solid #e0e8f0;
    margin-left: 16px;
    border-radius: 0 6px 6px 0;
}

.category-links .subcat-child:hover {
    color: var(--primary-blue);
    background: rgba(1, 69, 178, 0.04);
    border-left-color: var(--primary-blue);
    padding-left: 32px;
}

/* ==========================================
   SWIPER PRE-INIT: Prevent FOUC before JS loads
   ========================================== */

/* Before Swiper initializes, hide extra slides to prevent layout flash */
.swiper:not(.swiper-initialized) {
    overflow: hidden;
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow: hidden;
}

.swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

/* Hide nav/pagination before Swiper initializes */
.swiper:not(.swiper-initialized)~.swiper-button-prev,
.swiper:not(.swiper-initialized)~.swiper-button-next,
.swiper:not(.swiper-initialized) .swiper-button-prev,
.swiper:not(.swiper-initialized) .swiper-button-next,
.swiper:not(.swiper-initialized) .swiper-pagination {
    display: none;
}

/* ==========================================
   HERO SLIDESHOW (Swiper)
   ========================================== */

.hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4fc 0%, #f5f9fc 100%);
}


.hero-swiper {
    width: 100%;
    height: auto;
    overflow: visible;
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.hero-swiper:active {
    cursor: grabbing;
}

.hero-swiper .swiper-wrapper {
    touch-action: pan-y;
}

.hero-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Smooth dragging effect */
.hero-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Dim non-active slides for peek effect */
.hero-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.4;
}

.hero-swiper .swiper-slide-active {
    opacity: 1;
}

.hero-swiper .swiper-slide a {
    display: block;
    width: 100%;
    line-height: 0;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    touch-action: pan-y;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Navigation Buttons - FontAwesome icons */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper .swiper-button-prev {
    left: 20px;
}

.hero-swiper .swiper-button-next {
    right: 20px;
}

@media (min-width: 768px) {
    .hero-swiper .swiper-button-prev {
        left: 40px;
    }

    .hero-swiper .swiper-button-next {
        right: 40px;
    }
}

@media (min-width: 1200px) {
    .hero-swiper .swiper-button-prev {
        left: 80px;
    }

    .hero-swiper .swiper-button-next {
        right: 80px;
    }
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Hide default Swiper arrows */
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    display: none;
}

/* FontAwesome icon styling */
.hero-swiper .swiper-button-prev i,
.hero-swiper .swiper-button-next i {
    font-size: 18px;
    color: #333;
}

/* Pagination */
.hero-swiper .swiper-pagination {
    bottom: 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.hero-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-blue, #0066CC);
    border-color: var(--primary-blue, #0066CC);
    width: 32px;
    border-radius: 6px;
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .hero-swiper .swiper-button-prev i,
    .hero-swiper .swiper-button-next i {
        font-size: 14px;
    }

    .hero-swiper .swiper-pagination {
        bottom: 12px !important;
        gap: 6px;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .hero-swiper .swiper-pagination-bullet-active {
        width: 24px;
    }
}

@media (max-width: 480px) {

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .hero-swiper .swiper-button-prev {
        left: 10px;
    }

    .hero-swiper .swiper-button-next {
        right: 10px;
    }

    .hero-swiper .swiper-button-prev i,
    .hero-swiper .swiper-button-next i {
        font-size: 12px;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .hero-swiper .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* ==========================================
   HERO BANNER (Legacy/Fallback)
   ========================================== */

.hero-banner {
    position: relative;
    background: var(--gradient-sky);
    padding: 40px 0;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-mascot {
    max-width: 400px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.paw-print {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    color: var(--primary-blue);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--primary-blue);
    width: 30px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-orange {
    background: var(--gradient-orange);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-yellow {
    background: var(--gradient-yellow);
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   PRODUCT CARDS
   ========================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 10;
}

.product-badge.sale {
    background: var(--error);
    color: var(--white);
}

.product-badge.new {
    background: var(--success);
    color: var(--white);
}

.product-badge.hot {
    background: var(--primary-orange);
    color: var(--white);
}

.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.product-wishlist:hover {
    background: var(--error);
    color: var(--white);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.product-price .original {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-price .discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: var(--primary-yellow);
}

.rating-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px 20px;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
    background: var(--primary-blue-dark);
}

/* ==========================================
   CATEGORY CARDS
   ========================================== */

.categories-section {
    background: var(--gray-50);
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.section-label i {
    color: #FFB800;
    font-size: 0.75rem;
    background-color: #FFB800;
    border-radius: 4px;
    height: 25px;
}

.section-title-th {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.btn-view-all {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view-all:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.scroll-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--primary-blue, #0052A3);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.scroll-nav-btn:hover {
    background-color: var(--primary-blue, #0052A3);
    color: var(--white, #fff);
    transform: scale(1.05);
}

.categories-scroll-container {
    position: relative;
    width: 100%;
}

.categories-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.categories-scroll-item {
    flex: 0 0 calc(20% - 3.2px); /* Mobile: 5 items */
    scroll-snap-align: start;
    min-width: 0;
}

@media (min-width: 768px) {
    .categories-scroll {
        gap: 16px;
    }
    .categories-scroll-item {
        flex: 0 0 calc(16.666% - 13.333px); /* Tablet: 6 items */
    }
}

@media (min-width: 992px) {
    .categories-scroll-item {
        flex: 0 0 calc(12.5% - 14px); /* Desktop: 8 items */
    }
}

/* Categories Grid (5 per row, 2 rows) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 4px;
    padding: 8px 0;
}

.categories-grid-item {
    min-width: 0;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 16px 12px;
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 20px 16px;
    }
}

.category-card {
    background: transparent;
    padding: 0;
    text-align: center;
    border: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-image {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    padding: 0;
    transition: all var(--transition-normal);
    overflow: hidden;
    align-self: center;
}

.category-card:hover .category-image {
    border-color: var(--primary-blue);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--transition-normal);
    background-color: var(--gray-100);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-name {
    font-weight: 800;
    font-size: clamp(0.7rem, 2.5vw, 1.05rem);
    color: #2c3e50;
    text-align: center;
    word-break: break-word;
}

/* ==========================================
   FLASH SALE SECTION
   ========================================== */

.flash-sale-section {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.flash-sale-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.flash-icon {
    font-size: 1.75rem;
    color: #FFD700;
    animation: flash 0.5s ease-in-out infinite alternate;
}

@keyframes flash {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
}

.countdown-item {
    background: #1a1a1a;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 40px;
}

.countdown-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.countdown-separator {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.countdown-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.btn-view-all-flash {
    background: #FFD700;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view-all-flash:hover {
    background: #FFC800;
    transform: translateY(-2px);
}

.flash-sale-products {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.flash-sale-products::-webkit-scrollbar {
    display: none;
}

/* Flash Product Card */
.flash-product-card {
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.flash-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flash-product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
}

.flash-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.flash-product-card:hover .flash-product-image img {
    transform: scale(1.05);
}

.flash-product-info {
    padding: 12px;
}

.flash-product-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0066CC;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash-product-name {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.2rem;
}

.flash-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.flash-price-symbol {
    color: #0066CC;
    font-weight: 700;
    font-size: 0.9rem;
}

.flash-price-min,
.flash-price-max {
    color: #0066CC;
    font-weight: 700;
    font-size: 0.95rem;
}

.flash-price-dash {
    color: #0066CC;
    font-weight: 400;
}

.flash-discount-badge {
    background: #FF4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.flash-product-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.flash-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.flash-tag.free-ship {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.flash-tag.bundle-deal {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFCC80;
}

.flash-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #666;
}

.flash-product-rating i {
    color: #FFD700;
    font-size: 0.7rem;
}

.flash-product-rating .rating-value {
    font-weight: 600;
    color: #333;
}

.flash-product-rating .rating-separator {
    color: #999;
}

.flash-product-rating .sold-count {
    color: #666;
}

/* Hero Bootstrap Carousel */
.hero-carousel {
    border-radius: 0;
    overflow: hidden;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 16px;
}

.hero-carousel .carousel-control-next {
    right: 16px;
}

.carousel-nav-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.carousel-nav-icon:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-nav-icon i {
    color: #333;
    font-size: 0.9rem;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 12px;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

.hero-carousel .carousel-item {
    transition: transform 0.5s ease-in-out;
}

@media (max-width: 768px) {

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
}

/* Flash Sale Scroll (CSS scroll-snap) */
.flash-sale-scroll-container {
    position: relative;
}

.flash-sale-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.flash-sale-scroll::-webkit-scrollbar {
    display: none;
}

.flash-sale-scroll-item {
    flex: 0 0 calc(42% - 6px);
    scroll-snap-align: start;
}

@media (min-width: 480px) {
    .flash-sale-scroll-item {
        flex: 0 0 calc(40% - 8px);
    }
}

@media (min-width: 640px) {
    .flash-sale-scroll-item {
        flex: 0 0 calc(28.5% - 9px);
    }
}

@media (min-width: 768px) {
    .flash-sale-scroll-item {
        flex: 0 0 calc(22.2% - 10px);
    }
}

@media (min-width: 1024px) {
    .flash-sale-scroll-item {
        flex: 0 0 calc(18.2% - 13px);
    }
}

@media (min-width: 1280px) {
    .flash-sale-scroll-item {
        flex: 0 0 calc(16.7% - 10px);
    }
}

/* ==========================================
   CLEARANCE / BEST SELLERS SECTION
   ========================================== */

.clearance-section {
    background: var(--white);
    padding: 40px 0;
}

.clearance-section .section-header {
    margin-bottom: 20px;
}

.clearance-section .section-title-th {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.clearance-section .products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .clearance-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .clearance-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .clearance-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* ==========================================
   HOT PRODUCTS / RECOMMENDED SECTION
   ========================================== */

.hot-products-section {
    background: var(--white);
    padding: 40px 0;
}

.hot-products-section .section-header {
    margin-bottom: 20px;
}

.hot-products-section .section-title-th {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.hot-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .hot-products-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hot-products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hot-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* ==========================================
   PROMO BANNERS
   ========================================== */

.promo-banners {
    position: relative;
    padding-bottom: 40px;
    padding-top: 40px;
}

/* ==========================================
   COUPON SCROLL SECTION
   ========================================== */

.coupon-scroll-section {
    padding: 20px 0 8px;
}

/* Scroll container */
.coupon-scroll-container {
    position: relative;
}

.coupon-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.coupon-scroll::-webkit-scrollbar {
    display: none;
}

/* Desktop: 6 columns, 1 row (scroll) */
.coupon-scroll-item {
    flex: 0 0 calc(100% / 6 - 10px);
    scroll-snap-align: start;
}

.coupon-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.coupon-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.coupon-card:hover img {
    transform: scale(1.03);
}

/* Collect Button — matches site theme */
.coupon-collect-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 5px 16px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    z-index: 2;
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(1, 69, 178, 0.35);
    letter-spacing: 0.02em;
}

.coupon-collect-btn:hover {
    background: var(--primary-orange);
    box-shadow: 0 4px 14px rgba(255, 168, 25, 0.45);
    transform: scale(1.05);
}

.coupon-collect-btn:active {
    transform: scale(0.97);
}

.coupon-collect-btn.collected {
    background: var(--success);
    color: var(--white);
    cursor: default;
    box-shadow: var(--shadow-sm);
    opacity: 0.85;
}

.coupon-collect-btn.collected:hover {
    background: var(--success);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.coupon-collect-btn.collected i {
    margin-right: 2px;
    font-size: 0.65rem;
}

/* Responsive sizing */

/* Tablet: 5 columns, 1 row (scroll) */
@media (max-width: 1200px) {
    .coupon-scroll-item {
        flex: 0 0 calc(100% / 5 - 10px);
    }
}

/* Mobile: 4 columns, 2 rows (grid, no scroll) */
@media (max-width: 768px) {
    .coupon-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        overflow-x: visible;
        scroll-snap-type: none;
        max-height: none;
    }

    .coupon-scroll-item {
        flex: none;
    }

    /* Hide items beyond the 8th (4x2) */
    .coupon-scroll-item:nth-child(n+9) {
        display: none;
    }

    .coupon-scroll-section {
        padding: 16px 0 4px;
    }

    .coupon-card {
        border-radius: var(--radius-md);
    }

    .coupon-collect-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
        bottom: 5px;
        right: 5px;
    }
}


/* ==========================================
   PROMOTION SECTION
   ========================================== */

.promotion-section {
    padding: 40px 0 48px;
}

.promo-section-inner {
    position: relative;
    padding: 40px 44px 44px;
    background: linear-gradient(135deg, #002d8a 0%, #0145B2 40%, #1a6de0 100%);
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
}

/* Subtle diagonal stripe pattern overlay */
.promo-section-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 18px,
        rgba(255, 255, 255, 0.025) 18px,
        rgba(255, 255, 255, 0.025) 20px
    );
    pointer-events: none;
    z-index: 0;
}

/* Radial glow behind featured area */
.promo-section-inner::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 55%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative floating shapes */
.promo-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.promo-decor-1 {
    width: 160px;
    height: 160px;
    top: -40px;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
    animation: promoFloat 8s ease-in-out infinite;
}

.promo-decor-2 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    right: 25%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: promoFloat 6s ease-in-out infinite reverse;
}

.promo-decor-3 {
    width: 70px;
    height: 70px;
    top: 30%;
    right: 3%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
    animation: promoFloat 10s ease-in-out infinite 2s;
}

@keyframes promoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.08); }
}

/* Section header */
.promotion-section .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
}

.promotion-section .section-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promotion-section .section-label i {
    color: #FFB800;
    margin-right: 2px;
}

.promotion-section .section-title-th {
    color: var(--white);
    font-size: 1.85rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.promotion-section .section-title-th::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #FFB800, #FF8C00);
    border-radius: 3px;
}

/* Nav buttons */
.promotion-nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.promo-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.06);
}

.promo-see-all-btn:hover {
    background: linear-gradient(135deg, #FFB800, #FF8C00);
    border-color: #FFB800;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.35);
}

.promo-see-all-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.promo-see-all-btn:hover i {
    transform: translateX(3px);
}

.promo-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}

.promo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

/* Content layout */
.promotion-content {
    display: flex;
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Featured banner (left) */
.promotion-banner {
    flex: 0 0 27%;
    max-width: 27%;
    display: block;
}

.promotion-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform 0.35s ease;
}

.promotion-banner:hover img {
    transform: scale(1.03);
}

/* Scroll container */
.promotion-scroll-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

.promotion-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px;
    height: 100%;
    overscroll-behavior-x: contain;
    cursor: grab;
}

.promotion-scroll:active {
    cursor: grabbing;
}

.promotion-scroll::-webkit-scrollbar {
    display: none;
}

.promotion-scroll-item {
    flex: 0 0 calc(50% - 8px);
    scroll-snap-align: start;
    display: flex;
}

/* Slide image link */
.promotion-slide-link {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.promotion-slide-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.promotion-slide-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.promotion-slide-link:hover img {
    transform: scale(1.03);
}

/* General scroll nav buttons (shared by flash sale, coupons, etc.) */
.scroll-nav-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid rgba(0, 0, 0, 0.6);
    color: var(--black);
    font-size: 16px;
}

.scroll-nav-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--black);
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .promotion-scroll-item {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (min-width: 1024px) {
    .promotion-scroll-item {
        flex: 0 0 calc(25% - 12px);
    }
}

@media (max-width: 1024px) {
    .promo-section-inner {
        padding: 32px 28px 36px;
    }

    .promotion-banner {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

@media (max-width: 768px) {
    .promotion-section {
        padding: 24px 0 32px;
    }

    .promo-section-inner {
        padding: 24px 18px 28px;
        border-radius: 18px;
    }

    .promotion-section .section-title-th {
        font-size: 1.4rem;
    }

    .promotion-content {
        flex-direction: column;
        gap: 16px;
    }

    .promotion-banner {
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .promotion-banner img {
        max-width: 280px;
        margin: 0 auto;
    }

    .promotion-scroll-container {
        flex: none;
        max-width: 100%;
    }

    .promotion-scroll-item {
        flex: 0 0 calc(55% - 8px);
    }

    .promo-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .promo-see-all-btn {
        padding: 7px 16px;
        font-size: 0.8rem;
    }

    .promo-decor { display: none; }
}

@media (max-width: 480px) {
    .promo-section-inner {
        padding: 20px 14px 24px;
        border-radius: 14px;
    }

    .promotion-section .section-title-th {
        font-size: 1.2rem;
    }

    .promotion-scroll-item {
        flex: 0 0 calc(70% - 8px);
    }

    .promo-nav-btn {
        display: none;
    }
}

/* ==========================================
   STORE FEATURES
   ========================================== */

.store-features-section {
    padding: 60px 0;
    background-color: var(--primary-blue-light);
    background-image: url('/images/bone.svg'), url('/images/bone-2.svg');
    background-position: 10% 10%, 95% 15%;
    background-size: 5%, 3%;
    background-repeat: no-repeat;
}

/* Shop Cards */
.shop-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Staggered card layout */
.col-6:nth-child(odd) .shop-card {
    margin-top: 20px;
}

.col-6:nth-child(even) .shop-card {
    margin-top: -20px;
}

.shop-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.4), 0 0 30px rgba(0, 102, 204, 0.3);
}

.shop-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.shop-card:hover .shop-card-image {
    filter: blur(6px);
    transform: scale(1.05);
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card>.shop-card-icon {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-orange);
    transition: all 0.4s ease;
    z-index: 4;
}

.shop-card:hover>.shop-card-icon {
    bottom: 68%;
    border-color: var(--primary-orange);
}

.shop-card>.shop-card-name {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    z-index: 4;
}

.shop-card:hover>.shop-card-name {
    bottom: 52%;
    text-shadow: none;
}

.shop-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.5) 0%, rgba(0, 82, 165, 0.5) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 45%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.shop-card:hover .shop-card-overlay {
    opacity: 1;
}

/* Hide the overlay icon and title since we're using the ones that move up */
.shop-card-overlay .shop-card-icon,
.shop-card-overlay .shop-card-title {
    display: none;
}

.shop-card-overlay .shop-card-address {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 12px;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.shop-card:hover .shop-card-overlay .shop-card-address {
    transform: scale(1);
    opacity: 1;
}

.shop-card-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-orange);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 8px 18px;
    border-radius: 50px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease 0.15s, opacity 0.4s ease 0.15s, background 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover .shop-card-map-link {
    transform: scale(1);
    opacity: 1;
}

.shop-card-map-link:hover {
    background: #ffb347;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

@media (max-width: 767.98px) {
    .shop-card {
        aspect-ratio: 4 / 5;
    }

    .shop-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 102, 204, 0.35), 0 0 20px rgba(0, 102, 204, 0.25);
    }

    .shop-card>.shop-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 70px;
    }

    .shop-card:hover>.shop-card-icon {
        bottom: 68%;
    }

    .shop-card>.shop-card-name {
        font-size: 0.9rem;
        bottom: 35px;
    }

    .shop-card:hover>.shop-card-name {
        bottom: 52%;
    }

    .shop-card-overlay {
        padding-top: 48%;
    }

    .shop-card-overlay .shop-card-address {
        font-size: 0.6rem;
        line-height: 1.5;
    }

    .shop-card-map-link {
        font-size: 0.7rem;
        padding: 6px 14px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--secondary-light-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* ==========================================
   CLICK & COLLECT SECTION
   ========================================== */

.click-collect-section {
    background-color: #FFE7A7;
    background-image: url('/images/yellow-bone-2.svg'), url('/images/yellow-bone.svg');
    background-repeat: no-repeat;
    background-position: 85% 95%, 85% 5%;
    background-size: 6%, 7%;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.click-collect-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.click-collect-left {
    position: relative;
}

.click-collect-header {
    margin-bottom: 20px;
}

.lightning-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.click-collect-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.click-collect-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
}

.click-collect-phone {
    position: relative;
    max-width: 420px;
}

.click-collect-phone img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.click-collect-right {
    display: flex;
    align-items: center;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.service-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.service-card-link:hover {
    gap: 12px;
    color: #004499;
}

.service-card-link i {
    font-size: 0.875rem;
}

/* Responsive for Click & Collect */
@media (max-width: 991px) {
    .click-collect-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .click-collect-phone {
        max-width: 320px;
        margin: 0 auto;
    }

    .service-cards-grid {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .click-collect-section {
        padding: 40px 0;
    }

    .click-collect-title {
        font-size: 2rem;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }
}

/* ==========================================
   NEWSLETTER / APP DOWNLOAD SECTION
   ========================================== */

/* Member Banner Section */
.member-banner-section {
    padding: 80px 0 40px;
}

.member-banner {
    background: #0145B2;
    border-radius: 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    position: relative;
    min-height: 280px;
    /* No overflow:hidden - allows image to extend above */
}

.member-banner-content {
    padding: 40px 50px;
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-banner-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd93d;
    margin-bottom: 16px;
    line-height: 1.3;
}

.member-banner-desc {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.6;
    opacity: 0.95;
}

.member-banner-btn {
    display: inline-block;
    background: #ffd93d;
    color: #1a4b9c;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.member-banner-btn:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 217, 61, 0.4);
}

/* Image column - use position relative to allow image to break out */
.member-banner>.col-12.col-md-6:last-child {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100%;
}

.member-banner-image {
    position: relative;
    bottom: 0;
    max-width: 100%;
    height: auto;
    /* This transforms the image upward without affecting layout */
    transform: translateY(-50px);
    z-index: 1;
}

@media (max-width: 991.98px) {
    .member-banner-section {
        padding: 60px 0 30px;
    }

    .member-banner {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .member-banner-content {
        padding: 30px 30px 20px;
        align-items: center;
    }

    .member-banner-title {
        font-size: 1.5rem;
    }

    .member-banner>.col-12.col-md-6:last-child {
        justify-content: center;
    }

    .member-banner-image {
        max-height: 250px;
        transform: translateY(-30px);
    }
}

@media (max-width: 575.98px) {
    .member-banner {
        border-radius: 0;
    }
    
    .member-banner-section {
        padding: 0px;
    }

    .member-banner-content {
        padding: 25px 20px 15px;
    }

    .member-banner-title {
        font-size: 1.25rem;
    }

    .member-banner-desc {
        font-size: 0.875rem;
    }

    .member-banner-btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }

    .member-banner-image {
        max-height: 200px;
        transform: translateY(0px);
    }
}

/* ==========================================
   PET GALLERY / BRAND PARTNERS
   ========================================== */

.brands-section {
    padding: 60px 0;
    background: var(--white);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.brand-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.brand-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.brand-card:hover .brand-logo img {
    transform: scale(1.08);
}

.brand-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
}

/* Brands Grid Responsive */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .brand-card {
        padding: 16px 12px;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================
   PROMO BANNERS SLIDESHOW
   ========================================== */

.promo-banners {
    padding: 16px 0;
}

.promo-banners-slider {
    position: relative;
}

.promo-banners-scroll {
    display: flex;
    gap: 16px;
}

.promo-banner-item {
    flex: 1 1 0;
    min-width: 0;
}

.promo-banner-item img {
    border-radius: 12px;
}

/* Promo Banners Dot Indicators */
.promo-banners-dots {
    display: none;
}

/* Promo Banners Mobile Slideshow */
@media (max-width: 768px) {
    .promo-banners-scroll {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

    .promo-banners-scroll::-webkit-scrollbar {
        display: none;
    }

    .promo-banner-item {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        padding: 0 2px;
    }

    .promo-banners-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .promo-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: var(--gray-300, #d1d5db);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .promo-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--primary-blue);
    }
}

/* ==========================================
   BRAND LOGOS ROW (Homepage compact)
   ========================================== */

.brand-logos-section {
    padding: 40px 0;
    background: var(--white);
}

.brand-logos-slider {
    position: relative;
}

.brand-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 0;
}

.brand-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    flex: 0 0 calc(100% / 6);
    max-width: calc(100% / 6);
    padding: 0 8px;
    box-sizing: border-box;
}

.brand-logo-item:hover {
    transform: translateY(-4px);
}

.brand-logo-circle {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-normal);
    border-radius: 50%;
}

.brand-logo-item:hover .brand-logo-circle {
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.brand-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.brand-logo-item:hover .brand-logo-circle img {
    transform: scale(1.1);
}

/* Brand Logos Dot Indicators */
.brand-logos-dots {
    display: none;
}

/* Brand Logos Row Responsive - Mobile Slideshow */
@media (max-width: 768px) {
    .brand-logos-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding-bottom: 4px;
    }

    .brand-logos-grid::-webkit-scrollbar {
        display: none;
    }

    .brand-logo-item {
        flex: 0 0 calc(100% / 6);
        max-width: calc(100% / 6);
        padding: 0 4px;
        scroll-snap-align: none;
    }

    /* Snap on every 6th item for page-level snapping */
    .brand-logo-item:nth-child(6n+1) {
        scroll-snap-align: start;
    }

    .brand-logos-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .brand-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: var(--gray-300, #d1d5db);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .brand-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--primary-blue);
    }
}

@media (max-width: 480px) {
    .brand-logo-item {
        gap: 6px;
    }
}

/* ==========================================
   BLOG & ARTICLES SECTION
   ========================================== */
.blog-articles-section {
    padding: 80px 0;
    background: #EAF3FF;
}

.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.blog-header-left {
    max-width: 600px;
}

.blog-label {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.blog-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-subtitle {
    color: #64748B;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.btn-view-all-blog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-view-all-blog:hover {
    background: #1a3a6e;
    color: var(--white);
    transform: translateY(-2px);
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-image {
    width: 100%;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.2);
}

.blog-card-content {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-category {
    display: inline-block;
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.4;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-arrow {
    color: var(--primary-blue);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.blog-card-excerpt {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
}

.author-date {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* Responsive for blog section */
@media (max-width: 992px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-section-header {
        flex-direction: column;
        gap: 20px;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .blog-articles-section {
        padding: 50px 0;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-card-content {
        padding: 16px 20px 20px;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-left {
    flex: 1;
}

.footer-brand .logo {
    margin-bottom: 30px;
}

.footer-brand .logo-img {
    height: 100px;
    width: auto;
}

.footer-brand .brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-brand .brand-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav.footer-legal {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-nav.footer-legal a:hover {
    color: var(--primary-yellow);
}

.footer-nav a {
    color: var(--primary-yellow);
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-right {
    display: flex;
    flex-direction: column;
}

.footer-right .contact-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.social-item span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    white-space: nowrap;
}

.social-icon {
    padding: 8px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
    transition: transform var(--transition-fast);
}

.social-icon.facebook,
.social-icon.phone,
.social-icon.tiktok,
.social-icon.line {
    background-color: white;
    color: var(--primary-blue);
}

.social-item:hover .social-icon {
    transform: translateY(-3px);
}

.line-qr-box {
    width: 100%;
    display: flex;
}

.add-friend-btn {
    display: block;
    margin-left: auto;
}

.add-friend-btn img {
    width: 350px;
    height: auto;
    max-width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile-only social strip — hidden on desktop */
.footer-mobile-social {
    display: none;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .home-delivery-content,
    .app-download-content,
    .store-info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        align-items: flex-start;
    }

    .contact-section {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header-main-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
    }

    .nav-list {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }

    .nav-item {
        padding: 12px 15px;
        white-space: nowrap;
    }

    .section {
        padding: 30px 0;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .section-header {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }

    .section-title-group {
        gap: 4px;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .section-title-th {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 12px 6px;
    }

    .category-name {
        font-size: 0.75rem;
    }

    .flash-sale-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .flash-sale-title {
        flex-wrap: wrap;
        gap: 10px;
    }

    .countdown {
        margin-left: 0;
    }

    .flash-sale-scroll-container {
        padding: 0;
    }

    .clearance-section .section-title-th {
        font-size: 1.5rem;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-nav {
        gap: 20px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .delivery-features {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .category-card {
        padding: 8px 4px;
    }

    .category-card .category-name {
        font-size: 0.65rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    /* Compact product cards for 3-column mobile */
    .flash-product-card {
        border-radius: 6px;
    }

    .flash-product-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .flash-product-info {
        padding: 6px;
    }

    .flash-product-brand {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .flash-product-name {
        font-size: 0.65rem;
        min-height: unset;
        margin-bottom: 3px;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .flash-product-price {
        margin-bottom: 3px;
    }

    .flash-price-symbol,
    .flash-price-min,
    .flash-price-max {
        font-size: 0.7rem;
    }

    .flash-price-dash {
        font-size: 0.6rem;
    }

    .flash-discount-badge {
        font-size: 0.5rem;
        padding: 1px 3px;
    }

    .flash-product-tags {
        margin-bottom: 2px;
        gap: 2px;
    }

    .flash-tag {
        font-size: 0.5rem;
        padding: 1px 3px;
    }

    .flash-product-rating {
        font-size: 0.6rem;
        gap: 2px;
    }

    .flash-product-rating i {
        font-size: 0.55rem;
    }

    .sold-count {
        display: none;
    }

    /* Compact section headers */
    .section-header {
        margin-bottom: 12px;
    }

    .section-title-th {
        font-size: 1.05rem;
    }

    .btn-view-all {
        padding: 5px 12px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Tighter section spacing */
    .section {
        padding: 20px 0;
    }

    .clearance-section,
    .hot-products-section {
        padding: 20px 0;
    }

    .clearance-section .products-grid,
    .hot-products-section .products-grid {
        gap: 6px;
    }

    /* Flash sale compact */
    .flash-sale-section {
        padding: 20px 0;
    }

    .flash-sale-header {
        margin-bottom: 16px;
    }
}

/* ==========================================
   SKELETON LOADING
   ========================================== */

/* Base skeleton styles */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton text line */
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

.skeleton-text.long {
    width: 90%;
}

/* Skeleton image/square */
.skeleton-image {
    aspect-ratio: 1;
    width: 100%;
}

.skeleton-image.banner {
    aspect-ratio: 21/9;
}

.skeleton-image.card {
    aspect-ratio: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Skeleton product card */
.skeleton-product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.skeleton-product-card .skeleton-image {
    aspect-ratio: 1;
}

.skeleton-product-card .skeleton-content {
    padding: 16px;
}

.skeleton-product-card .skeleton-brand {
    height: 12px;
    width: 60px;
    margin-bottom: 8px;
}

.skeleton-product-card .skeleton-title {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-product-card .skeleton-title-2 {
    height: 16px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-product-card .skeleton-price {
    height: 20px;
    width: 80px;
    margin-bottom: 8px;
}

.skeleton-product-card .skeleton-rating {
    height: 14px;
    width: 120px;
}

/* Skeleton category card */
.skeleton-category-card {
    background: transparent;
    padding: 0;
    text-align: center;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.skeleton-category-card .skeleton-icon {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    padding: 0;
    margin: 0 auto 12px;
    overflow: hidden;
    align-self: center;
}

.skeleton-category-card .skeleton-name {
    height: 16px;
    width: 80%;
    margin: 0 auto;
}

/* Skeleton grid containers */
.skeleton-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.skeleton-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Skeleton hero banner */
.skeleton-hero {
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: 0;
}

/* Skeleton responsive */
@media (max-width: 1200px) {
    .skeleton-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .skeleton-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skeleton-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skeleton-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .skeleton-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skeleton-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Skeleton cart item */
.skeleton-cart-item {
    display: grid;
    grid-template-columns: 48px 1fr 100px 120px 80px 40px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-cart-item .skeleton-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.skeleton-cart-item .skeleton-product {
    display: flex;
    gap: 12px;
    align-items: center;
}

.skeleton-cart-item .skeleton-product-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
}

.skeleton-cart-item .skeleton-product-info {
    flex: 1;
}

.skeleton-cart-item .skeleton-product-name {
    height: 16px;
    width: 150px;
    margin-bottom: 8px;
}

.skeleton-cart-item .skeleton-product-brand {
    height: 12px;
    width: 80px;
}

.skeleton-cart-item .skeleton-variant {
    height: 14px;
    width: 60px;
}

.skeleton-cart-item .skeleton-qty {
    display: flex;
    gap: 8px;
    align-items: center;
}

.skeleton-cart-item .skeleton-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-cart-item .skeleton-qty-value {
    width: 32px;
    height: 20px;
}

.skeleton-cart-item .skeleton-price {
    height: 20px;
    width: 80px;
}

.skeleton-cart-item .skeleton-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Skeleton brand card */
.skeleton-brand-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.skeleton-brand-card .skeleton-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin: 0 auto 12px;
}

.skeleton-brand-card .skeleton-name {
    height: 16px;
    width: 70%;
    margin: 0 auto;
}

/* Skeleton brands grid */
.skeleton-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .skeleton-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .skeleton-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Skeleton blog card */
.skeleton-blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.skeleton-blog-card .skeleton-image {
    aspect-ratio: 16/9;
    width: 100%;
}

.skeleton-blog-card .skeleton-content {
    padding: 20px;
}

.skeleton-blog-card .skeleton-category {
    height: 20px;
    width: 60px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.skeleton-blog-card .skeleton-title {
    height: 20px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-blog-card .skeleton-title-2 {
    height: 20px;
    width: 75%;
    margin-bottom: 12px;
}

.skeleton-blog-card .skeleton-excerpt {
    height: 14px;
    width: 100%;
    margin-bottom: 6px;
}

.skeleton-blog-card .skeleton-excerpt-2 {
    height: 14px;
    width: 90%;
    margin-bottom: 16px;
}

.skeleton-blog-card .skeleton-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-blog-card .skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-blog-card .skeleton-author-info {
    flex: 1;
}

.skeleton-blog-card .skeleton-author-name {
    height: 14px;
    width: 100px;
    margin-bottom: 4px;
}

.skeleton-blog-card .skeleton-date {
    height: 12px;
    width: 80px;
}

/* Skeleton blog grid */
.skeleton-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .skeleton-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .skeleton-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Skeleton order card */
.skeleton-order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.skeleton-order-card .skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-order-card .skeleton-order-date {
    height: 14px;
    width: 150px;
}

.skeleton-order-card .skeleton-status {
    height: 24px;
    width: 80px;
    border-radius: var(--radius-full);
}

.skeleton-order-card .skeleton-items {
    margin-bottom: 16px;
}

.skeleton-order-card .skeleton-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.skeleton-order-card .skeleton-item:last-child {
    border-bottom: none;
}

.skeleton-order-card .skeleton-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
}

.skeleton-order-card .skeleton-item-info {
    flex: 1;
}

.skeleton-order-card .skeleton-item-name {
    height: 16px;
    width: 200px;
    margin-bottom: 8px;
}

.skeleton-order-card .skeleton-item-variant {
    height: 12px;
    width: 100px;
}

.skeleton-order-card .skeleton-item-qty {
    height: 14px;
    width: 50px;
}

.skeleton-order-card .skeleton-item-price {
    height: 16px;
    width: 80px;
}

.skeleton-order-card .skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.skeleton-order-card .skeleton-total {
    height: 20px;
    width: 120px;
}

.skeleton-order-card .skeleton-actions {
    display: flex;
    gap: 12px;
}

.skeleton-order-card .skeleton-btn {
    height: 36px;
    width: 100px;
    border-radius: var(--radius-full);
}

/* Skeleton product detail */
.skeleton-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skeleton-product-detail .skeleton-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-product-detail .skeleton-main-image {
    aspect-ratio: 1;
    width: 100%;
    border-radius: var(--radius-xl);
}

.skeleton-product-detail .skeleton-thumbs {
    display: flex;
    gap: 8px;
}

.skeleton-product-detail .skeleton-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
}

.skeleton-product-detail .skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-product-detail .skeleton-title-lg {
    height: 32px;
    width: 80%;
}

.skeleton-product-detail .skeleton-meta {
    display: flex;
    gap: 16px;
}

.skeleton-product-detail .skeleton-rating {
    height: 20px;
    width: 100px;
}

.skeleton-product-detail .skeleton-sold {
    height: 20px;
    width: 80px;
}

.skeleton-product-detail .skeleton-price-box {
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.skeleton-product-detail .skeleton-price-lg {
    height: 36px;
    width: 150px;
    margin-bottom: 8px;
}

.skeleton-product-detail .skeleton-price-original {
    height: 18px;
    width: 100px;
}

.skeleton-product-detail .skeleton-variants {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-product-detail .skeleton-variant-label {
    height: 16px;
    width: 80px;
}

.skeleton-product-detail .skeleton-variant-options {
    display: flex;
    gap: 8px;
}

.skeleton-product-detail .skeleton-variant-btn {
    height: 40px;
    width: 80px;
    border-radius: var(--radius-md);
}

.skeleton-product-detail .skeleton-qty-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skeleton-product-detail .skeleton-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skeleton-product-detail .skeleton-qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-product-detail .skeleton-qty-value {
    width: 50px;
    height: 20px;
}

.skeleton-product-detail .skeleton-stock {
    height: 16px;
    width: 100px;
}

.skeleton-product-detail .skeleton-actions {
    display: flex;
    gap: 12px;
}

.skeleton-product-detail .skeleton-btn-cart {
    height: 50px;
    flex: 1;
    border-radius: var(--radius-full);
}

.skeleton-product-detail .skeleton-btn-buy {
    height: 50px;
    flex: 1;
    border-radius: var(--radius-full);
}

@media (max-width: 992px) {
    .skeleton-product-detail {
        grid-template-columns: 1fr;
    }
}

/* Skeleton favorite card - uses product card styles */
.skeleton-favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .skeleton-favorites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Skeleton blog detail */
.skeleton-blog-detail .skeleton-header {
    max-width: 800px;
    margin: 0 auto 32px;
}

.skeleton-blog-detail .skeleton-breadcrumb {
    height: 16px;
    width: 200px;
    margin-bottom: 24px;
}

.skeleton-blog-detail .skeleton-category {
    height: 24px;
    width: 80px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.skeleton-blog-detail .skeleton-title-xl {
    height: 40px;
    width: 100%;
    margin-bottom: 12px;
}

.skeleton-blog-detail .skeleton-title-xl-2 {
    height: 40px;
    width: 70%;
    margin-bottom: 20px;
}

.skeleton-blog-detail .skeleton-excerpt {
    height: 18px;
    width: 90%;
    margin-bottom: 24px;
}

.skeleton-blog-detail .skeleton-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-blog-detail .skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-blog-detail .skeleton-author-name {
    height: 16px;
    width: 120px;
    margin-bottom: 4px;
}

.skeleton-blog-detail .skeleton-date {
    height: 14px;
    width: 100px;
}

.skeleton-blog-detail .skeleton-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
}

.skeleton-blog-detail .skeleton-content {
    max-width: 800px;
    margin: 0 auto;
}

.skeleton-blog-detail .skeleton-paragraph {
    height: 16px;
    width: 100%;
    margin-bottom: 12px;
}

.skeleton-blog-detail .skeleton-paragraph-short {
    height: 16px;
    width: 80%;
    margin-bottom: 24px;
}

/* Cart responsive skeleton */
@media (max-width: 992px) {
    .skeleton-cart-item {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }

    .skeleton-cart-item .skeleton-variant,
    .skeleton-cart-item .skeleton-qty,
    .skeleton-cart-item .skeleton-price,
    .skeleton-cart-item .skeleton-delete {
        display: none;
    }
}

/* ==========================================
   MOBILE NAVIGATION
   ========================================== */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    margin: 0 auto;
}

.mobile-menu-toggle .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation drawer */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary-blue);
    color: var(--white);
}

.mobile-nav-header .logo-img {
    height: 50px;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-content {
    padding: 20px 0;
}

.mobile-nav-section {
    padding: 0 20px;
    margin-bottom: 20px;
}

.mobile-nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding: 0 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    min-height: 48px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 16px 20px;
}

.mobile-nav-user {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.mobile-nav-user .btn-login {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.mobile-nav-user .btn-login:hover {
    background: var(--primary-blue-dark);
}

.mobile-nav-user .btn-register {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.mobile-nav-user .btn-register:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ==========================================
   ENHANCED RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet breakpoint (992px) */
@media (max-width: 992px) {

    /* Hide desktop hamburger toggle on mobile - now in bottom nav */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Hide top navigation bar on mobile */
    .header-top {
        display: none;
    }

    /* Restructure header for mobile: logo left, search center, member right */
    .header-main {
        padding: 10px 0;
    }

    .header-main.active {
        padding: 8px 0;
    }

    .header-main-content {
        gap: 0;
    }

    /* Override Bootstrap row to work as single-line flex container on mobile */
    .header-main-content .row.w-100 {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    /* Logo column - keep compact */
    .header-main-content .row > .col-auto {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0 !important;
    }

    /* Hide quick links */
    #HeaderSuggestCategory {
        display: none !important;
    }

    /* Hide desktop header actions on mobile */
    .header-actions {
        display: none !important;
    }

    /* Hide desktop search on mobile */
    .header-main .search-container {
        display: none !important;
    }

    /* Hide the entire desktop-only column on mobile */
    .header-main-content .col.my-auto {
        display: none !important;
    }

    /* Show mobile header elements */
    .mobile-header-center {
        display: flex !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 8px !important;
    }

    .mobile-header-right {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    /* Make logo smaller on mobile */
    .logo-img {
        height: 40px;
    }

    .header-main.active .logo-img {
        height: 36px;
    }

    .login-link,
    .register-btn {
        display: none;
    }

    /* Categories grid adjustment */
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

/* Mobile breakpoint enhancements (768px) */
@media (max-width: 768px) {

    /* Container padding */
    .container {
        padding: 0 16px;
    }

    /* Header adjustments */
    .header-main {
        padding: 8px 0;
    }

    .header-main.active {
        padding: 6px 0;
    }

    .logo-img {
        height: 36px;
    }

    .header-main.active .logo-img {
        height: 32px;
    }

    /* Section spacing */
    .section {
        padding: 28px 0;
    }

    /* Section headers */
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .section-title-group {
        gap: 3px;
    }

    .section-label {
        font-size: 0.7rem;
    }

    .section-title-th {
        font-size: 1.1rem;
    }

    .btn-view-all {
        padding: 6px 14px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Categories grid */
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .category-card {
        padding: 12px 6px;
    }

    .category-name {
        font-size: 0.7rem;
    }

    /* Flash sale responsive */
    .flash-sale-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .flash-sale-title {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .flash-sale-title h2 {
        font-size: 1.25rem;
    }

    .countdown {
        margin-left: 0;
        justify-content: center;
    }

    .btn-view-all-flash {
        width: 100%;
        text-align: center;
    }

    /* Promo banners */
    .promo-banners .row>div {
        margin-bottom: 12px;
    }

    /* Promotion section */
    .promo-section-inner {
        padding: 20px 14px 24px;
        border-radius: 14px;
    }

    /* Service cards */
    .service-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Footer mobile - redesigned compact layout */
    .footer {
        padding: 28px 0 0;
    }

    .footer-content {
        gap: 24px;
        margin-bottom: 20px;
    }

    .footer-brand .logo {
        margin-bottom: 12px;
    }

    .footer-brand .logo-img {
        height: 56px;
    }

    .footer-brand .brand-name {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .footer-brand .brand-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 16px;
        color: rgba(255, 255, 255, 0.75);
    }

    /* Nav as 2-column grid on mobile */
    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
    }

    .footer-nav a {
        font-size: 0.85rem;
        padding: 4px 0;
    }

    .footer-nav.footer-legal {
        margin-top: 12px;
        padding-top: 12px;
        display: flex;
        gap: 16px;
    }

    .footer-nav.footer-legal a {
        font-size: 0.75rem;
    }

    /* Hide desktop-style social section on mobile */
    .footer-right {
        display: none;
    }

    /* Show mobile social strip */
    .footer-mobile-social {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-mobile-social-row {
        display: flex;
        gap: 16px;
        justify-content: center;
    }

    .footer-mobile-social-row a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        transition: all 0.25s ease;
        text-decoration: none;
    }

    .footer-mobile-social-row a:hover {
        background: var(--primary-yellow);
        color: var(--primary-blue);
        transform: translateY(-2px);
    }

    .footer-mobile-phone {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--primary-yellow);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        padding: 6px 16px;
        border-radius: 20px;
        border: 1px solid rgba(255, 215, 0, 0.3);
        transition: all 0.25s ease;
    }

    .footer-mobile-phone:hover {
        background: rgba(255, 215, 0, 0.1);
    }

    .footer-mobile-phone i {
        font-size: 0.8rem;
    }

    /* Compact footer bottom */
    .footer-bottom {
        padding: 14px 0;
        font-size: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-img {
        height: 45px;
    }

    .cart-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .category-card {
        padding: 8px 3px;
    }

    .category-name {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    /* Products grid - compact for 3-column */
    .flash-product-card .flash-product-info {
        padding: 6px;
    }

    .flash-product-name {
        font-size: 0.65rem;
        min-height: unset;
    }

    .flash-product-price {
        font-size: 0.7rem;
    }

    /* Recommended products grid (ProductDetail page) */
    .recommended-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    /* Favorites grid (Favorites page) */
    .favorites-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .favorites-grid .product-card {
        border-radius: 6px;
        overflow: hidden;
    }

    .favorites-grid .product-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .favorites-grid .product-info {
        padding: 6px;
    }

    .favorites-grid .brand {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .favorites-grid .product-name {
        font-size: 0.65rem;
        margin-bottom: 3px;
    }

    .favorites-grid .product-name a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .favorites-grid .product-desc {
        display: none;
    }

    .favorites-grid .product-price {
        margin-bottom: 3px;
    }

    .favorites-grid .current-price {
        font-size: 0.7rem;
    }

    .favorites-grid .original-price {
        font-size: 0.55rem;
    }

    .favorites-grid .discount {
        font-size: 0.5rem;
        padding: 1px 3px;
    }

    .favorites-grid .discount-badge {
        font-size: 0.5rem;
        padding: 1px 3px;
    }

    .favorites-grid .product-meta {
        display: none;
    }

    .favorites-grid .product-rating {
        font-size: 0.6rem;
        gap: 2px;
    }

    .favorites-grid .product-rating .sold {
        display: none;
    }

    .favorites-grid .btn-remove {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    /* Blog section */
    .blog-section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .blog-title {
        font-size: 1.25rem;
    }

    /* Member banner */
    .member-banner-title {
        font-size: 1.1rem;
    }

    .member-banner-desc {
        font-size: 0.8rem;
    }

    /* Click & Collect */
    .click-collect-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 16px;
    }

    .service-card-icon {
        width: 48px;
        height: 48px;
    }

    .service-card-title {
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap targets */
    .top-nav-item,
    .nav-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .category-card,
    .flash-product-card,
    .brand-card {
        /* Remove hover transform on touch devices for better UX */
        transform: none !important;
    }

    .category-card:active,
    .flash-product-card:active,
    .brand-card:active {
        transform: scale(0.98) !important;
    }

    /* Better touch feedback */
    .btn,
    .add-to-cart-btn,
    .btn-view-all {
        min-height: 44px;
    }
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================== */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* Show bottom nav on mobile/tablet */
@media (max-width: 992px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Add padding to main content to prevent bottom nav overlap */
    .main-content-with-bottom-nav {
        padding-bottom: 80px;
    }

    /* Adjust footer bottom padding */
    .footer {
        padding-bottom: 90px;
    }
}

/* Show bottom nav on mobile/tablet */
@media (max-width: 768px) {
    /* Add padding to main content to prevent bottom nav overlap */
    .main-content-with-bottom-nav {
        padding-bottom: 0px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    min-width: 60px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item.active {
    color: var(--primary-blue);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: var(--primary-blue-light);
}

.bottom-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    border-radius: var(--radius-full);
    margin-bottom: 4px;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.bottom-nav-item:hover .bottom-nav-icon {
    background: var(--gray-100);
}

.bottom-nav-item.active:hover .bottom-nav-icon {
    background: var(--primary-blue-light);
}

/* Special center promo button */
.bottom-nav-promo .bottom-nav-icon-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c00 100%);
    border-radius: 50%;
    margin-top: -20px;
    margin-bottom: 2px;
    font-size: 1.4rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 168, 25, 0.4);
    transition: all var(--transition-fast);
}

.bottom-nav-promo:active .bottom-nav-icon-promo {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255, 168, 25, 0.4);
}

.bottom-nav-promo.active .bottom-nav-icon-promo {
    background: linear-gradient(135deg, #ff8c00 0%, var(--primary-orange) 100%);
}

/* Cart badge on bottom nav */
.bottom-nav-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    background: var(--error);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: badgePop 0.3s ease;
}

.bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ==========================================
   MOBILE HEADER ELEMENTS
   ========================================== */

/* Hide mobile-only elements on desktop by default */
.mobile-header-center {
    display: none;
    flex: 1;
    min-width: 0;
    padding: 0 10px;
}

.mobile-header-right {
    display: none;
    align-items: center;
    flex-shrink: 0;
    padding-right: 0;
}

/* Mobile Header Search Trigger */
.mobile-header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
}

.mobile-header-search:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-header-search i {
    font-size: 0.9rem;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.mobile-header-search span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide search trigger when modal is morphing open */
.mobile-header-search.morph-hidden {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Mobile Header Member Button */
.mobile-header-member {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-header-member:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.mobile-header-member:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
}

.mobile-header-member.logged-in {
    background: rgba(255, 168, 25, 0.2);
    border-color: rgba(255, 168, 25, 0.5);
    color: var(--primary-orange);
}

.mobile-header-member.logged-in:hover {
    background: rgba(255, 168, 25, 0.3);
    color: var(--primary-orange);
}

/* Mobile Member Dropdown Menu */
.mobile-member-menu {
    position: relative;
}

.mobile-member-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1998;
    -webkit-tap-highlight-color: transparent;
}

.mobile-member-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    padding: 8px;
    z-index: 1999;
    animation: mobileDropdownIn 0.2s ease-out;
}

@keyframes mobileDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bottom Nav Menu Button */
.bottom-nav-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

/* ==========================================

   ANIMATIONS
   ========================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

.visible {
    visibility: visible;
}

/* ==========================================
   BLAZOR ERROR UI
   ========================================== */

#blazor-error-ui {
    background: var(--error);
    color: var(--white);
    bottom: 0;
    box-shadow: var(--shadow-xl);
    display: none;
    left: 0;
    padding: 1rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

.blazor-error-boundary {
    background: var(--error);
    padding: 1rem;
    color: white;
}

/* Cart Badge Animation */
.cart-badge-animate {
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Cart Notification Toast */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    font-size: 0.95rem;
}

.cart-notification.success {
    background: #e6f7e6;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.cart-notification.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.cart-notification .view-cart-btn {
    padding: 6px 16px;
    background: #0066cc;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-notification .view-cart-btn:hover {
    background: #0052a3;
}

.cart-notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ==========================================
   CHAT MARKDOWN STYLES (Global fallback)
   ========================================== */
.markdown-text table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Prompt', 'Inter', sans-serif;
    font-size: 0.82rem;
    margin: 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.markdown-text thead {
    background: linear-gradient(135deg, #0056b3, #0078d4);
    color: #fff;
}
.markdown-text th {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.78rem;
    text-align: left;
    border: none;
    white-space: nowrap;
}
.markdown-text td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #334155;
    background: #fff;
}
.markdown-text tr:last-child td {
    border-bottom: none;
}
.markdown-text tbody tr:nth-child(even) td {
    background: #f8fafc;
}
.markdown-text tbody tr:hover td {
    background: #eef4ff;
}
.markdown-text ul,
.markdown-text ol {
    padding-left: 20px;
    margin: 6px 0;
    list-style: revert;
}
.markdown-text li {
    margin: 3px 0;
    line-height: 1.6;
}
