:root {
  --ink: #101217;
  --muted: #667085;
  --paper: #f7f2ea;
  --surface: #ffffff;
  --line: #e4ded4;
  --orange: #ff6a1a;
  --ruby: #d61f45;
  --teal: #00a6a6;
  --green: #00a65a;
  --blue: #2557d6;
  --gold: #f7b733;
  --shadow: 0 18px 50px rgba(21, 24, 33, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(247, 183, 51, 0.1), transparent 22%, transparent 78%, rgba(214, 31, 69, 0.08)),
    var(--paper);
  color: var(--ink);
  font-family: Inter, Cairo, system-ui, sans-serif;
}

body[dir="rtl"] {
  font-family: Cairo, Inter, system-ui, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(231, 226, 216, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px clamp(12px, 2vw, 22px);
  color: #343846;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.basket-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ruby);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-count.wide {
  min-width: 36px;
  background: var(--ink);
}

.main-nav a::after {
  position: absolute;
  inset-inline: 0;
  bottom: -8px;
  height: 2px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 0.2s ease;
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav .profile-link::after,
.main-nav .whatsapp-button::after {
  display: none;
}

.lang-switch,
.filter-button,
.primary-button,
.ghost-button,
.text-button,
.whatsapp-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.lang-switch {
  padding: 0 16px;
  background: #151821;
  color: white;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: #00a65a;
  color: white;
  white-space: nowrap;
}

.whatsapp-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
}

.whatsapp-button.compact {
  min-height: 40px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(16, 18, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.profile-link span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
}

.profile-link:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 31, 69, 0.32);
  background: white;
}

main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main#top > .section-heading#products {
  order: 1;
}

main#top > .filters {
  order: 2;
}

main#top > .product-grid {
  order: 3;
}

main#top > .catalog-shell {
  order: 2;
}

main#top > .hero {
  order: 4;
}

main#top > .trust-band {
  order: 5;
}

main#top > .payment-section {
  order: 6;
}

main#top > .order-section {
  order: 7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  min-height: auto;
  padding: 38px clamp(18px, 4vw, 56px) 28px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ruby);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.hero-text,
.section-heading p,
.order-copy p,
.payment-tile p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.owner-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  max-width: 620px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(16, 18, 23, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 242, 0.88)),
    radial-gradient(circle at 10% 0, rgba(247, 183, 51, 0.22), transparent 34%);
  box-shadow: 0 16px 42px rgba(16, 18, 23, 0.1);
}

.owner-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.92), rgba(214, 31, 69, 0.94)),
    var(--ink);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.owner-info span {
  display: block;
  color: var(--ruby);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[dir="rtl"] .owner-info span {
  letter-spacing: 0;
}

.owner-info strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
}

.owner-info p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.owner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.owner-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-actions,
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 0 18px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--ink), #2a1724);
  color: white;
  box-shadow: 0 12px 28px rgba(21, 24, 33, 0.18);
}

.ghost-button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-button:hover,
.ghost-button:hover,
.lang-switch:hover,
.filter-button:hover,
.whatsapp-button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  grid-auto-rows: minmax(120px, auto);
  gap: 14px;
  min-height: 520px;
  padding: 12px;
}

.signal-card,
.tv-frame,
.gift-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 22px;
  color: white;
}

.signal-card.orange {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(135deg, #ff8a1f, #ef4c17);
}

.signal-card.ruby {
  align-self: end;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(145deg, #df1f3a, #86183d);
}

.signal-card span,
.gift-card span,
.screen-glow span {
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 54px;
}

.signal-bars i {
  width: 18px;
  border-radius: 5px 5px 0 0;
  background: rgba(255, 255, 255, 0.84);
}

.signal-bars i:nth-child(1) {
  height: 20%;
}

.signal-bars i:nth-child(2) {
  height: 42%;
}

.signal-bars i:nth-child(3) {
  height: 68%;
}

.signal-bars i:nth-child(4) {
  height: 100%;
}

.router-shape {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.router-shape b {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
}

.tv-frame {
  grid-column: span 2;
  min-height: 230px;
  padding: 16px;
  background: #202839;
}

.screen-glow {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 198px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 166, 166, 0.34), rgba(41, 87, 255, 0.24), rgba(255, 122, 26, 0.28)),
    #0c1020;
  color: white;
  text-align: center;
}

.screen-glow span {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
}

.screen-glow small {
  margin-top: -30px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.gift-card {
  position: absolute;
  inset-block-start: 42%;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(220px, 42%);
  min-height: 150px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(140deg, #2957ff, #00a6a6);
  color: white;
  transform: rotate(4deg);
}

.gift-card strong {
  font-size: 1.7rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 56px) 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-band div {
  min-height: 96px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  margin-top: 6px;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  padding: 0 clamp(18px, 4vw, 56px);
}

main#top > .section-heading#products {
  max-width: 100%;
  padding-top: clamp(20px, 4vw, 38px);
}

main#top > .section-heading#products h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

main#top > .section-heading#products p:not(.eyebrow) {
  max-width: 720px;
}

.section-heading.compact {
  padding: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px clamp(18px, 4vw, 56px) 16px;
}

.catalog-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0 clamp(18px, 4vw, 56px) 46px;
}

.category-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(21, 24, 33, 0.08);
}

.category-panel h3 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.catalog-shell .filters {
  display: grid;
  gap: 8px;
  padding: 0;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: white;
  color: #313746;
  border: 1px solid var(--line);
}

.catalog-shell .filter-button {
  justify-content: flex-start;
  width: 100%;
  min-height: 52px;
  text-align: start;
}

.filter-button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #343846;
  font-size: 0.72rem;
  font-weight: 900;
}

.filter-button.active .category-icon {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 4vw, 56px) 44px;
}

.catalog-shell .product-grid {
  padding: 0;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(21, 24, 33, 0.08);
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 112px;
  color: white;
  text-align: center;
}

.product-media strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
}

.product-media span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-orange {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 12%, transparent 12% 100%),
    linear-gradient(140deg, #ff8a1f, #ef4c17);
}

.theme-ruby {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 12%, transparent 12% 100%),
    linear-gradient(140deg, #df1f3a, #8e1839);
}

.theme-teal {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 12%, transparent 12% 100%),
    linear-gradient(140deg, #00a6a6, #2957ff);
}

.theme-blue {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 12%, transparent 12% 100%),
    linear-gradient(140deg, #2957ff, #111a4f);
}

.theme-green {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 12%, transparent 12% 100%),
    linear-gradient(140deg, #00a65a, #036a49);
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 900;
}

.price {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.product-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 18px;
}

.add-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.payment-section,
.order-section {
  margin: 0 clamp(18px, 4vw, 56px) 76px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.payment-tile {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.payment-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #151821;
  color: white;
  font-weight: 900;
}

.real-payment-logo {
  overflow: hidden;
  padding: 0;
  background: white;
  border: 1px solid rgba(231, 226, 216, 0.9);
  box-shadow: 0 10px 22px rgba(21, 24, 33, 0.12);
}

.real-payment-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-logo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(21, 24, 33, 0.16);
}

.payment-logo::before,
.payment-logo::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.payment-logo b {
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}

.logo-d17 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(145deg, #e11d2e, #a7091c);
}

.payment-logo.logo-d17::before {
  inset: 8px 8px auto auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.payment-logo.logo-d17::after {
  inset: auto -7px -7px auto;
  width: 30px;
  height: 30px;
  border: 7px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.logo-flouci {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(145deg, #1f7aff, #00a6a6);
}

.payment-logo.logo-flouci::before {
  inset: 10px auto auto 11px;
  width: 13px;
  height: 33px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(22deg);
}

.payment-logo.logo-flouci::after {
  inset: auto 8px 9px auto;
  width: 21px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.logo-cash {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(145deg, #00a65a, #036a49);
}

.payment-logo.logo-cash::before {
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.payment-logo.logo-cash::after {
  inset: auto 9px 8px auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.order-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.checkout-promo {
  grid-template-columns: 1fr minmax(300px, 440px);
}

.note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

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

.order-form label,
.cart-panel {
  display: grid;
  gap: 8px;
}

.order-form label span {
  color: #343846;
  font-size: 0.9rem;
  font-weight: 900;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
  outline: none;
}

.order-form textarea,
.cart-panel,
.order-actions,
.copy-status {
  grid-column: 1 / -1;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 166, 166, 0.1);
}

.cart-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.cart-header,
.total-line,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  min-height: auto;
  padding: 4px 0;
  background: transparent;
  color: var(--ruby);
}

.cart-list {
  display: grid;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  padding: 9px 0;
  border-bottom: 1px solid rgba(231, 226, 216, 0.75);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.empty-cart {
  color: var(--muted);
}

.total-line {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.06rem;
}

.copy-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.page-shell {
  min-height: calc(100svh - 76px);
  padding: clamp(24px, 4vw, 42px) clamp(18px, 4vw, 56px) 76px;
}

.page-heading {
  max-width: 790px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.page-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.page-heading p:last-child {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

.basket-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.basket-card,
.summary-card,
.checkout-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(21, 24, 33, 0.08);
}

.basket-card,
.summary-card {
  padding: clamp(18px, 3vw, 26px);
}

.checkout-card {
  padding: clamp(18px, 3vw, 28px);
}

.summary-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.summary-card h2,
.checkout-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.basket-list {
  gap: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line-media {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 8px;
  color: white;
  text-align: center;
}

.cart-line-media strong {
  max-width: 86px;
  font-size: 1rem;
  line-height: 1.05;
}

.cart-line-main {
  display: grid;
  gap: 5px;
}

.cart-line-main span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.qty-controls {
  display: inline-grid;
  grid-template-columns: 36px 38px 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.qty-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.qty-controls span {
  text-align: center;
  font-weight: 900;
}

.line-total {
  min-width: 86px;
  text-align: end;
}

.remove-line {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ruby);
  cursor: pointer;
  font-weight: 900;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
}

.grand-total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.accepted-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accepted-payments span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #343846;
  font-weight: 900;
}

.mini-logo {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  color: white;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.mini-logo-img {
  display: inline-block;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  object-fit: cover;
  background: white;
  border: 1px solid rgba(231, 226, 216, 0.9);
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
}

.checkout-card.order-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-card h2,
.payment-picker,
.payment-instructions {
  grid-column: 1 / -1;
}

.payment-picker {
  display: grid;
  gap: 12px;
}

.payment-picker > strong,
.payment-instructions strong {
  color: #343846;
  font-size: 0.9rem;
  font-weight: 900;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  cursor: pointer;
}

.payment-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(21, 24, 33, 0.08);
}

.payment-choice .payment-icon {
  width: 44px;
  height: 44px;
  margin: 0;
}

.payment-choice span:last-child {
  display: grid;
  gap: 3px;
}

.payment-choice small {
  color: var(--muted);
  line-height: 1.35;
}

.payment-instructions {
  padding: 14px;
  border: 1px solid rgba(0, 166, 166, 0.22);
  border-radius: 8px;
  background: rgba(0, 166, 166, 0.06);
}

.payment-instructions p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.checkout-summary .cart-list {
  gap: 0;
}

.is-disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.empty-state {
  display: grid;
  gap: 10px;
  padding: 24px 0;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

.empty-state .ghost-button {
  width: fit-content;
  margin-top: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  background: #151821;
  color: white;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  font-weight: 900;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-profile {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.footer-profile span {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1120px) {
  .hero,
  .order-section,
  .basket-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding-top: 38px;
  }

  .trust-band,
  .payment-grid,
  .product-grid,
  .payment-options {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
  }

  .catalog-shell .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-band {
    margin-bottom: 56px;
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .order-actions,
  .site-footer,
  .footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
  }

  .owner-card {
    grid-template-columns: 1fr;
  }

  .owner-avatar {
    width: 64px;
    height: 64px;
  }

  .tv-frame {
    grid-column: auto;
  }

  .gift-card {
    position: static;
    width: 100%;
    transform: none;
  }

  .trust-band,
  .payment-grid,
  .product-grid,
  .order-form,
  .checkout-card.order-form,
  .payment-options,
  .catalog-shell .filters {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .qty-controls,
  .line-total,
  .remove-line {
    grid-column: 2;
    width: fit-content;
  }

  .line-total {
    min-width: 0;
    text-align: start;
  }

  .product-card {
    min-height: 330px;
  }

  .screen-glow small {
    margin-top: -16px;
  }
}
