/* ===== TopTopToy - Main Styles ===== */

/* Bootstrap overrides — orange primary brand */
:root {
    --bs-primary: #FF6B35;
    --bs-primary-rgb: 255,107,53;
    --bs-link-color: #FF6B35;
    --bs-link-hover-color: #E85D2A;
}
.btn-primary {
    --bs-btn-bg: #FF6B35;
    --bs-btn-border-color: #FF6B35;
    --bs-btn-hover-bg: #E85D2A;
    --bs-btn-hover-border-color: #E85D2A;
    --bs-btn-active-bg: #E85D2A;
    --bs-btn-active-border-color: #D94F1F;
    --bs-btn-disabled-bg: #FF6B35;
    --bs-btn-disabled-border-color: #FF6B35;
}
.btn-outline-primary {
    --bs-btn-color: #FF6B35;
    --bs-btn-border-color: #FF6B35;
    --bs-btn-hover-bg: #FF6B35;
    --bs-btn-hover-border-color: #FF6B35;
    --bs-btn-active-bg: #E85D2A;
}
.text-primary { color: #FF6B35 !important; }
.bg-primary { background-color: #FF6B35 !important; }
.border-primary { border-color: #FF6B35 !important; }

:root {
    --primary: #FF6B35;
    --primary-dark: #E85D2A;
    --primary-light: #FFF0E8;
    --secondary: #1A2B4A;
    --accent: #FF6B35;
    --accent-dark: #E85D2A;
    --accent-light: #FFF0E8;
    --success: #00C896;
    --danger: #FF4757;
    --warning: #FFB800;
    --light-bg: #F7F8FC;
    --border-color: #E8EDF2;
    --text-muted: #8A9BB8;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(26,43,74,0.07);
    --shadow-md: 0 4px 20px rgba(26,43,74,0.10);
    --shadow-lg: 0 8px 40px rgba(26,43,74,0.14);
    --font-display: 'Fredoka', 'Nunito', sans-serif;
    --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    color: #333;
    background: var(--light-bg);
    padding-bottom: 0;
    overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    padding: 6px 0;
}

.top-bar-link {
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.top-bar-link:hover {
    opacity: 0.7;
}

.top-bar .btn-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0 4px;
}

.top-bar .btn-link:hover,
.top-bar .btn-link.fw-bold {
    color: var(--primary);
}

/* ===== HEADER ===== */
.main-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.main-header h1 {
    color: var(--primary);
}

.main-header .input-group {
    position: static;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: border-color 0.2s;
}

.main-header .input-group:focus-within {
    border-color: var(--primary);
}

.main-header .input-group .btn,
.main-header .input-group .dropdown-toggle {
    border: none;
}

.main-header .form-control {
    border: none;
    padding-left: 20px;
}

.main-header .form-control:focus {
    box-shadow: none;
}

.main-header .badge {
    font-size: 0.6rem;
}

/* Mobile search dropdown must overflow header */
@media (max-width: 767.98px) {
    .main-header .container {
        overflow: visible;
    }
    .main-header {
        overflow: visible;
    }
    #mobileSearchForm .search-dropdown {
        left: 0;
        right: 0;
        z-index: 1070;
    }
}

/* Header icon links */
.header-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary);
    gap: 2px;
    transition: color 0.2s;
}

.header-icon-link i {
    font-size: 1.4rem;
}

.header-icon-label {
    font-size: 0.7rem;
    white-space: nowrap;
}

.header-icon-link:hover {
    color: var(--primary);
}

.header-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.55rem;
}

/* ===== CATALOG NAV ===== */
/* ===== MEGA MENU ===== */
.main-header .container {
    position: relative;
}

.main-header .dropdown {
    position: static;
}

.mega-menu-dropdown {
    min-height: 350px;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
}

/* Backdrop overlay when mega menu is open */
.mega-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1045;
    display: none;
}

.mega-menu-backdrop.show {
    display: block;
}

.mega-menu-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Sidebar items */
.mega-menu-sidebar {
    background: #fff;
}

.mega-menu-categories {
    padding: 6px 0;
}

.mega-menu-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #37474f;
    text-decoration: none;
    position: relative;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.mega-menu-cat-item:hover,
.mega-menu-cat-item.active {
    background: #fff5f5;
    color: var(--primary);
    border-left-color: var(--primary);
}

.mega-menu-cat-item .bi-chevron-right {
    color: #ccc;
    font-size: 0.625rem;
}

.mega-menu-cat-item.active .bi-chevron-right,
.mega-menu-cat-item:hover .bi-chevron-right {
    color: var(--primary);
}

/* Ensure offcanvas is above fixed header */
.offcanvas {
    z-index: 1080;
}

.accordion-button.no-arrow::after {
    display: none;
}

/* Subcategory cards grid */
.mega-cards-grid {
    columns: 3;
    column-gap: 10px;
    margin-bottom: 14px;
}

.mega-card {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.18s;
}

.mega-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 14px rgba(229, 57, 53, 0.12);
    transform: translateY(-1px);
}

.mega-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mega-card-icon {
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.85;
    flex-shrink: 0;
}

.mega-card:hover .mega-card-icon {
    opacity: 1;
}

.mega-card-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1A3A6B;
    text-decoration: none;
    line-height: 1.3;
}

.mega-card:hover .mega-card-name {
    color: var(--primary);
}

.mega-card-children {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 2px;
}

.mega-child-link {
    font-size: 0.75rem;
    color: #78909c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    transition: color 0.12s;
}

.mega-child-link::before {
    content: '';
    width: 3px;
    height: 3px;
    background: #cfd8dc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.12s;
}

.mega-child-link:hover {
    color: var(--primary);
}

.mega-child-link:hover::before {
    background: var(--primary);
}

.mega-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.mega-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.mega-footer a:hover {
    text-decoration: underline;
}

.mega-cat-pane {
    display: none;
}

.mega-cat-pane.active {
    display: block;
}

/* ===== LIVE SEARCH DROPDOWN ===== */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1060;
    max-height: 480px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.search-result-item:hover {
    background: var(--light-bg);
}

.search-result-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-result-brand {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.search-result-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.search-result-old {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.search-result-current {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
}

.search-cats-title {
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.search-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.88rem;
    transition: background 0.15s;
}

.search-cat-item:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.search-cat-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.search-dropdown-footer {
    text-align: center;
}

.search-dropdown-all {
    display: block;
    padding: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.search-dropdown-all:hover {
    background: var(--light-bg);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    padding-top: 24px;
}

.hero-swiper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-slider .swiper-slide {
    position: relative;
    min-height: 400px;
    background: var(--secondary);
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 40px 0 70px;
    max-width: 580px;
}

.hero-content h2 {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s;
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    background: var(--primary);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
    font-size: 18px;
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* ===== PROMO BANNERS ===== */
.banner-card {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

.banner-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}

.banner-card-img {
    overflow: hidden;
}

.banner-card-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s;
}

.banner-card:hover .banner-card-img img {
    transform: scale(1.05);
}


.banner-card-body {
    padding: 16px 20px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 70px;
}

.banner-card-icon {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.banner-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    display: block;
}

.banner-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* ===== NO-IMAGE PLACEHOLDER ===== */
.no-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--border-color);
    font-size: 3rem;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}

.product-card .card-img-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #fff;
}

.product-card .card-img-wrapper > a > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s;
}

.product-card:hover .card-img-wrapper > a > img {
    transform: scale(1.05);
}

/* Card Swiper */
.card-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-swiper .swiper-slide a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.card-swiper .card-swiper-prev,
.card-swiper .card-swiper-next {
    color: var(--secondary);
    opacity: 0;
    transition: opacity 0.2s;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.card-swiper .card-swiper-prev::after,
.card-swiper .card-swiper-next::after {
    font-size: 10px;
    font-weight: 700;
}

.product-card:hover .card-swiper-prev,
.product-card:hover .card-swiper-next {
    opacity: 1;
}

.card-swiper .card-swiper-pagination {
    bottom: 0 !important;
}

.card-swiper .card-swiper-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    opacity: 0.5;
}

.card-swiper .card-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

.product-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-discount-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.product-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .product-top-right {
    opacity: 1;
}

.product-card .btn-wishlist,
.product-card .btn-compare {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.product-card .btn-wishlist:hover,
.product-card .btn-wishlist.active {
    color: var(--primary);
    background: var(--primary-light);
}

.product-card .btn-compare:hover,
.product-card .btn-compare.active {
    color: var(--success);
    background: #E8F5E9;
}

.product-card .btn-wishlist.active,
.product-card .btn-compare.active {
    opacity: 1;
}

.product-top-right:has(.active) {
    opacity: 1;
}

.product-card .card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.product-card .product-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card .product-name:hover {
    color: var(--primary);
}

.product-card .product-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: block;
}

.product-card .product-brand:hover {
    color: var(--primary);
}

.product-price {
    margin-top: auto;
}

.product-price .old-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.92rem;
    white-space: nowrap;
}

.product-price .discount-amount {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.product-price .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price .current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
}

.product-price .current-price.sale {
    color: var(--accent);
}

.product-card .btn-add-cart {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: #FF6B35;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin-left: auto;
}

.product-card .btn-add-cart:hover {
    background: #e55a25;
    transform: scale(1.08);
}

.product-card .btn-notify-stock {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: #ffc107;
    color: #333;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin-left: auto;
}

.product-card .btn-notify-stock:hover {
    background: #e0a800;
    transform: scale(1.08);
}

/* ===== PRODUCT SLIDER SECTION ===== */
.products-swiper .swiper-wrapper {
    align-items: stretch;
}

.products-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.product-slider-section h2 {
    color: var(--secondary);
}

.products-swiper {
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
}

.slider-nav-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.product-slider-section .d-flex > h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.slider-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.slider-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

.slider-arrow.swiper-button-disabled:hover {
    background: #fff;
    color: var(--secondary);
    border-color: var(--border-color);
}

/* ===== FILTERS PANEL ===== */
.filters-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.filters-panel::-webkit-scrollbar {
    width: 4px;
}

.filters-panel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Header row: count + reset */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.filters-found {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--secondary);
}

.filters-reset-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.filters-reset-link:hover {
    text-decoration: underline;
}

/* Each collapsible group */
.filter-group {
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
    text-align: left;
    transition: color 0.15s;
}

.filter-group-toggle:hover {
    color: var(--primary);
}

.filter-group-toggle span:first-child {
    flex: 1;
}

.filter-chevron {
    font-size: 0.7rem;
    color: var(--secondary);
    transition: transform 0.2s;
}

.filter-group-toggle[aria-expanded="false"] .filter-chevron {
    transform: rotate(-90deg);
}

/* Orange dot for active filter groups */
.filter-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* Content area inside each group */
.filter-group .collapse,
.filter-group .collapsing {
    padding: 0 16px 14px;
}

/* Custom checkboxes */
.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s;
}

.filter-check:hover {
    background: var(--bg-light);
}

.filter-check.is-active {
    background: #fff3e8;
}

.filter-check-input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-check-input:checked {
    border-color: var(--primary);
}

.filter-check-label {
    font-size: 0.88rem;
    color: var(--dark);
    cursor: pointer;
    line-height: 1.3;
    flex: 1;
}

.filter-check.is-active .filter-check-label {
    font-weight: 600;
    color: var(--primary);
}

.filter-val-count {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 0 7px;
    border-radius: 20px;
    line-height: 1.8;
    letter-spacing: 0.01em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-check:hover .filter-val-count {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #ffd4be;
}

.filter-check.is-active .filter-val-count {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Show more button */
.filter-show-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 0;
    background: none;
    border: none;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
}

.filter-show-more:hover {
    text-decoration: underline;
}

/* Legacy kept for price slider include */
.filters-title {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
    margin-bottom: 10px;
}

/* ===== SUBCATEGORY LIST IN FILTER SIDEBAR ===== */
.subcat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subcat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.subcat-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.subcat-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
}

.subcat-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcat-count {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 0 7px;
    border-radius: 20px;
    line-height: 1.8;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.subcat-item:hover .subcat-count {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #ffd4be;
}

/* ===== CATEGORY SIDEBAR ===== */
.sidebar-categories .list-group-item {
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.sidebar-categories .list-group-item:hover,
.sidebar-categories .list-group-item.active {
    background: var(--primary);
    color: #fff;
}

/* ===== ACCOUNT SIDEBAR NAV ===== */
.account-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--text-dark, #333);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.account-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.account-nav-link.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.account-nav-link .badge {
    font-size: 0.7rem;
    vertical-align: middle;
}

/* ===== SORT BAR ===== */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin-bottom: 8px;
}

.sort-bar .dropdown {
    margin-left: auto;
}

.filters-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.sort-bar-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

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

.sort-bar-btn::after {
    display: none;
}

.sort-dropdown {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 8px 0 !important;
    min-width: 200px;
}

.sort-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.15s;
}

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

.sort-dropdown-item.active {
    color: var(--primary);
    font-weight: 600;
    background: none;
}

/* ===== PRODUCT DETAIL ===== */

/* Top-right actions (wishlist + share) */
.product-detail-top-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 6px;
    z-index: 5;
}
@media (max-width: 991.98px) {
    .product-detail-top-actions {
        right: 12px;
    }
}

/* Brand card (Rozetka style) */
.brand-card-link-block {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px 10px 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.brand-card-link-block:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: inherit;
}
.brand-card-logo-wrap {
    width: 56px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 4px;
}
.brand-card-logo-wrap img {
    max-width: 48px;
    max-height: 32px;
    object-fit: contain;
}
.brand-card-name-text {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}
.brand-card-info {
    flex: 1;
    min-width: 0;
}
.brand-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-card-sub {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
    white-space: nowrap;
}
.brand-card-arrow {
    color: #bbb;
    font-size: 14px;
    flex-shrink: 0;
}

.promotion-card-block {
    border-color: #ffd6d6;
    background: #fff9f9;
}
.promotion-card-block:hover {
    border-color: var(--danger, #dc3545);
}
.promotion-card-icon-wrap {
    background: #fff0f0;
    border-color: #ffd6d6;
}
.promotion-timer .timer-value {
    letter-spacing: 0.03em;
}

.product-detail .col-lg-5 > h1 {
    padding-right: 90px;
}

.product-desc-preview {
    position: relative;
}

.product-desc-text {
    max-height: 100px;
    overflow: hidden;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.product-desc-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.product-desc-more:hover {
    color: var(--primary-dark);
}

.product-gallery .main-image-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    margin-bottom: 10px;
    background: #fff;
}

.product-gallery .main-image-wrapper img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
}

/* Nav arrows on main image */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    font-size: 1rem;
    color: #333;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-gallery .main-image-wrapper:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-arrow-prev { left: 10px; }
.gallery-arrow-next { right: 10px; }

.gallery-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-gallery .main-image-wrapper:hover .gallery-counter {
    opacity: 1;
}

.product-gallery {
    position: relative;
}

/* Vertical thumbnails */
.thumbs-vertical-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    min-width: 80px;
    margin-right: 12px;
    position: relative;
}

.thumbs-swiper-vertical {
    overflow: hidden;
    height: 400px;
    width: 70px;
}

.thumbs-swiper-vertical .swiper-wrapper {
    flex-direction: column;
}

.thumbs-swiper-vertical .swiper-slide {
    height: auto !important;
    cursor: pointer;
}

.thumb-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 3px;
    transition: border-color 0.2s;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: var(--primary);
}

.thumbs-v-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #333;
    transition: border-color 0.2s;
    flex-shrink: 0;
    margin: 4px 0;
}

.thumbs-v-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.thumbs-v-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

@media (max-width: 991px) {
    .thumbs-vertical-wrapper {
        display: none;
    }
}

.product-info .product-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info .price-block {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.product-info .price-block .old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

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

.product-info .price-block__discount-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.product-info .price-block__sale {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.product-info .price-block__savings {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success);
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.btn-buy {
    background: var(--primary);
    color: #fff;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(255,107,53,0.35);
    letter-spacing: 0.2px;
}

.btn-buy:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255,107,53,0.45);
    transform: translateY(-2px);
}

.btn-buy:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}

/* ===== ONE-CLICK BUY ===== */
.btn-one-click {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.btn-one-click:hover {
    color: var(--secondary);
}
.btn-one-click i {
    font-size: 12px;
}

/* One-click modal */
.oc-modal {
    border-radius: 16px;
    overflow: hidden;
}
.oc-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 28px 0;
    gap: 16px;
}
.oc-modal-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
}
.oc-modal-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.oc-modal-body {
    padding: 20px 28px 28px;
}

/* Product preview */
.oc-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
}
.oc-product-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}
.oc-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.oc-product-info {
    flex: 1;
    min-width: 0;
}
.oc-product-name {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oc-product-price {
    font-size: 15px;
    font-weight: 700;
    margin-top: 3px;
}
.oc-product-qty {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* Phone field */
.oc-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.oc-phone-input {
    font-size: 16px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
}

/* Submit button */
.oc-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.oc-submit-btn:hover {
    background: #111;
}
.oc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.oc-modal-footer {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}
.oc-shop-phone {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}
.oc-shop-note {
    font-size: 12px;
    color: #e05c5c;
    margin-top: 4px;
}

/* Success state */
.oc-success {
    text-align: center;
    padding: 20px 0;
}
.oc-success .bi-check-circle-fill {
    font-size: 52px;
    color: #28a745;
}

/* ===== REVIEWS ===== */
.review-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 15px;
    background: #fff;
}

.review-card .admin-reply {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rating-distribution .progress {
    height: 8px;
    border-radius: 4px;
}

.star-rating {
    color: var(--warning);
}

/* ===== CART ===== */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.cart-item .quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item .quantity-control input {
    width: 50px;
    text-align: center;
}

.cart-summary {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ===== CHECKOUT ===== */
.checkout-steps {
    gap: 0;
}
.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.checkout-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.checkout-step.active .checkout-step-num {
    background: var(--primary);
    color: #fff;
}
.checkout-step.completed .checkout-step-num {
    background: #28a745;
    color: #fff;
}
.checkout-step-label {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}
.checkout-step.active .checkout-step-label,
.checkout-step.completed .checkout-step-label {
    color: var(--dark);
    font-weight: 600;
}
.checkout-step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    min-width: 40px;
    max-width: 100px;
    margin-bottom: 20px;
}
.checkout-step-line.active {
    background: var(--primary);
}

.checkout-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.checkout-section h5 {
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== CARDS (general) ===== */
.card {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
}

/* ===== BUTTONS (override Bootstrap) ===== */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255,107,53,0.30);
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary.show,
.btn-primary:first-child:active,
.btn-primary.dropdown-toggle.show {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(255,107,53,0.40) !important;
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-primary:first-child:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255,107,53,0.25) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-primary.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.badge.bg-primary {
    background: var(--primary) !important;
}
.badge.bg-danger {
    background: var(--danger) !important;
}
.badge.bg-success {
    background: var(--success) !important;
}
.badge.bg-warning {
    background: var(--warning) !important;
    color: var(--secondary) !important;
}

/* ===== LINKS ===== */
a {
    color: var(--primary);
}

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

/* ===== FORMS ===== */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.15);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===== PRICE RANGE SLIDER ===== */
.price-slider-wrapper {
    padding: 0 2px;
}

.price-slider-track {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.price-range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    pointer-events: none;
    margin: 0;
}

.price-range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
    margin-top: -8px;
    position: relative;
    z-index: 2;
}

.price-range-input::-moz-range-track {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    border: none;
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
}

.price-slider-wrapper .price-input-min,
.price-slider-wrapper .price-input-max {
    text-align: center;
    max-width: 100px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary);
    color: #B0BEC5;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.site-footer a {
    color: #90A4AE;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid #37474F;
    padding-top: 15px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #78909C;
}

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 1040;
    padding: 6px 0;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    padding: 4px;
    transition: color 0.2s;
}

.mobile-bottom-bar a i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.mobile-bottom-bar a.active,
.mobile-bottom-bar a:hover {
    color: var(--primary);
}

/* ===== 404 PAGE ===== */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}

.page-404 h1 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
}

.page-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .mega-menu-desktop {
        display: none !important;
    }

    .hero-slider .swiper-slide img,
    .hero-placeholder {
        height: 280px;
    }

    .hero-slider .swiper-slide {
        min-height: 280px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .product-tabs .nav-tabs {
        display: none;
    }

    .product-tabs .tab-content .tab-pane {
        display: block !important;
        opacity: 1 !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }

    .site-footer {
        margin-bottom: 60px;
    }

    #toast-container {
        bottom: 70px !important;
    }

    .desktop-only {
        display: none !important;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .banner-card img {
        height: 140px;
    }

    .product-top-right {
        opacity: 1;
    }

    .card-swiper .card-swiper-prev,
    .card-swiper .card-swiper-next {
        opacity: 0.7;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* ===== NEWS ===== */
.news-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===== CATEGORY GRID ===== */
.category-card {
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.category-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* ===== SORT / FILTER BAR ===== */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===== SHARE BUTTON ===== */
.btn-share {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

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

/* ===== BANNERS ===== */
.promo-banner {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.promo-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===== PRODUCT RATING ===== */
.product-rating {
    color: var(--warning);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.product-rating .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* ===== PAGINATION ===== */
.page-link {
    color: var(--primary);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== TOAST ===== */
.toast {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* ===== OFFCANVAS ===== */
.offcanvas {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.offcanvas-end {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* ===== HOME NEWS SECTION ===== */
.news-featured {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    height: 100%;
    min-height: 360px;
}

.news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.news-featured-placeholder {
    background: linear-gradient(135deg, var(--secondary), #455A64);
}

.news-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
}

.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    color: #fff;
}

.news-featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.news-featured-desc {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.5;
}

.news-featured:hover .news-featured-img {
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

.news-featured .news-featured-img {
    transition: transform 0.4s ease;
}

.news-side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.news-side-item {
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    align-items: center;
    flex: 1;
}

.news-side-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.news-side-img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-side-placeholder {
    background: var(--border-color);
}

.news-side-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-side-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-side-date {
    font-size: 0.78rem;
}

/* ===== NEWS LIST PAGE ===== */
.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-placeholder {
    background: linear-gradient(135deg, var(--border-color), #CFD8DC);
}

.news-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s;
}

.news-card:hover .news-card-link {
    color: var(--primary-dark);
}

@media (max-width: 991.98px) {
    .news-featured {
        min-height: 280px;
    }

    .news-side-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .news-side-item {
        flex: 1 1 calc(50% - 6px);
    }
}

@media (max-width: 767.98px) {
    .product-detail .btn-lg {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* ===== Video Reviews ===== */

/* ===== Product Variations ===== */

.variation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 6px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

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

.variation-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.variation-image {
    display: inline-block;
    width: 70px;
    height: 70px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.15s;
}

.variation-image:hover {
    border-color: var(--primary);
}

.variation-image.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.variation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.variation-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.75rem;
    color: #999;
    background: #f5f5f5;
}

/* ===== Video Reviews ===== */

.video-main-container {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-main-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-main-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: transform 0.2s;
}

.video-main-container:hover .video-main-play {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumb-card {
    cursor: pointer;
    transition: opacity 0.2s;
}

.video-thumb-card:hover {
    opacity: 0.85;
}

.video-thumb-card.active {
    opacity: 1;
}

.video-thumb-card.active .video-thumb-img {
    outline: 3px solid var(--primary);
    border-radius: 8px;
}

.video-thumb-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.video-thumb-title {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video review list page */
.video-list-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.video-list-card:hover {
    transform: translateY(-2px);
}

.video-list-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-list-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.video-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #333;
}
/* Promotion cards (homepage) */
.promo-card {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
    color: inherit;
    height: 100%;
}
.promo-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-color: var(--primary);
    color: inherit;
}
.promo-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}
.promo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.promo-card:hover .promo-card-img img {
    transform: scale(1.04);
}
.promo-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a65 100%);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.6);
}
.promo-card-body {
    padding: 12px 14px;
}
.promo-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.promo-card-countdown {
    font-size: 11px;
}

/* Brands slider (homepage) */
.brand-slide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.brand-slide-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    color: inherit;
}
.brand-slide-logo {
    width: 64px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brand-slide-logo img {
    max-width: 64px;
    max-height: 40px;
    object-fit: contain;
}
.brand-slide-initials {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.brand-slide-name {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Site logo */
.site-logo {
    height: 48px;
    width: auto;
    display: block;
}
@media (max-width: 767px) {
    .site-logo {
        height: 36px;
    }
}

/* ===== Advantages / USP ===== */
.advantage-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    transition: box-shadow 0.2s;
}
.advantage-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.advantage-icon {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}
.advantage-title {
    font-size: 14px;
}
.advantage-desc {
    font-size: 12px;
}

/* ===== Deal of the Day ===== */
.deal-of-day .card {
    border-radius: var(--radius-lg, 12px);
}
.deal-of-day-img {
    background: var(--primary-light, #E8F0FB);
}
.deal-of-day-countdown .countdown-block {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Touch devices: always show product action buttons (no hover) */
@media (hover: none) {
    .product-top-right {
        opacity: 1;
    }
}

/* ===== 1.1 CTA Orange Buttons (primary is now orange — kept for compatibility) ===== */
.btn-add-to-cart-orange {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(255,107,53,0.35);
    transition: all 0.2s ease;
}
.btn-add-to-cart-orange:hover,
.btn-add-to-cart-orange:active,
.btn-add-to-cart-orange:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(255,107,53,0.45) !important;
    transform: translateY(-2px);
}

/* ===== 1.2 Discount accents in product cards ===== */
.product-card.has-discount {
    border-top: 3px solid var(--danger);
}

.product-card .savings-line {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    margin-top: 2px;
}

/* ===== 1.5 Mobile touch targets & bottom bar active ===== */
@media (max-width: 575.98px) {
    .product-card .btn-add-cart {
        min-height: 44px;
    }
}

.mobile-bottom-bar a.active {
    color: var(--primary);
    font-weight: 600;
}
.mobile-bottom-bar a.active i {
    color: var(--primary);
}

/* ===== BLOCK 7: Cart Added Modal ===== */
#cartAddedModal .modal-body img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
#cartAddedModal .cart-modal-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}
#cartAddedModal .cart-modal-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 4px;
}
#cartAddedModal .cart-modal-price {
    font-weight: 700;
    color: var(--accent);
}

/* ===== DESIGN SYSTEM — Typography ===== */

/* Display font (Fredoka) for section titles and brand */
.product-slider-section h2,
.home-promotions h2,
.home-brands h2,
.home-news h2,
.home-video-reviews h2,
.deal-of-day h2,
.hero-content h2 {
    font-family: var(--font-display);
    letter-spacing: 0.2px;
}

/* Navbar brand text */
.navbar-brand,
.site-name {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ===== DESIGN SYSTEM — Section heading decorative accent ===== */
.section-title-accent,
.section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.section-title-accent::before,
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--primary);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ===== DESIGN SYSTEM — Dot background pattern ===== */
.home-brands,
.home-video-reviews,
.home-news {
    background-image: radial-gradient(circle, rgba(255,107,53,0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    border-radius: var(--radius-lg);
    padding-left: 0;
    padding-right: 0;
}

/* ===== DESIGN SYSTEM — Mega menu entrance animation ===== */
.mega-menu-dropdown {
    animation: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.mega-menu-dropdown.show {
    animation: megaMenuIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes megaMenuIn {
    from { opacity: 0; transform: translateY(-10px) scaleY(0.97); }
    to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* ===== DESIGN SYSTEM — Micro-animations ===== */

/* Wishlist heartbeat on hover */
@keyframes heartbeat {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.4); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.product-card .btn-wishlist:hover i {
    animation: heartbeat 0.35s ease;
    display: inline-block;
}

/* Cart icon bounce after add */
@keyframes cartIconBounce {
    0%   { transform: scale(1) rotate(0deg); }
    30%  { transform: scale(1.35) rotate(-12deg); }
    60%  { transform: scale(0.9) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.btn-add-cart.cart-bounce i,
.btn-add-to-cart-orange.cart-bounce i {
    animation: cartIconBounce 0.4s ease;
    display: inline-block;
}

/* Badge pulse for "Deal of the day" / "Hit" labels */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(255,107,53,0); }
}
.badge-animated {
    animation: badgePulse 2s ease infinite;
}

/* ===== DESIGN SYSTEM — Product card improvements ===== */
.product-card:hover {
    outline: 2px solid rgba(255,107,53,0.18);
}

.product-card .btn-add-cart {
    border-radius: var(--radius-sm);
    box-shadow: 0 3px 10px rgba(255,107,53,0.25);
    transition: all 0.2s ease;
}
.product-card .btn-add-cart:hover {
    box-shadow: 0 5px 16px rgba(255,107,53,0.40);
    transform: scale(1.06);
}

/* ===== DESIGN SYSTEM — Category card hover ===== */
.category-card:hover {
    border-bottom: 3px solid var(--primary);
    transform: translateY(-4px);
}

/* ===== DESIGN SYSTEM — Footer improvement ===== */
.site-footer {
    background: var(--secondary);
}

/* ===== DESIGN SYSTEM — Checkout success step color ===== */
.checkout-step.completed .checkout-step-num {
    background: var(--success);
}

/* ===== DESIGN SYSTEM — Product savings badge ===== */
.product-price .discount-amount {
    border-radius: 20px;
}

/* ===== btn-accent (orange CTA variant) ===== */
.btn-accent {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-accent:hover, .btn-accent:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,107,53,0.4);
}

/* ===== Footer newsletter subscribe block ===== */
.footer-subscribe-section {
    background: linear-gradient(135deg, #FF6B35 0%, #E85D2A 100%);
    border-radius: var(--radius-md);
    padding: 32px 40px;
    text-align: center;
    margin-bottom: 40px;
}
.footer-subscribe-section h5 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 6px;
}
.footer-subscribe-section p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.footer-subscribe-section .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 10px 20px;
    font-size: 0.95rem;
    box-shadow: none;
}
.footer-subscribe-section .form-control:focus {
    box-shadow: none;
    outline: none;
}
.footer-subscribe-section .btn-subscribe {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}
.footer-subscribe-section .btn-subscribe:hover {
    background: #0f1d33;
}
@media (max-width: 575.98px) {
    .footer-subscribe-section {
        padding: 24px 16px;
    }
    .footer-subscribe-section .input-group {
        flex-direction: column;
        gap: 8px;
    }
    .footer-subscribe-section .form-control {
        border-radius: 50px;
    }
    .footer-subscribe-section .btn-subscribe {
        border-radius: 50px;
        width: 100%;
    }
}

/* ===== BLOCK 6: Advantages / USP ===== */
.advantage-card {
    border: 1.5px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.advantage-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
