
  :root {
    --bg: #0a0a0c;
    --bg-2: #141417;
    --bg-3: #1e1e22;
    --gold: #b9c1cd;        /* now silver (var name kept) */
    --gold-2: #e3e8ef;      /* bright silver */
    --gold-dim: #71777f;    /* dim silver */
    --text: #e8eaef;
    --text-dim: #a7adb9;
    --border: rgba(186, 196, 210, 0.16);
    --card: rgba(22, 22, 26, 0.5);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { background: var(--bg); }
  body {
    color: var(--text); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased;
    background: transparent;
    min-height: 100vh;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  /* ====== HEADER ====== */
  .header {
    position: relative; z-index: 50;
    background: rgba(10, 9, 8, 0.55);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-bottom: 1px solid rgba(186, 196, 210, 0.10);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .header.scrolled {
    background: rgba(6, 5, 4, 0.86);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(186, 196, 210, 0.22);
  }
  .header-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
  }
  .logo {
    font-family: 'Cinzel', serif;
    font-size: 22px; font-weight: 700; letter-spacing: 1px;
    color: var(--gold-2);
    text-shadow: 0 0 20px rgba(186, 196, 210, 0.4);
  }
  .nav {
    display: flex; gap: 8px; align-items: center;
  }
  .nav a {
    padding: 8px 16px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--text-dim);
    transition: all 0.2s;
  }
  .nav a:hover { color: var(--gold-2); background: rgba(186, 196, 210, 0.08); }
  .nav a.active { color: var(--gold-2); background: rgba(186, 196, 210, 0.12); }
  .header-actions { display: flex; gap: 12px; align-items: center; }
  .btn-login {
    padding: 9px 18px; border-radius: 8px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
  }
  .btn-login:hover { border-color: var(--gold); color: var(--gold-2); }
  .basket-btn {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(186, 196, 210, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(186, 196, 210, 0.28);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--gold-2); font-size: 14px;
    transition: all 0.2s;
  }
  .basket-btn svg { width: 15px; height: 15px; }
  .basket-btn:hover { background: rgba(186, 196, 210, 0.18); border-color: var(--gold); }

  /* ====== HERO ====== */
  .hero {
    position: relative;
    padding: 80px 32px 100px;
    overflow: hidden;
  }
  .hero-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
    position: relative; z-index: 1;
  }
  .hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 56px; font-weight: 700; line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--gold-2) 60%, var(--gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero h1 .accent { color: var(--gold); -webkit-text-fill-color: var(--gold); }
  .hero p {
    font-size: 17px; color: var(--text-dim);
    line-height: 1.6; margin-bottom: 32px; max-width: 480px;
  }
  .hero-logo {
    width: 100%; max-width: 540px; height: auto;
    margin-bottom: 26px;
    mix-blend-mode: screen;   /* makes a black-background logo blend in seamlessly */
    filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55));
  }
  /* Code-built ZOO SCRIPTS logo (shown when logo.png is not provided) */
  .zoo-logo {
    display: inline-block; margin-bottom: 28px;
    font-family: 'Inter', sans-serif; font-weight: 900;
    letter-spacing: -2px; line-height: 0.9; user-select: none;
  }
  .zoo-logo .zl-1 {
    font-size: clamp(58px, 9vw, 104px);
    background-image:
      linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.92) 47%, rgba(255,255,255,0.92) 53%, transparent 68%),
      linear-gradient(180deg, #ffffff 0%, #d3d8e0 55%, #9298a4 100%);
    background-size: 220% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.5));
    animation: zoo-shine 4.5s ease-in-out infinite;
  }
  .zoo-logo .zl-1 .zl-chev { color: #757b86; -webkit-text-fill-color: #757b86; margin-left: 4px; }
  .zoo-logo .zl-2 {
    font-size: clamp(36px, 5.6vw, 64px); margin-top: 4px;
    background-image:
      linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.92) 47%, rgba(255,255,255,0.92) 53%, transparent 68%),
      linear-gradient(180deg, #ffffff 0%, #d3d8e0 55%, #9298a4 100%);
    background-size: 220% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: zoo-shine 4.5s ease-in-out infinite;
    animation-delay: 0.55s;
  }
  .zoo-logo .zl-2 .zl-tag { color: #757b86; -webkit-text-fill-color: #757b86; font-weight: 800; margin-right: 2px; }
  @keyframes zoo-shine {
    0%   { background-position: 160% 0, 0 0; }
    35%  { background-position: -60% 0, 0 0; }
    100% { background-position: -60% 0, 0 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .zoo-logo .zl-1, .zoo-logo .zl-2 { animation: none; }
  }
  .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary {
    padding: 14px 28px; border-radius: 10px;
    background: rgba(186, 196, 210, 0.18);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: var(--gold-2); font-size: 15px; font-weight: 700;
    border: 1px solid rgba(186, 196, 210, 0.45); cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(186, 196, 210, 0.3);
    border-color: var(--gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 12px 32px rgba(186, 196, 210, 0.25);
  }
  .btn-secondary {
    padding: 14px 28px; border-radius: 10px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text); font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
  }
  .btn-secondary:hover { border-color: var(--gold); }

  .hero-art {
    position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center;
    border-radius: 16px;
    background-image: linear-gradient(135deg, rgba(186, 196, 210, 0.10), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1605806616949-59175cdc1cb3?w=900');
    background-size: cover; background-position: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  }

  /* ====== FEATURES ====== */
  .features {
    max-width: 980px; margin: 0 auto;
    padding: 40px 32px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  }
  .feature {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.2s;
  }
  .feature:hover { transform: translateY(-2px); }
  .feature-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(186, 196, 210, 0.18), rgba(186, 196, 210, 0.05));
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; color: var(--gold-2);
  }
  .feature-icon svg { width: 16px; height: 16px; }
  .feature h3 {
    font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text);
  }
  .feature p { font-size: 11.5px; color: var(--text-dim); line-height: 1.45; }

  /* ====== BROWSE ====== */
  .browse {
    max-width: 1280px; margin: 0 auto;
    padding: 40px 32px 80px;
  }
  .section-eyebrow {
    text-align: center; font-size: 12px; font-weight: 600;
    letter-spacing: 3px; color: var(--gold); text-transform: uppercase;
    margin-bottom: 12px;
  }
  .section-title {
    font-family: 'Cinzel', serif;
    text-align: center; font-size: 42px; font-weight: 700;
    margin-bottom: 8px; color: var(--text);
  }
  .section-sub {
    text-align: center; font-size: 15px; color: var(--text-dim);
    margin-bottom: 40px;
  }
  .browse-controls {
    display: flex; gap: 16px; align-items: center;
    margin-bottom: 32px; flex-wrap: wrap;
  }
  .search {
    flex: 1; min-width: 280px;
    position: relative;
  }
  .search input {
    width: 100%; padding: 13px 16px 13px 44px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text); font-size: 14px; font-family: inherit;
    transition: border-color 0.2s;
  }
  .search input:focus { outline: none; border-color: var(--gold-dim); }
  .search input::placeholder { color: var(--text-dim); }
  .search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
  .filters { display: flex; gap: 8px; }
  .chip {
    padding: 10px 18px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--border);
    color: var(--text-dim); font-size: 13px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
  }
  .chip:hover { color: var(--text); }
  .chip.active {
    background: var(--text); color: var(--bg); border-color: var(--text);
  }
  .results-count { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

  .grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  }
  .card {
    background: rgba(15, 14, 13, 0.48);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    border: 1px solid rgba(186, 196, 210, 0.16);
    border-radius: 16px; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
    display: flex; flex-direction: column;
  }
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(186, 196, 210, 0.45);
    background: rgba(20, 18, 16, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 48px rgba(0, 0, 0, 0.45);
  }
  .card-img {
    aspect-ratio: 16 / 9; background: var(--bg-3);
    background-size: cover; background-position: center;
    position: relative;
  }
  .card-img.fasttravel { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=800'); }
  .card-img.scale     { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1605806616949-59175cdc1cb3?w=800'); }
  .card-img.doctor    { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1551601651-bc60f254d532?w=800'); }
  .card-img.legend    { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1574144611937-0df059b5ef3e?w=800'); }
  .card-img.transport { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1547036967-23d11aacaee0?w=800'); }
  .card-img.hunting   { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=800'); }
  .card-tag {
    position: absolute; top: 12px; left: 12px;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(14, 10, 6, 0.85); backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    font-size: 11px; font-weight: 600; color: var(--gold-2);
    text-transform: uppercase; letter-spacing: 1px;
  }
  .card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
  .card-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
  .card-desc {
    font-size: 13px; color: var(--text-dim); line-height: 1.55;
    margin-bottom: 18px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 14px; border-top: 1px solid var(--border);
  }
  .card-price {
    font-size: 18px; font-weight: 700; color: var(--gold-2);
  }
  .card-price.free { color: #8be78b; }
  .card-btn {
    padding: 8px 16px; border-radius: 8px;
    background: rgba(186, 196, 210, 0.12); border: 1px solid var(--border);
    color: var(--gold-2); font-size: 12px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .card-btn:hover { background: var(--gold); color: #1a120a; border-color: var(--gold); }

  /* ====== BASKET DRAWER ====== */
  .basket-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 90;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .basket-overlay.open { opacity: 1; pointer-events: auto; }
  .basket-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 420px; max-width: 92vw;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid rgba(186, 196, 210, 0.15);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    padding: 24px 28px;
  }
  .basket-drawer.open { transform: translateX(0); }
  .basket-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(186, 196, 210, 0.18);
    margin-bottom: 24px;
  }
  .basket-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px; color: var(--gold-2); letter-spacing: 2px; font-weight: 700;
  }
  .basket-close {
    background: transparent; border: none;
    color: var(--text-dim); font-size: 22px; cursor: pointer;
    width: 32px; height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .basket-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }
  .basket-body {
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px;
  }
  .basket-body.empty {
    align-items: center; justify-content: center;
  }
  .basket-empty {
    color: var(--text-dim); font-size: 14px;
    text-align: center; margin: auto;
  }
  .basket-item {
    display: flex; gap: 12px; align-items: center;
    padding: 12px; border-radius: 10px;
    background: rgba(186, 196, 210, 0.04);
    border: 1px solid rgba(186, 196, 210, 0.15);
  }
  .basket-item-img {
    width: 56px; height: 56px; border-radius: 8px;
    background-size: cover; background-position: center;
    background-color: rgba(186, 196, 210, 0.08);
    flex-shrink: 0;
  }
  .basket-item-info { flex: 1; min-width: 0; }
  .basket-item-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .basket-item-price {
    font-size: 12px; color: var(--gold-2); margin-top: 2px;
  }
  .basket-item-remove {
    background: transparent; border: none; cursor: pointer;
    color: var(--text-dim); font-size: 18px;
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .basket-item-remove:hover { color: #e07b7b; background: rgba(224, 123, 123, 0.08); }
  .basket-footer {
    border-top: 1px solid rgba(186, 196, 210, 0.18);
    padding-top: 18px; margin-top: 18px;
  }
  .basket-total-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
    font-size: 14px; color: var(--text-dim);
  }
  .basket-total {
    font-family: 'Cinzel', serif; font-size: 22px; color: var(--gold-2); font-weight: 700;
  }
  .btn-checkout {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
    color: #1a120a; font-weight: 700; font-size: 14px; letter-spacing: 1px;
    border: none; border-radius: 10px; cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
  }
  .btn-checkout:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(186, 196, 210, 0.4); }
  .btn-checkout:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
  .grid-loading, .grid-error {
    grid-column: 1 / -1;
    text-align: center; padding: 60px 20px;
    color: var(--text-dim);
  }
  .grid-error { color: #e07b7b; }
  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: rgba(34, 23, 16, 0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(186, 196, 210, 0.4);
    padding: 14px 24px; border-radius: 10px;
    color: var(--text); font-size: 14px;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  /* ====== PRODUCT DETAIL PAGE ====== */
  .product-view { display: none; max-width: 1280px; margin: 0 auto; padding: 30px 32px 60px; }
  .product-view.active { display: block; }
  .breadcrumb {
    font-size: 13px; color: var(--text-dim); margin-bottom: 28px;
    display: flex; align-items: center; gap: 8px;
  }
  .breadcrumb a { color: var(--text-dim); cursor: pointer; transition: color 0.2s; }
  .breadcrumb a:hover { color: var(--gold-2); }
  .breadcrumb .sep { color: rgba(186, 196, 210, 0.4); }
  .breadcrumb .current { color: var(--text); }
  .product-detail {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: flex-start;
  }
  .gallery-main {
    aspect-ratio: 16/10; border-radius: 14px;
    background-color: var(--card); background-size: cover; background-position: center;
    border: 1px solid rgba(186, 196, 210, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  .gallery-thumbs {
    display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
  }
  .gallery-thumbs .thumb {
    width: 90px; aspect-ratio: 16/10; border-radius: 8px;
    background-size: cover; background-position: center;
    border: 2px solid transparent; cursor: pointer;
    opacity: 0.65; transition: opacity 0.2s, border-color 0.2s;
  }
  .gallery-thumbs .thumb:hover { opacity: 1; }
  .gallery-thumbs .thumb.active { opacity: 1; border-color: var(--gold); }
  .pd-title {
    font-family: 'Cinzel', serif;
    font-size: 30px; font-weight: 700; margin-bottom: 12px; color: var(--text);
    line-height: 1.2;
  }
  .pd-price { font-size: 26px; font-weight: 700; color: var(--gold-2); margin-bottom: 22px; }
  .pd-price.free { color: #8be78b; }
  .pd-actions { display: flex; gap: 10px; margin-bottom: 28px; }
  .btn-buy {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px; border-radius: 10px;
    background: rgba(186, 196, 210, 0.06);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: var(--gold-2); font-size: 14px; font-weight: 700; font-family: inherit;
    border: 1px solid rgba(186, 196, 210, 0.28); cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
  }
  .btn-buy:hover { background: rgba(186, 196, 210, 0.18); border-color: var(--gold); transform: translateY(-1px); }
  .btn-gift {
    width: 46px; height: 46px; border-radius: 10px;
    background: rgba(34, 23, 16, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(186, 196, 210, 0.22);
    color: var(--gold-2); cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .btn-gift:hover { background: rgba(186, 196, 210, 0.1); }
  .pd-description {
    border-top: 1px solid var(--border); padding-top: 22px;
    font-size: 14px; color: var(--text-dim); line-height: 1.7;
  }
  .pd-description h2 { color: var(--text); font-size: 18px; margin: 18px 0 10px; font-weight: 600; }
  .pd-description h3 { color: var(--gold-2); font-size: 14px; margin: 18px 0 8px; font-weight: 600; }
  .pd-description p { margin-bottom: 10px; }
  .pd-description ol, .pd-description ul { margin-left: 22px; margin-bottom: 12px; }
  .pd-description li { margin-bottom: 4px; }
  .pd-description code {
    background: rgba(186, 196, 210, 0.12);
    padding: 2px 7px; border-radius: 4px;
    color: var(--gold-2); font-size: 12.5px;
  }
  .pd-description hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
  .pd-description strong { color: var(--text); }
  .pd-description .preview-link { color: #5aa8ff; cursor: pointer; }
  @media (max-width: 880px) {
    .product-detail { grid-template-columns: 1fr; }
  }

  /* ====== RECENT CUSTOMERS PILL ====== */
  .recent-customers {
    display: inline-flex; align-items: center; gap: 16px;
    padding: 10px 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .rc-label {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    color: var(--text); text-transform: uppercase;
  }
  .rc-label svg { color: var(--gold-2); }
  .rc-divider { width: 1px; height: 22px; background: rgba(186, 196, 210, 0.3); }
  .rc-avatars { display: flex; align-items: center; }
  .rc-avatars .av {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid rgba(20, 14, 8, 0.95);
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #1a120a; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-left: -10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }
  .rc-avatars .av:first-child { margin-left: 0; }
  .rc-avatars .av img { width: 100%; height: 100%; object-fit: cover; }
  .rc-wrapper {
    text-align: center;
    padding: 0 32px;
    margin-top: 40px;
    margin-bottom: 10px;
  }

  /* ====== FOOTER ====== */
  .footer {
    padding: 40px 32px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 18px; font-weight: 700; letter-spacing: 1px;
    color: var(--gold-2); margin-bottom: 8px;
  }
  .footer p { font-size: 13px; color: var(--text-dim); }
  .footer-links { display: flex; justify-content: center; gap: 24px; margin: 16px 0; }
  .footer-links a { font-size: 13px; color: var(--text-dim); }
  .footer-links a:hover { color: var(--gold-2); }

  /* ====== RESPONSIVE ====== */
  @media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-art { display: none; }
    .hero h1 { font-size: 38px; }
    .hero-logo { max-width: 360px; margin-left: auto; margin-right: auto; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; }
  }
  @media (max-width: 600px) {
    .features, .grid { grid-template-columns: 1fr; }
    .section-title { font-size: 30px; }
  }

/* ===== TEBEX OVERRIDES ===== */
body.is-navigation-horizontal .site-header-inner,
.site-header-inner { display: none !important; }
.site-navigation { display: none !important; }
tebex-footer { display: block !important; }
.site-content { max-width: none !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
.store-sidebar { display: none !important; }
.site-footer { display: none !important; }
/* Tebex basket buttons */
.btn-primary.add, .add.btn-primary { 
  background: rgba(186, 196, 210, 0.12) !important;
  border: 1px solid rgba(186, 196, 210, 0.28) !important;
  color: var(--gold-2) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}
.btn-primary.add:hover {
  background: var(--gold) !important;
  color: #1a120a !important;
  border-color: var(--gold) !important;
}

/* ===== FIX TEBEX .site OVERRIDES ===== */
/* shared.css sets .site { display:grid; font-size:14px } which breaks our layout */
.site {
  display: block !important;
  font-size: 16px !important;
  gap: 0 !important;
  min-height: 100vh !important;
}
/* Force correct font sizes on our elements */
.zoo-logo .zl-1 { font-size: clamp(58px, 9vw, 104px) !important; }
.zoo-logo .zl-2 { font-size: clamp(36px, 5.6vw, 64px) !important; }
.header { font-size: 14px !important; }
.hero h1 { font-size: clamp(30px, 4vw, 56px) !important; }
.section-title { font-size: clamp(30px, 4vw, 42px) !important; }
.card-price { font-size: 18px !important; }
/* Fix hero grid */
.hero-inner { display: grid !important; grid-template-columns: 1.2fr 1fr !important; gap: 48px !important; align-items: center !important; }
/* Fix features grid */
.features { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 14px !important; }
/* Fix cards grid */
.grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
/* Fix header flex */
.header-inner { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 14px 32px !important; max-width: 1280px !important; margin: 0 auto !important; }

/* ===== BUTTON OVERRIDES — force SPA glass style ===== */
a.btn-primary, button.btn-primary, .btn-primary {
  display: inline-block !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  background: rgba(186, 196, 210, 0.18) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  color: var(--gold-2) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(186, 196, 210, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 24px rgba(0,0,0,0.25) !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
a.btn-primary:hover, button.btn-primary:hover, .btn-primary:hover {
  transform: translateY(-2px) !important;
  background: rgba(186, 196, 210, 0.3) !important;
  border-color: var(--gold) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 12px 32px rgba(186,196,210,0.25) !important;
}
a.btn-secondary, button.btn-secondary, .btn-secondary {
  display: inline-block !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
a.btn-secondary:hover, button.btn-secondary:hover, .btn-secondary:hover {
  border-color: var(--gold) !important;
  color: var(--gold-2) !important;
}

/* ===== GLOW EFFECTS — Buttons + Logo ===== */
/* Browse Scripts button — bright silver glass glow */
a.btn-primary, button.btn-primary, .btn-primary {
  background: rgba(210, 218, 228, 0.12) !important;
  border: 1px solid rgba(220, 228, 238, 0.6) !important;
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255,255,255,0.6) !important;
  box-shadow:
    0 0 14px rgba(200,210,225,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 24px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}
a.btn-primary:hover, button.btn-primary:hover, .btn-primary:hover {
  background: rgba(210, 218, 228, 0.22) !important;
  border-color: rgba(240,245,255,0.8) !important;
  box-shadow:
    0 0 24px rgba(200,210,225,0.5),
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 12px 32px rgba(0,0,0,0.35) !important;
  transform: translateY(-2px) !important;
}

/* Join Discord button — transparent with silver glow border */
a.btn-secondary, button.btn-secondary, .btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(200,210,225,0.55) !important;
  color: rgba(230,235,242,0.9) !important;
  box-shadow: 0 0 10px rgba(200,210,225,0.15), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  font-weight: 500 !important;
}
a.btn-secondary:hover, button.btn-secondary:hover, .btn-secondary:hover {
  border-color: rgba(230,235,245,0.85) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(200,210,225,0.35), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  transform: translateY(-1px) !important;
}

/* ZOO SCRIPTS logo — brighter chrome gradient + stronger glow */
.zoo-logo .zl-1 {
  background-image:
    linear-gradient(115deg, transparent 32%, rgba(255,255,255,1) 47%, rgba(255,255,255,1) 53%, transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #c8cdd5 40%, #858c9a 75%, #5a6070 100%) !important;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.6)) drop-shadow(0 0 8px rgba(200,210,230,0.3)) !important;
}
.zoo-logo .zl-2 {
  background-image:
    linear-gradient(115deg, transparent 32%, rgba(255,255,255,1) 47%, rgba(255,255,255,1) 53%, transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #c8cdd5 40%, #858c9a 75%, #5a6070 100%) !important;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.5)) !important;
}
.zoo-logo .zl-chev, .zoo-logo .zl-tag {
  color: #6a717e !important;
  -webkit-text-fill-color: #6a717e !important;
  filter: none !important;
}

/* ===== BACKGROUND IMAGE (fixed, no jitter) ===== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background: url('https://raw.githubusercontent.com/ZooScripts/zoo_input/main/bg.jpg') center/cover no-repeat;
  filter: brightness(1.5) contrast(1.05);
  -webkit-filter: brightness(1.5) contrast(1.05);
  will-change: transform;
}
/* Dark overlay so text stays readable */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(6,5,4,0.30), rgba(3,2,1,0.50));
}
/* ===== REDESIGNED BUTTONS — Premium Style ===== */
a.btn-primary, button.btn-primary, .btn-primary,
a.btn-secondary, button.btn-secondary, .btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-width: 160px !important;
  padding: 13px 30px !important;
  border-radius: 8px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

/* PRIMARY — silver gradient solid */
a.btn-primary, button.btn-primary, .btn-primary {
  background: linear-gradient(180deg, #e8ecf0 0%, #c8cdd5 50%, #a8adb5 100%) !important;
  color: #111318 !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 6px 20px rgba(0,0,0,0.35),
    0 2px 6px rgba(180,190,205,0.2) !important;
  text-shadow: none !important;
}
a.btn-primary:hover, button.btn-primary:hover, .btn-primary:hover {
  background: linear-gradient(180deg, #f5f7fa 0%, #dde1e8 50%, #bec3cc 100%) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 10px 28px rgba(0,0,0,0.4),
    0 0 18px rgba(200,210,225,0.3) !important;
  transform: translateY(-2px) !important;
  color: #0a0c10 !important;
}

/* SECONDARY — dark glass with silver border */
a.btn-secondary, button.btn-secondary, .btn-secondary {
  background: rgba(20, 22, 28, 0.6) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: #d8dce5 !important;
  border: 1px solid rgba(180,190,210,0.55) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  text-shadow: none !important;
}
a.btn-secondary:hover, button.btn-secondary:hover, .btn-secondary:hover {
  background: rgba(30, 33, 42, 0.75) !important;
  border-color: rgba(210,218,230,0.85) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(180,190,210,0.25), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  transform: translateY(-2px) !important;
}

/* ===== PRODUCT DETAIL PAGE — SPA Style ===== */
.product-view { max-width: 1280px; margin: 0 auto; padding: 30px 32px 60px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--text-dim); cursor: pointer; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: rgba(186,196,210,0.4); }
.breadcrumb .current { color: var(--text); }

.product-detail {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: flex-start;
}

/* Gallery */
.gallery-main {
  aspect-ratio: 16/10; border-radius: 14px;
  background-color: rgba(20,20,25,0.6); background-size: cover; background-position: center;
  border: 1px solid rgba(186,196,210,0.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs .thumb {
  width: 90px; aspect-ratio: 16/10; border-radius: 8px;
  background-size: cover; background-position: center;
  border: 2px solid transparent; cursor: pointer;
  opacity: 0.65; transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumbs .thumb:hover { opacity: 1; }
.gallery-thumbs .thumb.active { opacity: 1; border-color: var(--gold-2); }

/* Product info */
.pd-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 30px; font-weight: 700; margin-bottom: 12px; color: var(--text); line-height: 1.2;
  text-transform: uppercase; letter-spacing: 1px;
}
.pd-price { font-size: 26px; font-weight: 700; color: var(--gold-2); margin-bottom: 22px; font-family: 'Inter', sans-serif; }
.pd-price.free { color: #8be78b; }
.pd-actions { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }

.btn-buy {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 10px;
  background: rgba(186,196,210,0.08);
  backdrop-filter: blur(18px) saturate(140%);
  color: var(--gold-2); font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif;
  border: 1px solid rgba(186,196,210,0.3); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.2s; text-decoration: none;
}
.btn-buy:hover { background: rgba(186,196,210,0.18); border-color: var(--gold-2); transform: translateY(-1px); color: var(--gold-2); }
.btn-gift {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(20,22,28,0.4); backdrop-filter: blur(12px);
  border: 1px solid rgba(186,196,210,0.25); color: var(--gold-2); cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-gift:hover { background: rgba(186,196,210,0.1); }

/* Description */
.pd-description { border-top: 1px solid rgba(186,196,210,0.15); padding-top: 22px; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.pd-description h2 { color: var(--text); font-size: 18px; margin: 18px 0 10px; font-weight: 600; }
.pd-description h3 { color: var(--gold-2); font-size: 14px; margin: 18px 0 8px; font-weight: 600; }
.pd-description p { margin-bottom: 10px; }
.pd-description ol, .pd-description ul { margin-left: 22px; margin-bottom: 12px; }
.pd-description li { margin-bottom: 4px; }
.pd-description strong { color: var(--text); }
.pd-description code { background: rgba(186,196,210,0.12); padding: 2px 7px; border-radius: 4px; color: var(--gold-2); font-size: 12.5px; }
.pd-description hr { border: none; border-top: 1px solid rgba(186,196,210,0.15); margin: 18px 0; }
.pd-description a { color: #5aa8ff; }

@media (max-width: 880px) { .product-detail { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .product-view { padding: 20px 16px 40px; } .pd-title { font-size: 22px; } }

/* ===== BASKET POPUP — Glass Style ===== */
/* Main popup container */
.popup-content, .popup .popup-content {
  background: rgba(12, 12, 16, 0.55) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border: 1px solid rgba(186, 196, 210, 0.15) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6) !important;
  border-radius: 16px !important;
  color: var(--text) !important;
}

/* Basket header */
.basket .basket-header, .popup .basket-header {
  background: rgba(186, 196, 210, 0.06) !important;
  border-bottom: 1px solid rgba(186, 196, 210, 0.15) !important;
  color: var(--text) !important;
  padding: 18px 20px !important;
}
.basket-header .username, .basket-header h3, .basket-header .name {
  color: #e8eaef !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

/* Basket count/summary row */
.basket-summary, .basket .summary {
  color: var(--text-dim) !important;
  border-bottom: 1px solid rgba(186,196,210,0.12) !important;
  padding: 12px 20px !important;
  font-size: 13px !important;
}
.basket-summary .total, .basket .summary .total {
  color: #e8eaef !important;
  font-weight: 600 !important;
}

/* Basket items */
.basket-items, .basket .items {
  background: transparent !important;
  padding: 12px !important;
}
.basket-item {
  background: rgba(186, 196, 210, 0.05) !important;
  border: 1px solid rgba(186, 196, 210, 0.12) !important;
  border-radius: 12px !important;
  margin-bottom: 8px !important;
  color: var(--text) !important;
}
.basket-item:hover {
  border-color: rgba(186, 196, 210, 0.25) !important;
  background: rgba(186, 196, 210, 0.08) !important;
}
.basket-item .name, .basket-item .package-name {
  color: #e8eaef !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.basket-item .price, .basket-item .item-price {
  color: #c8cdd5 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}
/* Fix blue price color */
.basket-item .price.free, .basket-item .price[style*="color"] {
  color: #c8cdd5 !important;
}
.basket-item .metadata, .basket-item .extra {
  color: var(--text-dim) !important;
  font-size: 12px !important;
}

/* Quantity controls */
.basket-item .quantity-field, .quantity-field {
  background: rgba(186,196,210,0.08) !important;
  border: 1px solid rgba(186,196,210,0.2) !important;
  border-radius: 8px !important;
}
.basket-item .quantity-field button {
  color: #c8cdd5 !important;
}
.basket-item .quantity-field input {
  color: #e8eaef !important;
  background: transparent !important;
}

/* Remove button */
.basket-item .remove, .btn-remove {
  color: rgba(186,196,210,0.6) !important;
  background: transparent !important;
  border: 1px solid rgba(186,196,210,0.2) !important;
  border-radius: 8px !important;
  transition: all 0.2s !important;
}
.basket-item .remove:hover, .btn-remove:hover {
  color: #e07b7b !important;
  border-color: rgba(224,123,123,0.4) !important;
  background: rgba(224,123,123,0.08) !important;
}

/* Basket footer — total + checkout */
.basket .basket-footer, .basket-footer {
  border-top: 1px solid rgba(186,196,210,0.15) !important;
  padding: 16px 20px !important;
  background: rgba(186,196,210,0.04) !important;
}
.basket-footer .total-row, .basket-footer .row {
  color: var(--text-dim) !important;
  margin-bottom: 14px !important;
}
.basket-footer .total-price, .basket-footer .total .amount {
  color: #e3e8ef !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

/* Proceed to checkout button */
.basket-footer .btn-checkout, .basket .checkout, .basket [class*="checkout"] {
  width: 100% !important;
  padding: 14px !important;
  background: linear-gradient(180deg, #e8ecf0 0%, #c8cdd5 50%, #a8adb5 100%) !important;
  color: #111318 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 6px 20px rgba(0,0,0,0.35) !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
  text-align: center !important;
  display: block !important;
  text-decoration: none !important;
}
.basket-footer .btn-checkout:hover {
  filter: brightness(1.05) !important;
  transform: translateY(-1px) !important;
}

/* Close button */
.popup-close, .basket-close, .popup .close {
  color: var(--text-dim) !important;
  background: transparent !important;
  border-radius: 8px !important;
  transition: all 0.2s !important;
}
.popup-close:hover, .basket-close:hover {
  color: var(--text) !important;
  background: rgba(186,196,210,0.1) !important;
}

/* Override blue price color globally in basket */
.basket * [style*="color: rgb(0"] { color: #c8cdd5 !important; }
.basket a { color: #c8cdd5 !important; }

/* ===== BASKET POPUP — EXACT CLASS TARGETING ===== */
/* Main basket drawer — glass effect */
.popup-content.basket, .basket-popup-content, .popup-content.basket-popup-content {
  background: rgba(8, 8, 12, 0.45) !important;
  backdrop-filter: blur(38px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(38px) saturate(180%) !important;
  border-left: 1px solid rgba(186, 196, 210, 0.15) !important;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5) !important;
  color: #e8eaef !important;
}

/* Header — ZOO_ST */
.basket-header {
  background: rgba(186, 196, 210, 0.06) !important;
  border-bottom: 1px solid rgba(186, 196, 210, 0.15) !important;
  color: #e8eaef !important;
}
.basket-title { color: #e8eaef !important; font-family: 'Inter', sans-serif !important; }

/* Second header (1 Items $10.00) */
.basket-second-header {
  background: rgba(186, 196, 210, 0.04) !important;
  border-bottom: 1px solid rgba(186, 196, 210, 0.1) !important;
  color: #a7adb9 !important;
  font-size: 13px !important;
}

/* Item */
.basket-item {
  background: rgba(186, 196, 210, 0.05) !important;
  border: 1px solid rgba(186, 196, 210, 0.12) !important;
  border-radius: 12px !important;
  color: #e8eaef !important;
}
.basket-item .info { color: #a7adb9 !important; font-size: 12px !important; }
.basket-item .price { color: #c8cdd5 !important; font-weight: 700 !important; }
.basket-item .name, .basket-item h4, .basket-item strong {
  color: #e8eaef !important;
  font-weight: 600 !important;
}

/* Checkout section */
.basket-checkout {
  background: rgba(186, 196, 210, 0.04) !important;
  border-top: 1px solid rgba(186, 196, 210, 0.15) !important;
}
.basket-checkout h3, .basket-checkout .total-label { color: #a7adb9 !important; font-size: 14px !important; }
.basket-checkout .total, .basket-checkout .total strong {
  color: #e3e8ef !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

/* Lighten the outer overlay so glass basket shows through */
.popup.basket-popup {
  background: rgba(0, 0, 0, 0.45) !important;
}
/* Ensure backdrop-filter shows on the basket content */
.popup-content.basket-popup-content.basket {
  position: relative !important;
  z-index: 1 !important;
}

/* ===== PAGE TRANSITION — smooth cross-fade when navigating ===== */
/* Chrome/Edge: native cross-document view transitions (pure opacity — no jump) */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: zp-fade-out 0.16s ease both;
}
::view-transition-new(root) {
  animation: zp-fade-in 0.3s ease both;
}
@keyframes zp-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes zp-fade-in  { from { opacity: 0; } to { opacity: 1; } }

/* Keep the fixed background rock-steady during the transition (no flicker) */
::view-transition-group(root) { animation-timing-function: ease; }

/* Fallback for browsers without view-transitions (Safari/Firefox):
   gently fade the page content in on load. Background stays fixed. */
@supports not (view-transition-name: none) {
  .site { animation: zp-site-in 0.32s ease both; }
  @keyframes zp-site-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root), .site { animation: none !important; }
}

/* ===== 3D SCRIPTS CAROUSEL ===== */
.zoo-carousel-section {
  padding: 20px 0 60px;
  text-align: center;
  overflow: hidden;
}
.zoo-carousel-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: rgba(186,196,210,0.5); text-transform: uppercase;
  margin-bottom: 40px;
}
.zoo-carousel-wrap {
  position: relative; height: 300px;
  perspective: 900px;
  perspective-origin: 50% 40%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.zoo-slide {
  position: absolute;
  width: 420px; height: 240px;
  border-radius: 16px; overflow: hidden;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0e0a06;
  transition: transform 0.55s cubic-bezier(0.25,0.8,0.25,1),
              opacity 0.55s ease;
  will-change: transform, opacity;
}
.zoo-slide-img {
  width: 100%; height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0e0a06;
  position: relative;
}
.zoo-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}
.zoo-slide-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(10,10,14,0.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(186,196,210,0.3);
  font-size: 11px; font-weight: 700; color: #e8eaef;
  letter-spacing: 1px; text-transform: uppercase;
}
.zoo-slide-badge.free { color: #6de89a; border-color: rgba(80,200,120,0.4); }

/* Name on card */
.zoo-slide-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  color: #fff; letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Info below */
.zoo-carousel-info {
  margin-top: 28px; text-align: center;
}
.zoo-carousel-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: rgba(186,196,210,0.5); text-transform: uppercase; margin-bottom: 8px;
}
.zoo-carousel-name {
  font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700;
  color: #e8eaef;
}
.zoo-carousel-name a {
  font-size: 16px; color: rgba(186,196,210,0.6); margin-left: 6px;
  text-decoration: none; transition: color 0.2s;
}
.zoo-carousel-name a:hover { color: #e8eaef; }

/* Dots */
.zoo-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.zoo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(186,196,210,0.25); border: none; cursor: pointer;
  transition: all 0.3s ease; padding: 0;
}
.zoo-dot.active {
  background: rgba(186,196,210,0.9);
  width: 24px; border-radius: 4px;
}

/* ===== FULL RESPONSIVE — All Screens & Mobile ===== */

/* TABLET (768px) */
@media (max-width: 960px) {
  /* Header */
  .header-inner { padding: 12px 20px !important; }
  .nav { display: none; }

  /* Hero */
  .hero { padding: 60px 24px 70px !important; }
  .hero-inner { grid-template-columns: 1fr !important; text-align: center; }
  .hero-art { display: none; }
  .zoo-logo .zl-1 { font-size: clamp(48px, 12vw, 80px) !important; }
  .zoo-logo .zl-2 { font-size: clamp(30px, 8vw, 52px) !important; }
  .cta-row { justify-content: center !important; }

  /* Carousel */
  .zoo-slide { width: 340px !important; height: 200px !important; }
  .zoo-carousel-wrap { height: 260px !important; }

  /* Features */
  .features { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; padding: 30px 24px !important; }

  /* Browse */
  .browse { padding: 30px 20px !important; }
  .section-title { font-size: clamp(24px, 5vw, 36px) !important; }
  .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr !important; }

  /* Basket popup */
  .popup-content.basket { width: 100% !important; max-width: 100% !important; right: 0 !important; }
}

/* MOBILE (600px) */
@media (max-width: 600px) {
  /* Header */
  .header-inner { padding: 10px 16px !important; }
  .site-title a, .logo { font-size: 16px !important; }
  .site-title-nav { font-size: 16px !important; }
  .btn-login { display: none !important; }

  /* Hero */
  .hero { padding: 40px 16px 50px !important; }
  .zoo-logo .zl-1 { font-size: clamp(40px, 14vw, 68px) !important; }
  .zoo-logo .zl-2 { font-size: clamp(26px, 9vw, 44px) !important; }
  .hero p { font-size: 14px !important; margin-bottom: 24px !important; }
  .btn-primary, .btn-secondary { padding: 12px 20px !important; font-size: 14px !important; }

  /* Carousel */
  .zoo-carousel-section { padding: 10px 0 40px !important; }
  .zoo-slide { width: 280px !important; height: 170px !important; }
  .zoo-carousel-wrap { height: 220px !important; }
  .zoo-carousel-name { font-size: 16px !important; }

  /* Features */
  .features { grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 20px 16px !important; }
  .feature h3 { font-size: 12px !important; }
  .feature p { font-size: 11px !important; }
  .feature-icon { width: 28px !important; height: 28px !important; }

  /* Browse */
  .browse { padding: 20px 16px !important; }
  .browse-controls { flex-direction: column !important; gap: 10px !important; }
  .search { min-width: unset !important; width: 100% !important; }
  .grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .section-title { font-size: 24px !important; }
  .section-sub { font-size: 13px !important; }

  /* Cards */
  .card { border-radius: 12px !important; }
  .card-img { aspect-ratio: 16/9 !important; }
  .card-title { font-size: 15px !important; }
  .card-price { font-size: 16px !important; }

  /* Product detail */
  .product-view { padding: 16px 16px 40px !important; }
  .pd-title { font-size: 20px !important; }
  .pd-price { font-size: 20px !important; }
  .gallery-thumbs .thumb { width: 70px !important; }

  /* Music player */
  #zp { bottom: 12px !important; right: 12px !important; }
  .zp-card { width: 260px !important; }

  /* Footer */
  .footer-links { flex-wrap: wrap !important; gap: 10px !important; justify-content: center !important; }
  .footer-logo { font-size: 16px !important; }
  .footer p { font-size: 11px !important; }
}

/* VERY SMALL (400px) */
@media (max-width: 400px) {
  .zoo-slide { width: 240px !important; height: 150px !important; }
  .zoo-carousel-wrap { height: 200px !important; }
  .features { grid-template-columns: 1fr !important; }
  .grid { grid-template-columns: 1fr !important; }
}

/* ===== RECENT PURCHASES TICKER ===== */
.zoo-ticker-wrap {
  display: flex; align-items: center; gap: 14px;
  background: rgba(10,10,14,0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(186,196,210,0.12);
  padding: 10px 24px;
  overflow: hidden;
  position: relative; z-index: 10;
}
.zoo-ticker-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: rgba(186,196,210,0.7); text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.zoo-ticker {
  flex: 1; overflow: hidden; position: relative;
}
.zoo-ticker-inner {
  display: flex; align-items: center; gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
}
.zoo-ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.zoo-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(186,196,210,0.8);
  flex-shrink: 0;
}
.zoo-ticker-item strong {
  color: #e8eaef; font-weight: 600;
}
.zoo-ticker-item span { color: rgba(186,196,210,0.5); }
.zoo-ticker-avatar {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid rgba(186,196,210,0.2);
  object-fit: cover; flex-shrink: 0;
}

@media (max-width: 600px) {
  .zoo-ticker-wrap { padding: 8px 16px; gap: 10px; }
  .zoo-ticker-label { font-size: 9px; }
  .zoo-ticker-item { font-size: 11px; }
}

/* ===== TICKER BAR (using Tebex modules|raw) ===== */
.zoo-ticker-bar {
  display: flex; align-items: center; gap: 14px;
  background: rgba(8,8,12,0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(186,196,210,0.12);
  padding: 10px 24px;
  overflow: hidden; position: relative; z-index: 10;
}
.zoo-ticker-scroll {
  flex: 1; overflow: hidden;
}
.zoo-ticker-modules {
  animation: ticker-scroll 25s linear infinite;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 0;
}
.zoo-ticker-modules:hover { animation-play-state: paused; }

/* Override Tebex sidebar widget styles inside ticker */
.zoo-ticker-modules .widget,
.zoo-ticker-modules .widget-recent,
.zoo-ticker-modules .widget-top-donator,
.zoo-ticker-modules .widget-featured {
  display: inline-flex !important; background: transparent !important;
  border: none !important; padding: 0 !important; margin: 0 !important;
  box-shadow: none !important; overflow: visible !important;
  vertical-align: middle;
}
.zoo-ticker-modules .widget-title { display: none !important; }
.zoo-ticker-modules .widget-content { padding: 0 !important; }
.zoo-ticker-modules .purchases {
  display: inline-flex !important; flex-direction: row !important;
  gap: 24px !important; align-items: center !important;
}
.zoo-ticker-modules .purchase {
  display: inline-flex !important; align-items: center !important;
  gap: 7px !important; flex-direction: row !important;
}
.zoo-ticker-modules .avatar {
  width: 22px !important; height: 22px !important;
  border-radius: 6px !important; object-fit: cover !important;
  border: 1px solid rgba(186,196,210,0.2) !important;
}
.zoo-ticker-modules .username {
  font-size: 12px !important; font-weight: 600 !important;
  color: #e8eaef !important; font-family: 'Inter',sans-serif !important;
  margin: 0 !important;
}
.zoo-ticker-modules .info > p {
  font-size: 11px !important; color: rgba(186,196,210,0.5) !important;
  margin: 0 !important;
}
/* Hide top donator and featured in ticker */
.zoo-ticker-modules .widget-top-donator,
.zoo-ticker-modules .widget-featured { display: none !important; }

@media (max-width: 600px) {
  .zoo-ticker-bar { padding: 8px 16px; gap: 8px; }
}

/* ===== GALLERY PLAY BUTTON + VIDEO THUMBNAILS ===== */
.gallery-main {
  position: relative !important;
}
.gallery-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff; cursor: pointer;
  display: flex !important; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}
.gallery-play-btn:hover {
  background: rgba(0,0,0,0.85);
  border-color: rgba(255,255,255,0.6);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Thumbnails row */
.gallery-thumbs {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  flex-wrap: wrap;
}
.gallery-thumbs .thumb {
  width: 80px !important; height: 54px !important;
  border-radius: 8px !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #111;
  border: 2px solid rgba(186,196,210,0.15) !important;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.gallery-thumbs .thumb:hover { opacity: 1; border-color: rgba(186,196,210,0.5) !important; }
.gallery-thumbs .thumb.active { opacity: 1 !important; border-color: #c8cdd5 !important; }

.gallery-thumbs .thumb-video { background-color: #0d0d0f !important; }
.gallery-thumbs .thumb-video .play-icon {
  position: absolute;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* ===== GALLERY ARROWS — lircos style ===== */
.gallery-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.gallery-main {
  aspect-ratio: 16/10 !important;
  width: 100% !important;
  max-height: none !important;
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
  opacity: 0; /* hidden by default */
}
.gallery-wrap:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow-left { left: 10px; }
.gallery-arrow-right { right: 10px; }

/* Override old play button styles */
.gallery-play-btn { display: none !important; }

/* Video thumbnail play icon */
.thumb-video { position: relative; overflow: hidden; }
.play-icon-sm {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.9));
  z-index: 2;
}
.thumb-video::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
}

/* ===== FIX PRODUCT DETAIL LAYOUT — force correct grid ===== */
.product-view { display: block !important; max-width: 1280px !important; margin: 0 auto !important; padding: 30px 32px 60px !important; }
.product-detail { display: grid !important; grid-template-columns: 1fr 1.3fr !important; gap: 40px !important; align-items: flex-start !important; }
.product-gallery { min-width: 0 !important; width: 100% !important; }
.gallery-wrap { width: 100% !important; border-radius: 14px !important; overflow: hidden !important; position: relative !important; }
.gallery-main { width: 100% !important; aspect-ratio: 16/10 !important; background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #0e0a06 !important; }
.product-info { min-width: 0 !important; }
.gallery-thumbs { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 8px !important; margin-top: 10px !important; }
.gallery-thumbs .thumb { width: 80px !important; height: 54px !important; border-radius: 8px !important; flex-shrink: 0 !important; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr !important; }
}

/* ===== PRODUCT DETAIL GRID — final fix with minmax(0) ===== */
.product-detail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) !important;
}
.product-gallery, .gallery-wrap, .gallery-main {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.gallery-main {
  height: auto !important;
  min-height: 200px !important;
}

/* Thumb play overlay */
.thumb-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  z-index: 2;
}

/* ===== FIX: gallery-wrap keeps height when image hidden ===== */
.gallery-wrap {
  aspect-ratio: 16/10 !important;
  min-height: 200px !important;
}
#pdVideoView {
  border-radius: 14px !important;
  overflow: hidden !important;
}
