:root {
    --red:     #D02E26;
    --red2:    #a8221b;
    --accent:  #f59e0b;
    --bg:      #f0f2f5;
    --surface: #ffffff;
    --surface2: #f8f9fc;
    --border:  #e2e8f0;
    --border2: #cbd5e1;
    --text:    #0f172a;
    --muted:   #64748b;
    --muted2:  #94a3b8;
    --card:    #ffffff;
    --blue:    #2563eb;
    --shadow:  0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 16px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.06);
    --radius:  10px;
    --radius-lg: 14px;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Nunito', sans-serif; }
a { text-decoration: none; color: inherit; }

.container, .container-fluid, .container-xxl, .container-xl, .container-lg {
    max-width: 1550px;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── ANNOUNCEMENT BAR ── */
.announce-bar {
    background: var(--red);
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    letter-spacing: 0.2px;
}
.announce-bar i { margin-right: 6px; }

/* ── INFO BAR ── */
.info-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    color: var(--muted);
}
.info-bar a { color: var(--muted); transition: color 0.15s; }
.info-bar a:hover { color: var(--red); }
.info-bar .info-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }

/* ── MAIN HEADER ── */
.main-header {
    background: var(--surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.main-header .container { display: flex; align-items: center; gap: 24px; }

.header-search { flex: 1; }
.header-search form {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border2);
    border-radius: 50px;
    overflow: hidden;
    background: var(--surface2);
    padding-right: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search form:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(208,46,38,0.08);
    background: #fff;
}
.header-search input {
    flex: 1; border: none; outline: none;
    padding: 14px 20px; font-size: 0.9rem;
    color: var(--text); font-family: 'Nunito', sans-serif;
    background: transparent;
}
.header-search input::placeholder { color: var(--muted2); }
.header-search button {
    background: transparent; border: none;
    color: var(--muted); padding: 8px 14px;
    cursor: pointer; font-size: 1rem;
    transition: color 0.15s; display: flex; align-items: center;
}
.header-search button:hover { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.header-login { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 8px 12px; border-radius: var(--radius); transition: background 0.15s; }
.header-login:hover { background: var(--surface2); }
.header-login .hl-icon { font-size: 1.4rem; color: var(--muted); flex-shrink: 0; }
.header-login .hl-main { font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.header-login .hl-sub { font-size: 0.72rem; color: var(--muted); }
.header-login:hover .hl-main { color: var(--red); }

.header-cart { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 8px 12px; border-radius: var(--radius); transition: background 0.15s; position: relative; }
.header-cart:hover { background: var(--surface2); }
.header-cart:hover .hc-label { color: var(--red); }
.hc-icon-wrap { position: relative; }
.hc-icon-wrap i { font-size: 1.4rem; color: var(--muted); }
.cart-badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--red); color: #fff;
    font-size: 0.6rem; font-weight: 800;
    min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; border-radius: 50%; padding: 0 3px;
    border: 2px solid var(--surface);
}
.hc-label { font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.hc-price { font-size: 0.72rem; color: var(--muted); }

/* ── CATEGORY NAV ── */
.cat-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}
.cat-nav .container { display: flex; }
.cat-nav a {
    color: var(--muted); font-size: 14px; font-weight: 700;
    padding: 14px 18px; white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: all 0.15s;
    display: flex; align-items: center; gap: 6px;
    letter-spacing: 0.1px;
}
.cat-nav a:hover { color: var(--text); border-bottom-color: var(--border2); }
.cat-nav a.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

/* ── BREADCRUMB ── */
.page-breadcrumb {
    background: var(--surface);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb { margin: 0; font-size: 13px; }
.breadcrumb-item a { color: var(--red); font-weight: 500; }
.breadcrumb-item.active { color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted2); }

/* ── SECTIONS ── */
.section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title {
    font-size: 1.15rem; font-weight: 800; color: var(--text);
    position: relative; padding-left: 16px;
}
.section-title::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 4px; height: 22px;
    background: var(--red); border-radius: 4px;
}
.view-all {
    font-size: 0.82rem; color: var(--red); font-weight: 600;
    display: flex; align-items: center; gap: 4px;
    transition: gap 0.15s;
}
.view-all:hover { gap: 8px; }

/* ── PRODUCT CARD ── */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    height: 100%; display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}
.product-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.product-card .img-wrap {
    background: var(--surface2);
    padding: 20px; height: 220px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.product-card img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-card .card-body {
    padding: 16px 18px 18px; flex: 1;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
}
.product-cat { font-size: 0.72rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.45; flex: 1; }
.product-price-wrap { margin-bottom: 14px; }
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--red); }
.product-old-price { font-size: 0.82rem; color: var(--muted2); text-decoration: line-through; margin-right: 5px; font-weight: 400; }
.btn-add {
    background: var(--surface2); color: var(--text);
    border: 1.5px solid var(--border);
    padding: 11px 28px; border-radius: 50px;
    font-size: 0.88rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s; width: 100%; text-align: center;
    letter-spacing: 0.2px;
}
.btn-add:hover { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 12px rgba(208,46,38,0.25); }
.btn-detail { display: none; }
.discount-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--red); color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 2px 6px rgba(208,46,38,0.3);
}

/* ── CATEGORY CARDS ── */
.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px; text-align: center;
    transition: all 0.2s; display: block; color: var(--text);
    box-shadow: var(--shadow);
}
.cat-card:hover {
    border-color: var(--red);
    box-shadow: 0 6px 24px rgba(208,46,38,0.1);
    transform: translateY(-2px); color: var(--red);
}
.cat-card .cat-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(208,46,38,0.06);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 1.5rem;
    transition: background 0.2s;
}
.cat-card:hover .cat-icon { background: rgba(208,46,38,0.12); }
.cat-card .cat-name { font-size: 0.88rem; font-weight: 700; }
.cat-card .cat-count { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }

/* ── FILTER BAR ── */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.filter-total { font-size: 0.85rem; color: var(--muted); }
.filter-total strong { color: var(--text); }
.filter-sort { width: 200px; }
.filter-search { width: 220px; }

/* ── FORMS ── */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px; font-size: 0.9rem;
    color: var(--text); background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(208,46,38,0.1);
    background: #fff;
    color: var(--text);
}
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.btn-primary { background: var(--red); border-color: var(--red); font-weight: 600; }
.btn-primary:hover { background: var(--red2); border-color: var(--red2); box-shadow: 0 4px 12px rgba(208,46,38,0.25); }
.btn-outline-primary { color: var(--red); border-color: var(--red); font-weight: 600; }
.btn-outline-primary:hover { background: var(--red); border-color: var(--red); }
.btn-outline-secondary { color: var(--muted); border-color: var(--border2); font-weight: 500; }
.btn-outline-secondary:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }

/* ── ALERTS ── */
.alert-success-custom {
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    color: #065f46; border-radius: var(--radius); padding: 12px 16px; font-size: 0.875rem;
}

/* ── PRODUCT DETAIL ── */
.detail-gallery { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.detail-gallery-inner { display: flex; align-items: flex-start; }
.detail-thumbs-side {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 8px 12px 12px;
    background: var(--surface2); overflow-y: auto; max-height: 480px;
}
.detail-main-img {
    position: relative; flex: 1; min-height: 380px;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; background: var(--surface2);
}
.detail-main-img img {
    max-height: 100%; max-width: 100%;
    object-fit: contain; transition: opacity 0.2s; border-radius: 8px;
}
.detail-thumb {
    width: 80px; height: 80px;
    border: 2px solid var(--border); border-radius: var(--radius);
    cursor: pointer; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.detail-thumb:hover { border-color: var(--red); }
.detail-thumb.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(208,46,38,0.15); }
.detail-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.detail-info { padding: 4px 0; }
.detail-title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 16px; line-height: 1.3; }

.detail-price-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.detail-discount-circle {
    width: 60px; height: 60px; background: var(--red); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 800; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(208,46,38,0.3);
}
.detail-price-group { display: flex; flex-direction: column; gap: 2px; }
.detail-old-price { font-size: 1rem; color: var(--muted2); text-decoration: line-through; font-weight: 400; }
.detail-price { font-size: 1.9rem; font-weight: 800; color: var(--red); line-height: 1; }

.detail-installment { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.detail-inst-amount { font-weight: 700; color: var(--text); }
.detail-inst-link { color: var(--blue); font-weight: 600; margin-left: 4px; }
.detail-inst-link:hover { text-decoration: underline; }

.detail-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.detail-add-form { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.detail-qty {
    display: flex; align-items: center;
    border: 1.5px solid var(--border); border-radius: 50px;
    overflow: hidden; background: var(--surface);
}
.detail-qty button {
    background: transparent; border: none;
    width: 44px; height: 52px; font-size: 1.3rem;
    cursor: pointer; font-weight: 600; color: var(--muted);
    transition: color 0.15s;
}
.detail-qty button:hover { color: var(--red); }
.detail-qty input {
    width: 46px; border: none; text-align: center;
    font-size: 1rem; font-weight: 700;
    font-family: 'Nunito', sans-serif; outline: none;
    height: 52px; background: transparent; color: var(--text);
}
.detail-buy-btn {
    flex: 1; background: var(--red); color: #fff; border: none;
    height: 52px; border-radius: var(--radius);
    font-size: 1rem; font-weight: 800; letter-spacing: 0.3px;
    cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
    font-family: 'Nunito', sans-serif;
    display: flex; align-items: center; justify-content: center;
}
.detail-buy-btn:hover { background: var(--red2); box-shadow: 0 6px 20px rgba(208,46,38,0.3); }
.detail-buy-btn:disabled { background: var(--border2); cursor: not-allowed; color: var(--muted); }

.detail-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.detail-action-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--muted); transition: color 0.15s;
}
.detail-action-item:hover { color: var(--red); }
.detail-action-item i { font-size: 1rem; }

.detail-tab-header { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-tab-btn {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 50px; padding: 9px 22px;
    font-size: 0.85rem; font-weight: 600; color: var(--muted);
    cursor: pointer; font-family: 'Nunito', sans-serif;
    transition: all 0.15s; white-space: nowrap;
}
.detail-tab-btn:hover { border-color: var(--red); color: var(--red); }
.detail-tab-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.detail-tab-content {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.detail-description { font-size: 0.9rem; line-height: 1.8; color: var(--text); }
.detail-description h1, .detail-description h2, .detail-description h3 { margin-top: 1rem; margin-bottom: .5rem; font-weight: 700; }
.detail-description h1 { font-size: 1.4rem; }
.detail-description h2 { font-size: 1.2rem; }
.detail-description h3 { font-size: 1rem; }
.detail-description strong { font-weight: 700; }
.detail-description em { font-style: italic; }
.detail-description ul, .detail-description ol { padding-left: 1.5rem; margin-bottom: .75rem; }
.detail-description li { margin-bottom: .25rem; }
.detail-description a { color: var(--blue); text-decoration: underline; }
.detail-description p { margin-bottom: .75rem; }
.detail-specs-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.detail-specs-table tr { border-bottom: 1px solid var(--border); }
.detail-specs-table tr:hover { background: var(--surface2); }
.detail-specs-table td { padding: 11px 10px; }
.detail-specs-table td:first-child { font-weight: 600; color: var(--muted); width: 150px; }
.related-section-head { display: flex; align-items: center; justify-content: space-between; }
.related-carousel-btns { display: flex; gap: 6px; }
.related-carousel { width: 100%; }
.related-scroll-wrap { display: flex; gap: 16px; overflow-x: hidden; scroll-behavior: smooth; cursor: grab; }
.related-scroll-wrap.dragging { scroll-behavior: auto; }
.related-scroll-item { flex: 0 0 calc(25% - 12px); min-width: 0; }
.related-carousel-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--border); background: var(--surface);
    color: var(--muted); font-size: 1.5rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; padding: 0;
    box-shadow: var(--shadow);
}
.related-carousel-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); background: rgba(208,46,38,0.04); }
.related-carousel-btn:disabled { opacity: 0.3; cursor: default; }
.validation-summary-valid { display: none !important; }

/* ── FOOTER ── */
footer { background: var(--surface); }

.footer-row-1 {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.shopping-banners .row > div { border-right: 1px solid var(--border); }
.shopping-banners .row > div:last-child { border-right: none; }
.shopping-banner { display: flex; }
.shopping-banner a.shopping-banner {
    display: flex; align-items: center; gap: 16px;
    color: var(--text); padding: 12px 20px; width: 100%;
    transition: background 0.15s; border-radius: var(--radius);
}
.shopping-banner a.shopping-banner:hover { background: var(--surface2); }
.shopping-banner a.shopping-banner:hover .shopping-banner-title { color: var(--red); }
.shopping-banner-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 3px; transition: color 0.15s; }
.shopping-banner-sub-title { font-size: 0.74rem; color: var(--muted); line-height: 1.5; }

.footer-row-2 {
    background: linear-gradient(135deg, #1a0606 0%, #2d0e0e 100%);
    padding: 32px 0;
}
.footer-row-2 .section-title { color: #fff; font-size: 1.05rem; }
.footer-row-2 .section-title::before { background: rgba(255,255,255,0.5); }
.newsletter-content form {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius); overflow: hidden;
    max-width: 560px; margin-left: auto;
    backdrop-filter: blur(4px);
}
.newsletter-content input {
    flex: 1; border: none; outline: none;
    padding: 13px 18px; font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
    background: transparent; color: #fff;
}
.newsletter-content input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-content button {
    background: var(--red); border: none;
    padding: 13px 22px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    color: #fff; font-size: 0.875rem; font-weight: 700;
    font-family: 'Nunito', sans-serif; white-space: nowrap;
    transition: background 0.15s;
}
.newsletter-content button:hover { background: var(--red2); }

.footer-row-3 { background: #111215; padding: 48px 0 28px; }
.footer-menu-title {
    color: #fff; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.footer-menu-content ul { list-style: none; padding: 0; margin: 0; }
.footer-menu-content li { margin-bottom: 14px; }
.footer-menu-content a { color: #6b7280; font-size: 0.84rem; transition: color 0.15s; }
.footer-menu-content a:hover { color: #e5e7eb; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact > div a {
    display: flex; align-items: flex-start; gap: 10px;
    color: #6b7280; font-size: 0.84rem; transition: color 0.15s; line-height: 1.5;
}
.footer-contact > div a:hover { color: #e5e7eb; }
.footer-bottom-bar {
    background: #0c0d0f; padding: 14px 0;
    font-size: 0.78rem; color: #4b5563;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.badge-ssl {
    background: rgba(16,185,129,0.1); color: #34d399;
    border: 1px solid rgba(16,185,129,0.2);
    font-size: 0.72rem; padding: 3px 10px; border-radius: 4px;
}

/* ── MISC ── */
.card {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--card); box-shadow: var(--shadow);
}
.badge-cat { background: rgba(208,46,38,0.07); color: var(--red); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.tag-instant { background: rgba(245,158,11,0.1); color: #d97706; font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.tag-original { background: rgba(16,185,129,0.1); color: #059669; font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; }

.table { color: var(--text); }
.table td, .table th { border-color: var(--border); }
.table th { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.table-striped > tbody > tr:nth-of-type(odd) { --bs-table-accent-bg: var(--surface2); }

.alert-danger { background: rgba(208,46,38,0.06); border-color: rgba(208,46,38,0.2); color: #991b1b; border-radius: var(--radius); }
.alert-success { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.2); color: #065f46; border-radius: var(--radius); }
.alert-warning { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.2); color: #92400e; border-radius: var(--radius); }

/* Cart overlay */
#cart-overlay > div {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ── MOBILE ── */
@media (max-width: 767px) {
    .container, .container-fluid { padding-left: 14px; padding-right: 14px; }
    .announce-bar { font-size: 12px; padding: 8px 10px; }
    .announce-bar svg { display: none; }
    .main-header .container img[alt="LicenceShop"] { height: 64px !important; }
    .cat-nav .container { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
    .cat-nav .container::-webkit-scrollbar { display: none; }
    .cat-nav a { padding: 12px 14px; font-size: 13px; white-space: nowrap; }
    .filter-bar { flex-direction: column; align-items: stretch; padding: 12px 14px; }
    .filter-bar form { flex-wrap: wrap; gap: 8px; }
    .filter-sort, .filter-search { width: 100% !important; }
    .product-card .img-wrap { height: 160px; padding: 14px; }
    .btn-add { padding: 10px 16px; font-size: 0.85rem; }
    .detail-gallery-inner { flex-direction: column; }
    .detail-thumbs-side {
        flex-direction: row; overflow-x: auto; overflow-y: hidden;
        max-height: none; border-top: 1px solid var(--border);
        padding: 8px 10px; order: 2; -webkit-overflow-scrolling: touch;
    }
    .detail-thumbs-side::-webkit-scrollbar { display: none; }
    .detail-main-img { order: 1; min-height: 240px; padding: 16px; }
    .detail-thumb { width: 70px; height: 70px; flex-shrink: 0; }
    .detail-title { font-size: 1.2rem; margin-bottom: 8px; }
    .detail-price { font-size: 1.5rem; }
    .detail-old-price { font-size: 0.95rem; }
    .detail-add-form { flex-wrap: wrap; }
    .detail-buy-btn { flex: 1; justify-content: center; min-width: 160px; }
    .related-scroll-item { flex: 0 0 calc(50% - 8px); }
    .related-carousel-btn { width: 30px; height: 30px; font-size: 1.2rem; }
    .detail-tab-btn { padding: 9px 14px; font-size: 0.82rem; }
    .newsletter-content form { margin-left: 0; max-width: 100%; }
    .shopping-banners .row > div:nth-child(even) { border-right: none; }
    .shopping-banner-sub-title { display: none; }
    .footer-row-3 { padding: 28px 0 18px; }
}

@media (max-width: 575px) {
    .product-card .img-wrap { height: 140px; padding: 10px; }
    .product-name { font-size: 0.85rem; }
    .product-price { font-size: 1rem; }
    .btn-add { font-size: 0.8rem; padding: 9px 12px; }
    .detail-title { font-size: 1.1rem; }
    .detail-price { font-size: 1.3rem; }
    .announce-bar { font-size: 11px; }
    .main-header { padding: 10px 0; }
    .main-header .container { gap: 10px; }
    .page-breadcrumb { padding: 14px 0; }
    .breadcrumb { font-size: 12px; }
}
