/* Dense premium General Store visual layer.
   Presentation only: commerce authority remains server-owned. */

:root {
  --om-nav: #111b2b;
  --om-nav-2: #1b2a3d;
  --om-nav-text: #f7fafc;
  --om-search-action: #f0b45a;
  --om-search-action-hover: #e3a344;
  --om-page: #f3f4f6;
  --om-line: #d5d9d9;
  --om-text: #0f1111;
  --om-muted: #565959;
  --om-link: #2162a1;
  --om-success: #067d62;
  --om-card: #ffffff;
}

body[data-storefront-scope="general-store"] {
  background: var(--om-page);
  color: var(--om-text);
  font-size: 14px;
}

body[data-storefront-scope="general-store"] .shell {
  width: min(calc(100% - 32px), 1460px);
}

.site-header {
  position: relative;
  z-index: 30;
  border: 0;
  background: var(--om-nav);
  color: var(--om-nav-text);
  box-shadow: none;
}

.brand {
  color: #fff;
}

.global-search {
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.global-search:focus-within {
  border-color: var(--om-search-action);
  box-shadow: 0 0 0 2px rgba(240,180,90,.22);
}

.global-search input {
  min-height: 38px;
  padding: 7px 12px;
  color: #111;
  font-size: 14px;
}

.global-search button {
  min-width: 64px;
  border-left: 1px solid #d5d9d9;
  background: var(--om-search-action);
  color: #111;
  font-size: 12px;
  border-radius: 0;
}

.global-search button:hover {
  background: var(--om-search-action-hover);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--om-line);
  border-radius: 4px;
  background: var(--om-card);
  box-shadow: none;
  transform: none;
}

.product-card:hover {
  border-color: #9aa2aa;
  box-shadow: 0 2px 7px rgba(15,17,17,.12);
  transform: none;
}

.product-link {
  min-height: 100%;
  color: var(--om-text);
}

.product-media-frame {
  aspect-ratio: 1 / 1;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #eaeded;
  border-radius: 0;
  background: #fff;
}

.product-media-frame .product-visual {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.product-card-body {
  padding: 10px 10px 11px;
}

.product-card-copy {
  min-height: 76px;
}

.product-brand {
  margin: 0 0 3px;
  color: var(--om-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.product-card h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #0f1111;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card:hover h3 {
  color: #c45500;
}

.product-meta {
  margin-top: 5px;
  color: var(--om-muted);
  font-size: 10px;
}

.product-shipping-state {
  gap: 5px;
  margin: 8px 0 9px;
}

.shipping-badge {
  min-height: 22px;
  border-radius: 3px;
  padding: 2px 6px;
  box-shadow: none;
  font-size: 9px;
  letter-spacing: .035em;
}

.shipping-warning,
.shipping-explanation {
  font-size: 10px;
}

.product-card-footer {
  align-items: end;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #eaeded;
}

.price-prompt {
  color: #b12704;
  font-size: 12px;
  font-weight: 800;
}

.product-price-note {
  margin-top: 1px;
  font-size: 9px;
}

.product-card-cta {
  min-height: 26px;
  border-radius: 999px;
  padding: 0 8px;
  background: #ffd814;
  color: #0f1111;
  font-size: 10px;
  font-weight: 700;
}

.product-card:hover .product-card-cta {
  background: #f7ca00;
  color: #0f1111;
}

.pagination {
  margin-top: 18px;
}

.site-footer {
  background: #e9ecef;
  color: #41464b;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

@media (max-width: 960px) {

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

@media (max-width: 700px) {
  body[data-storefront-scope="general-store"] .shell {
    width: min(calc(100% - 20px), 1460px);
  }

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

  .product-card-body {
    padding: 8px;
  }

  .product-card-copy {
    min-height: 84px;
  }
}

@media (max-width: 420px) {

  .global-search button {
    min-width: 55px;
    padding-inline: 8px;
  }

  .product-card h3 {
    font-size: 12px;
  }
}

/* Product detail: reference-like gallery / information / buy-box composition. */
.product-page {
  padding-top: 14px;
  padding-bottom: 56px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.18fr) minmax(300px, .82fr) minmax(245px, 300px);
  gap: 20px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--om-line);
  background: #fff;
}

.product-gallery {
  position: sticky;
  top: 16px;
  min-width: 0;
}

.product-gallery:has(.product-gallery-thumbnails) {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.product-gallery:has(.product-gallery-thumbnails) .product-media-stage {
  grid-column: 2;
  grid-row: 1;
}

.product-gallery:has(.product-gallery-thumbnails) .product-gallery-thumbnails {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.product-gallery-thumb {
  width: 58px;
  aspect-ratio: 1 / 1;
  padding: 3px;
  border-radius: 4px;
  background: #fff;
}

.product-media-stage {
  aspect-ratio: 1 / 1;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.product-visual-large {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.product-purchase-panel {
  min-width: 0;
  padding: 2px 0;
}

.product-title-block {
  padding-bottom: 14px;
}

.product-purchase-panel h1 {
  margin: 4px 0 7px;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.22;
  letter-spacing: -.018em;
}

.product-delivered-copy {
  font-size: 12px;
}

.product-facts {
  padding: 12px 0;
}

.product-facts div {
  grid-template-columns: 92px minmax(0,1fr);
  gap: 10px;
  padding: 4px 0;
}

.product-facts dt,
.product-facts dd {
  font-size: 12px;
}

.product-facts dt {
  color: #565959;
  font-weight: 700;
}

.product-trust-strip {
  margin-top: 14px;
  padding: 12px 0 0;
  grid-template-columns: 1fr;
  gap: 10px;
  border-bottom: 0;
}

.product-trust-strip > div,
.product-trust-strip > div:first-child,
.product-trust-strip > div:last-child {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #eaeded;
}

.product-trust-strip > div:last-child {
  border-bottom: 0;
}

.product-buy-box {
  position: sticky;
  top: 16px;
  overflow: hidden;
  border: 1px solid #bbbfbf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,17,17,.08);
}

.product-buy-box .product-shipping-state-detail {
  margin: 0;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid #eaeded;
  border-radius: 0;
  background: #fff;
}

.product-buy-box .shipping-explanation {
  margin-top: 8px;
  color: #565959;
  font-size: 11px;
  line-height: 1.42;
}

.product-buy-box .product-action-stack {
  margin: 0;
  padding: 14px;
  gap: 8px;
}

.product-buy-box .button {
  min-height: 38px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: none;
}

.product-buy-box .button-primary {
  border-color: #fcd200;
  background: #ffd814;
  color: #0f1111;
}

.product-buy-box .button-primary:hover {
  background: #f7ca00;
  color: #0f1111;
}

.product-buy-box .product-cart-form .button {
  border-color: #ff8f00;
  background: #ffa41c;
  color: #0f1111;
}

.product-buy-box .product-cart-form .button:hover {
  background: #fa8900;
}

.checkout-shell {
  margin-top: 22px;
}

.checkout-main,
.checkout-aside {
  border-radius: 8px;
}

.checkout-main {
  padding: clamp(18px, 2.8vw, 32px);
  box-shadow: none;
}

.checkout-aside {
  border: 0;
  border-radius: 8px;
}

/* Cart: dense item list with a desktop summary rail. */
.cart-page {
  padding-top: 14px;
}

.cart-page > .section-heading {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--om-line);
  background: #fff;
}

.cart-page > .section-heading .eyebrow {
  display: none;
}

.cart-page > .section-heading h1 {
  margin: 0;
  font-size: 24px;
}

.cart-page > .section-heading p {
  margin-top: 4px;
  font-size: 11px;
}

.cart-overview {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  gap: 14px;
  align-items: start;
}

.cart-items {
  gap: 0;
  margin: 0;
  border: 1px solid var(--om-line);
  background: #fff;
}

.cart-line {
  grid-template-columns: 150px minmax(0,1fr) 180px;
  gap: 16px;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid #eaeded;
  border-radius: 0;
  box-shadow: none;
}

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

.cart-line-media {
  width: 150px;
  border-radius: 0;
  background: #fff;
}

.cart-line-main h2 {
  margin: 2px 0 6px;
  font-size: 14px;
  line-height: 1.3;
}

.cart-line-main h2 a:hover {
  color: #c45500;
}

.cart-line-shipping {
  margin: 7px 0;
}

.cart-live-price {
  color: #565959;
  font-size: 11px;
}

.cart-line-actions {
  min-width: 0;
  align-self: start;
  gap: 7px;
}

.cart-summary-card {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--om-line);
  background: #fff;
}

.cart-summary-card strong {
  font-size: 17px;
}

.cart-summary-card p {
  margin: 0;
  color: #565959;
  font-size: 11px;
  line-height: 1.45;
}

.cart-summary-card .button {
  min-height: 38px;
  border-radius: 999px;
  background: #ffd814;
  border-color: #fcd200;
  color: #0f1111;
  font-size: 11px;
}

.cart-summary-card .button:hover {
  background: #f7ca00;
  color: #0f1111;
}

.shipping-progress-teaser {
  margin: 12px 0 16px;
  border-radius: 6px;
}

.cart-checkout {
  margin-top: 16px;
}

@media (max-width: 1120px) {
  .product-layout {
    grid-template-columns: minmax(320px,1fr) minmax(300px,.85fr);
  }

  .product-buy-box {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(280px,.65fr);
  }

  .product-buy-box .product-shipping-state-detail {
    border-right: 1px solid #eaeded;
    border-bottom: 0;
  }

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

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

  .product-gallery,
  .product-buy-box {
    position: static;
  }

  .product-buy-box {
    grid-column: auto;
    display: block;
  }

  .product-buy-box .product-shipping-state-detail {
    border-right: 0;
    border-bottom: 1px solid #eaeded;
  }

  .cart-overview {
    grid-template-columns: 1fr;
  }

  .cart-summary-card {
    position: static;
    order: -1;
  }

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

  .cart-line-media {
    width: 110px;
  }

  .cart-line-actions {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .product-gallery:has(.product-gallery-thumbnails) {
    display: block;
  }

  .product-gallery:has(.product-gallery-thumbnails) .product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    margin-top: 8px;
  }

  .product-gallery-thumb {
    width: auto;
  }

  .cart-line {
    grid-template-columns: 82px minmax(0,1fr);
    gap: 10px;
    padding: 10px;
  }

  .cart-line-media {
    width: 82px;
  }

  .cart-line-main h2 {
    font-size: 13px;
  }
}
