/* ================================================================
   XSITE — Design System v5 (clean, minimal, no syntax errors)
   ================================================================ */

:root {
    --bg-body: #F8FAFC;
    --bg-nav: #0F1B4C;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-color: #E2E8F0;
    --accent-color: #4F46E5;
}

[data-theme="dark"] {
    --bg-body: #0B0F19;
    --bg-nav: #020617;
    --bg-card: #111827;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: #1F2937;
    --accent-color: #6366F1;
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* â”€â”€ CONTAINER â”€â”€ */
.xs-wrap {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    background-color: #020617; /* Deeper, richer premium dark */
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
}
.site-header .xs-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

/* Header Left Group (Logo + Deliver To) */
.hdr-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 280px; /* Forces exact sidebar alignment! */
    flex-shrink: 0;
}

/* Logo */
.hdr-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    text-decoration: none;
}
.hdr-logo__icon {
    width: 44px;
    height: 44px;
    background-color: #6C3BFC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

/* Deliver To */
.hdr-deliver {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    color: #9CA3AF;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}
.hdr-deliver:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #ffffff;
}
.hdr-deliver i {
    font-size: 16px;
    margin-bottom: 3px;
}
.hdr-deliver__text {
    display: flex;
    flex-direction: column;
}
.hdr-deliver__top {
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1;
    margin-bottom: 2px;
}
.hdr-deliver__bottom {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* Search */
.hdr-search {
    flex: 1;
    height: 52px;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-left: 0; 
    margin: 0; 
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hdr-search:focus-within {
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}
.hdr-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #111827;
    background: transparent;
    padding-left: 14px;
}
.hdr-search__input::placeholder { color: #9CA3AF; }
.hdr-search__sep {
    width: 1px;
    height: 28px;
    background-color: #E5E7EB;
    margin: 0 14px;
    flex-shrink: 0;
}
.hdr-search__cat {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
    padding-left: 20px; 
    padding-right: 8px;
}
.hdr-search__btn {
    background: linear-gradient(135deg, #4F46E5, #3B82F6);
    border: none;
    height: 100%;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
    border-radius: 0; 
    cursor: pointer;
    transition: all 0.25s ease;
}
.hdr-search__btn:hover {
    background: linear-gradient(135deg, #4338CA, #2563EB);
    box-shadow: -2px 0 12px rgba(79, 70, 229, 0.25);
}

/* Right actions */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 8px; 
    flex-shrink: 0;
    margin-left: auto;
}

.hdr-sell-btn {
    display: none;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.hdr-sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 59, 252, 0.5);
    color: #ffffff;
    background: linear-gradient(135deg, #5b52f5, #8a4cf7);
}
.hdr-sell-btn i { font-size: 20px; } 

.hdr-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
}
.hdr-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.hdr-link i {
    font-size: 18px;
    margin-bottom: 2px;
}

.hdr-chevron {
    font-size: 10px !important;
    color: var(--text-muted) !important;
}

/* Account dropdown */
.hdr-dropdown {
    border-radius: 14px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    min-width: 200px;
    padding: 8px 0;
    margin-top: 14px !important; /* give it some space to detach from header */
    animation: dropdownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hdr-dropdown .dropdown-item {
    font-size: 13.5px;
    padding: 9px 16px;
    color: var(--text-main);
}

.hdr-dropdown .dropdown-item:hover {
    background-color: #F3F4F6;
}

/* Cart */
.hdr-cart {
    gap: 8px;
}

.hdr-cart__icon {
    position: relative;
    display: flex;
    align-items: center;
}

.hdr-cart__badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background-color: #4F46E5;
    color: var(--bg-card);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Show Start Selling on desktop */
@media (min-width: 1024px) {
    .hdr-sell-btn {
        display: inline-flex;
    }
}

@media (max-width: 1199px) {
    .xs-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Responsive search */
@media (max-width: 767px) {
    .xs-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hdr-search {
        max-width: 100%;
    }

    .hdr-search__cat,
    .hdr-search__sep {
        display: none;
    }
}

/* ================================================================
   CATEGORY NAV
   ================================================================ */
.cat-nav {
    background-color: var(--bg-card);
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.cat-nav .xs-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-nav .xs-wrap::-webkit-scrollbar {
    display: none;
}

.cat-menu-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.cat-menu-btn:hover {
    background-color: #F3F4F6;
}

.cat-tab {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
    text-decoration: none;
}

.cat-tab:hover {
    color: var(--text-main);
}

.cat-tab.is-active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

.cat-more-btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* ================================================================
   HERO BANNER
   ================================================================ */
.hero-section {
    padding-top: 16px;
    padding-bottom: 0;
}

.hero-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.hero-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================================
   TRUST / FEATURE BAR (Moved to bottom of file for marquee upgrade)
   ================================================================ */

/* ================================================================
   MAIN CONTENT (sidebar + products)
   ================================================================ */
.main-content {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* Sidebar */
.sidebar-panel {
    width: 200px;
    flex-shrink: 0;
    background-color: var(--bg-card);
    border-radius: 14px;
    padding: 20px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    margin-bottom: 2px;
}

.sidebar-link i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.sidebar-link:hover {
    background-color: #F3F4F6;
    color: var(--text-main);
}

.sidebar-link.is-active {
    background-color: #EFF6FF;
    color: #2563EB;
    font-weight: 600;
}

/* Products panel */
.products-panel {
    flex: 1;
    min-width: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.section-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.section-view-all:hover {
    color: #1D4ED8;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Product card */
.prod-card {
    background-color: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

/* Badge */
.prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    color: var(--bg-card);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-yellow {
    background-color: #F59E0B;
}

.badge-green {
    background-color: #10B981;
}

.badge-purple {
    background-color: #7C3AED;
}

/* Card image */
.prod-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--border-color);
    overflow: hidden;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prod-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 22px;
}

/* Card body */
.prod-body {
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
}

.prod-name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.prod-stars {
    color: #F59E0B;
    font-size: 11px;
}

.prod-reviews {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}

.prod-price-row {
    display: flex;
    align-items: baseline;
    margin-top: auto;
    margin-bottom: 12px;
}

.prod-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.prod-old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.prod-buy-btn {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: var(--bg-card);
    border: none;
    height: 40px;
    border-radius: 0 0 14px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.15s, background 0.2s;
    cursor: pointer;
}

.prod-buy-btn:hover {
    opacity: 0.88;
    color: var(--bg-card);
}

.prod-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.prod-card-link:hover .prod-name {
    color: #2563EB;
}

.prod-actions {
    border-top: 1px solid #F3F4F6;
}

.prod-actions form {
    margin: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
}

/* Bottom padding */
.pb-section {
    padding-bottom: 60px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .sidebar-panel {
        display: none;
    }

    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 575px) {
    .trust-bar {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.mockup-card {
    position: relative;
    background: transparent;
    border: none;
    z-index: 1;
}

.mockup-card::before {
    content: "";
    position: absolute;
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.2s ease;
}

.mockup-card:hover::before {
    border-color: #CBD5E1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.mockup-img-wrapper {
    background: #f4f4f5;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1;
    /* Enforces a perfect square bounding box */
}

.mockup-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Forces wrong-sized rectangular images to perfectly fill the square */
    transition: transform 0.3s ease;
}

.mockup-card:hover .mockup-img-wrapper img {
    transform: scale(1.05);
}

.mockup-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    min-height: 2.8em;
    /* Forces exactly 2 lines height so cards perfectly align */
    transition: color 0.2s ease;
}

.mockup-card:hover .mockup-title {
    color: #4f46e5;
}

.mockup-btn-cart {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid #e4e4e7;
    border-radius: 50rem;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 0;
    width: 100%;
    transition: all 0.2s;
}

.mockup-btn-cart:hover {
    background: #f8fafc;
    border-color: #d4d4d8;
}

.mockup-btn-buy {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    border: none;
    border-radius: 50rem;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 0;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.mockup-btn-buy:hover {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.mockup-price {
    color: #0F1B4C;
    font-size: 18px;
    letter-spacing: -0.5px;
    line-height: 1;
    font-weight: 700;
}

/* Mobile scaling */
@media (max-width: 575px) {
    .mockup-title {
        font-size: 13px;
        min-height: 2.8em;
    }

    .mockup-price {
        font-size: 15.5px;
    }

    .mockup-btn-buy {
        font-size: 11px !important;
    }
}

/* ===== SKELETON SHIMMER ===== */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background-color: var(--border-color);
}

.skeleton-shimmer::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ===== UTILITIES & SALES TOAST ===== */
.hover-primary:hover {
    color: #4F46E5 !important;
    transition: color 0.2s;
}

.sales-toast {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 320px;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border: 1px solid var(--border-color);
}

.sales-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sales-toast img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-body);
}

.sales-toast-text {
    flex: 1;
    min-width: 0;
}

.sales-toast-text h6 {
    font-size: 12px;
    margin: 0 0 2px 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sales-toast-text p {
    font-size: 11px;
    margin: 0;
    color: var(--text-muted);
}

.sales-toast-text small {
    font-size: 10px;
    color: #4F46E5;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* ================================================================
   HOMEPAGE MAIN LAYOUT
   ================================================================ */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   FILTER SIDEBAR
   ================================================================ */
  @media (min-width: 992px) {
      .filter-sidebar {
          background: var(--bg-card);
          border-radius: 16px;
          border: 1px solid var(--border-color);
          overflow: hidden;
          position: sticky;
          top: 100px;
      }
  }

.filter-title {
    font-size: 16px;
    font-weight: 800;
    padding: 20px 24px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-header {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.filter-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.filter-check-item:last-child {
    margin-bottom: 0;
}

.filter-check-item input {
    display: none;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #CBD5E1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-check-item input:checked + .check-box {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-check-item input:checked + .check-box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
}

.check-label {
    font-size: 13.5px;
    color: var(--text-muted);
}

.filter-check-item:hover .check-label,
.filter-check-item input:checked ~ .check-label {
    color: var(--text-main);
    font-weight: 500;
}

/* ================================================================
   TRUST BAR (MARQUEE UPGRADE)
   ================================================================ */
.trust-bar {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.trust-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.trust-item[aria-hidden="true"] {
    display: none; /* Hidden on desktop */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px;
    border-right: 1px solid var(--border-color);
}

.trust-item:last-child,
.trust-item:nth-child(4) {
    border-right: none;
}

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.trust-icon.blue { background: rgba(59,130,246,0.1); color: #3B82F6; }
.trust-icon.green { background: rgba(16,185,129,0.1); color: #10B981; }
.trust-icon.purple { background: rgba(139,92,246,0.1); color: #8B5CF6; }
.trust-icon.amber { background: rgba(245,158,11,0.1); color: #F59E0B; }

.trust-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.trust-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Trust bar marquee on mobile */
  @media (max-width: 991px) {
      .trust-bar {
          padding: 0;
          border-radius: 0;
          margin-left: -24px;
          margin-right: -24px;
          border-left: none;
          border-right: none;
      }
      
  @media (max-width: 767px) {
      .trust-bar {
          margin-left: -12px;
          margin-right: -12px;
      }
  }
    
    @keyframes trust-marquee {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    
    .trust-track {
        display: flex;
        width: max-content;
        gap: 0;
        animation: trust-marquee 15s linear infinite;
    }
    
    .trust-item {
        border-right: 1px solid var(--border-color);
        padding: 12px 24px;
        flex: 0 0 auto;
    }
    
    .trust-item[aria-hidden="true"] {
        display: flex; /* Show duplicates on mobile for infinite loop */
    }
    
    .trust-bar:hover .trust-track {
        animation-play-state: paused;
    }
}

/* ================================================================
   MOBILE HEADER FIXES
   ================================================================ */
.hdr-mobile-menu {
    display: none;
}

@media (max-width: 1199px) {
    .hdr-left-group { width: auto; gap: 12px; }
    .hdr-logo { font-size: 22px; }
}

@media (max-width: 991px) {
    .hdr-link span { display: none; }
    .hdr-actions { gap: 12px; }
}

@media (max-width: 767px) {
    .site-header { height: auto; padding: 12px 0; }
    .site-header .xs-wrap { 
        flex-wrap: wrap; 
        gap: 12px 0; 
        align-items: center; 
    }

    .hdr-mobile-menu { 
        display: flex !important; 
        border: 1px solid rgba(255,255,255,0.15) !important;
        border-radius: 8px;
        background: rgba(255,255,255,0.05) !important;
        color: #ffffff !important;
        font-size: 20px;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        flex-shrink: 0;
        transition: all 0.2s;
    }
    .hdr-mobile-menu:hover {
        background: rgba(255,255,255,0.1) !important;
    }
    
    .hdr-logo span { display: none; }
    .hdr-logo { min-width: auto; gap: 0; flex-shrink: 0; }
    .hdr-left-group { margin-right: auto; }
    
    .hdr-search { 
        display: flex !important; 
        flex: 0 0 100% !important; 
        width: 100%;
        max-width: 100%;
        height: 40px;
        margin: 0;
        padding-left: 14px;
        order: 3; 
        border-radius: 12px;
    }
    
    .hdr-search__cat, .hdr-search__sep, .hdr-search__close { display: none !important; }
    .hdr-search__btn { border-radius: 0 12px 12px 0; height: 100%; width: 50px; }
    
    .hdr-actions { gap: 4px; margin-left: 0; flex-shrink: 0; }
    .hdr-link { padding: 8px; } 
    .hdr-link i { font-size: 20px; margin-bottom: 0; }
}


/* ================================================================
   PLAY STORE STYLE SLIDER (2-ROW HORIZONTAL)
   ================================================================ */
.play-slider {
    display: grid;
    grid-template-rows: 1fr;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible; /* Need visible for card hover shadows */
    padding-bottom: 24px;
    padding-top: 12px;
    margin: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}

.play-slider:active {
    cursor: grabbing;
}

/* Prevent native drag ghosts from breaking JS swipe */
.play-slider a, .play-slider img {
    -webkit-user-drag: none;
    user-select: none;
}

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

.play-card {
    scroll-snap-align: start;
    height: 100%;
}

@media (max-width: 991px) {
    .play-slider {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 767px) {
    .play-slider {
        grid-auto-columns: 180px;
        gap: 20px;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}
