:root {
  --store-red: #ed3b24;
  --store-red-dark: #c92c19;
  --store-ink: #111416;
  --store-panel: #ffffff;
  --store-soft: #f5f5f2;
  --store-line: #e2e2dc;
  --store-muted: #697178;
  --store-radius: 8px;
}

body { background: var(--store-soft); color: var(--store-ink); }
.wrap { width: min(1420px, calc(100% - 40px)); }
.topbar { background: var(--store-red); color: #fff; }
.topbar .wrap { min-height: 32px; }
.nav { background: var(--store-ink); color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.13); }
.nav .wrap { min-height: 74px; }
.logo-mark { border-radius: 4px; background: var(--store-red); clip-path: none; }
.catalog-menu-trigger, .actions .iconbtn { border-radius: 5px; }
.header-search { border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.header-search button { background: var(--store-red); }
.header-search button:hover { background: var(--store-red-dark); }

.hero {
  min-height: 420px;
  background-position: center 42%;
}
.hero::before { background: linear-gradient(90deg, rgba(8,10,11,.97), rgba(8,10,11,.82) 48%, rgba(8,10,11,.18)); }
.hero .wrap { padding-top: 42px; padding-bottom: 42px; }
.hero h1 { max-width: 780px; font-size: clamp(38px, 4.3vw, 64px); line-height: .98; letter-spacing: -2.5px; }
.hero p { max-width: 720px; font-size: 16px; }
.finder { max-width: 900px; border-radius: var(--store-radius); padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.finder input, .finder select, .field { border-radius: 4px; background: #fff; }
.btn { border-radius: 5px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--store-red); border-color: var(--store-red); }
.btn.primary:hover { background: var(--store-red-dark); }

.section { padding: 54px 0; }
.section h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -1.2px; }
.sectionhead { margin-bottom: 24px; }
.home-catalog { padding: 34px 0 54px; }
.home-quick-links a { border-radius: 999px; }

.pagehero { padding: 42px 0; background: linear-gradient(135deg, #101416, #20272b); }
.pagehero h1 { margin: 8px 0 12px; font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -2px; }
.pagehero p { margin: 0; }
.breadcrumb { padding: 14px 0; }

.layout { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
.filters, .cart-list, .cart-summary, .cart-empty { border-radius: var(--store-radius); box-shadow: 0 8px 24px rgba(17,20,22,.05); }
.filters { top: 92px; }
.catalog-head { margin-bottom: 14px; }

.catalog-results > .products,
.section > .wrap > .products,
.home-catalog .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product { border-radius: var(--store-radius); box-shadow: 0 5px 20px rgba(17,20,22,.045); transition: transform .18s ease, box-shadow .18s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(17,20,22,.11); }
.product-img { height: 190px; padding: 14px; }
.product-body { padding: 14px; }
.product h3 { min-height: 58px; font-size: 14px; }
.product .price { font-size: 22px; }
.product-actions { padding: 0 14px 14px; }
.product-actions .btn { background: var(--store-red); border-color: var(--store-red); color: #fff; }

.product-page-shell { background: var(--store-soft) !important; }
.product-overview { border-radius: 10px !important; box-shadow: 0 12px 38px rgba(17,20,22,.08) !important; }
.product-gallery { background: #fff !important; border: 1px solid var(--store-line); }
.product-title { letter-spacing: -1px; }
.product-buy-actions > :first-child { background: var(--store-red) !important; border-color: var(--store-red) !important; }
.product-related article { border-radius: var(--store-radius); }

.cart-page { min-height: 62vh; }
.cart-page h1 { margin-bottom: 22px; font-size: clamp(34px, 4vw, 52px); }
.cart-layout { grid-template-columns: minmax(0, 1fr) 410px; gap: 22px; }
.cart-item { grid-template-columns: 104px minmax(0,1fr) 94px auto; padding: 16px; }
.cart-item img { border-radius: 6px; background: #fff; border: 1px solid var(--store-line); }
.cart-summary { top: 92px; padding: 26px; }
.cart-summary h2 { font-size: 22px; }
.cart-total { padding: 14px 0; border-top: 1px solid var(--store-line); border-bottom: 1px solid var(--store-line); }
.checkout-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-contact-grid label:first-child { grid-column: 1 / -1; }
.payment-options { display: grid; gap: 8px; }
.payment-option { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 8px !important; border: 1px solid var(--store-line); border-radius: 6px; padding: 12px; color: var(--store-ink) !important; cursor: pointer; }
.payment-option input { width: auto; margin-top: 2px; }
.payment-option span { display: grid; gap: 3px; }
.payment-option small { font-weight: 400; color: var(--store-muted); line-height: 1.4; }
.checkout-order { margin-bottom: 18px; }
.checkout-order .cart-item { grid-template-columns: 76px minmax(0,1fr) auto; }
.checkout-order .cart-item img { width: 76px; height: 66px; }
.checkout-order .cart-item label, .checkout-order .cart-remove { display: none; }
.checkout-submit { min-height: 50px; font-size: 15px; }
.order-success { box-shadow: 0 12px 36px rgba(17,20,22,.08); }

.footer { padding-top: 46px; }
.footer-grid { grid-template-columns: 1.7fr repeat(3, 1fr); }

@media (max-width: 1180px) {
  .catalog-results > .products, .section > .wrap > .products, .home-catalog .products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cart-layout { grid-template-columns: minmax(0,1fr) 360px; }
}
@media (max-width: 820px) {
  .wrap { width: min(100% - 24px, 1420px); }
  .hero { min-height: 380px; }
  .hero::before { background: rgba(8,10,11,.82); }
  .hero h1 { font-size: 36px; }
  .layout, .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 36px 0; }
  .hero { min-height: 350px; padding: 0; }
  .hero .wrap { padding-top: 28px; padding-bottom: 30px; }
  .hero h1 { font-size: 31px; letter-spacing: -1.3px; }
  .hero p { font-size: 14px; }
  .finder { grid-template-columns: 1fr; }
  .catalog-results > .products, .section > .wrap > .products, .home-catalog .products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .product-img { height: 135px; padding: 8px; }
  .product-body { padding: 10px; }
  .product h3 { min-height: 52px; font-size: 12px; }
  .product .price { font-size: 17px; }
  .product-actions { padding: 0 10px 10px; }
  .checkout-contact-grid { grid-template-columns: 1fr; }
  .checkout-contact-grid label:first-child { grid-column: auto; }
  .cart-page { padding-top: 30px; }
  .cart-item { grid-template-columns: 76px minmax(0,1fr); gap: 12px; padding: 12px; }
  .cart-item img { width: 76px; height: 66px; }
  .cart-item > div:last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .catalog-results > .products, .section > .wrap > .products, .home-catalog .products { grid-template-columns: 1fr; }
  .product-img { height: 180px; }
}
