/* ==========================================================================
   CommerceLLC - components.css
   Product cards, grids, carousels, home modules, shop, product page,
   cart / checkout / wishlist / compare, account and content pages.
   ========================================================================== */

/* ---------- Module header (section titles) ---------- */
.module-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin-bottom: 1.5rem; padding-bottom: 1.125rem; border-bottom: 1px solid var(--border-dark);
}
.module-header .entry-title { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.module-header .entry-description { margin: 0; font-size: .875rem; color: var(--text-muted); }
.module-header .btn-link { margin-left: auto; }
.module-header.is-danger { border-bottom: 2px solid var(--primary); }
.module-header.is-danger .entry-title { color: var(--primary-strong); }
.module-header.is-center { flex-direction: column; text-align: center; border: 0; padding: 0; margin-bottom: 2.5rem; gap: .5rem; }
.module-header.is-center .entry-title { font-size: 1.5rem; }
.module-header.is-center .btn-link { margin: 0; }

/* ---------- Price & rating ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .125rem .5rem; font-size: 1.125rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.price del { font-size: .8125rem; font-weight: 400; color: var(--text-muted); }
.price ins { color: var(--sale); }
.star-rating {
  position: relative; display: inline-block; font-size: .8125rem; line-height: 1; letter-spacing: 2px;
  color: #DEE2E6; white-space: nowrap;
}
.star-rating::before { content: "★★★★★"; }
.star-rating > span { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--review); }
.star-rating > span::before { content: "★★★★★"; }
.rating { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; color: var(--text-muted); }

.stock { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 600; line-height: 1.2; }
.stock .icon { width: 15px; height: 15px; stroke-width: 1.8; }
.stock.in-stock { color: var(--success-strong); }
.stock.out-of-stock { color: var(--danger-strong); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 .5rem; border-radius: var(--radius-xs); font-size: .6875rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--danger); }
.badge.is-pill { border-radius: 30px; padding: 0 .75rem; height: 24px; font-weight: 600; }
.badge.is-dark { background: var(--text); }
.badge.is-success { background: var(--success-strong); }

/* ---------- Product grid ---------- */
.products {
  --cols: 5;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2.25rem 1.875rem; margin: 0; padding: 0; list-style: none;
}
.products.cols-4 { --cols: 4; }
.products.cols-3 { --cols: 3; }

/* ---------- Product card (Machic style) ---------- */
.product-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: .75rem; border: 1px solid transparent; border-radius: var(--radius); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.product-card:hover, .product-card:focus-within { border-color: var(--border); box-shadow: 0 10px 25px -10px rgba(2, 21, 35, .18); }
.product-card .pc-media { position: relative; margin-bottom: .75rem; }
.product-card .pc-thumb { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.product-card .pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s var(--ease); }
.product-card .pc-thumb:not([data-slides]):hover img { transform: scale(1.06); }
.pc-dots { display: flex; justify-content: center; gap: 6px; margin-top: .625rem; height: 8px; }
.pc-dots span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--border-dark); background: #fff; transition: background-color .15s; }
.pc-dots span.on { background: var(--secondary); border-color: var(--secondary); }
.product-card .pc-badges { position: absolute; top: .375rem; left: .375rem; z-index: 2; display: flex; flex-direction: column; gap: .25rem; pointer-events: none; }
.product-card .pc-badges .badge { height: 24px; padding: 0 .625rem; border-radius: 30px; font-size: .75rem; font-weight: 700; background: var(--danger); }
.product-card .pc-actions { position: absolute; top: .375rem; right: .375rem; z-index: 2; display: flex; flex-direction: column; gap: .375rem; }
.pc-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  opacity: 0; transform: translateX(6px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.pc-action.is-wish { opacity: 1; transform: none; }
.pc-action .icon { width: 15px; height: 15px; }
.pc-action:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pc-action[aria-pressed="true"] { opacity: 1; transform: none; color: #fff; background: var(--danger); border-color: var(--danger); }
.pc-action[aria-pressed="true"] .icon { fill: currentColor; }
.pc-action[data-action="compare"][aria-pressed="true"] { background: var(--primary-strong); border-color: var(--primary-strong); }
.product-card:hover .pc-action, .product-card:focus-within .pc-action { opacity: 1; transform: none; }

.product-card .pc-body { display: flex; flex-direction: column; flex: 1; }
.product-card .pc-cat { margin-bottom: .25rem; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.product-card .pc-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.4em); margin: 0 0 .375rem; font-size: .875rem; font-weight: 500; line-height: 1.4;
}
.product-card .pc-title a:hover { color: var(--primary-strong); }
.product-card .pc-rating { margin-bottom: .375rem; }
.product-card .pc-excerpt { display: none; }
.product-card .pc-meta { margin-bottom: .5rem; }
.product-card .pc-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: auto; }
.product-card .price { flex-direction: column; align-items: flex-start; gap: 0; margin: 0; font-size: 1.375rem; font-weight: 400; }
.product-card .price del { font-size: .8125rem; }
.product-card .price ins { color: var(--sale); }
.pc-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem; flex-shrink: 0;
  width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark); background: #fff; color: var(--shop);
  transition: all .2s var(--ease);
}
.pc-cart .icon { width: 18px; height: 18px; }
.pc-cart .pc-cart-text { display: none; font-size: .8125rem; font-weight: 600; }
.pc-cart:hover { background: var(--shop); border-color: var(--shop); color: #fff; }
.pc-cart.is-added { background: var(--shop); border-color: var(--shop); color: #fff; }
.pc-cart:disabled { color: var(--text-light); background: var(--bg-soft); }

/* List view (shop toggle) */
.products.list-view { --cols: 1 !important; gap: 1rem; }
.products.list-view .product-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.75rem; align-items: start; border-color: var(--border); }
.products.list-view .product-card .pc-media { margin: 0; }
.products.list-view .product-card .pc-title { min-height: 0; font-size: 1.0625rem; -webkit-line-clamp: 3; }
.products.list-view .product-card .pc-excerpt { display: block; margin: .25rem 0 .75rem; font-size: .8125rem; color: var(--text-muted); line-height: 1.6; }
.products.list-view .product-card .pc-price-row { justify-content: flex-start; gap: 1.5rem; align-items: center; }
.products.list-view .pc-cart { width: auto; padding: 0 1rem; background: var(--shop); border-color: var(--shop); color: #fff; }
.products.list-view .pc-cart .pc-cart-text { display: inline; }
.products.list-view .pc-action { opacity: 1; transform: none; }

/* Compact list products (sidebar widgets) */
.product-list { margin: 0; padding: 0; list-style: none; }
.list-product { display: flex; align-items: center; gap: 1rem; padding: .875rem 0; }
.list-product + .list-product { border-top: 1px solid var(--border); }
.list-product .lp-thumb { flex: 0 0 80px; height: 80px; }
.list-product .lp-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
.list-product:hover .lp-thumb img { transform: scale(1.06); }
.list-product .lp-title { margin: 0 0 .375rem; font-size: .8125rem; font-weight: 500; line-height: 1.4; }
.list-product .price { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: .5rem; font-size: 1.25rem; font-weight: 400; color: var(--sale); }
.list-product .price > span { color: var(--sale); }

/* ---------- Horizontal carousel (scroll-snap) ---------- */
.carousel { position: relative; }
.carousel-track {
  --per: 5; --gap: 30px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  margin: 0; padding: 0 0 .25rem; list-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; min-width: 0; }
.carousel-arrow {
  position: absolute; top: 38%; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: opacity .2s, background-color .2s, color .2s;
}
.carousel-arrow:hover { background: var(--text); color: #fff; }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.carousel-arrow .icon { width: 20px; height: 20px; }
.carousel-arrow.prev { left: -12px; }
.carousel-arrow.next { right: -12px; }
@media (min-width: 1330px) { .carousel-arrow.prev { left: -21px; } .carousel-arrow.next { right: -21px; } }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 10px; background: var(--border-dark); transition: width .25s var(--ease), background-color .25s; }
.carousel-dots button[aria-current="true"] { width: 26px; background: var(--primary-strong); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 293px minmax(0, 1fr); gap: 1.875rem; margin-top: 2rem; }
.hero-spacer { min-height: 1px; }
.hero-slider { position: relative; overflow: hidden; background: #fff; }
.hero-slider .carousel-track { --per: 1; --gap: 0px; padding: 0; }
.hero-slider .carousel-track > li { display: flex; }
.slide { position: relative; width: 100%; height: 100%; aspect-ratio: 1024 / 506; min-height: 360px; overflow: hidden; color: var(--text); }
.slide > img { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; object-fit: contain; object-position: right center; }
.slide-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; width: 58%; padding: 2.5rem 0 2.5rem 3rem; }
.slide-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 .875rem; margin-bottom: 1rem; border-radius: 30px; background: var(--secondary); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.slide-title { margin: 0 0 1.75rem; font-size: 2.625rem; font-weight: 300; line-height: 1.12; color: var(--text); letter-spacing: -.02em; }
.slide-title strong { display: block; font-size: 3.5rem; font-weight: 700; }
.slide-text { margin: 0 0 1.75rem; font-size: 1.125rem; font-weight: 400; }
.slide-text strong { font-size: 1.875rem; font-weight: 700; color: var(--danger); }
.hero-slider .carousel-arrow { top: 50%; transform: translateY(-50%); }
.hero-slider .carousel-arrow.prev { left: .75rem; }
.hero-slider .carousel-arrow.next { right: .75rem; }
.hero-slider .carousel-dots { position: absolute; left: 50%; bottom: 1rem; margin: 0; z-index: 4; }
.hero-slider .carousel-dots button { width: 8px; height: 8px; background: var(--border-dark); }
.hero-slider .carousel-dots button[aria-current="true"] { width: 8px; background: var(--primary-strong); }
.hero-slider .carousel-arrow:disabled { opacity: .45; pointer-events: auto; }

/* ---------- Home two-column layout ---------- */
.home-layout { display: grid; grid-template-columns: 293px minmax(0, 1fr); gap: 1.875rem; align-items: start; }
.home-sidebar > * + * { margin-top: 2.5rem; }
.home-main > * + * { margin-top: 2.5rem; }

.icon-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); }
.icon-list li { display: flex; gap: 1.125rem; padding: 1.5rem 1.875rem; }
.icon-list li + li { border-top: 1px solid var(--border); }
.icon-list .icon { width: 30px; height: 30px; color: var(--text); stroke-width: 1.3; flex-shrink: 0; }
.icon-list h3 { margin: 0 0 .375rem; font-size: .875rem; font-weight: 500; }
.icon-list p { margin: 0; font-size: .75rem; line-height: 1.55; color: var(--text-muted); }

.widget-title-line { margin: 0 0 1rem; padding-bottom: 1rem; font-size: 1.125rem; font-weight: 400; border-bottom: 1px solid var(--border-dark); }
.deal-week { padding: 1.25rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.deal-week .dw-thumb { position: relative; display: block; aspect-ratio: 1; margin-bottom: 1rem; }
.deal-week .dw-thumb img { width: 100%; height: 100%; object-fit: contain; }
.deal-week h3 { margin: 0 0 .75rem; font-size: .875rem; font-weight: 500; line-height: 1.45; }
.deal-week h3 a { color: var(--primary-strong); }
.deal-week .price { justify-content: center; font-size: 1.375rem; font-weight: 400; }
.deal-week .btn { margin-top: 1rem; }

/* ---------- Module header (Machic) ---------- */
.module-header { border-bottom: 1px solid var(--border-dark); }
.module-header .entry-title { font-size: 1.25rem; font-weight: 400; }
.module-header .btn-link { color: var(--primary-strong); font-size: .8125rem; }
.module-header .btn-link:hover { color: var(--primary-hover); }

/* ---------- Banners (light, dark text) ---------- */
.banner-grid { display: grid; gap: 1.875rem; }
.banner-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.banner { position: relative; display: block; overflow: hidden; color: var(--text); background: #F3F1F1; isolation: isolate; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .6s var(--ease); z-index: -1; }
.banner:hover > img { transform: scale(1.04); }
.banner:hover { color: var(--text); }
.banner-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .5rem; width: 62%; height: 100%; padding: 1.875rem; }
.banner .eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-strong); }
.banner .entry-title { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.banner p { margin: 0 0 .5rem; font-size: .9375rem; }
.banner .btn { height: 34px; padding: 0 1.25rem; font-size: .8125rem; }
.banner-box { aspect-ratio: 550 / 254; }
.banner-wide { aspect-ratio: 1000 / 213; }
.banner-wide .banner-content { width: 55%; padding: 2rem 2.75rem; }
.banner-tall { aspect-ratio: 360 / 530; }
.banner-tall .banner-content { width: 100%; justify-content: flex-start; padding: 2.75rem 2.5rem; }
.banner-tall .entry-title { font-size: 1.625rem; }

/* Shop / category text banner */
.shop-text-banner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1.25rem 0 .5rem; padding: 1.75rem 1.875rem; background: var(--bg-soft); }
.shop-text-banner .stb-title { margin: 0; font-size: 1.25rem; font-weight: 400; text-transform: uppercase; }
.shop-text-banner mark { display: inline-block; padding: .125rem .875rem; margin: 0 .375rem; border-radius: 30px; background: var(--secondary); color: var(--text); font-weight: 500; }
.shop-text-banner .stb-right { margin-left: auto; text-align: right; }
.shop-text-banner .stb-price { margin: 0; font-size: 1.125rem; font-weight: 500; }
.shop-text-banner .stb-price strong { font-size: 1.75rem; font-weight: 700; color: var(--danger); }
.shop-text-banner .stb-note { margin: 0; font-size: .8125rem; color: var(--text-muted); }

/* ---------- Coupon (dark text banner) ---------- */
.coupon-banner {
  display: flex; align-items: center; gap: 1.5rem; width: 100%; padding: 1.75rem 1.875rem;
  border: 0; border-radius: 0; color: #fff; text-align: left; cursor: pointer;
  background: #021523 url("../images/misc/pattern.png") center / 360px repeat;
}
.coupon-banner .text-wrap > span { display: block; }
.coupon-title { font-size: 1rem; font-weight: 700; }
.coupon-description { font-size: .8125rem; color: rgba(255, 255, 255, .65); }
.coupon-code { display: inline-flex; align-items: center; gap: .625rem; margin-left: auto; font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.coupon-code .icon { width: 22px; height: 22px; }
.coupon-code small { font-size: .6875rem; font-weight: 500; color: rgba(255, 255, 255, .65); }
.coupon-banner:hover .coupon-code { color: var(--secondary); }

/* ---------- Category banner + products ---------- */
.category-module { display: grid; grid-template-columns: 293px minmax(0, 1fr); gap: 1.875rem; align-items: stretch; }
.category-module .banner-col { display: flex; flex-direction: column; border: 1px solid var(--border); }
.category-module .banner { flex: 1; min-height: 420px; background: #6B67F5; color: #fff; }
.category-module .banner .entry-title, .category-module .banner:hover { color: #fff; }
.category-module .banner .eyebrow { color: rgba(255, 255, 255, .8); }
.category-module .banner-content { width: 100%; justify-content: flex-start; padding: 2.25rem 1.875rem; }
.category-module .banner-col .cm-foot { padding: 1.5rem 1.875rem; font-size: .875rem; font-weight: 600; }
.category-module .banner > img { object-position: center; }

/* ---------- Latest deals ---------- */
.deals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.875rem; }
.deal-item { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; border: 1px solid var(--border-dark); border-radius: var(--radius); }
.deal-item .deal-thumb { position: relative; flex: 0 0 150px; aspect-ratio: 1; overflow: hidden; background: #fff; }
.deal-item .deal-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.deal-item:hover .deal-thumb img { transform: scale(1.05); }
.deal-item .deal-thumb .badge { position: absolute; top: 0; left: 0; border-radius: 30px; background: var(--danger); }
.deal-item .deal-body { flex: 1; min-width: 0; }
.deal-item .deal-title { margin: .375rem 0 .625rem; font-size: .9375rem; font-weight: 500; line-height: 1.45; }
.deal-item .price { font-size: 1.5rem; font-weight: 400; margin-bottom: .375rem; }
.deal-item .save { margin-bottom: .625rem; font-size: .8125rem; font-weight: 600; color: var(--shop); }
.deal-item ul { margin: 0 0 1rem; padding-left: 1.125rem; font-size: .8125rem; color: var(--text-muted); }
.deal-item .btn { background: var(--shop); border-color: var(--shop); }
.deal-item .btn:hover { background: var(--shop-hover); border-color: var(--shop-hover); }

/* ---------- Product category boxes ---------- */
.category-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.875rem; }
.category-box { display: flex; gap: 1.5rem; align-items: center; padding: 2rem; border: 1px solid var(--border-dark); }
.category-box .cb-img { flex: 0 0 130px; aspect-ratio: 1; }
.category-box .cb-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.category-box:hover .cb-img img { transform: scale(1.06); }
.category-box h3 { margin: 0 0 .75rem; font-size: .9375rem; font-weight: 600; }
.category-box ul { margin: 0 0 .875rem; padding: 0; list-style: none; }
.category-box li { margin-bottom: .375rem; font-size: .8125rem; }
.category-box li a { color: var(--text-muted); }
.category-box li a:hover { color: var(--primary-strong); }
.category-box .btn-link { color: var(--primary-strong); }

/* ---------- Brand logos ---------- */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.875rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.logos li { display: flex; align-items: center; justify-content: center; height: 90px; }
.logos a { display: flex; align-items: center; justify-content: center; height: 100%; }
.logos img { max-height: 70px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .7; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logos li:hover img { filter: none; opacity: 1; }

.divider { border: 0; border-top: 1px solid var(--border-dark); margin: 2.5rem 0; }

/* ---------- Tabs (product tab carousel) ---------- */
.tab-list { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.tab-list button {
  position: relative; height: 32px; padding: 0; border: 0; background: none;
  font-size: 1.25rem; font-weight: 600; color: var(--text-light);
}
.tab-list button[aria-selected="true"] { color: var(--text); }
.tab-list button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.2rem; height: 2px; background: var(--primary); }
.tab-list button:hover { color: var(--text); }

/* ==========================================================================
   Shop / category listing
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.shop-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: .5rem; }
.shop-sidebar .sidebar-head { display: none; }
.widget { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.widget:last-child { border-bottom: 0; }
.widget-title { margin: 0 0 1rem; font-size: .9375rem; font-weight: 600; }
.filter-list { margin: 0; padding: 0; list-style: none; }
.filter-list li + li { margin-top: .125rem; }
.filter-list label, .filter-list a {
  display: flex; align-items: center; gap: .625rem; padding: .3125rem 0;
  font-size: .8125rem; font-weight: 500; cursor: pointer;
}
.filter-list a[aria-current="page"] { color: var(--primary-strong); font-weight: 600; }
.filter-list input { width: 16px; height: 16px; accent-color: var(--primary-strong); flex-shrink: 0; margin: 0; }
.filter-list .count { margin-left: auto; min-width: 26px; padding: 0 .375rem; font-size: .6875rem; line-height: 20px; text-align: center; color: var(--text-muted); background: var(--bg-soft); border-radius: 20px; }
.price-filter .price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-bottom: .875rem; }
.price-filter .price-inputs .form-control { height: 38px; padding: 0 .625rem; font-size: .8125rem; }
.price-filter .dash { color: var(--text-muted); }
.range-slider { position: relative; height: 26px; margin-bottom: .75rem; }
.range-slider .track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: var(--border-dark); }
.range-slider .fill { position: absolute; top: 11px; height: 4px; border-radius: 4px; background: var(--primary-strong); }
.range-slider input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 26px; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--primary-strong);
  box-shadow: var(--shadow-xs); pointer-events: auto; cursor: pointer;
}
.range-slider input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--primary-strong); pointer-events: auto; cursor: pointer;
}
.range-slider input[type="range"]::-moz-range-track { background: none; }
.range-slider input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--primary-strong); outline-offset: 2px; }
.price-filter .price-label { font-size: .8125rem; color: var(--text-muted); }
.price-filter .price-label strong { color: var(--text); }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.5rem; padding: .625rem .875rem; background: var(--bg-soft); border-radius: var(--radius); }
.shop-toolbar .result-count { margin: 0; font-size: .8125rem; color: var(--text-muted); }
.shop-toolbar .result-count strong { color: var(--text); }
.shop-toolbar .toolbar-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; flex-wrap: wrap; }
.shop-toolbar label { font-size: .8125rem; font-weight: 500; color: var(--text-muted); }
.shop-toolbar .form-select { width: auto; height: 36px; font-size: .8125rem; background-color: #fff; border-radius: var(--radius-sm); }
.shop-toolbar .per-page { display: flex; align-items: center; gap: .5rem; }
.view-buttons { display: flex; gap: .25rem; }
.view-buttons button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text-muted); }
.view-buttons button[aria-pressed="true"] { background: #fff; border-color: var(--border-dark); color: var(--text); }
.view-buttons .icon { width: 18px; height: 18px; }
.filter-toggle { display: none; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.5rem 0 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: .375rem; height: 30px; padding: 0 .375rem 0 .75rem; border: 1px solid var(--border-dark); border-radius: 30px; background: #fff; font-size: .75rem; font-weight: 600; }
.chip .icon { width: 14px; height: 14px; }
.chip:hover { border-color: var(--primary-strong); color: var(--primary-strong); }
.chip-clear { height: 30px; padding: 0 .5rem; border: 0; background: none; font-size: .75rem; font-weight: 600; color: var(--primary-strong); text-decoration: underline; }

.search-heading { margin-bottom: 1.25rem; }
.search-heading h2 { font-size: 1.25rem; margin: 0; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; margin-top: 3rem; }
.pagination button, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: var(--radius-btn);
  border: 1px solid var(--border-dark); background: #fff; font-size: .875rem; font-weight: 600;
}
.pagination button:hover { border-color: var(--text); }
.pagination button[aria-current="page"] { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.pagination span { border-color: transparent; color: var(--text-muted); }
.pagination .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Single product
   ========================================================================== */
.single-product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; margin-top: .5rem; }
.product-gallery { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.gallery-thumbs { order: 2; display: flex; flex-wrap: wrap; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.gallery-thumbs button { display: block; width: 84px; height: 84px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main { position: relative; aspect-ratio: 1; border: 1px solid var(--border-dark); border-radius: 0; background: #fff; overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: transform .2s ease-out, opacity .2s; transform-origin: center; }
.gallery-main.is-zoomed img { transform: scale(1.9); }
.gallery-main .badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.gallery-main .g-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); opacity: 0; transition: opacity .2s; }
.gallery-main:hover .g-nav, .gallery-main .g-nav:focus-visible { opacity: 1; }
.gallery-main .g-nav.prev { left: .75rem; }
.gallery-main .g-nav.next { right: .75rem; }
.gallery-main .g-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.gallery-main .g-nav .icon { width: 18px; height: 18px; }

.product-summary h1 { font-size: 1.875rem; font-weight: 400; line-height: 1.25; margin-bottom: .875rem; }
.product-summary .summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; font-size: .8125rem; color: var(--text-muted); }
.product-summary .summary-meta .sep { width: 1px; height: 14px; background: var(--border-dark); }
.product-summary .stock { padding: .375rem .8125rem; border-radius: var(--radius-xs); background: var(--success-light); }
.product-summary .price { font-size: 2rem; font-weight: 400; margin-bottom: 1.25rem; }
.product-summary .price del { font-size: 1.125rem; }
.product-summary .price .save { align-self: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--danger); padding: .25rem .625rem; border-radius: 30px; }
.short-description { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); font-size: .875rem; }
.short-description ul { margin: 0; padding-left: 1.125rem; }
.short-description li { margin-bottom: .375rem; }
.cart-form { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.product-summary .cart-form { padding: 1.25rem; border: 1px solid var(--border-dark); border-radius: var(--radius); }
.cart-form .btn-primary { background: var(--shop); border-color: var(--shop); }
.cart-form .btn-primary:hover { background: var(--shop-hover); border-color: var(--shop-hover); }
.cart-form .btn-primary { flex: 1; min-width: 180px; height: 50px; font-size: .9375rem; }
.qty { display: inline-flex; align-items: center; height: 50px; border: 1px solid var(--form-border); border-radius: var(--radius-btn); background: #fff; }
.qty button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 100%; padding: 0; border: 0; background: none; color: var(--text); }
.qty button:hover { color: var(--primary-strong); }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 46px; height: 100%; padding: 0; border: 0; background: none; text-align: center; font: 600 .9375rem var(--font); color: var(--text); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.is-small { height: 38px; }
.qty.is-small button { width: 32px; }
.qty.is-small input { width: 36px; font-size: .875rem; }
.secondary-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.secondary-actions button { display: inline-flex; align-items: center; gap: .5rem; padding: 0; border: 0; background: none; font-size: .8125rem; font-weight: 600; }
.secondary-actions button:hover { color: var(--primary-strong); }
.secondary-actions button[aria-pressed="true"] { color: var(--primary-strong); }
.secondary-actions button[aria-pressed="true"] .icon { fill: currentColor; }
.secondary-actions .icon { width: 18px; height: 18px; }

.product-assistant { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--bg-soft); }
.product-assistant .pa-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--primary-strong); flex-shrink: 0; }
.product-assistant .pa-icon .icon { width: 24px; height: 24px; }
.product-assistant span { display: block; font-size: .8125rem; color: var(--text-muted); }
.product-assistant a { font-weight: 600; }
.product-iconboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); }
.iconbox { display: flex; gap: .75rem; align-items: flex-start; }
.iconbox .icon { width: 26px; height: 26px; color: var(--primary-strong); stroke-width: 1.5; }
.iconbox h3 { margin: 0; font-size: .8125rem; font-weight: 600; }
.iconbox p { margin: 0; font-size: .75rem; color: var(--text-muted); }
.product-meta { margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .8125rem; }
.product-meta li { margin-bottom: .375rem; }
.product-meta span { color: var(--text-muted); margin-right: .25rem; }
.product-meta a { font-weight: 600; }
.product-share { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; font-weight: 600; }
.product-share .social-links { margin: 0; }
.product-share .social-links a { width: 34px; height: 34px; }

.product-tabs { margin-top: 4rem; }
.product-tabs .tab-list { gap: 2.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border-dark); }
.product-tabs .tab-list button { font-size: 1.0625rem; height: auto; }
.tab-panel { padding-top: 2rem; }
.tab-panel:focus-visible { outline-offset: 6px; }
.entry-content { font-size: .9375rem; line-height: 1.75; color: #343A40; max-width: 920px; }
.entry-content h2 { font-size: 1.375rem; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 1.0625rem; margin: 1.75rem 0 .75rem; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content li { margin-bottom: .375rem; }
.spec-table { max-width: 720px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.spec-table th, .spec-table td { padding: .75rem 1rem; font-size: .875rem; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 200px; background: #FAFBFC; font-weight: 600; }
.reviews-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.review-form .rating-select { display: flex; gap: .25rem; flex-direction: row-reverse; justify-content: flex-end; }
.review-form .rating-select input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-form .rating-select label { font-size: 1.5rem; line-height: 1; color: var(--border-dark); cursor: pointer; transition: color .15s; }
.review-form .rating-select input:checked ~ label,
.review-form .rating-select label:hover, .review-form .rating-select label:hover ~ label { color: var(--review); }
.review-form .rating-select input:focus-visible + label { outline: 2px solid var(--primary-strong); outline-offset: 2px; border-radius: 4px; }

.related-section { margin-top: 4rem; }

/* Quick view */
.quickview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.quickview .qv-image { aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.quickview .qv-image img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.quickview h2 { font-size: 1.5rem; margin-right: 2rem; }
.quickview .price { font-size: 1.5rem; margin: .75rem 0 1rem; }
.quickview ul { font-size: .8125rem; margin-bottom: 1.25rem; }
.quickview .cart-form .btn-primary { height: 46px; }
.quickview .qty { height: 46px; }

/* ==========================================================================
   Cart, checkout, wishlist, compare
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; align-items: start; }
.shop-table { width: 100%; border-collapse: collapse; }
.shop-table th { padding: 0 1rem .875rem; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); text-align: left; border-bottom: 1px solid var(--border-dark); }
.shop-table td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .875rem; }
.shop-table .col-thumb { width: 96px; }
.shop-table .col-thumb img { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.shop-table .col-name a { font-weight: 600; line-height: 1.4; }
.shop-table .col-name .stock { margin-top: .375rem; }
.shop-table .col-price, .shop-table .col-subtotal { white-space: nowrap; font-weight: 600; }
.shop-table .col-remove { width: 48px; text-align: right; }
.remove-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border-dark); border-radius: 50%; background: #fff; color: var(--text-muted); }
.remove-btn:hover { color: #fff; background: var(--danger-strong); border-color: var(--danger-strong); }
.remove-btn .icon { width: 16px; height: 16px; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.coupon-form { display: flex; gap: .5rem; }
.coupon-form .form-control { width: 200px; }
.cart-totals { padding: 1.75rem; border: 1px solid var(--border-dark); border-radius: var(--radius); background: #fff; }
.cart-totals h2 { font-size: 1.125rem; margin-bottom: 1.25rem; }
.totals-table { width: 100%; margin-bottom: 1.25rem; }
.totals-table th, .totals-table td { padding: .875rem 0; font-size: .875rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.totals-table td { text-align: right; font-weight: 600; }
.totals-table th { font-weight: 500; color: var(--text-muted); }
.totals-table .order-total th, .totals-table .order-total td { font-size: 1.125rem; color: var(--text); font-weight: 700; border-bottom: 0; }
.totals-table small { display: block; font-weight: 400; color: var(--text-muted); font-size: .75rem; }
.free-shipping { margin-bottom: 1.25rem; font-size: .8125rem; }
.free-shipping .bar { height: 6px; margin-top: .5rem; border-radius: 6px; background: var(--border); overflow: hidden; }
.free-shipping .bar span { display: block; height: 100%; background: var(--success); border-radius: 6px; transition: width .4s var(--ease); }
.free-shipping strong { color: var(--primary-strong); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; font-size: .75rem; color: var(--text-muted); }
.trust-row .icon { width: 14px; height: 14px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 2.5rem; align-items: start; }
.checkout-section { margin-bottom: 2rem; }
.checkout-section h2 { font-size: 1.25rem; padding-bottom: .875rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-dark); }
.order-review { position: sticky; top: 96px; padding: 1.75rem; border: 1px solid var(--border-dark); border-radius: var(--radius); background: #FAFBFC; }
.order-review h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.review-items { margin: 0 0 .5rem; padding: 0; list-style: none; }
.review-items li { display: flex; gap: .875rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: .8125rem; }
.review-items img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; flex-shrink: 0; }
.review-items .ri-name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.35; }
.review-items .ri-name small { display: block; font-weight: 500; color: var(--text-muted); }
.review-items .ri-total { font-weight: 600; white-space: nowrap; }
.payment-methods { margin: 1.25rem 0; padding: 0; list-style: none; border: 1px solid var(--border-dark); border-radius: var(--radius); background: #fff; overflow: hidden; }
.payment-methods li + li { border-top: 1px solid var(--border); }
.payment-methods label { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; font-size: .875rem; font-weight: 600; cursor: pointer; }
.payment-methods input { width: 16px; height: 16px; accent-color: var(--primary-strong); margin: 0; }
.payment-methods .pm-icons { margin-left: auto; height: 18px; width: auto; }
.payment-methods .pm-desc { display: none; margin: 0 1rem .875rem 2.75rem; padding: .75rem; font-size: .8125rem; color: var(--text-muted); background: var(--bg-soft); border-radius: var(--radius-sm); }
.payment-methods input:checked ~ .pm-desc, .payment-methods li.is-active .pm-desc { display: block; }
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-top: .75rem; }
.card-fields .full { grid-column: 1 / -1; }
.card-fields .form-control { height: 40px; font-size: .8125rem; }
.privacy-note { font-size: .75rem; color: var(--text-muted); }

.wishlist-table .col-actions { text-align: right; white-space: nowrap; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border-dark); border-radius: var(--radius); }
.compare-table { min-width: 640px; }
.compare-table th, .compare-table td { padding: 1rem; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-size: .8125rem; vertical-align: top; text-align: left; }
.compare-table th { width: 160px; background: #FAFBFC; font-weight: 600; position: sticky; left: 0; z-index: 1; }
.compare-table td { min-width: 200px; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:last-child { border-right: 0; }
.compare-table .cmp-img { display: block; width: 140px; height: 140px; margin-bottom: .75rem; }
.compare-table .cmp-img img { width: 100%; height: 100%; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.compare-table ul { margin: 0; padding-left: 1rem; }

/* ==========================================================================
   Account, contact, tracking, about, legal, 404
   ========================================================================== */
.narrow { max-width: 820px; }
.card-box { padding: 2rem; border: 1px solid var(--border-dark); border-radius: var(--radius); background: #fff; }
.card-box h2 { font-size: 1.375rem; margin-bottom: 1.25rem; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.auth-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; font-size: .8125rem; }
.auth-links a, .link-btn { font-weight: 600; color: var(--primary-strong); background: none; border: 0; padding: 0; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.account-nav { margin: 0; padding: .5rem; list-style: none; border: 1px solid var(--border-dark); border-radius: var(--radius); }
.account-nav button { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 44px; padding: 0 .875rem; border: 0; border-radius: var(--radius-sm); background: none; font-size: .875rem; font-weight: 500; text-align: left; }
.account-nav button:hover { background: var(--bg-soft); }
.account-nav button[aria-selected="true"] { background: var(--primary-light); color: var(--primary-strong); font-weight: 600; }
.account-nav .icon { width: 18px; height: 18px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.dash-card { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-align: left; font-size: .875rem; font-weight: 600; }
.dash-card:hover { border-color: var(--primary-strong); color: var(--primary-strong); }
.dash-card .icon { width: 26px; height: 26px; color: var(--primary-strong); }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.contact-boxes { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.contact-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-box .cb-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary-light); color: var(--primary-strong); flex-shrink: 0; }
.contact-box .cb-icon .icon { width: 22px; height: 22px; }
.contact-box span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.contact-box p, .contact-box address { margin: .25rem 0 0; font-style: normal; font-size: .9375rem; font-weight: 600; line-height: 1.6; }
.contact-box a:hover { color: var(--primary-strong); }
.map-embed { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); aspect-ratio: 21 / 8; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.tracking-box { max-width: 640px; margin: 0 auto; }
.tracking-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.tracking-steps li { position: relative; padding-top: 2.75rem; text-align: center; font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.tracking-steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--border-dark); font-size: .8125rem; color: var(--text-muted); }
.tracking-steps li + li::after { content: ""; position: absolute; top: 16px; right: calc(50% + 22px); width: calc(100% - 44px); height: 2px; background: var(--border-dark); }

.about-hero { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; background: #2b2d42; min-height: 280px; display: flex; align-items: center; isolation: isolate; }
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); }
.about-hero .inner { padding: 3rem; max-width: 640px; }
.about-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: .75rem; }
.about-hero p { margin: 0; font-size: 1.0625rem; font-weight: 300; }
.about-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: center; }
.about-intro .lead { font-size: 1.125rem; line-height: 1.7; color: var(--text); }
.about-intro p { color: #495057; line-height: 1.8; }
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-mosaic img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.875rem; }
.mission-card { padding: 2.25rem; border-radius: var(--radius); background: var(--bg-soft); }
.mission-card .icon { width: 34px; height: 34px; color: var(--primary-strong); margin-bottom: 1rem; }
.mission-card h3 { font-size: 1.25rem; }
.mission-card p { margin: 0; color: #495057; line-height: 1.75; }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.feature-box { padding: 1.75rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.feature-box:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-box .fb-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 1rem; border-radius: var(--radius); background: var(--primary-light); color: var(--primary-strong); }
.feature-box .fb-icon .icon { width: 26px; height: 26px; }
.feature-box h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.feature-box p { margin: 0; font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.category-pills { display: flex; flex-wrap: wrap; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.category-pills a { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem; border: 1px solid var(--border-dark); border-radius: 40px; font-size: .875rem; font-weight: 500; background: #fff; }
.category-pills a:hover { border-color: var(--primary-strong); color: var(--primary-strong); }
.category-pills .icon { width: 18px; height: 18px; color: var(--primary-strong); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.5rem 3rem; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(110deg, #8B0B1C 0%, #D81D33 55%, #F4511E 100%); }
.cta-band h2 { color: #fff; margin: 0 0 .375rem; font-size: 1.625rem; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn { background: #fff; color: var(--primary-strong); border-color: #fff; }
.cta-band .btn:hover { background: #FFF0F2; }
.cta-band .btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta-band .btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.legal { max-width: 860px; }
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.legal p, .legal li { color: #495057; line-height: 1.8; }
.legal .updated { font-size: .8125rem; color: var(--text-muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.legal-nav a { display: inline-flex; height: 34px; align-items: center; padding: 0 .875rem; border: 1px solid var(--border-dark); border-radius: 34px; font-size: .8125rem; font-weight: 500; }
.legal-nav a[aria-current="page"] { background: var(--text); border-color: var(--text); color: #fff; }

.error-page { padding: 3rem 0 1rem; text-align: center; }
.error-page .code { font-size: 7rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--primary-strong); }
.error-page h1 { font-size: 1.75rem; margin: 1rem 0 .5rem; }
.error-page p { color: var(--text-muted); max-width: 520px; margin: 0 auto 1.5rem; }
.error-page .search-form { max-width: 520px; margin: 0 auto 1.5rem; }
.error-page .actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* Loading skeleton for JS-rendered blocks */
.skeleton { background: linear-gradient(90deg, #F1F3F5 25%, #E9ECEF 37%, #F1F3F5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
[data-products]:empty { min-height: 320px; }

/* About hero (navy, Machic pattern) */
.about-hero { background: var(--primary) url("../images/misc/pattern-2.png") right center / auto 160% no-repeat; border-radius: 0; }
.about-hero::before { display: none; }
.cta-band { background: var(--primary) url("../images/misc/pattern.png") center / 360px repeat; border-radius: 0; }
.cta-band .btn { color: var(--text); background: var(--secondary); border-color: var(--secondary); }
.cta-band .btn:hover { background: var(--secondary-dark); color: var(--text); }

/* banner content never squashes its children */
.banner-content > * { flex-shrink: 0; }
.banner-box .banner-content { width: 74%; padding: 1.5rem 1.875rem; }
.banner-box .entry-title { font-size: 1.625rem; }
