:root {
    --primary-color: #5B6DAD;
    --primary-hover: #4A5A9A;
    --primary-light: #5CBAD8;
    --primary-mid: #7A87C0;
    --primary-deep: #887BB4;
    --gradient-main: linear-gradient(135deg, #5CBAD8 0%, #887BB4 100%);
    --gradient-vertical: linear-gradient(180deg, #5CBAD8 0%, #887BB4 100%);
    --accent-color: #ffffff;
    --bg-color: #f4f7fd;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 105px;
}

/* Breadcrumbs */
.breadcrumb {
    background: none;
    padding: 12px 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

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

.breadcrumb-item.active {
    color: #555;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #aaa;
    font-weight: 400;
    padding: 0 10px;
}

.unity-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.unity-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.unity-logo-img {
    height: 40px;
    object-fit: contain;
}

.unity-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.search-bar {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 600px;
}

.search-bar input {
    border-radius: 8px;
    padding: 10px 120px 10px 20px;
    border: 2px solid var(--primary-color);
    background: #fff;
    font-size: 0.95rem;
    width: 100%;
    height: 44px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(91, 109, 173, 0.15);
}

.search-bar button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    cursor: pointer;
}

.search-bar button:hover {
    background: var(--primary-hover);
}

/* Search Suggest Dropdown */
.search-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1050;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-top: none;
}

.search-suggest-dropdown.open {
    display: block;
}

.search-suggest-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.search-suggest-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #eee;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: suggestSpin 0.6s linear infinite;
}

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

.search-suggest-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-suggest-section-title {
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.search-suggest-item:hover {
    background: #f5f6fa;
    color: #333;
}

.search-suggest-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
}

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

.search-suggest-info {
    flex: 1;
    min-width: 0;
}

.search-suggest-name {
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-suggest-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2px;
}

.search-suggest-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.15s;
}

.search-suggest-cat-item:hover {
    background: #f5f6fa;
    color: var(--primary-color);
}

.search-suggest-cat-item i {
    font-size: 11px;
    color: #bbb;
}

/* Header Icon Nav (icons with text labels) */
.header-icon-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.header-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    position: relative;
    cursor: pointer;
    line-height: 1.2;
    min-width: 58px;
}

.header-icon-link i {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.header-icon-link:hover {
    background: rgba(91, 109, 173, 0.08);
    color: var(--primary-color);
    text-decoration: none;
}

.header-icon-badge {
    position: absolute;
    top: 0;
    right: 6px;
    background: #dc3545;
    color: white;
    font-size: 0.6rem;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 3px;
}

.header-lang-switch {
    cursor: pointer;
    user-select: none;
}

/* Mobile icon buttons */
.nav-icon-btn {
    position: relative;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 6px;
    transition: color 0.2s;
    text-decoration: none;
}

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

.badge-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #dc3545;
    color: white;
    font-size: 0.6rem;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 3px;
}

/* Header Menu Bar (row 2) */
.header-menu-bar {
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.header-menu-nav {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-menu-nav::-webkit-scrollbar {
    display: none;
}

.header-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    letter-spacing: -0.2px;
}

.header-menu-link:hover {
    color: var(--primary-color);
    background: rgba(91, 109, 173, 0.06);
    text-decoration: none;
}

.header-menu-link i {
    font-size: 0.9rem;
    color: var(--primary-mid);
}

/* 5-column grid */
@media (min-width: 992px) {
    .row-cols-lg-5 > * {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #999;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: color 0.2s, background 0.2s;
}

.product-favorite-btn:hover,
.product-favorite-btn.active {
    color: #e74c3c;
    background: #fff;
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #fff;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    border-radius: 12px;
}

.product-img-slider img {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
    transform: scale(1);
}

.product-img-slider img.active {
    opacity: 1;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-primary-unity {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 8px;
}

.btn-primary-unity:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

/* Category Card */
.category-card {
    text-align: center;
    cursor: pointer;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.category-card:hover .category-icon {
    transform: scale(1.05);
    background: var(--primary-color);
    color: white;
}

.category-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Katalog Dropdown */
.katalog-btn {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.katalog-btn:hover {
    color: white;
    opacity: 0.9;
}

.katalog-wrapper {
    position: relative;
    display: inline-block;
}

.katalog-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    height: 500px;
    z-index: 1050;
    display: none;
    /* Remove gap-creating margin and use padding for hover area */
    margin-top: 0;
    padding-top: 10px;
}

.katalog-dropdown-inner {
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
}

.katalog-wrapper:hover .katalog-dropdown {
    display: block;
    /* changed from flex because inner is flex */
}

.category-menu {
    width: 300px;
    border-right: 1px solid #f0f0f0;
    overflow-y: auto;
    background: #fff;
    padding: 10px 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.1s;
}

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

.category-item .fa-chevron-right {
    font-size: 10px;
    color: #ccc;
}

.subcategory-menu {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
    background-color: #fff;
}

.subcategory-group {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.subcategory-group.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcat-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
    color: #222;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.subcat-list {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 20px;
}

.subcat-list li {
    margin-bottom: 10px;
}

.subcat-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 2px 0;
}

.subcat-link:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
    transition: transform 0.2s;
}

.subcat-columns {
    display: flex;
    gap: 32px;
}

.subcat-column {
    flex: 1;
    min-width: 0;
}

.subcat-column .subcat-link {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.subcat-brands {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subcat-brands .brand-link {
    padding: 2px 0;
}

/* ============ Hero Banner Slider ============ */
.hero-banner-wrapper {
    display: flex;
    gap: 16px;
    height: 400px;
}

.hero-banner-slider {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #e9ecef;
}

.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide a {
    display: block;
    height: 100%;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
}

.banner-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.banner-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.banner-nav:hover {
    background: #fff;
}

.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.25);
    padding: 6px 12px;
    border-radius: 20px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ============ Hero Sale Card (next to banner) ============ */
.hero-sale-block {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.hero-sale-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-sale-card.active {
    opacity: 1;
    z-index: 1;
}

.hero-sale-pct-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #ff4444;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.hero-sale-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 10px 10px 40px 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.hero-sale-img {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 0;
}

.hero-sale-img img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.hero-sale-name {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    color: #333;
}

.hero-sale-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: center;
    margin-bottom: 4px;
}

.hero-sale-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.82rem;
}

.hero-sale-new {
    font-weight: 700;
    color: #ff4444;
    font-size: 1.15rem;
}

.hero-sale-installment {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffd54f;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
}

.product-installment-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffd54f;
    border-radius: 6px;
    padding: 5px 12px;
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 4px;
}

.hero-sale-buy-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-top: auto;
}

.hero-sale-link:hover .hero-sale-buy-btn {
    background: var(--primary-hover);
}

/* Hero Sale Nav & Dots */
.hero-sale-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hero-sale-nav:hover {
    background: rgba(0,0,0,0.35);
}

.hero-sale-prev { left: 6px; }
.hero-sale-next { right: 6px; }

.hero-sale-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.08);
    padding: 5px 10px;
    border-radius: 20px;
}

.hero-sale-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(91,109,173,0.25);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-sale-dot.active {
    background: var(--primary-color);
    transform: scale(1.25);
}

/* ============ Sale Block (per sale) ============ */
.sale-block {
    background: linear-gradient(135deg, rgba(92,186,216,0.08) 0%, rgba(136,123,180,0.08) 100%);
    border-radius: 20px;
    overflow: hidden;
}

.sale-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.sale-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sale-block-logo {
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.sale-block-all-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.sale-block-all-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.sale-block-body {
    padding: 0 24px 20px;
}

/* ============ Sale / Product Horizontal Slider ============ */
.sale-slider-wrapper {
    position: relative;
}

.sale-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.sale-slider::-webkit-scrollbar {
    display: none;
}

.sale-card {
    flex: 0 0 180px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sale-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #ff4444;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.sale-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
}

.sale-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sale-card-body {
    padding: 10px 12px 14px;
}

.sale-card-price {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.sale-card-old {
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.sale-card-name {
    font-size: 0.8rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.sale-card-date {
    font-size: 0.75rem;
    color: #fff;
    background: var(--primary-mid);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    margin-top: 6px;
    font-weight: 600;
}

.sale-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.sale-nav:hover {
    background: #fff;
}

.sale-prev { left: -6px; }
.sale-next { right: -6px; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .header-top-row {
        gap: 8px;
        padding: 8px 0;
    }

    .unity-logo-img {
        height: 32px;
    }

    .katalog-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .unity-logo {
        font-size: 1.1rem;
    }

    .header-menu-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hero-banner-wrapper {
        flex-direction: column;
        height: auto;
    }

    .hero-sale-block {
        width: 100%;
        height: 320px;
    }

    .hero-banner-slider {
        min-height: 200px;
    }

    .banner-title { font-size: 1.1rem; }

    .sale-card { flex: 0 0 150px; }

    .product-auto-slider {
        height: 250px;
    }

    .product-auto-inner {
        flex-direction: column;
        text-align: center;
    }

    .product-auto-img {
        width: 100%;
        height: 150px;
    }
}

/* ============ Product Auto-Slider (single item) ============ */
.product-auto-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4fa, #ece8f4);
    height: 220px;
}

.product-auto-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-auto-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.product-auto-slide.active {
    opacity: 1;
    z-index: 1;
}

.product-auto-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 20px 30px;
    text-decoration: none;
    color: inherit;
    gap: 30px;
}

.product-auto-img {
    width: 200px;
    height: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-auto-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.product-auto-info {
    flex: 1;
    min-width: 0;
}

.product-auto-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-auto-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.product-auto-brand {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 6px;
}

/* ============ Product Section Sticky Nav ============ */
.product-section-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 99;
    margin-bottom: 16px;
}

.product-section-nav.stuck {
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-section-tabs {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.product-section-link {
    display: block;
    padding: 14px 24px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.product-section-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.product-section-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.product-section-anchor {
    scroll-margin-top: 160px;
}

/* ============ Product Detail Page ============ */
.product-thumb-card {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    padding: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.product-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.product-thumb-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(91,109,173,0.15);
}

.product-thumb-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(91,109,173,0.2);
}

.product-info-content {
    line-height: 1.8;
    font-size: 0.95rem;
}

.product-info-content *{
    font-family: inherit !important;
    font-size: 16px !important;
}

.product-info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-info-content iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* ============ Product Image Zoom (background-image) ============ */
.product-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.product-zoom-container {
    height: 450px;
}

.product-zoom-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s;
}

.product-zoom-container.zooming img {
    opacity: 0;
}

@media (max-width: 991px) {
    .product-zoom-container {
        cursor: default;
        height: 350px;
    }
}

/* ============ Thumbnail Slider ============ */
.thumb-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.thumb-slider-track {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumb-slider-track::-webkit-scrollbar {
    display: none;
}

.thumb-slider-inner {
    display: flex;
    gap: 8px;
    width: max-content;
}

.thumb-slider-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.thumb-slider-nav:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(91,109,173,0.15);
}

/* ============ Installment Sidebar ============ */
.installment-sidebar {
    position: sticky;
    top: 120px;
}

.installment-months-selector .month-btn {
    min-width: 36px;
    height: 32px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    padding: 0 10px;
}

.installment-months-selector .month-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.installment-months-selector .month-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.installment-provider-card {
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}

.installment-provider-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.installment-provider-card.selected {
    border-color: var(--primary-color, #4a6cf7);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
    background: #f8f9ff;
}

.installment-provider-logo {
    height: 24px;
    object-fit: contain;
    max-width: 100px;
}

.installment-provider-name {
    display: flex;
    align-items: center;
}

.installment-monthly-price {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.installment-cta-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 10px;
}

.installment-cta-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

/* ============ Category Page ============ */
.category-page {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.category-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.category-count {
    font-size: 0.85rem;
    color: #00bfa5;
    font-weight: 500;
}

.category-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cat-sort-select {
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 32px 4px 12px;
    min-width: 90px;
    cursor: pointer;
}

.cat-filter-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
}

.category-per-page .form-select,
.category-sort .form-select {
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 32px 4px 12px;
    min-width: 90px;
    cursor: pointer;
}

.category-model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-tag {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}

.model-tag:hover,
.model-tag.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f4ff;
}

/* Subcategory Navigation */
.filter-subcategories {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.filter-subcat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-subcat-list li {
    border-bottom: 1px solid #f5f5f5;
}

.filter-subcat-list li:last-child {
    border-bottom: none;
}

.filter-subcat-list li a {
    display: block;
    padding: 10px 16px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.filter-subcat-list li a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.filter-subcat-list li.active a {
    color: var(--primary-color);
    font-weight: 600;
    background: #f0f1ff;
}

.filter-subcat-list li.filter-subcat-parent a {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    padding: 12px 16px;
}

.filter-subcat-list li.filter-subcat-parent.active a {
    color: var(--primary-color);
}

.filter-subcat-list li.filter-subcat-child a {
    padding-left: 28px;
}

/* Filter Sidebar */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-group {
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.filter-group:first-child {
    border-radius: 12px 12px 0 0;
}

.filter-group:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.filter-group:only-child {
    border-radius: 12px;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.filter-group-header:hover {
    background: #f8f9fa;
}

.filter-group-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.filter-count {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
}

.filter-toggle-icon {
    font-size: 0.75rem;
    color: #666;
    transition: transform 0.25s;
}

.filter-group.collapsed .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-group-body {
    padding: 0 16px 14px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.filter-group.collapsed .filter-group-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* Price filter */
.filter-price-inputs {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.filter-price-field {
    flex: 1;
}

.filter-price-field label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2px;
    display: block;
}

.filter-price-field .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    padding: 6px 8px;
}

.filter-price-ok {
    border-radius: 8px;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 6px 16px;
    height: 34px;
}

.filter-price-ok:hover {
    background: var(--primary-hover);
}

/* Price range slider */
.filter-price-slider {
    padding: 0 4px;
}

.filter-range-track {
    position: relative;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 8px 0;
}

.filter-range-fill {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.filter-range-input {
    position: absolute;
    top: -6px;
    width: 100%;
    height: 16px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.filter-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

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

/* Checkbox list */
.filter-checkbox-list {
    display: flex;
    flex-direction: column;
}

.filter-checkbox-scroll {
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.filter-checkbox-scroll::-webkit-scrollbar {
    width: 5px;
}

.filter-checkbox-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    margin: 0;
}

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

.filter-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #ccc;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-checkbox-label {
    font-size: 0.9rem;
    color: #333;
}

/* Search box inside filter */
.filter-search-box {
    position: relative;
    margin-bottom: 8px;
}

.filter-search-box .form-control {
    border-radius: 25px;
    border: 1px solid #ddd;
    padding: 6px 36px 6px 14px;
    font-size: 0.85rem;
}

.filter-search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.85rem;
}

/* Active filter tags */
.filter-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    font-size: 0.82rem;
    color: #4338ca;
    font-weight: 500;
}

.filter-tag a {
    color: #4338ca;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.filter-tag a:hover {
    color: #e53e3e;
}

.filter-clear-all {
    font-size: 0.82rem;
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
}

.filter-clear-all:hover {
    text-decoration: underline;
}

/* Category Product Cards */
.cat-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
}

.cat-product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Out of stock — grayscale card */
.cat-product-card.out-of-stock,
.product-card.out-of-stock {
    opacity: 0.6;
}
.cat-product-card.out-of-stock img,
.product-card.out-of-stock img {
    filter: grayscale(100%);
}
.cat-product-card.out-of-stock:hover,
.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* Discount badge */
.cat-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.cat-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cat-product-link:hover {
    color: inherit;
}

.cat-product-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    overflow: hidden;
}

.cat-product-img img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    overflow: hidden;
}

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

.cat-product-card:hover .cat-product-actions {
    opacity: 1;
}

.cat-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.cat-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cat-action-btn.active-fav {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff0f0;
    opacity: 1;
}

.cat-action-btn.active-compare {
    border-color: var(--primary-color);
    color: #fff;
    background: var(--primary-color);
    opacity: 1;
}

.cat-product-body {
    padding: 10px 12px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cat-product-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #333;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.cat-product-rating {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.cat-product-rating i {
    color: #f59e0b;
    font-size: 0.7rem;
}

.cat-rating-count {
    font-size: 0.7rem;
    color: #999;
    margin-left: 4px;
}

.cat-product-old-price {
    font-size: 0.78rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.cat-product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.cat-product-installment {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 6px;
    margin-top: auto;
}

.cat-product-buttons {
    display: flex;
    gap: 6px;
    padding: 6px 12px 12px;
}

.cat-buy-btn {
    flex: 1;
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 10px;
    padding: 8px 10px;
    transition: all 0.2s;
}

.cat-buy-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.condition-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid var(--primary-mid);
    border-radius: 20px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.condition-badge-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.condition-badge-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.condition-badge-count {
    background: rgba(0,0,0,0.1);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}
.condition-badge-btn.active .condition-badge-count {
    background: rgba(255,255,255,0.25);
}

.cat-cart-btn {
    width: 38px;
    min-width: 38px;
    height: auto;
    background: #00bfa5;
    border: none;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cat-cart-btn:hover {
    background: #00a68e;
    color: #fff;
}

/* Mobile filter */
.filter-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(91,109,173,0.35);
    cursor: pointer;
}

.filter-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1059;
}

.filter-mobile-overlay.open {
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.pagination .page-item .page-link:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(91,109,173,0.25);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(91,109,173,0.3);
    pointer-events: none;
}

.pagination .page-item.disabled .page-link {
    background: #f0f0f0;
    color: #c0c0c0;
    box-shadow: none;
    pointer-events: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 16px;
}

@media (max-width: 575px) {
    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media (max-width: 991px) {
    .filter-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 1060;
        background: #f8f9fa;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 16px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }

    .filter-sidebar.open {
        left: 0;
    }

    body.filter-open {
        overflow: hidden;
    }

    .category-title {
        font-size: 1.15rem;
    }

    .cat-product-actions {
        opacity: 1;
    }

    .cat-product-img {
        height: 150px;
        padding: 8px;
    }

    .cat-product-name {
        font-size: 0.76rem;
    }

    .cat-product-price {
        font-size: 0.92rem;
    }

    .cat-product-old-price {
        font-size: 0.7rem;
    }

    .cat-product-installment {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .cat-product-body {
        padding: 8px 8px 4px;
    }

    .cat-product-buttons {
        padding: 4px 8px 8px;
        gap: 4px;
    }

    .cat-buy-btn {
        font-size: 0.72rem;
        padding: 7px 6px;
    }

    .cat-cart-btn {
        width: 34px;
        min-width: 34px;
        font-size: 0.8rem;
    }

    .cat-action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .cat-product-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .filter-mobile-toggle {
        display: none;
    }
}

/* ============ Product Detail Middle Block ============ */
.detail-rating i {
    font-size: 1.1rem;
}

.detail-share-btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 4px 12px;
}

.detail-old-price {
    font-size: 1rem;
    color: #e53e3e;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.detail-current-price {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.detail-savings {
    color: #38a169;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-section-label {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.detail-color-section {
    margin-top: 20px;
    margin-bottom: 8px;
}

.detail-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-color-btn {
    width: 80px;
    height: 90px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.detail-color-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-color-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(91,109,173,0.15);
}

.detail-color-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(91,109,173,0.25);
}

.detail-color-name-text {
    font-size: 0.7rem;
    text-align: center;
    color: #666;
    word-break: break-word;
}

.detail-storage-section {
    margin-top: 20px;
    margin-bottom: 8px;
}

.detail-storage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-storage-btn {
    padding: 8px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

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

.detail-storage-btn.active {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(91,109,173,0.15);
}

.detail-specs-list {
    margin-top: 24px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.detail-spec-row {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    font-size: 0.95rem;
}

.detail-spec-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

.detail-spec-dots {
    flex: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 8px;
    min-width: 20px;
    position: relative;
    top: -4px;
}

.detail-spec-value {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.detail-spec-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.detail-spec-link:hover {
    text-decoration: underline;
}

.detail-spec-status {
    color: #38a169;
    font-weight: 600;
}

.detail-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38a169;
    margin-right: 4px;
    vertical-align: middle;
}

.detail-copy-btn {
    color: #888;
    font-size: 0.8rem;
    vertical-align: middle;
}

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

/* ============ Lazy Load Images ============ */
.lazy-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.lazy-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    transition: opacity 0.4s;
}

.lazy-img-wrapper.loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lazy-img {
    filter: blur(20px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.lazy-img:not(.active) {
    opacity: 0;
}

.lazy-img.loaded:not(.active) {
    opacity: 1;
}

.lazy-img.loaded {
    filter: blur(0);
}

/* ============ Compare Page ============ */
.compare-table {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.compare-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

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

.compare-header {
    border-bottom: 2px solid #eee;
    background: #fafbfc;
    border-radius: 12px 12px 0 0;
}

.compare-label {
    min-width: 160px;
    max-width: 160px;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    border-right: 1px solid #f0f0f0;
    background: #fafbfc;
}

.compare-cell {
    flex: 1;
    min-width: 180px;
    padding: 14px 16px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.compare-header .compare-cell {
    padding: 20px 16px;
}

.compare-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
}

.compare-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.3;
    max-width: 200px;
}

.compare-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.compare-diff {
    background: #fff8e1;
    font-weight: 600;
    color: #e65100;
}

.compare-cell .remove-compare-item {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    padding: 0;
    opacity: 0.5;
}

.compare-cell .remove-compare-item:hover {
    opacity: 1;
}

.compare-row:nth-child(even) {
    background: #fafbfc;
}

@media (max-width: 768px) {
    .compare-label {
        min-width: 100px;
        max-width: 100px;
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    .compare-cell {
        min-width: 140px;
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .compare-img {
        width: 80px;
        height: 80px;
    }

    .compare-name {
        font-size: 0.8rem;
    }
}

/* ============ Sitemap Page ============ */
.sitemap-page {
    padding-bottom: 20px;
}

.sitemap-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1f2e;
    margin-bottom: 32px;
}

.sitemap-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sitemap-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.sitemap-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f1ff;
}

.sitemap-section-title i {
    font-size: 16px;
}

.sitemap-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.sitemap-parent-link {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #1a1f2e;
    text-decoration: none;
    margin-bottom: 8px;
}

.sitemap-parent-link:hover {
    color: var(--primary-color);
}

.sitemap-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-children li {
    margin-bottom: 4px;
}

.sitemap-children a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

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

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 6px;
}

.sitemap-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

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

.sitemap-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.sitemap-list-inline a {
    font-weight: 600;
    font-size: 15px;
}

.sitemap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 767px) {
    .sitemap-row {
        grid-template-columns: 1fr;
    }
    .sitemap-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============ Features Section ============ */
.unity-features-section {
    background: var(--primary-color);
    padding: 32px 0;
    margin-top: 40px;
}

.unity-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.unity-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 18px 16px;
}

.unity-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
}

.unity-feature-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
}

.unity-feature-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
    margin-top: 2px;
}

@media (max-width: 991px) {
    .unity-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .unity-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Footer ============ */
.unity-footer {
    background: #1a1f2e;
    color: #c0c4cc;
    padding: 48px 0 0;
}

.unity-footer-title {
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
}

.unity-footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #8b90a0;
    margin-bottom: 16px;
}

.unity-footer-social {
    display: flex;
    gap: 10px;
}

.unity-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c4cc;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.unity-social-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.unity-footer-subtitle {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 14px;
}

.unity-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unity-footer-links li {
    margin-bottom: 8px;
}

.unity-footer-links a {
    color: #8b90a0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.unity-footer-links a:hover {
    color: #fff;
}

.unity-footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unity-footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #8b90a0;
}

.unity-footer-contacts li i {
    color: var(--primary-color);
    margin-top: 2px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.unity-footer-contacts a {
    color: #c0c4cc;
    text-decoration: none;
}

.unity-footer-contacts a:hover {
    color: #fff;
}

.unity-payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.unity-payment-logo {
    height: 28px;
    max-width: 70px;
    object-fit: contain;
    background: rgba(255,255,255,0.8);
    border-radius: 6px;
    padding: 4px 8px;
}

.unity-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}