:root {
  --bg: #05101c;
  --bg-elevated: #0a1625;
  --card: #0c1829;
  --card-soft: #102033;
  --line: rgba(188, 233, 255, 0.12);
  --line-strong: rgba(105, 215, 255, 0.42);
  --text: #f3fbff;
  --muted: #8ea5bc;
  --accent: #1b7fe8;
  --accent-strong: #69d7ff;
  --accent-soft: rgba(68, 184, 255, 0.14);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(105, 215, 255, 0.14), transparent 26%),
    radial-gradient(circle at 50% 42%, rgba(27, 127, 232, 0.1), transparent 30%),
    linear-gradient(180deg, #07111d 0%, #040b14 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px 14px 40px;
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 0 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 24, 41, 0.96), rgba(8, 18, 31, 0.96));
  border: 1px solid rgba(188, 233, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.header-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(105, 215, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(188, 233, 255, 0.12),
    0 0 20px rgba(105, 215, 255, 0.16);
}

.logo-img-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

/* ── Hamburger Button ── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Sidebar Overlay ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Sidebar Drawer ── */
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  z-index: 31;
  background: linear-gradient(180deg, #0e1a2b 0%, #07111d 100%);
  border-left: 1px solid rgba(188, 233, 255, 0.08);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.sidebar-drawer.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sidebar-section {
  padding: 16px 18px;
}

.sidebar-section-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 18px;
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: "Tajawal", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  text-align: right;
}
.sidebar-cat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.sidebar-cat-item.active {
  background: linear-gradient(135deg, rgba(105, 215, 255, 0.18), rgba(27, 127, 232, 0.08));
  color: var(--accent-strong);
  font-weight: 800;
  border: 1px solid rgba(105, 215, 255, 0.2);
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.sidebar-nav-link svg {
  flex-shrink: 0;
}

.sidebar-social-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.18s, transform 0.15s;
}
.sidebar-social-btn:hover {
  transform: translateX(-2px);
}
.sidebar-social-btn.whatsapp:hover { background: rgba(37, 211, 102, 0.12); }
.sidebar-social-btn.telegram:hover { background: rgba(44, 165, 224, 0.12); }
.sidebar-social-btn.instagram:hover { background: rgba(225, 48, 108, 0.12); }
.sidebar-social-btn svg { flex-shrink: 0; }

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 3px 12px rgba(27, 127, 232, 0.35);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-logo {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-tagline {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
}

.products-section {
  padding-top: 4px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-accent-bar {
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  flex-shrink: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.products-count-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  background: linear-gradient(
    180deg,
    rgba(19, 19, 19, 0.98),
    rgba(16, 16, 16, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(105, 215, 255, 0.12);
}

.image-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at top, rgba(105, 215, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #14243a 0%, #091220 100%);
}

.product-link,
.product-title-link {
  display: block;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #69d7ff, #1b7fe8);
  border: 1px solid rgba(191, 242, 255, 0.9);
  color: #04111e;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-info {
  padding: 12px;
}

.product-name {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
}

.product-summary {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.product-price {
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-old-price {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: line-through;
}

.product-code {
  color: var(--muted);
  font-size: 0.82rem;
}

.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(27, 127, 232, 0.28);
  border: 0;
  cursor: pointer;
}

.details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 6px;
  transition:
    border-color 0.18s,
    color 0.18s;
}

.details-link:hover {
  border-color: rgba(105, 215, 255, 0.35);
  color: var(--text);
}

.platform-picker[hidden] {
  display: none;
}

.platform-picker {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.picker-sheet {
  position: relative;
  padding: 26px 24px 30px;
  width: auto;
  min-width: 220px;
  max-width: min(340px, calc(100vw - 32px));
  border-radius: 24px;
  background: linear-gradient(180deg, #102033 0%, #0a1625 100%);
  border: 1px solid rgba(105, 215, 255, 0.28);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.52);
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.picker-eyebrow {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.picker-head h3 {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
  flex: 1;
}

.picker-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.picker-message {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.picker-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.picker-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.picker-action.whatsapp {
  background: linear-gradient(180deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.18);
}

.picker-action.telegram {
  background: linear-gradient(180deg, #2ca5e0, #1a8bbf);
  color: #fff;
  box-shadow: 0 10px 24px rgba(44, 165, 224, 0.28);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.product-card.is-hidden {
  display: none;
}

.detail-body {
  min-height: 100vh;
}

.detail-shell {
  padding-bottom: 120px;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(
    135deg,
    rgba(105, 215, 255, 0.08) 0%,
    rgba(12, 24, 41, 0.95) 50%,
    rgba(27, 127, 232, 0.06) 100%
  );
  border: 1px solid rgba(105, 215, 255, 0.16);
  border-top: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.detail-logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(105, 215, 255, 0.3);
}

.header-spacer {
  width: 38px;
  flex-shrink: 0;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.plain-product-page {
  display: grid;
  gap: 14px;
}

.plain-info-card,
.plain-section-card,
.detail-empty {
  border-radius: 24px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.plain-image-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.plain-badge,
.plain-code,
.plain-store-name {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.plain-badge {
  background: rgba(105, 215, 255, 0.14);
  border: 1px solid rgba(105, 215, 255, 0.28);
}

.plain-code {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.plain-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.plain-image-wrap {
  position: relative;
}

.plain-image-wrap .plain-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.plain-info-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.plain-store-name {
  display: none;
}

.plain-product-title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
}

.plain-product-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.plain-price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(27, 127, 232, 0.1);
  border: 1px solid rgba(105, 215, 255, 0.18);
  flex-wrap: wrap;
}

.plain-old-price {
  color: var(--muted);
  font-size: 1.1rem;
  text-decoration: line-through;
}

.plain-price-value {
  font-size: 1.4rem;
  font-weight: 800;
}

.plain-discount-badge {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.plain-actions {
  display: grid;
  gap: 10px;
}

.detail-order-button {
  min-height: 54px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.plain-section-card {
  padding: 18px;
}

.plain-section-head {
  margin-bottom: 12px;
}

.plain-section-head h2 {
  margin: 0;
  font-size: 1.06rem;
}

.plain-section-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.plain-spec-list {
  display: grid;
  gap: 10px;
}

.spec-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.spec-value {
  font-size: 0.96rem;
  line-height: 1.65;
}

.detail-empty {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(19, 19, 19, 0.98),
    rgba(16, 16, 16, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-empty h1,
.detail-empty p {
  margin: 0;
}

.empty-link {
  margin-top: 4px;
}

/* ── Search toggle button ── */
.search-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.search-toggle-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

/* ── Inline search bar ── */
.search-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  animation: searchDown 0.2s ease;
}
@keyframes searchDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.search-inline .search-icon {
  flex-shrink: 0;
  color: var(--muted);
}
.search-inline input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-family: "Tajawal", sans-serif;
  outline: none;
}
.search-inline input::placeholder {
  color: var(--muted);
}
.search-inline .search-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-inline .search-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Icon-only picker buttons ── */
.picker-icons {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
}
.picker-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.picker-icon-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.picker-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.picker-icon-btn:hover {
  transform: scale(1.08);
}
.picker-icon-btn.whatsapp {
  background: linear-gradient(180deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}
.picker-icon-btn.telegram {
  background: linear-gradient(180deg, #2ca5e0, #1a8bbf);
  color: #fff;
  box-shadow: 0 8px 20px rgba(44, 165, 224, 0.25);
  font-family: inherit;
}
.picker-icon-btn.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.25);
}

/* ── Sale strip on card image ── */
.sale-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  z-index: 2;
}

/* ── Product detail: variant radio selector ── */
.var-selector {
  display: grid;
  gap: 10px;
}
.var-selector-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.var-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.var-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s ease;
}
.var-option:hover {
  border-color: rgba(105, 215, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
}
.var-option.active {
  border-color: var(--accent-strong);
  background: rgba(27, 127, 232, 0.12);
}
.var-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.var-option.active .var-option-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #121212;
}
.var-option-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.var-option-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.var-option-name {
  font-weight: 700;
  font-size: 0.92rem;
}
.var-option-price {
  font-size: 0.82rem;
  color: var(--accent-strong);
  font-weight: 700;
}
.var-option-old {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}
.var-option-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(105, 215, 255, 0.14);
  color: var(--accent-strong);
}
.var-option-sale {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

/* ── Product detail: sale timer ── */
.sale-timer {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fbbf24;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* ── Product detail: variant label ── */
.detail-variant-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.detail-variant-label strong {
  color: var(--text);
}

/* ── Product detail: sale badge on image ── */
.plain-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

/* ── Footer (sticky bottom) ── */
.site-footer {
  margin-top: auto;
  padding: 20px 14px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ── Scroll to Top ── */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 14, 0.9);
  backdrop-filter: blur(10px);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 15;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(27, 127, 232, 0.12);
}

@media (min-width: 700px) {
  .page-shell {
    padding-inline: 20px;
  }

  .site-header {
    padding-top: 22px;
  }

  .header-inner {
    padding: 12px 20px 10px;
    border-radius: 16px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .plain-product-page {
    gap: 18px;
  }

  .plain-info-card {
    grid-row: auto;
  }

  .plain-actions {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (min-width: 1040px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
