:root {
  color-scheme: dark;
  --shop-bg: #050816;
  --shop-panel: #0b1128;
  --shop-line: rgba(128, 149, 228, 0.16);
  --shop-text: #f7f9ff;
  --shop-muted: #8d98b5;
  --shop-blue: #3488ff;
  --shop-violet: #784cff;
  --shop-green: #18dca4;
}

.payment-badge { display: inline-block; margin: 8px 0; padding: 5px 9px; border-radius: 999px; color: #41e6b7; background: rgba(24,220,164,.1); border: 1px solid rgba(24,220,164,.2); font-size: .68rem; font-weight: 700; }
.payment-upfront { color: #bdcaff; background: rgba(120,76,255,.1); border-color: rgba(128,149,228,.2); }
#codCheckoutButton:disabled { opacity: .5; cursor: not-allowed; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.shop-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--shop-text);
  background:
    radial-gradient(circle at 13% 4%, rgba(73, 42, 195, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(24, 164, 203, 0.12), transparent 30rem),
    radial-gradient(circle at 60% 72%, rgba(63, 57, 193, 0.08), transparent 34rem),
    var(--shop-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.shop-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
}

.shop-page a { text-decoration: none; }
.shop-nav-wrap { position: relative; z-index: 100; border-bottom: 1px solid rgba(128, 149, 228, 0.08); background: rgba(5, 8, 22, 0.74); backdrop-filter: blur(20px); }

.shop-page .site-header.container,
.shop-page .site-footer .container { width: min(1240px, calc(100% - 48px)); max-width: 1240px; padding-right: 0; padding-left: 0; }
.legacy-shop-header { display: none !important; }
.shop-page .site-header { min-height: 78px; padding-top: 14px; padding-bottom: 14px; background: transparent; box-shadow: none; }
.shop-page .brand-mark { width: 42px; height: 42px; }
.shop-page .site-nav a { font-size: 0.74rem; }

.shopping-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 76px; }

.shop-hero {
  position: relative;
  display: grid;
  min-height: 385px;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: 76px;
  padding: 58px 0 48px;
}

.shop-hero::after { position: absolute; z-index: -1; top: 4%; right: 3%; width: 430px; height: 320px; border-radius: 50%; background: rgba(45, 84, 224, 0.16); filter: blur(75px); content: ""; }

.shop-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(24, 220, 164, 0.2); border-radius: 999px; color: #41e6b7; background: rgba(13, 126, 99, 0.12); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.075em; text-transform: uppercase; }
.shop-eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; content: ""; }

.shop-hero h1 { max-width: 760px; margin: 22px 0 17px; font-size: clamp(3rem, 5.6vw, 5.25rem); letter-spacing: -0.058em; line-height: 0.96; }
.shop-hero h1 span { color: transparent; background: linear-gradient(100deg, #1bdca6 3%, #2aa5fb 50%, #8050ff 96%); -webkit-background-clip: text; background-clip: text; }
.shop-hero-copy > p { max-width: 620px; margin: 0; color: #9ba6c1; font-size: 1rem; line-height: 1.75; }

.hero-benefits { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 27px; }
.hero-benefit { display: inline-flex; align-items: center; gap: 9px; color: #c4cce1; font-size: 0.72rem; font-weight: 700; }
.hero-benefit svg { width: 18px; height: 18px; fill: none; stroke: var(--shop-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shop-hero-card { position: relative; min-width: 0; padding: 24px; overflow: hidden; border: 1px solid rgba(128, 149, 228, 0.2); border-radius: 22px; background: radial-gradient(circle at 100% 0%, rgba(57, 113, 255, 0.2), transparent 46%), linear-gradient(145deg, rgba(16, 23, 57, 0.96), rgba(7, 12, 31, 0.93)); box-shadow: 0 32px 72px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.045); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-card-icon { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(52, 136, 255, 0.3); border-radius: 15px; color: #7ea7ff; background: rgba(44, 86, 219, 0.14); }
.hero-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-card-badge { color: #47e0b2; font-size: 0.65rem; font-weight: 800; }
.hero-card-badge::before { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; content: ""; }
.shop-hero-card h2 { margin: 21px 0 5px; font-size: 1.45rem; letter-spacing: -0.035em; }
.shop-hero-card > p { margin: 0; color: var(--shop-muted); font-size: 0.77rem; }

.hero-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.hero-stat { padding: 14px; border: 1px solid rgba(128, 149, 228, 0.12); border-radius: 13px; background: rgba(5, 10, 27, 0.54); }
.hero-stat strong { display: block; color: #f8faff; font-size: 1.08rem; }
.hero-stat span { color: #7885a6; font-size: 0.62rem; }

.wallet-chip { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(24, 220, 164, 0.18); border-radius: 12px; color: #d8fff2; background: rgba(16, 156, 118, 0.1); font-size: 0.72rem; font-weight: 750; cursor: pointer; }
.wallet-chip b { color: #37e4b0; font-size: 0.85rem; }

.catalogue-section { position: relative; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.section-kicker { color: #35d9ad; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.catalogue-heading h2 { margin: 7px 0 0; font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -0.045em; }
.catalogue-heading p { max-width: 440px; margin: 0; color: var(--shop-muted); font-size: 0.78rem; line-height: 1.65; text-align: right; }

.filters { position: relative; margin: 0 0 24px; padding: 20px; overflow: hidden; border: 1px solid var(--shop-line); border-radius: 19px; background: radial-gradient(circle at 100% 0%, rgba(54, 98, 225, 0.12), transparent 34%), rgba(11, 17, 40, 0.78); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.03); backdrop-filter: blur(18px); }
.filter-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(170px, 0.7fr) minmax(138px, 0.47fr) minmax(138px, 0.47fr) auto; align-items: end; gap: 12px; }
.filter-group, .search-box { min-width: 0; }
.pod-filter { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--shop-line); border-radius: 10px; color: #cdd5e9; background: rgba(5, 9, 24, 0.7); font-size: 0.875rem; font-weight: 650; cursor: pointer; }
.pod-filter input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: #18dca4; cursor: pointer; }
.pod-filter:has(input:checked) { border-color: rgba(24, 220, 164, 0.45); color: #77f3cb; background: rgba(24, 220, 164, 0.08); }
.pod-filter:focus-within { outline: 2px solid #18dca4; outline-offset: 3px; }
.pod-results-label { display: inline-block; margin-left: 8px; color: #77f3cb; font-size: 0.875rem; }

.filter-group label,
.search-box label,
.sort-options label,
.per-page-selector label { display: block; margin-bottom: 7px; color: #cdd5e9; font-size: 0.68rem; font-weight: 760; }

.control-shell { position: relative; }
.control-shell svg { position: absolute; z-index: 1; top: 50%; left: 13px; width: 17px; height: 17px; fill: none; stroke: #6e7d9f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }

.filter-group input,
.filter-group select,
.search-box input,
.sort-options select,
.per-page-selector select { width: 100%; height: 47px; min-width: 0; padding: 0 13px; border: 1px solid rgba(130, 151, 226, 0.17); outline: 0; border-radius: 10px; color: #edf1ff; background: rgba(5, 9, 24, 0.7); font: inherit; font-size: 0.76rem; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.search-box input { padding-left: 41px; }
.filter-group input::placeholder, .search-box input::placeholder { color: #596581; }
.filter-group select, .sort-options select, .per-page-selector select { color-scheme: dark; cursor: pointer; }
.filter-group input:focus, .filter-group select:focus, .search-box input:focus, .sort-options select:focus, .per-page-selector select:focus { border-color: rgba(63, 127, 255, 0.75); background: rgba(7, 12, 31, 0.94); box-shadow: 0 0 0 3px rgba(52, 107, 255, 0.11); }

.search-box .ai-search-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-powered-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid rgba(74, 222, 180, 0.22); border-radius: 999px; color: #69ecc6; background: rgba(24, 220, 164, 0.08); font-size: 0.54rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.ai-powered-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; content: ""; }
.ai-search-answer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 13px; margin: -8px 0 24px; padding: 15px 17px; border: 1px solid rgba(92, 115, 255, 0.2); border-radius: 15px; background: linear-gradient(110deg, rgba(49, 72, 194, 0.13), rgba(25, 187, 149, 0.07)); }
.ai-answer-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #9baaff; background: rgba(80, 99, 231, 0.15); font-size: 1rem; }
.ai-search-answer strong { display: block; color: #edf1ff; font-size: 0.76rem; }
.ai-search-answer p { margin: 4px 0 0; color: #919db9; font-size: 0.68rem; line-height: 1.55; }
.ai-search-answer small { max-width: 230px; color: #687591; font-size: 0.58rem; line-height: 1.5; text-align: right; }
.ai-term-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ai-term-list span { padding: 4px 7px; border: 1px solid rgba(128, 149, 228, 0.15); border-radius: 999px; color: #a8b6d9; background: rgba(5, 9, 24, 0.42); font-size: 0.57rem; }

.filter-actions { display: flex; align-items: center; gap: 8px; }
.btn, .btn:link, .btn:visited { display: inline-flex; min-height: 47px; box-sizing: border-box; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(110deg, var(--shop-blue), var(--shop-violet)); box-shadow: 0 12px 26px rgba(56, 75, 226, 0.2), inset 0 1px rgba(255, 255, 255, 0.2); font: inherit; font-size: 0.72rem; font-weight: 800; line-height: 1; white-space: nowrap; cursor: pointer; transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease; }
.btn:hover { color: #fff; text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn-clear, .btn-clear:link, .btn-clear:visited { border: 1px solid rgba(134, 153, 224, 0.17); color: #aeb8d2; background: rgba(12, 18, 40, 0.8); box-shadow: none; }
.btn-clear:hover { border-color: rgba(134, 153, 224, 0.34); color: #fff; background: rgba(23, 31, 65, 0.92); }

.results-info { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 20px; padding: 13px 2px; border-bottom: 1px solid rgba(128, 149, 228, 0.11); }
.results-count { display: inline-flex; align-items: center; gap: 9px; color: #929db8; font-size: 0.73rem; }
.results-count::before { width: 7px; height: 7px; border-radius: 50%; background: var(--shop-green); box-shadow: 0 0 10px rgba(24, 220, 164, 0.75); content: ""; }
.sort-options { display: flex; align-items: center; gap: 10px; }
.sort-options label { margin: 0; white-space: nowrap; }
.sort-options select { width: 180px; height: 39px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; min-width: 0; min-height: 100%; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid rgba(128, 149, 228, 0.14); border-radius: 17px; background: radial-gradient(circle at 100% 0%, rgba(54, 98, 225, 0.08), transparent 35%), linear-gradient(155deg, rgba(14, 21, 50, 0.96), rgba(7, 11, 29, 0.96)); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.025); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.card:hover { border-color: rgba(75, 118, 255, 0.38); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28), 0 0 34px rgba(56, 80, 220, 0.08); transform: translateY(-4px); }
.image-container { position: relative; height: 230px; margin: 9px 9px 0; overflow: hidden; border-radius: 12px; background: #11172c; }
.card img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; transition: transform 320ms ease, opacity 200ms ease; }
.card:hover img { transform: scale(1.035); }
.card img[src=""] { display: none; }
.image-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; border-radius: 12px; color: #75809e; background: linear-gradient(145deg, #121a36, #0a1026); font-size: 0.72rem; }

.stock-badge { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(24, 220, 164, 0.2); border-radius: 999px; color: #77f3cb; background: rgba(4, 21, 22, 0.82); backdrop-filter: blur(10px); font-size: 0.58rem; font-weight: 800; }
.stock-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.stock-badge.out { border-color: rgba(255, 106, 139, 0.24); color: #ff9db4; background: rgba(39, 9, 19, 0.82); }

.card-content { display: flex; flex: 1; flex-direction: column; padding: 17px 17px 18px; }
.product-category { margin-bottom: 8px; color: #668fff; font-size: 0.59rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.product-name { display: -webkit-box; min-height: 44px; margin: 0; overflow: hidden; color: #f3f6ff; font-size: 0.88rem; font-weight: 720; letter-spacing: -0.015em; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.price-row { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(128, 149, 228, 0.1); }
.price { color: #f9fbff; font-size: 1.04rem; font-weight: 850; letter-spacing: -0.025em; }
.price-original { display: block; margin: 0 0 1px; color: #6d7895; font-size: 0.68rem; font-weight: 500; text-decoration: line-through; }
.price-sale { color: #40e3b1; }
.promo-badge { display: inline-flex; max-width: 115px; padding: 5px 7px; border-radius: 6px; color: #45e5b4; background: rgba(24, 220, 164, 0.09); font-size: 0.54rem; font-weight: 800; text-align: right; }
.delivery-note { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #7885a2; font-size: 0.64rem; }
.delivery-note svg { width: 14px; height: 14px; fill: none; stroke: #607aaf; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-actions { margin-top: auto; padding-top: 16px; }
.card-actions .btn { width: 100%; min-height: 43px; }
.card-actions .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.no-products { grid-column: 1 / -1; padding: 70px 24px; border: 1px dashed rgba(128, 149, 228, 0.2); border-radius: 18px; color: var(--shop-muted); background: rgba(10, 16, 37, 0.58); text-align: center; }
.no-products h3 { margin: 0 0 7px; color: #f3f6ff; }
.no-products p { margin: 0; }

.pagination-container { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 36px; padding: 22px 0 0; border-top: 1px solid rgba(128, 149, 228, 0.11); }
.per-page-selector { display: flex; align-items: center; gap: 10px; }
.per-page-selector label { margin: 0; white-space: nowrap; }
.per-page-selector select { width: 72px; height: 39px; }
.pagination-controls { display: flex; align-items: center; gap: 8px; }
.page-indicator { padding: 0 8px; color: #8691ae; font-size: 0.72rem; }
.pagination-btn, .pagination-btn:link, .pagination-btn:visited { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid rgba(128, 149, 228, 0.16); border-radius: 9px; color: #aeb8d2; background: rgba(11, 17, 39, 0.72); font-size: 0.68rem; font-weight: 750; }
.pagination-btn:hover { border-color: rgba(72, 116, 255, 0.42); color: #fff; background: rgba(26, 38, 80, 0.78); text-decoration: none; }
.shop-page .site-footer { margin-top: 0; }

@media (max-width: 1100px) {
  .shop-page .site-header.container, .shop-page .site-footer .container, .shopping-shell { width: min(calc(100% - 40px), 1240px); }
  .shop-hero { gap: 44px; }
  .filter-row { grid-template-columns: minmax(250px, 1.2fr) minmax(160px, 0.7fr) repeat(2, minmax(120px, 0.45fr)); }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shop-page .site-header.container, .shop-page .site-footer .container, .shopping-shell { width: min(calc(100% - 32px), 680px); }
  .shop-page .site-menu { right: 0; left: 0; }
  .shop-hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 46px 0 38px; text-align: center; }
  .shop-hero-copy > p { margin: 0 auto; }
  .hero-benefits { justify-content: center; }
  .shop-hero-card { width: min(100%, 480px); margin: 0 auto; text-align: left; }
  .catalogue-heading { display: grid; }
  .catalogue-heading p { text-align: left; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .shop-page .site-header.container, .shop-page .site-footer .container, .shopping-shell { width: min(calc(100% - 24px), 440px); }
  .shop-page .site-header { min-height: 70px; }
  .shop-hero { padding-top: 36px; }
  .shop-hero h1 { font-size: clamp(2.55rem, 14vw, 3.7rem); }
  .shop-hero-copy > p { font-size: 0.88rem; }
  .hero-benefits { gap: 14px; }
  .hero-benefit { font-size: 0.65rem; }
  .shop-hero-card { padding: 20px; }
  .catalogue-heading p { font-size: 0.72rem; }
  .filters { padding: 16px; border-radius: 15px; }
  .filter-row { grid-template-columns: 1fr; }
  .search-box, .filter-actions { grid-column: auto; }
  .filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions .btn { width: 100%; padding: 0 12px; }
  .results-info { align-items: stretch; flex-direction: column; gap: 12px; }
  .ai-search-answer { grid-template-columns: auto minmax(0, 1fr); }
  .ai-search-answer small { grid-column: 2; max-width: none; text-align: left; }
  .sort-options { justify-content: space-between; }
  .sort-options select { width: min(66%, 200px); }
  .grid { grid-template-columns: 1fr; }
  .image-container { height: 285px; }
  .pagination-container { align-items: stretch; flex-direction: column; }
  .per-page-selector { justify-content: center; }
  .pagination-controls { flex-wrap: wrap; justify-content: center; }
  .page-indicator { width: 100%; order: -1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
