:root {
  --ink: #122126;
  --muted: #5c6f77;
  --line: #d9e3e6;
  --panel: #ffffff;
  --soft: #f4f8f8;
  --primary: #0f766e;
  --primary-strong: #0b554f;
  --accent: #d97706;
  --danger: #b42318;
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fafb;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

.button.ghost {
  background: #fff;
  color: var(--primary);
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.wide {
  width: 100%;
  margin-top: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: .85rem;
}

.top-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 700;
  color: #24383e;
}

.search {
  position: relative;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(18, 33, 38, .12);
  overflow: hidden;
}

.suggestions a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef3f4;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 32px;
  align-items: center;
  min-height: 560px;
  padding: 54px 7vw 40px;
  background:
    linear-gradient(90deg, rgba(238, 246, 246, .98) 0%, rgba(238, 246, 246, .92) 44%, rgba(238, 246, 246, .68) 100%),
    url('/assets/img/hero-equipment.png') right center / auto 100% no-repeat,
    #eef6f6;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 1.02;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.hero-panel div,
.mini-card,
.category-tile,
.product-card,
.summary,
.form-panel,
.result-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-panel div {
  min-height: 150px;
  padding: 20px;
}

.hero-panel strong {
  display: block;
  font-size: 2.4rem;
  color: var(--primary);
}

.hero-panel span {
  color: var(--muted);
}

.section,
.page-head,
.catalog-layout,
.cart-layout,
.checkout-layout,
.narrow,
.product-detail,
.center-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 46px 0;
}

.seo-intro,
.seo-copy-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.seo-intro {
  padding: 24px 0 8px;
}

.seo-intro h1 {
  max-width: 920px;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.seo-intro p,
.seo-copy-section p {
  max-width: 980px;
  color: var(--muted);
}

.seo-copy-section {
  padding: 28px 0 52px;
}

.seo-copy-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.panel-title,
.promo-title,
.category-name {
  display: block;
  font-weight: 900;
}

.section-head,
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 34px 0 20px;
}

.section-head h2,
.page-head h1 {
  margin: 0;
}

.category-grid,
.product-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.category-tile,
.mini-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.category-tile:hover,
.mini-card:hover {
  border-color: var(--primary);
}

.category-tile span,
.mini-card span,
.product-card p {
  color: var(--muted);
}

.product-card {
  overflow: hidden;
}

.product-media,
.detail-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .8), transparent 34%),
    linear-gradient(135deg, #0f766e, #334155 55%, #d97706);
  color: #fff;
  font-weight: 900;
}

.product-body {
  padding: 16px;
}

.product-meta,
.product-foot,
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.product-meta {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.product-body h3 {
  margin: 8px 0;
  font-size: 1.08rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 46px;
}

.filters {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.inline-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px auto;
  gap: 8px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 30px;
  padding: 40px 0;
}

.detail-media {
  min-height: 460px;
  border-radius: var(--radius);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.08;
}

.buy-box,
.spec-list {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding-bottom: 48px;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 170px auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-line-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #f1f5f9;
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-info {
  display: grid;
  gap: 3px;
}

.cart-line-info small {
  color: #64748b;
}

.cart-clear-form {
  justify-self: start;
  margin-top: 6px;
}

.summary,
.form-panel,
.result-box {
  padding: 18px;
}

.summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
}

.summary dd {
  margin: 0;
  font-weight: 800;
}

.form-panel {
  display: grid;
  gap: 12px;
}

.form-panel label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.form-panel label.check {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 500;
}

.form-panel label.check input {
  width: auto;
}

.form-message {
  padding: 10px 12px;
  background: #e9f8f4;
  border: 1px solid #b9e3d5;
  border-radius: var(--radius);
}

.form-message.error {
  background: #fff0ed;
  border-color: #f6c7bf;
  color: var(--danger);
}

.narrow {
  max-width: 560px;
  padding: 44px 0;
}

.center-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.split-band {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-columns div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.text-page {
  max-width: 820px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 7vw;
  background: #102027;
  color: #d8e8eb;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-security {
  margin-top: 14px;
  max-width: 460px;
}

.footer-security img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(6px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.auth-modal-panel h2 {
  margin: 0;
}

.auth-modal-panel form {
  display: grid;
  gap: 12px;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-color: #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 1.35rem;
}

.modal-open {
  overflow: hidden;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-form {
  display: grid;
  gap: 10px;
}

.inline-filters {
  grid-template-columns: minmax(180px, 1.3fr) repeat(5, minmax(120px, .7fr)) auto auto;
  align-items: center;
}

.filter-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.filter-check input {
  width: auto;
  min-height: auto;
}

.checkout-form fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid #dbe4e8;
  border-radius: 14px;
  background: #fff;
}

.checkout-form legend {
  padding: 0 8px;
  font-weight: 1000;
}

.checkout-form .corporate-fields {
  transition: opacity .2s ease;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .catalog-layout,
  .product-detail,
  .cart-layout,
  .checkout-layout,
  .split-band {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .inline-filters,
  .cart-line,
  .feature-columns {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Commerce theme override */
body {
  background: #f5f6f7;
}

.promo-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 18px;
  background: #132127;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
}

.cart-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff4e6;
  color: #9a4f00;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-nav a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #e5ecef;
  border-radius: 999px;
  background: #f8fafb;
  font-weight: 800;
  font-size: .9rem;
}

.hero {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  min-height: 500px;
  padding: 42px 7vw 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 42%, rgba(255, 255, 255, .48) 100%),
    url('/assets/img/hero-marketplace.png') right center / auto 100% no-repeat,
    #eef3f4;
}

.hero-deals {
  display: grid;
  gap: 12px;
}

.hero-deals a,
.store-benefits div,
.campaign-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-deals a {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(18, 33, 38, .08);
}

.hero-deals strong {
  font-size: 1.25rem;
}

.hero-deals em {
  color: var(--primary);
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 900;
}

.deal-label {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff3df;
  color: #a24f00;
  font-size: .75rem;
  font-weight: 900;
}

.store-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(1180px, calc(100% - 36px));
  margin: -16px auto 18px;
  position: relative;
}

.store-benefits div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(18, 33, 38, .06);
}

.store-benefits .benefit-title {
  color: var(--primary);
  font-weight: 900;
}

.store-benefits span {
  color: var(--muted);
  font-size: .9rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.product-card {
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 33, 38, .10);
}

.product-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.25;
  background: #f7f9fa;
  overflow: hidden;
  color: inherit;
}

.product-media img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
}

.rating {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #f59e0b;
  font-size: .85rem;
}

.rating small {
  color: var(--muted);
  font-weight: 800;
}

.commerce-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.commerce-signals span,
.detail-badges span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf8f5;
  color: #0b554f;
  font-size: .78rem;
  font-weight: 900;
}

.price-stack {
  display: grid;
  gap: 1px;
}

.price-stack .product-price,
.price-line strong {
  color: #b42318;
}

.price-stack .product-price {
  font-size: 1.2rem;
  font-weight: 900;
}

.price-stack del,
.price-stack small {
  color: var(--muted);
  font-size: .78rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.quick-actions form {
  display: grid;
}

.quick-actions button {
  min-height: 34px;
  border-color: #dbe4e8;
  background: #fff;
  color: #334155;
  font-size: .82rem;
}

.detail-media {
  min-height: 460px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  overflow: hidden;
}

.price-line {
  margin-top: 18px;
}

.price-line strong {
  font-size: 2rem;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.campaign-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px;
  background: #132127;
  color: #fff;
}

.campaign-strip h2 {
  margin: 0;
}

@media (max-width: 900px) {
  .promo-bar,
  .campaign-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .store-benefits {
    grid-template-columns: 1fr;
  }
}

/* Prism marketplace theme */
:root {
  --neo-ink: #111827;
  --neo-soft: #f4f6fb;
  --neo-orange: #ff7a1a;
  --neo-blue: #1f7ae0;
  --neo-mint: #35d0ba;
  --neo-purple: #7c3aed;
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 7vw;
  background: var(--neo-ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
}

.utility-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.utility-bar a {
  color: #dbeafe;
}

.site-header {
  grid-template-columns: 210px minmax(280px, 1fr) auto;
  gap: 20px;
  padding: 18px 7vw;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .08);
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.search input {
  min-height: 50px;
  border: 2px solid var(--neo-ink);
  border-radius: 18px;
  padding-left: 18px;
  background: #fff;
  font-weight: 700;
}

.top-nav {
  gap: 8px;
}

.top-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f7fb;
}

.top-nav .cart-link {
  background: var(--neo-orange);
  color: #fff;
}

.category-nav {
  padding: 12px 7vw;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .05);
}

.category-nav a {
  border: 0;
  background: transparent;
  color: #334155;
}

.category-nav .all-cats {
  background: var(--neo-ink);
  color: #fff;
  padding-inline: 16px;
}

.commerce-stage {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 250px;
  gap: 16px;
  width: min(1360px, calc(100% - 36px));
  margin: 26px auto 0;
}

.departments,
.promo-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.departments {
  padding: 16px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(17, 24, 39, .08);
}

.departments strong {
  font-size: 1.05rem;
}

.departments a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  font-weight: 800;
}

.departments a em {
  color: var(--neo-orange);
  font-style: normal;
  font-size: .78rem;
}

.home-slider {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--neo-ink);
  box-shadow: 0 24px 46px rgba(17, 24, 39, .16);
}

.slides,
.slide {
  min-height: 470px;
}

.slide {
  display: none;
  align-items: stretch;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: center;
}

.slide.is-active {
  display: grid;
}

.slide-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  width: min(560px, 58%);
  padding: 58px;
  color: #fff;
}

.slide-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: .96;
}

.slide-copy p {
  max-width: 430px;
  color: #e5efff;
  font-size: 1.08rem;
}

.slide-kicker {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 900;
}

.slider-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
}

.slider-controls > button {
  width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--neo-ink);
  color: #fff;
  font-size: 1.4rem;
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dots button {
  width: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.slider-dots button.is-active {
  width: 26px;
  background: var(--neo-orange);
}

.promo-stack a {
  display: grid;
  align-content: end;
  min-height: 230px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, .06), rgba(17, 24, 39, .72)), var(--promo-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 32px rgba(17, 24, 39, .12);
}

.promo-stack span {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-weight: 900;
  font-size: .75rem;
}

.promo-stack .promo-title {
  margin-top: 8px;
  font-size: 1.35rem;
}

.promo-stack em {
  font-style: normal;
  color: #e5efff;
}

.neo-benefits {
  margin-top: 18px;
}

.neo-head {
  align-items: center;
}

.neo-head h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.visual-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.visual-category-grid a {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(17, 24, 39, .08);
  font-weight: 900;
}

.visual-category-grid img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: 16px;
}

.product-band {
  width: min(1360px, calc(100% - 36px));
}

.band-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.band-title span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0e5;
  color: #b45309;
  font-weight: 900;
}

.band-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.wide-promo {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  width: min(1360px, calc(100% - 36px));
  margin: 28px auto;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 20%, rgba(53, 208, 186, .28), transparent 28%),
    linear-gradient(120deg, #111827, #4c1d95 62%, #ff7a1a);
  color: #fff;
}

.wide-promo h2 {
  max-width: 720px;
  margin: 8px 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.wide-promo p {
  color: #e5efff;
}

.muted-band {
  padding-top: 18px;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto 42px;
}

.brand-strip a {
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 900;
}

.footer-logo {
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
}

.button.primary,
.product-card button[type="submit"],
.auth-card button,
.admin-card button {
  border-color: var(--neo-orange);
  background: var(--neo-orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 26, .24);
}

.button.primary:hover,
.product-card button[type="submit"]:hover,
.auth-card button:hover,
.admin-card button:hover {
  background: #e86100;
}

.slide-copy .button.primary,
.wide-promo .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--neo-ink);
}

.product-grid {
  align-items: stretch;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .85);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), #fff),
    linear-gradient(135deg, rgba(255, 122, 26, .08), rgba(53, 208, 186, .08));
  box-shadow: 0 14px 30px rgba(17, 24, 39, .08);
}

.product-card::before {
  content: "Firsat";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.product-card img,
.product-card .placeholder {
  border-radius: 18px;
}

.product-card .quick-actions button {
  min-height: 34px;
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #334155;
  box-shadow: none;
}

.product-card .quick-actions button:hover {
  border-color: var(--neo-orange);
  color: var(--neo-orange);
}

.quick-actions button.is-active,
.favorite-mini button.is-active {
  border-color: var(--neo-orange);
  background: #fff7ed;
  color: #c2410c;
}

.form-note {
  margin: 0;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.5;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.has-field-error input,
.has-field-error textarea,
.has-field-error select {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

.password-toggle {
  width: fit-content;
  min-height: 30px;
  margin-top: 7px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .82rem;
  font-weight: 900;
  box-shadow: none;
}

.password-toggle:hover {
  border-color: var(--neo-orange);
  color: var(--neo-orange);
}

.logout-inline {
  margin: 0;
}

.logout-inline button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: .86rem;
  font-weight: 900;
  box-shadow: none;
}

.compare-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
}

.compare-row {
  display: grid;
  grid-template-columns: 180px repeat(auto-fit, minmax(180px, 1fr));
  min-width: 760px;
  border-bottom: 1px solid #e2e8f0;
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row > * {
  padding: 14px;
  border-right: 1px solid #e2e8f0;
}

.compare-row > *:last-child {
  border-right: 0;
}

.compare-products img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 14px;
}

.compare-products a {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.compare-product-cell {
  display: grid;
  gap: 10px;
}

.compare-product-cell form,
.compare-product-cell button {
  width: 100%;
}

.compare-product-cell button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .82rem;
}

/* Advanced product detail */
.product-page-shell,
.product-info-grid,
.reviews-section {
  width: min(1360px, calc(100% - 36px));
  margin: 28px auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: #64748b;
  font-size: .92rem;
}

.breadcrumb a {
  color: #334155;
  font-weight: 800;
}

.product-commerce-layout {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.product-gallery,
.product-main-copy,
.info-panel,
.review-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(17, 24, 39, .08);
}

.product-gallery {
  padding: 14px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 1.05;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 122, 26, .16), transparent 28%),
    linear-gradient(135deg, #f8fafc, #eef6ff);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--neo-orange);
  color: #fff;
  font-weight: 900;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs button {
  overflow: hidden;
  min-height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f8fafc;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover {
  border-color: var(--neo-orange);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main-copy {
  padding: 26px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.product-title-row h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1;
}

.favorite-mini button {
  white-space: nowrap;
  border-color: #e2e8f0;
  background: #fff;
  color: #111827;
}

.favorite-mini button.is-active {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.detail-rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #cbd5e1;
  letter-spacing: 0;
}

.stars .filled {
  color: #f59e0b;
}

.detail-summary {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
}

.detail-price-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(120deg, #111827, #27272a);
  color: #fff;
}

.detail-price-card div {
  display: grid;
  gap: 2px;
}

.detail-price-card del,
.detail-price-card span {
  color: #cbd5e1;
}

.detail-price-card strong {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.detail-price-card em {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, .18);
  color: #fed7aa;
  font-style: normal;
  font-weight: 900;
}

.installment-panel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.installment-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

.installment-head strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.installment-head span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.45;
}

.installment-head em {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: .82rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.installment-table-wrap {
  overflow-x: auto;
}

.installment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.installment-table th,
.installment-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  white-space: nowrap;
}

.installment-table th {
  color: #64748b;
  font-size: .76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.installment-table td:first-child {
  font-weight: 900;
  color: #0f172a;
}

.installment-table small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
}

.variant-picker {
  margin: 18px 0;
}

.variant-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.variant-picker label {
  cursor: pointer;
}

.variant-picker input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.variant-picker span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-weight: 900;
}

.variant-picker input:checked + span {
  border-color: var(--neo-orange);
  background: #fff7ed;
  color: #c2410c;
}

.advanced-buy-box {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 0;
  border: 0;
}

.advanced-buy-box button {
  border-color: var(--neo-orange);
  background: var(--neo-orange);
  color: #fff;
}

.purchase-signals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.purchase-signals div {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.purchase-signals span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .9rem;
}

.product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: start;
}

.info-panel {
  padding: 22px;
}

.info-panel h2 {
  margin-top: 0;
}

.detail-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.detail-check-grid span,
.clean-list li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.clean-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.spec-table {
  margin-top: 16px;
}

.spec-table h3 {
  margin-bottom: 8px;
}

.spec-table div {
  display: grid;
  grid-template-columns: minmax(140px, .45fr) 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e2e8f0;
}

.spec-table span {
  color: #64748b;
}

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

.document-list a {
  padding: 11px 12px;
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 900;
}

.review-summary-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px;
  margin-bottom: 22px;
}

.big-rating {
  display: block;
  font-size: 4rem;
  font-weight: 1000;
  line-height: 1;
}

.rating-bars {
  display: grid;
  gap: 8px;
}

.rating-bars div {
  display: grid;
  grid-template-columns: 70px 1fr 36px;
  gap: 10px;
  align-items: center;
}

.rating-bars em {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.rating-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--neo-orange);
}

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

.review-list {
  display: grid;
  gap: 12px;
}

.review-card,
.qa-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.review-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.review-card em {
  font-style: normal;
  color: #16a34a;
  font-weight: 900;
}

.review-card p {
  color: #475569;
}

.review-form,
form.info-panel,
.info-panel form {
  display: grid;
  gap: 12px;
}

.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.star-input input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-input label {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 2rem;
  line-height: 1;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: #f59e0b;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 320px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.rich-listing-head p {
  max-width: 680px;
  color: #64748b;
}

.rich-catalog-layout > div {
  min-width: 0;
}

.filters a.is-active {
  border-color: var(--neo-orange);
  background: #fff7ed;
  color: #c2410c;
}

.listing-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.listing-toolbar div {
  display: grid;
  gap: 2px;
}

.listing-toolbar span {
  color: #64748b;
  font-size: .92rem;
}

.listing-toolbar a {
  font-weight: 900;
  color: var(--neo-orange);
}

.contact-layout,
.tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto;
  align-items: start;
}

.contact-card dl,
.tracking-card {
  display: grid;
  gap: 12px;
}

.contact-card dt,
.tracking-card span {
  color: #64748b;
  font-size: .9rem;
}

.contact-card dd {
  margin: 0 0 10px;
  font-weight: 900;
}

.tracking-card {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(17, 24, 39, .08);
}

.tracking-card > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.tracking-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tracking-card li {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.tracking-card li span,
.tracking-card li small {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-methods > strong {
  font-size: 1.05rem;
}

.payment-methods label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dbe4e8;
  border-radius: 14px;
  background: #fff;
}

.payment-methods input {
  width: auto;
  min-height: 20px;
  margin-top: 3px;
}

.payment-methods span {
  display: grid;
  gap: 3px;
}

.payment-methods small,
.bank-transfer-box span {
  color: #64748b;
}

.card-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe4e8;
  border-radius: 14px;
  background: #fff;
}

.card-fields[hidden] {
  display: none;
}

.card-fields label {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  background: transparent;
}

.bank-transfer-box {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
  text-align: left;
}

.bank-transfer-box dl,
.account-main dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
}

.bank-transfer-box dd {
  margin: 0;
  font-weight: 900;
}

.account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 48px;
  align-items: start;
}

.account-menu {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbe4e8;
  border-radius: 18px;
  background: #fff;
}

.account-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 800;
}

.account-menu a.is-active,
.account-menu a:hover {
  background: #fff7ed;
  color: #c2410c;
}

.account-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.orders-panel,
.order-card {
  border: 1px solid #dbe4e8;
  border-radius: 18px;
  background: #fff;
}

.orders-panel {
  padding: 18px;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-top: 10px;
}

.order-card span {
  display: block;
  color: #64748b;
}

@media (max-width: 980px) {
  .product-commerce-layout,
  .product-info-grid,
  .review-layout,
  .review-summary-card,
  .contact-layout,
  .tracking-layout,
  .account-layout,
  .order-card {
    grid-template-columns: 1fr;
  }

  .advanced-buy-box,
  .purchase-signals,
  .detail-check-grid,
  .two-fields,
  .three-fields {
    grid-template-columns: 1fr;
  }
}

.price {
  color: #f97316;
  font-size: 1.35rem;
  font-weight: 1000;
}

.category-nav a:first-child {
  color: #fff;
  background: var(--neo-ink);
  border-color: var(--neo-ink);
}

@media (max-width: 1180px) {
  .commerce-stage {
    grid-template-columns: 1fr;
  }

  .departments {
    grid-template-columns: repeat(4, 1fr);
  }

  .departments strong {
    grid-column: 1 / -1;
  }

  .promo-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .utility-bar {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .brand img {
    width: 150px;
  }

  .commerce-stage,
  .product-band,
  .wide-promo,
  .brand-strip {
    width: min(100% - 24px, 1360px);
  }

  .departments,
  .promo-stack,
  .visual-category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-slider,
  .slides,
  .slide {
    min-height: 520px;
  }

  .slide-copy {
    width: 100%;
    padding: 34px 24px;
  }

  .wide-promo,
  .band-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-controls {
    right: 14px;
    bottom: 14px;
  }

  .visual-category-grid a,
  .product-card,
  .promo-stack a {
    border-radius: 18px;
  }
}

/* Production polish overrides */
html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.45;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

button,
.button {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .92rem;
}

.section,
.page-head {
  padding-top: 28px;
  padding-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(1.65rem, 2vw, 2.35rem);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(198px, 218px));
  justify-content: start;
}

.product-card {
  border-radius: 12px;
}

.product-card::before {
  top: 10px;
  right: 10px;
  font-size: .68rem;
}

.product-body {
  padding: 10px;
}

.product-body h3 {
  min-height: 42px;
  margin: 6px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .92rem;
  line-height: 1.24;
}

.product-card p {
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .8rem;
  line-height: 1.35;
}

.product-media {
  aspect-ratio: 1 / .78;
}

.product-meta,
.rating {
  font-size: .76rem;
}

.commerce-signals {
  margin: 7px 0;
}

.commerce-signals span {
  padding: 3px 7px;
  font-size: .72rem;
}

.product-foot {
  align-items: end;
  gap: 8px;
}

.price-stack .product-price {
  font-size: 1.02rem;
}

.price-stack .product-price,
.price-stack del,
.price-stack small,
.product-foot button[type="submit"] {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-actions button {
  min-height: 30px;
  padding: 6px 8px;
  font-size: .78rem;
}

.product-foot button[type="submit"] {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .78rem;
}

.site-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
  align-items: start;
  margin-top: auto;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer nav .footer-title {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 900;
}

.footer-security img {
  width: min(100%, 360px);
  height: auto;
  border-radius: 8px;
}

.compare-table {
  max-width: max-content;
  min-width: min(100%, 720px);
}

.compare-row {
  grid-template-columns: 150px repeat(auto-fit, minmax(170px, 220px));
}

.compare-products a {
  max-width: 220px;
}

.address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.address-card,
.tracking-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.tracking-item {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}

.tracking-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f4;
}

.account-order-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 18px;
}

.help-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.help-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.help-actions a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
}

.map-panel {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.timeline {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.timeline li {
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

@media (max-width: 900px) {
  body {
    font-size: 13.5px;
  }

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

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .account-order-layout {
    grid-template-columns: 1fr;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-card p,
  .commerce-signals,
  .product-meta {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .tracking-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .tracking-item img {
    width: 56px;
    height: 56px;
  }
}

.announcement-strip {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #0b1220;
  color: #fff;
  font-size: 12.5px;
}

.announcement-strip strong {
  color: #fef3c7;
}

.notification-dropdown {
  position: relative;
}

.notification-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}

.notification-dropdown summary::-webkit-details-marker {
  display: none;
}

.notification-dropdown > div {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.notification-dropdown article {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.support-center-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 36px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.support-ticket-list,
.support-chat-panel,
.support-new-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.support-panel-head,
.support-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.support-ticket-list a {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.support-ticket-list a.is-active {
  background: #f0f7ff;
  border-left: 3px solid var(--primary);
}

.support-ticket-list small,
.support-muted,
.support-chat-head small {
  color: var(--muted);
}

.support-message-stream {
  min-height: 420px;
  max-height: 560px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
}

.support-bubble {
  max-width: 78%;
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.support-bubble.from-customer {
  justify-self: end;
  background: #e8f2ff;
  border-color: #bfdbfe;
}

.support-bubble p {
  margin: 0;
}

.support-reply-store,
.support-new-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.favorite-manage-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 260px));
  justify-content: start;
}

.favorite-manage-card {
  display: grid;
  gap: 8px;
}

.favorite-manage-card > form {
  display: flex;
}

.favorite-manage-card > form button {
  width: 100%;
}

.campaign-badge {
  top: 42px;
  background: #dc2626;
}

@media (max-width: 980px) {
  .product-commerce-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery,
  .advanced-buy-box,
  .review-summary-card {
    position: static;
  }

  .support-center-layout {
    grid-template-columns: 1fr;
  }

  .support-message-stream {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .product-commerce-layout,
  .review-layout {
    width: min(100% - 20px, 100%);
    gap: 12px;
  }

  .product-gallery {
    padding: 10px;
  }

  .product-gallery .gallery-main,
  [data-gallery-main] {
    max-height: 320px;
    object-fit: contain;
  }

  .product-title-row {
    display: grid;
    gap: 8px;
  }

  .installment-head {
    display: grid;
    align-items: stretch;
  }

  .installment-head label {
    min-width: 0;
  }

  .advanced-buy-box {
    padding: 12px;
  }

  .favorite-mini,
  .product-actions {
    flex-wrap: wrap;
  }

  .review-summary-card,
  .review-form,
  .review-card {
    padding: 12px;
  }

  .support-bubble {
    max-width: 92%;
  }
}
