/*
Theme Name: Astra Child
Theme URI: https://landj.shop/
Template: astra
Author: Lamar & Jana
Description: قالب عربي RTL خفيف لمتجر لمار وجنى للهدايا والمنظفات بدون WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: astra-child
*/

:root {
  --red: #d60000;
  --black: #000000;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.8;
}

button,
input,
select,
textarea {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

a {
  color: var(--black);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 3px solid var(--black);
  background: var(--white);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

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

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 2px solid var(--black);
  padding: 4px;
  background: var(--white);
}

.brand-text {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.25;
}

.site-description {
  margin: 2px 0 0;
  color: var(--black);
  font-size: 14px;
}

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

.nav-bar {
  border-top: 1px solid var(--black);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 700;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 2px solid var(--black);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 14px;
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--black);
  color: var(--white);
}

.button-outline {
  background: var(--white);
  color: var(--black);
}

.site-main {
  flex: 1;
}

.hero {
  background: var(--black);
  color: var(--white);
  border-bottom: 5px solid var(--red);
  padding: clamp(34px, 6vw, 72px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(30px, 6vw, 62px);
  line-height: 1.2;
}

.hero p {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: clamp(16px, 2.2vw, 22px);
}

.hero-logo {
  justify-self: end;
  width: min(260px, 100%);
  background: var(--white);
  border: 4px solid var(--red);
  padding: 10px;
}

.section {
  padding: clamp(28px, 5vw, 54px) 0;
}

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

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.3;
}

.archive-intro {
  border-bottom: 3px solid var(--black);
  padding: 28px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.category-card,
.cart-panel,
.notice-box,
.search-box {
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-thumb {
  aspect-ratio: 1 / 1;
  border-bottom: 2px solid var(--black);
  background: var(--white);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.product-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.product-excerpt {
  margin: 0;
  font-size: 14px;
}

.price {
  margin-top: auto;
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-weight: 900;
}

.single-product {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 54px) 0;
}

.single-product-media {
  border: 3px solid var(--black);
}

.single-product-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-meta a,
.tag-pill {
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}

.search-form {
  display: flex;
  gap: 8px;
  width: min(420px, 100%);
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  min-height: 44px;
  padding: 8px 10px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  padding: clamp(28px, 5vw, 54px) 0;
}

.cart-panel {
  padding: 16px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 10px;
}

.cart-item img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 2px solid var(--black);
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.quantity-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quantity-controls button {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 3px solid var(--black);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 22px;
  font-weight: 900;
}

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

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
}

.notice-box,
.search-box {
  padding: 16px;
}

.site-footer {
  border-top: 3px solid var(--black);
  background: var(--black);
  color: var(--white);
  padding: 18px 0;
  text-align: center;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 920px) {
  .grid,
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .single-product,
  .cart-page {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    justify-self: start;
    width: 180px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .search-form {
    width: 100%;
  }

  .header-actions .button,
  .search-form input[type="submit"] {
    flex: 1;
  }

  .grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

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

/* Marketplace polish */
body {
  background: var(--white);
}

.site-header {
  background: var(--black);
  border-bottom: 4px solid var(--red);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header a,
.site-header .site-description {
  color: var(--white);
}

.topbar {
  gap: 18px;
  padding: 10px 0;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-color: var(--white);
  border-radius: 6px;
}

.site-title {
  display: block;
  color: var(--white);
  font-size: clamp(18px, 2vw, 26px);
  white-space: nowrap;
}

.header-actions {
  flex: 1;
}

.search-form {
  flex: 1;
  width: auto;
  gap: 0;
}

.search-form input[type="search"] {
  min-height: 48px;
  border-color: var(--white);
  border-radius: 6px 0 0 6px;
}

.search-form input[type="submit"] {
  min-height: 48px;
  border-color: var(--white);
  border-radius: 0 6px 6px 0;
  background: var(--red);
  color: var(--white);
  min-width: 86px;
}

.cart-button,
.header-actions > .button {
  min-height: 48px;
  border-color: var(--white);
  background: var(--red);
  white-space: nowrap;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: 0 6px;
}

.nav-bar {
  background: var(--red);
  border-top: 1px solid var(--white);
}

.main-nav ul {
  gap: 0;
}

.main-nav a {
  color: var(--white);
  min-height: 40px;
  padding: 7px 14px;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--black);
  color: var(--white);
}

.hero {
  border-bottom: 4px solid var(--black);
  padding: clamp(28px, 4vw, 48px) 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 56px);
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
}

.section {
  padding: clamp(24px, 4vw, 42px) 0;
}

.section-head {
  border-bottom: 3px solid var(--black);
  padding-bottom: 10px;
}

.grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  border-width: 1px;
  border-radius: 6px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.product-thumb {
  border-bottom-width: 1px;
  padding: 10px;
}

.product-thumb img {
  object-fit: contain;
}

.product-body {
  gap: 8px;
  padding: 10px;
}

.product-title {
  min-height: 52px;
  font-size: 16px;
}

.product-excerpt {
  min-height: 50px;
}

.price {
  font-size: 22px;
}

.tag-pill {
  align-self: flex-start;
  border-color: var(--red);
  color: var(--red);
  font-size: 12px;
  line-height: 1.4;
}

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

.category-card {
  min-height: 64px;
  border-width: 1px;
  border-radius: 6px;
}

.category-card:hover,
.category-card:focus {
  background: var(--black);
  color: var(--white);
}

.archive-intro {
  background: var(--white);
  border-bottom: 3px solid var(--black);
}

.cart-page {
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
}

.cart-panel {
  border-radius: 6px;
}

.checkout-panel {
  position: sticky;
  top: 126px;
}

.cart-tools {
  display: grid;
  gap: 12px;
  border-top: 3px solid var(--black);
  margin-top: 14px;
  padding-top: 14px;
}

.cart-tools .field {
  margin: 0;
}

.method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.method-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--black);
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 10px;
  cursor: pointer;
}

.method-options input {
  width: auto;
  min-height: auto;
}

.cart-item {
  border-width: 1px;
}

.quantity-controls button[data-remove],
.cart-tools .button-outline {
  width: auto;
  padding-inline: 12px;
}

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

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

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

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

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    flex-direction: column;
  }

  .search-form {
    width: 100%;
  }

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

  .method-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Professional marketplace layout */
body {
  background: #f7f8fb;
}

.site-main {
  background: #f7f8fb;
}

.site-header {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.topbar {
  min-height: 82px;
}

.brand-logo {
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.search-form input[type="search"] {
  border: 0;
  box-shadow: inset 0 0 0 2px var(--white), 0 10px 24px rgba(0, 0, 0, 0.18);
  padding-inline: 18px;
}

.search-form input[type="submit"] {
  border: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.nav-bar {
  overflow-x: auto;
}

.main-nav ul {
  flex-wrap: nowrap;
  min-width: max-content;
}

.home-market-shell {
  padding: 22px 0 10px;
}

.market-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  background: var(--black);
  color: var(--white);
  border: 4px solid var(--red);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
}

.market-banner h1 {
  margin: 6px 0 10px;
  color: var(--white);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.18;
}

.market-banner p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(15px, 2vw, 20px);
}

.market-banner img {
  width: min(220px, 100%);
  justify-self: end;
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 18px;
  padding: 12px;
}

.market-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--white);
  font-weight: 800;
}

.product-strip {
  padding-top: 18px;
}

.product-strip .container,
.category-strip-section .container {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 16px;
}

.section-head {
  border-bottom: 0;
  margin-bottom: 14px;
  padding-bottom: 0;
}

.section-title {
  font-size: clamp(22px, 3vw, 34px);
}

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

.product-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.product-thumb {
  background: #f1f1f1;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.product-title {
  font-weight: 700;
}

.price {
  color: var(--black);
}

.price::first-letter {
  color: var(--red);
}

.product-actions {
  grid-template-columns: 1fr;
}

.product-actions .button,
.product-actions button {
  border-radius: 999px;
}

.category-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x proximity;
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: #f2f3f6;
  color: var(--black);
  font-weight: 800;
  text-align: center;
  padding: 12px;
  scroll-snap-align: start;
}

.category-tile:hover,
.category-tile:focus {
  background: var(--black);
  color: var(--white);
}

.cart-panel {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

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

@media (max-width: 920px) {
  .market-banner {
    grid-template-columns: 1fr;
  }

  .market-banner img {
    justify-self: start;
    width: 150px;
  }

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

@media (max-width: 720px) {
  .marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-strip .container,
  .category-strip-section .container {
    width: min(100% - 16px, 1120px);
    padding: 12px;
  }
}

@media (max-width: 460px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
  }
}

/* Full-screen softer retail finish */
:root {
  --red: #b91c1c;
  --black: #1f2933;
  --soft-red: #fee2e2;
  --surface: #ffffff;
  --page: #f4f6f8;
  --line: rgba(31, 41, 51, 0.12);
}

body,
.site-main {
  background: var(--page);
}

.container {
  width: min(100% - 24px, 1680px);
}

.site-header {
  background: var(--surface);
  color: var(--black);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(31, 41, 51, 0.08);
}

.site-header a,
.site-header .site-description,
.site-title {
  color: var(--black);
}

.brand-logo {
  border-color: var(--line);
}

.search-form input[type="search"] {
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
}

.search-form input[type="submit"],
.cart-button,
.header-actions > .button,
.button,
button,
input[type="submit"] {
  border-color: transparent;
  background: var(--black);
  color: var(--white);
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--red);
}

.button-outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--black);
}

.nav-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.main-nav a {
  color: var(--black);
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--soft-red);
  color: var(--black);
}

.market-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #fee2e2 100%);
  color: var(--black);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
}

.market-banner h1,
.market-banner p,
.market-kicker {
  color: var(--black);
}

.market-kicker {
  border-color: rgba(185, 28, 28, 0.25);
  background: var(--soft-red);
}

.market-banner img {
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(31, 41, 51, 0.08);
}

.product-strip .container,
.category-strip-section .container,
.cart-panel,
.product-card,
.category-tile {
  border-color: var(--line);
}

.tag-pill {
  border-color: rgba(185, 28, 28, 0.35);
  background: var(--soft-red);
}

.product-thumb {
  background: #f6f7f9;
}

.product-extra-meta,
.variant-picker {
  display: grid;
  gap: 8px;
}

.product-extra-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.variant-picker select {
  border: 1px solid var(--line);
}

@media (min-width: 1600px) {
  .marketplace-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Home product rows: compact horizontal catalog sections */
.home-product-section {
  padding-block: clamp(18px, 3vw, 32px);
}

.home-product-section .section-head {
  margin-bottom: 12px;
}

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

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.section-more .button {
  min-width: min(220px, 100%);
}

@media (min-width: 560px) {
  .home-product-grid.marketplace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .home-product-grid.marketplace-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .home-product-grid.marketplace-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .home-product-grid.marketplace-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1480px) {
  .home-product-grid.marketplace-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 1660px) {
  .home-product-grid.marketplace-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Header search sizing */
.site-header .search-form input[type="search"] {
  min-height: 42px !important;
}

.site-header .search-form .search-submit {
  flex: 0 0 54px !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 8px !important;
  border-radius: 0 6px 6px 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 520px) {
  .site-header .search-form .search-submit {
    flex-basis: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding-inline: 6px !important;
  }
}

/* Keep home sections to one visible product row per screen size */
.home-product-grid .product-card {
  display: flex;
}

.home-product-grid .product-card:nth-child(n+3) {
  display: none;
}

@media (min-width: 560px) {
  .home-product-grid .product-card:nth-child(n+3) {
    display: flex;
  }

  .home-product-grid .product-card:nth-child(n+4) {
    display: none;
  }
}

@media (min-width: 760px) {
  .home-product-grid .product-card:nth-child(n+4) {
    display: flex;
  }

  .home-product-grid .product-card:nth-child(n+5) {
    display: none;
  }
}

@media (min-width: 1080px) {
  .home-product-grid .product-card:nth-child(n+5) {
    display: flex;
  }

  .home-product-grid .product-card:nth-child(n+6) {
    display: none;
  }
}

@media (min-width: 1280px) {
  .home-product-grid .product-card:nth-child(n+6) {
    display: flex;
  }

  .home-product-grid .product-card:nth-child(n+7) {
    display: none;
  }
}

@media (min-width: 1480px) {
  .home-product-grid .product-card:nth-child(n+7) {
    display: flex;
  }

  .home-product-grid .product-card:nth-child(n+8) {
    display: none;
  }
}

@media (min-width: 1660px) {
  .home-product-grid .product-card:nth-child(n+8) {
    display: flex;
  }

  .home-product-grid .product-card:nth-child(n+9) {
    display: none;
  }
}

/* Careers */
.careers-button {
  min-height: 42px;
  padding-inline: 14px;
}

.careers-intro p {
  margin: 8px 0 0;
}

.careers-page {
  background: #c8d0ed;
  padding: clamp(20px, 4vw, 44px) 0;
}

.careers-container {
  max-width: 920px;
}

.careers-form {
  display: grid;
  gap: 14px;
}

.careers-field {
  display: grid;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  margin: 0;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.08);
}

.careers-field span,
.careers-field legend {
  color: #111827;
  font-weight: 800;
}

.careers-field b {
  color: #d60000;
}

.careers-field small {
  color: #4b5563;
}

.careers-field input[type="text"],
.careers-field input[type="number"],
.careers-field input[type="date"],
.careers-field textarea {
  border: 0;
  border-bottom: 1px dotted #7b8190;
  border-radius: 0;
  min-height: 42px;
  padding: 8px 0;
}

.careers-field textarea {
  min-height: 72px;
}

.careers-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.careers-field input[type="radio"] {
  width: 18px;
  min-height: 18px;
}

.careers-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.careers-actions button {
  min-width: min(260px, 100%);
}

.careers-actions span {
  color: #111827;
  font-weight: 700;
}

/* Responsive hardening for all screens */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-wrap,
.site-main,
.site-header,
.site-footer,
.container {
  min-width: 0;
}

.container {
  width: min(100% - clamp(16px, 4vw, 40px), 1680px);
}

.site-title,
.site-description,
.product-title,
.product-excerpt,
.page-title,
.section-title,
.cart-item h3,
.meta-chip,
.tag-pill,
.category-tile,
.button,
button,
input,
textarea,
select {
  overflow-wrap: anywhere;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  min-height: auto;
}

.brand {
  min-width: 0;
}

.brand-text {
  min-width: 0;
}

.header-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  min-width: 0;
}

.site-header .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.site-header .search-form input[type="search"] {
  min-width: 0;
  width: 100%;
}

.careers-button,
.cart-button,
.header-actions > .button {
  white-space: nowrap;
}

.main-nav {
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav ul {
  width: max-content;
  min-width: 100%;
}

.market-banner {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
}

.market-banner h1 {
  overflow-wrap: anywhere;
}

.grid,
.marketplace-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.product-card {
  min-width: 0;
}

.product-thumb {
  min-height: 0;
}

.product-body {
  min-width: 0;
}

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

.product-actions .button,
.product-actions button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}

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

.single-product {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.single-product-media,
.single-product-content,
.cart-panel,
.checkout-panel,
.careers-field {
  min-width: 0;
}

.single-product-media img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.cart-page {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

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

.cart-tools,
.checkout-form {
  min-width: 0;
}

.method-options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.category-scroller {
  grid-auto-columns: clamp(136px, 18vw, 220px);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .header-actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }

  .cart-page,
  .single-product {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 16px, 1680px);
  }

  .topbar {
    gap: 10px;
    padding-block: 8px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .site-title {
    white-space: normal;
    font-size: 18px;
  }

  .site-description {
    font-size: 12px;
  }

  .header-actions {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .site-header .search-form {
    grid-column: 1 / -1;
    order: -1;
  }

  .careers-button,
  .header-actions > .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .market-banner {
    grid-template-columns: 1fr;
    border-radius: 12px;
    padding: 18px;
  }

  .market-banner img {
    justify-self: start;
    width: 112px;
    border-radius: 12px;
  }

  .section {
    padding-block: 20px;
  }

  .section-title,
  .page-title {
    font-size: 22px;
  }

  .section-head {
    align-items: stretch;
  }

  .marketplace-grid,
  .grid {
    gap: 10px;
  }

  .product-title {
    min-height: auto;
    font-size: 14px;
  }

  .product-excerpt {
    display: none;
  }

  .price {
    font-size: 17px;
  }

  .tag-pill,
  .meta-chip {
    font-size: 11px;
  }

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

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .quantity-controls {
    gap: 6px;
  }

  .quantity-controls button {
    width: 36px;
    min-height: 36px;
  }

  .careers-field {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 12px, 1680px);
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .header-actions {
    grid-template-columns: 1fr 1fr;
  }

  .site-header .search-form {
    grid-column: 1 / -1;
  }

  .careers-button,
  .header-actions > .button {
    justify-content: center;
    width: 100%;
  }

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

  .product-thumb {
    padding: 6px;
  }

  .product-body {
    gap: 6px;
    padding: 8px;
  }

  .product-actions {
    gap: 6px;
  }

  .product-actions .button,
  .product-actions button {
    min-height: 38px;
    font-size: 12px;
  }

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

  .cart-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cart-total {
    font-size: 18px;
  }

  .careers-field label {
    align-items: flex-start;
  }
}

/* Careers page refined brand styling */
.careers-intro {
  background: #1f2933;
  color: #ffffff;
  border-bottom: 5px solid var(--red);
  padding: clamp(28px, 5vw, 54px) 0;
}

.careers-intro .page-title {
  color: #ffffff;
  font-size: clamp(28px, 5vw, 52px);
}

.careers-intro p {
  max-width: 720px;
  color: #f3f4f6;
  font-size: clamp(15px, 2vw, 19px);
}

.careers-page {
  background:
    linear-gradient(180deg, #f4f6f8 0%, #ffffff 42%, #f4f6f8 100%);
  padding: clamp(24px, 5vw, 56px) 0;
}

.careers-container {
  width: min(100% - 24px, 980px);
}

.careers-form {
  counter-reset: careers-step;
  gap: 18px;
}

.careers-field {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-right: 5px solid var(--red);
  border-radius: 10px;
  background: #ffffff;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.08);
}

.careers-field::before {
  counter-increment: careers-step;
  content: counter(careers-step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--black);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.careers-field span,
.careers-field legend {
  padding-inline-end: 42px;
  color: var(--black);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.careers-field small {
  color: #667085;
  font-weight: 600;
}

.careers-field b {
  margin-inline-start: 4px;
  color: var(--red);
}

.careers-field input[type="text"],
.careers-field input[type="number"],
.careers-field input[type="date"],
.careers-field textarea {
  width: 100%;
  border: 1px solid rgba(31, 41, 51, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--black);
  min-height: 48px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 2px rgba(31, 41, 51, 0.04);
}

.careers-field textarea {
  min-height: 96px;
}

.careers-field input:focus,
.careers-field textarea:focus {
  outline: 3px solid rgba(185, 28, 28, 0.16);
  border-color: var(--red);
  background: #ffffff;
}

.careers-field label {
  width: fit-content;
  min-width: min(240px, 100%);
  border: 1px solid rgba(31, 41, 51, 0.14);
  border-radius: 999px;
  background: #f8fafc;
  padding: 9px 13px;
  color: var(--black);
  cursor: pointer;
}

.careers-field label:has(input[type="radio"]:checked) {
  border-color: rgba(185, 28, 28, 0.35);
  background: var(--soft-red);
  color: var(--black);
}

.careers-field input[type="radio"] {
  accent-color: var(--red);
}

.careers-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
  box-shadow: 0 -10px 30px rgba(31, 41, 51, 0.08);
  backdrop-filter: blur(10px);
}

.careers-actions button {
  border-radius: 999px;
  background: var(--red);
  min-height: 50px;
  font-size: 16px;
}

.careers-actions button:hover,
.careers-actions button:focus {
  background: var(--black);
}

.careers-actions span {
  color: var(--black);
}

@media (min-width: 760px) {
  .careers-field:has(input[type="number"]),
  .careers-field:has(input[type="date"]),
  .careers-field:has(input[name="expected_salary"]) {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .careers-container {
    width: min(100% - 16px, 980px);
  }

  .careers-field {
    border-right-width: 4px;
    padding: 18px 14px;
  }

  .careers-field::before {
    top: 14px;
    left: 14px;
    width: 26px;
    height: 26px;
  }

  .careers-field span,
  .careers-field legend {
    padding-inline-end: 34px;
  }

  .careers-field label {
    width: 100%;
  }

  .careers-actions {
    margin-inline: -8px;
    border-radius: 10px 10px 0 0;
  }
}

/* Final product archive/search/product layout fixes */
.product-archive-grid,
.search-results-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: clamp(12px, 2vw, 20px) !important;
  align-items: stretch !important;
}

.product-archive-grid .product-card,
.search-results-grid .product-card,
.marketplace-grid .product-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 10px !important;
}

.product-card .product-thumb {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #f8fafc !important;
}

.product-card .product-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.product-card .product-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.product-card .product-title {
  font-size: clamp(14px, 1.15vw, 17px) !important;
  line-height: 1.45 !important;
  min-height: auto !important;
  margin: 0 !important;
}

.product-card .product-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-card .product-excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

.product-card .price {
  margin-top: auto !important;
  white-space: normal !important;
}

.product-card .product-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.product-card .product-actions .button,
.product-card .product-actions button {
  width: 100% !important;
  min-height: 40px !important;
  padding-inline: 10px !important;
  font-size: 13px !important;
}

.product-card .choose-options-button {
  background: #b91c1c !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
}

.product-card .choose-options-button:hover,
.product-card .choose-options-button:focus {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.single-product {
  width: min(100% - 24px, 1120px) !important;
  display: grid !important;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr) !important;
  gap: clamp(18px, 4vw, 44px) !important;
  align-items: start !important;
  margin-block: clamp(24px, 5vw, 58px) !important;
}

.single-product-media,
.single-product-content {
  min-width: 0 !important;
  border-radius: 14px !important;
}

.single-product-media {
  background: #fff !important;
  border: 1px solid rgba(31, 41, 51, .1) !important;
  padding: clamp(12px, 2vw, 22px) !important;
  box-shadow: 0 18px 44px rgba(31, 41, 51, .08) !important;
}

.single-product-media img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.single-product-content {
  background: #fff !important;
  border: 1px solid rgba(31, 41, 51, .1) !important;
  padding: clamp(16px, 3vw, 30px) !important;
  box-shadow: 0 18px 44px rgba(31, 41, 51, .08) !important;
}

.single-product-content .page-title {
  font-size: clamp(26px, 4vw, 44px) !important;
  line-height: 1.25 !important;
}

.variant-picker {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
}

.variant-picker label {
  display: grid !important;
  gap: 6px !important;
  font-weight: 800 !important;
}

.variant-picker select {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid rgba(31, 41, 51, .18) !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  padding: 8px 10px !important;
}

.product-option-swatches {
  display: grid !important;
  gap: 10px !important;
  padding-block: 8px 14px !important;
  border-bottom: 1px solid rgba(31, 41, 51, .08) !important;
}

.product-option-title {
  color: #1f2933 !important;
  font-weight: 800 !important;
  text-align: right !important;
}

.product-option-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  justify-content: flex-start !important;
}

.product-option-swatch {
  display: grid !important;
  place-items: center !important;
  width: 50px !important;
  height: 50px !important;
  border: 1px solid rgba(31, 41, 51, .16) !important;
  border-radius: 3px !important;
  background: #fff !important;
  padding: 3px !important;
  cursor: pointer !important;
}

.product-option-swatch.is-active,
.product-option-swatch:hover,
.product-option-swatch:focus {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 1px #b91c1c !important;
}

.product-option-swatch img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.product-option-swatch span {
  overflow: hidden !important;
  max-width: 100% !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: #111827 !important;
  font-weight: 800 !important;
  padding-inline: 2px !important;
}

@media (min-width: 1500px) {
  .product-archive-grid,
  .search-results-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

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

@media (max-width: 560px) {
  .product-archive-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Clean single product page */
.single-product {
  width: min(100% - 28px, 1080px) !important;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr) !important;
  gap: clamp(18px, 4vw, 36px) !important;
  direction: rtl !important;
}

.single-product-media {
  position: sticky !important;
  top: 24px !important;
  display: grid !important;
  place-items: center !important;
  min-height: 420px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

.single-product-media img {
  max-height: 480px !important;
  object-fit: contain !important;
}

.single-product-content {
  display: grid !important;
  gap: 16px !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(31, 41, 51, .07) !important;
}

.single-product-content .page-title {
  margin: 0 !important;
  color: #111827 !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 900 !important;
}

.single-product-content .price {
  margin: 0 !important;
  color: #b91c1c !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 900 !important;
}

.single-product-content .price del {
  margin-inline-end: 8px !important;
  color: #9ca3af !important;
  font-size: .72em !important;
  font-weight: 700 !important;
}

.product-option-swatches {
  order: 2 !important;
  border: 1px solid rgba(31, 41, 51, .1) !important;
  border-radius: 10px !important;
  background: #fafafa !important;
  padding: 12px !important;
}

.product-option-title {
  font-size: 14px !important;
}

.product-option-list {
  gap: 8px !important;
}

.product-option-swatch {
  width: 56px !important;
  height: 56px !important;
  border-radius: 4px !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

.product-option-swatch:hover,
.product-option-swatch:focus {
  transform: translateY(-1px) !important;
}

.product-description {
  color: #4b5563 !important;
  line-height: 1.9 !important;
}

.single-product .add-to-cart {
  width: min(100%, 320px) !important;
  min-height: 52px !important;
  border-radius: 8px !important;
  background: #b91c1c !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  justify-self: start !important;
}

.single-product .add-to-cart:hover,
.single-product .add-to-cart:focus {
  background: #b91c1c !important;
}

@media (max-width: 900px) {
  .single-product {
    grid-template-columns: 1fr !important;
  }

  .single-product-media {
    position: static !important;
    min-height: auto !important;
  }
}

@media (max-width: 520px) {
  .single-product {
    width: min(100% - 16px, 1080px) !important;
    gap: 12px !important;
    margin-block: 16px !important;
  }

  .single-product-content,
  .single-product-media {
    padding: 12px !important;
  }

  .product-option-swatch {
    width: 48px !important;
    height: 48px !important;
  }

  .single-product .add-to-cart {
    width: 100% !important;
  }
}

/* Product page hard reset: WordPress also puts "single-product" on body */
body.single-product {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-height: 100% !important;
  margin: 0 !important;
}

body.single-product #content,
body.single-product .site-content,
body.single-product .ast-container,
body.single-product .content-area,
body.single-product #primary,
body.single-product main.site-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body.single-product .ast-container {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

body.single-product .ast-container::before,
body.single-product .ast-container::after {
  display: none !important;
  content: none !important;
}

body.single-product #secondary,
body.single-product .widget-area,
body.single-product aside.sidebar-main {
  display: none !important;
}

body.single-product .site-content > .ast-container {
  grid-template-columns: 1fr !important;
}

.lamar-single-product {
  width: min(100% - 28px, 1120px) !important;
  margin: clamp(18px, 4vw, 48px) auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr) !important;
  gap: clamp(18px, 4vw, 38px) !important;
  align-items: start !important;
  direction: rtl !important;
}

.lamar-single-product .single-product-media {
  min-height: 0 !important;
  position: sticky !important;
  top: 22px !important;
}

.lamar-single-product .single-product-content {
  display: grid !important;
  gap: 14px !important;
}

@media (max-width: 980px) {
  .lamar-single-product {
    grid-template-columns: 1fr !important;
  }

  .lamar-single-product .single-product-media {
    position: static !important;
    order: 1 !important;
  }

  .lamar-single-product .single-product-content {
    order: 2 !important;
  }
}

@media (max-width: 620px) {
  .lamar-single-product {
    width: min(100% - 16px, 1100px) !important;
    margin-block: 14px !important;
    gap: 12px !important;
  }

  .lamar-single-product .single-product-media,
  .lamar-single-product .single-product-content {
    border-radius: 10px !important;
    padding: 12px !important;
  }
}

/* Professional cart page */
.cart-page {
  width: min(100% - 28px, 1180px) !important;
  margin: clamp(22px, 4vw, 46px) auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr) !important;
  gap: 18px !important;
  align-items: start !important;
  direction: rtl !important;
}

.cart-panel {
  border: 1px solid rgba(15, 23, 42, .09) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08) !important;
}

.cart-list-panel {
  display: grid !important;
  gap: 16px !important;
  padding: clamp(14px, 2vw, 22px) !important;
}

.checkout-panel {
  position: sticky !important;
  top: 18px !important;
  padding: clamp(14px, 2vw, 22px) !important;
}

.cart-items {
  display: grid !important;
  gap: 12px !important;
}

.cart-item {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
  box-shadow: none !important;
}

.cart-item-media {
  display: grid !important;
  place-items: center !important;
  width: 132px !important;
  height: 132px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}

.cart-item-media img,
.cart-item > img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.cart-item-info {
  display: grid !important;
  gap: 10px !important;
  align-content: center !important;
  min-width: 0 !important;
}

.cart-item-title {
  margin: 0 !important;
  font-size: clamp(16px, 2vw, 21px) !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
  color: #0f172a !important;
}

.cart-item-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.cart-item-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  color: #64748b !important;
  font-size: 14px !important;
}

.cart-item-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
}

.cart-item-meta strong {
  color: #b91c1c !important;
  font-weight: 900 !important;
}

.cart-item-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

.cart-item .quantity-controls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px !important;
  border-radius: 10px !important;
  background: #eef2f7 !important;
}

.cart-item .quantity-controls button,
.cart-remove-button {
  min-width: 38px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #0f172a !important;
  color: #fff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.cart-item .quantity-controls strong {
  min-width: 28px !important;
  text-align: center !important;
  color: #0f172a !important;
  font-size: 16px !important;
}

.cart-remove-button {
  padding-inline: 16px !important;
  background: #be123c !important;
}

.cart-total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 12px !important;
  background: #0f172a !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.cart-total strong {
  color: #fff !important;
  font-size: 22px !important;
}

.cart-tools {
  display: grid !important;
  gap: 10px !important;
}

.cart-tools .button-outline,
.cart-tools button,
.checkout-form button[type="submit"] {
  min-height: 48px !important;
  border-radius: 10px !important;
  font-weight: 900 !important;
}

.cart-tools .button-outline {
  border: 1px solid rgba(15, 23, 42, .12) !important;
  background: #fff !important;
  color: #0f172a !important;
}

.cart-tools .field,
.checkout-form .field {
  display: grid !important;
  gap: 7px !important;
}

.cart-tools input,
.checkout-form input,
.checkout-form textarea {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

.checkout-form {
  display: grid !important;
  gap: 14px !important;
}

.checkout-form button[type="submit"] {
  border: 0 !important;
  background: #be123c !important;
  color: #fff !important;
}

.method-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.method-options label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 42px !important;
  border: 1px solid rgba(15, 23, 42, .1) !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  font-weight: 800 !important;
}

@media (max-width: 900px) {
  .cart-page {
    grid-template-columns: 1fr !important;
  }

  .checkout-panel {
    position: static !important;
  }
}

@media (max-width: 560px) {
  .cart-page {
    width: min(100% - 14px, 1180px) !important;
    gap: 12px !important;
  }

  .cart-item {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .cart-item-media {
    width: 92px !important;
    height: 104px !important;
  }

  .cart-item-actions,
  .method-options {
    grid-template-columns: 1fr !important;
  }

  .cart-item-actions {
    display: grid !important;
  }

  .cart-remove-button,
  .cart-item .quantity-controls {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Cart responsive repair */
body .cart-page {
  box-sizing: border-box !important;
  width: min(100% - 24px, 1180px) !important;
  max-width: calc(100vw - 24px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  overflow: visible !important;
}

body .cart-panel,
body .cart-item,
body .checkout-form,
body .cart-tools,
body .method-options {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

body .cart-list-panel {
  order: 1 !important;
}

body .checkout-panel {
  order: 2 !important;
}

body .method-options {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body .method-options label {
  min-width: 0 !important;
  padding: 10px 12px !important;
  text-align: center !important;
  line-height: 1.35 !important;
}

body .method-options input[type="radio"],
body .checkout-form input[type="radio"] {
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  accent-color: #0f172a !important;
}

@media (max-width: 1040px) {
  body .cart-page {
    grid-template-columns: 1fr !important;
  }

  body .cart-list-panel {
    order: 1 !important;
  }

  body .checkout-panel {
    order: 2 !important;
    position: static !important;
    width: 100% !important;
  }
}

@media (max-width: 680px) {
  body .cart-page {
    width: min(100% - 14px, 1180px) !important;
    max-width: calc(100vw - 14px) !important;
    margin-block: 14px !important;
  }

  body .cart-list-panel,
  body .checkout-panel {
    padding: 12px !important;
    border-radius: 10px !important;
  }

  body .cart-item {
    grid-template-columns: 86px minmax(0, 1fr) !important;
  }

  body .cart-item-media {
    width: 86px !important;
    height: 96px !important;
  }

  body .cart-item-title {
    font-size: 15px !important;
  }

  body .cart-item-meta {
    font-size: 12px !important;
  }

  body .method-options {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  body .cart-item {
    grid-template-columns: 1fr !important;
  }

  body .cart-item-media {
    width: 100% !important;
    height: 180px !important;
  }

  body .cart-item-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* Cart mobile layout polish */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body .cart-page {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 12px auto 24px !important;
    gap: 12px !important;
  }

  body .cart-list-panel,
  body .checkout-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  body .cart-items {
    gap: 10px !important;
  }

  body .cart-item {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    grid-template-areas: "media info" !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  body .cart-item-media {
    grid-area: media !important;
    width: 84px !important;
    height: 112px !important;
    align-self: start !important;
  }

  body .cart-item-info {
    grid-area: info !important;
    display: grid !important;
    gap: 8px !important;
    align-content: start !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body .cart-item-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
  }

  body .cart-item-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }

  body .cart-item-meta span {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 7px 9px !important;
    border-radius: 8px !important;
  }

  body .cart-item-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body .cart-item .quantity-controls {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 40px 1fr 40px !important;
    justify-items: center !important;
    align-items: center !important;
  }

  body .cart-item .quantity-controls button {
    width: 40px !important;
    min-width: 40px !important;
  }

  body .cart-remove-button {
    width: 100% !important;
  }

  body .cart-total {
    padding: 12px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  body .cart-total strong {
    font-size: 18px !important;
  }

  body .cart-tools,
  body .checkout-form {
    width: 100% !important;
    gap: 10px !important;
  }

  body .cart-tools input,
  body .checkout-form input,
  body .checkout-form textarea,
  body .checkout-form button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  body .cart-page {
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
  }

  body .cart-item {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body .cart-item-media {
    width: 76px !important;
    height: 96px !important;
  }

  body .cart-item-title {
    font-size: 14px !important;
  }
}

/* Single product option order */
.lamar-single-product .single-product-content {
  display: grid !important;
}

.lamar-single-product .single-product-content .page-title {
  order: 1 !important;
}

.lamar-single-product .single-product-content .price {
  order: 2 !important;
}

.lamar-single-product .product-meta {
  order: 3 !important;
}

.lamar-single-product .product-description {
  order: 4 !important;
}

.lamar-single-product .product-extra-meta {
  order: 5 !important;
}

.lamar-single-product .product-option-swatches {
  order: 6 !important;
}

.lamar-single-product .variant-picker {
  order: 7 !important;
}

.lamar-single-product .add-to-cart {
  order: 8 !important;
}

/* Luxury header and footer */
body .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06) !important;
  backdrop-filter: blur(16px) !important;
}

body.admin-bar .site-header {
  top: 32px !important;
}

body .topbar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: clamp(12px, 2vw, 26px) !important;
  align-items: center !important;
  min-height: 82px !important;
  padding-block: 10px !important;
}

body .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

body .brand-logo {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  padding: 6px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1) !important;
}

body .brand-text {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body .site-title {
  color: #0f172a !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body .site-description {
  max-width: 220px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body .header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body .site-header .search-form {
  display: grid !important;
  grid-template-columns: minmax(120px, 280px) 42px !important;
  align-items: center !important;
  gap: 6px !important;
  width: min(100%, 330px) !important;
  min-width: 0 !important;
}

body .site-header .search-form input[type="search"] {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

body .site-header .search-submit,
body .header-icon-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0f172a !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16) !important;
  cursor: pointer !important;
}

body .header-icon-button.careers-button {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  box-shadow: none !important;
}

body .site-header svg,
body .site-footer svg {
  width: 19px !important;
  height: 19px !important;
  fill: currentColor !important;
  flex: 0 0 auto !important;
}

body .cart-button {
  position: relative !important;
}

body .cart-button .cart-count {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: #be123c !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body .nav-bar {
  border-top: 1px solid rgba(15, 23, 42, .06) !important;
  background: rgba(248, 250, 252, .74) !important;
}

body .main-nav ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(10px, 2.6vw, 34px) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body .main-nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
}

body .main-nav a:hover,
body .main-nav a:focus {
  color: #be123c !important;
  border-bottom-color: #be123c !important;
}

body .site-footer {
  margin-top: clamp(32px, 6vw, 70px) !important;
  padding: 34px 0 18px !important;
  background: #0f172a !important;
  color: #e5edf7 !important;
}

body .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.4fr) auto !important;
  gap: 22px !important;
  align-items: center !important;
}

body .footer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body .footer-logo {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  padding: 7px !important;
  background: #fff !important;
}

body .footer-brand strong {
  display: block !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

body .footer-brand span,
body .footer-contact,
body .footer-contact a,
body .footer-bottom {
  color: #cbd5e1 !important;
}

body .footer-contact {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  font-style: normal !important;
  line-height: 1.8 !important;
}

body .footer-contact a,
body .footer-links a {
  text-decoration: none !important;
}

body .footer-links {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

body .footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .06) !important;
}

body .footer-links a:hover,
body .footer-links a:focus {
  background: #be123c !important;
  border-color: #be123c !important;
}

body .footer-bottom {
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, .1) !important;
  font-size: 13px !important;
  text-align: center !important;
}

body .footer-bottom p {
  margin: 0 !important;
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 0 !important;
  }

  body .topbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-height: auto !important;
  }

  body .brand {
    justify-content: center !important;
  }

  body .header-actions {
    justify-content: center !important;
    width: 100% !important;
  }

  body .site-header .search-form {
    width: min(100%, 420px) !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
  }

  body .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  body .footer-brand,
  body .footer-links {
    justify-content: center !important;
  }
}

@media (max-width: 560px) {
  body .site-header {
    position: sticky !important;
  }

  body .topbar {
    padding-block: 8px !important;
  }

  body .brand {
    justify-content: space-between !important;
  }

  body .brand-logo {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    border-radius: 12px !important;
  }

  body .site-title {
    font-size: 17px !important;
  }

  body .site-description {
    display: none !important;
  }

  body .header-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px 54px !important;
    gap: 6px !important;
  }

  body .site-header .search-form {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    width: 100% !important;
  }

  body .site-header .search-submit,
  body .header-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
  }

  body .site-header .search-submit span,
  body .header-icon-button .action-label {
    font-size: 0 !important;
  }

  body .cart-button {
    width: 54px !important;
  }

  body .cart-button .cart-count {
    position: absolute !important;
    top: -6px !important;
    inset-inline-end: -4px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
  }

  body .main-nav ul {
    justify-content: space-around !important;
    gap: 0 !important;
    width: 100% !important;
  }

  body .main-nav a {
    justify-content: center !important;
    min-height: 40px !important;
    font-size: 12px !important;
    padding-inline: 6px !important;
    white-space: nowrap !important;
  }

  body .footer-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body .footer-links a {
    justify-content: center !important;
    padding: 0 !important;
  }

  body .footer-links a span {
    display: none !important;
  }
}

/* Search button refinement */
body .site-header .search-submit {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #be123c 0%, #0f172a 100%) !important;
}

body .site-header .search-submit::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  border-radius: inherit !important;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0)) !important;
  pointer-events: none !important;
}

body .site-header .search-submit svg,
body .site-header .search-submit span {
  position: relative !important;
  z-index: 1 !important;
}

body .site-header .search-submit:hover,
body .site-header .search-submit:focus {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 26px rgba(190, 18, 60, .24) !important;
}

@media (min-width: 561px) {
  body .site-header .search-submit {
    min-width: 74px !important;
  }
}

@media (max-width: 560px) {
  body .main-nav ul {
    overflow-x: auto !important;
    justify-content: flex-start !important;
    scrollbar-width: none !important;
  }

  body .main-nav ul::-webkit-scrollbar {
    display: none !important;
  }

  body .main-nav li {
    flex: 0 0 auto !important;
  }

  body .site-header .search-form {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  body .site-header .search-submit {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
}

/* Header alignment final pass */
body .header-actions {
  display: grid !important;
  grid-template-columns: minmax(220px, 360px) auto auto !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 8px !important;
}

body .site-header .search-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 78px !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 360px !important;
}

body .site-header .search-form input[type="search"],
body .site-header .search-submit,
body .header-icon-button {
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  line-height: 1 !important;
}

body .site-header .search-form input[type="search"] {
  padding-inline: 14px !important;
}

body .site-header .search-submit,
body .header-icon-button {
  width: auto !important;
  min-width: 78px !important;
  padding-inline: 13px !important;
  gap: 7px !important;
  white-space: nowrap !important;
  transform: none !important;
}

body .site-header .search-submit span,
body .header-icon-button .action-label {
  display: inline !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

body .site-header .search-submit svg,
body .header-icon-button svg {
  width: 18px !important;
  height: 18px !important;
}

body .cart-button .cart-count {
  position: static !important;
  min-width: 21px !important;
  height: 21px !important;
  margin-inline-start: 2px !important;
}

body .nav-bar .container {
  display: flex !important;
  justify-content: center !important;
}

body .main-nav ul {
  gap: 8px !important;
  padding-block: 8px !important;
}

body .main-nav a {
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04) !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

body .main-nav a:hover,
body .main-nav a:focus {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
}

@media (max-width: 760px) {
  body .topbar {
    grid-template-columns: 1fr !important;
  }

  body .header-actions {
    grid-template-columns: minmax(0, 1fr) 86px 86px !important;
    width: 100% !important;
    justify-content: stretch !important;
  }

  body .site-header .search-form {
    grid-template-columns: minmax(0, 1fr) 46px !important;
    max-width: none !important;
  }

  body .site-header .search-submit {
    min-width: 46px !important;
    width: 46px !important;
    padding-inline: 0 !important;
  }

  body .site-header .search-submit span {
    display: none !important;
  }

  body .header-icon-button {
    min-width: 86px !important;
    width: 86px !important;
    padding-inline: 8px !important;
  }

  body .header-icon-button .action-label {
    display: inline !important;
    font-size: 11px !important;
  }

  body .cart-button .cart-count {
    position: absolute !important;
    top: -6px !important;
    inset-inline-end: -4px !important;
    margin: 0 !important;
  }

  body .main-nav ul {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding: 7px 2px !important;
    scrollbar-width: none !important;
  }

  body .main-nav ul::-webkit-scrollbar {
    display: none !important;
  }

  body .main-nav li {
    flex: 0 0 auto !important;
  }

  body .main-nav a {
    min-height: 36px !important;
    padding-inline: 11px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 390px) {
  body .header-actions {
    grid-template-columns: minmax(0, 1fr) 74px 74px !important;
    gap: 5px !important;
  }

  body .header-icon-button {
    min-width: 74px !important;
    width: 74px !important;
    gap: 4px !important;
  }

  body .header-icon-button .action-label {
    font-size: 10px !important;
  }
}

/* Two-line header structure */
body .site-header .topbar {
  display: grid !important;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
}

body .site-header .brand {
  grid-column: 1 !important;
}

body .site-header .header-actions {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 360px) auto auto !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 8px !important;
}

body .site-header .nav-bar {
  display: block !important;
}

body .site-header .main-nav ul {
  justify-content: center !important;
  flex-wrap: nowrap !important;
}

body .site-header .careers-button,
body .site-header .cart-button {
  display: inline-flex !important;
}

@media (max-width: 840px) {
  body .site-header .topbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body .site-header .brand,
  body .site-header .header-actions {
    grid-column: 1 !important;
  }

  body .site-header .brand {
    justify-content: center !important;
  }

  body .site-header .header-actions {
    grid-template-columns: minmax(0, 1fr) 88px 88px !important;
    justify-content: stretch !important;
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  body .site-header .topbar {
    padding-block: 7px !important;
  }

  body .site-header .brand {
    justify-content: flex-start !important;
  }

  body .site-header .header-actions {
    grid-template-columns: minmax(0, 1fr) 78px 78px !important;
    gap: 6px !important;
  }

  body .site-header .header-icon-button {
    width: 78px !important;
    min-width: 78px !important;
  }

  body .site-header .main-nav ul {
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }
}

/* Search button exact sizing */
body .site-header .search-form {
  grid-template-columns: minmax(0, 1fr) 92px !important;
}

body .site-header .search-submit {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

body .site-header .search-submit span {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body .site-header .search-submit svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

@media (max-width: 620px) {
  body .site-header .search-form {
    grid-template-columns: minmax(0, 1fr) 52px !important;
  }

  body .site-header .search-submit {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body .site-header .search-submit span {
    display: none !important;
  }
}

/* Compact one-line mobile header */
body .site-header .nav-action {
  display: none !important;
}

@media (min-width: 721px) {
  body .site-header .header-actions {
    grid-template-columns: minmax(220px, 360px) auto auto !important;
  }
}

@media (max-width: 720px) {
  body .site-header {
    overflow: visible !important;
  }

  body .site-header .topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    min-height: 0 !important;
    padding-block: 7px !important;
  }

  body .site-header .brand {
    min-height: 38px !important;
    justify-content: flex-start !important;
  }

  body .site-header .brand-logo {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 10px !important;
  }

  body .site-header .site-title {
    font-size: clamp(14px, 4vw, 17px) !important;
  }

  body .site-header .site-description {
    display: none !important;
  }

  body .site-header .header-actions {
    display: grid !important;
    grid-template-columns: minmax(86px, 1fr) repeat(4, minmax(48px, 62px)) !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  body .site-header .nav-action {
    display: inline-flex !important;
  }

  body .site-header .search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 38px !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body .site-header .search-form input[type="search"] {
    height: 42px !important;
    min-height: 42px !important;
    min-width: 0 !important;
    padding-inline: 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  body .site-header .search-submit {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    gap: 0 !important;
  }

  body .site-header .search-submit span {
    display: none !important;
  }

  body .site-header .search-submit svg {
    width: 18px !important;
    height: 18px !important;
  }

  body .site-header .header-icon-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 3px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
  }

  body .site-header .header-icon-button svg {
    width: 16px !important;
    height: 16px !important;
  }

  body .site-header .header-icon-button .action-label {
    display: block !important;
    max-width: 100% !important;
    font-size: clamp(8px, 2.35vw, 10px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body .site-header .cart-button {
    position: relative !important;
  }

  body .site-header .cart-button .cart-count {
    position: absolute !important;
    top: -5px !important;
    inset-inline-end: -3px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
    line-height: 17px !important;
  }

  body .site-header .nav-bar {
    display: none !important;
  }
}

@media (max-width: 390px) {
  body .site-header .header-actions {
    grid-template-columns: minmax(74px, 1fr) repeat(4, minmax(42px, 1fr)) !important;
    gap: 4px !important;
  }

  body .site-header .search-form {
    grid-template-columns: minmax(0, 1fr) 34px !important;
  }

  body .site-header .search-submit {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
  }

  body .site-header .header-icon-button {
    height: 40px !important;
    min-height: 40px !important;
  }

  body .site-header .header-icon-button svg {
    width: 15px !important;
    height: 15px !important;
  }
}

/* Final search button cleanup */
body .site-header .search-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: min(100%, 340px) !important;
  max-width: 340px !important;
  min-width: 0 !important;
  direction: rtl !important;
}

body .site-header .search-form input[type="search"] {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
}

body .site-header .search-submit {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #0f172a !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .14) !important;
  overflow: visible !important;
  gap: 0 !important;
}

body .site-header .search-submit::after {
  display: none !important;
  content: none !important;
}

body .site-header .search-submit span {
  display: none !important;
}

body .site-header .search-submit svg {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex: 0 0 20px !important;
}

body .site-header .search-submit:hover,
body .site-header .search-submit:focus {
  transform: none !important;
  background: #be123c !important;
}

@media (max-width: 720px) {
  body .site-header .search-form {
    width: 100% !important;
    max-width: none !important;
    gap: 5px !important;
  }

  body .site-header .search-form input[type="search"] {
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
  }

  body .site-header .search-submit {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
  }

  body .site-header .search-submit svg {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }
}

/* Discounts manager and camera header */
.manager-table input {
  width: 100% !important;
  min-height: 40px !important;
  border: 1px solid rgba(31,41,51,.18) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  padding: 8px 10px !important;
  font-family: inherit !important;
}

body .site-header .camera-search-button {
  background: #be123c !important;
  color: #fff !important;
  border: 0 !important;
}

body .site-header .camera-search-button.is-loading {
  opacity: .72 !important;
  pointer-events: none !important;
}

body .site-header .camera-search-button.is-loading svg {
  animation: lamarCameraPulse .7s ease-in-out infinite alternate !important;
}

@keyframes lamarCameraPulse {
  from { transform: scale(.92); }
  to { transform: scale(1.06); }
}

@media (min-width: 721px) {
  body .site-header .header-actions {
    grid-template-columns: minmax(220px, 340px) auto auto auto !important;
  }
}

@media (max-width: 720px) {
  body .site-header .header-actions {
    grid-template-columns: minmax(66px, 1fr) repeat(6, minmax(38px, 52px)) !important;
    gap: 4px !important;
  }

  body .site-header .camera-search-button {
    display: inline-flex !important;
  }

  body .site-header .search-form input[type="search"] {
    font-size: 11px !important;
  }
}

@media (max-width: 390px) {
  body .site-header .header-actions {
    grid-template-columns: minmax(54px, 1fr) repeat(6, minmax(32px, 1fr)) !important;
    gap: 3px !important;
  }

  body .site-header .header-icon-button .action-label {
    font-size: 8px !important;
  }
}

/* Red brand cleanup: remove pink from home/cart/prices */
body {
  --brand-red: #b91c1c;
  --brand-red-dark: #991b1b;
}

body .price,
body .price *,
body .product-card .price,
body .product-card .price *,
body .single-product-content .price,
body .single-product-content .price *,
body .lamar-single-product .price,
body .lamar-single-product .price *,
body .cart-item-meta strong,
body .cart-total strong {
  color: var(--brand-red) !important;
}

body .price del,
body .single-product-content .price del,
body .product-card .price del {
  color: var(--brand-red) !important;
  opacity: .72 !important;
  text-decoration-color: var(--brand-red) !important;
}

body .product-card .choose-options-button,
body .product-card .add-to-cart,
body .single-product .add-to-cart,
body .lamar-single-product .add-to-cart,
body .checkout-form button[type="submit"],
body .button:not(.button-outline),
body button.add-to-cart {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}

body .product-card .choose-options-button:hover,
body .product-card .choose-options-button:focus,
body .product-card .add-to-cart:hover,
body .product-card .add-to-cart:focus,
body .single-product .add-to-cart:hover,
body .single-product .add-to-cart:focus,
body .lamar-single-product .add-to-cart:hover,
body .lamar-single-product .add-to-cart:focus,
body .checkout-form button[type="submit"]:hover,
body .checkout-form button[type="submit"]:focus {
  background: var(--brand-red-dark) !important;
  border-color: var(--brand-red-dark) !important;
}

body .product-option-swatch.is-active,
body .product-option-swatch:hover,
body .product-option-swatch:focus {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 1px var(--brand-red) !important;
}

body .cart-remove-button,
body .cart-button .cart-count,
body .footer-links a:hover,
body .footer-links a:focus,
body .site-header .camera-search-button,
body .site-header .search-submit:hover,
body .site-header .search-submit:focus {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}

body .market-banner,
body .home-market-shell .market-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 58%, #fee2e2 100%) !important;
}

.checkout-form [hidden],
[data-address-field][hidden] {
  display: none !important;
}

/* Home first banner image */
body .home-market-shell {
  padding-block: clamp(14px, 3vw, 28px) !important;
}

body .home-market-shell .market-banner {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08) !important;
  overflow: hidden !important;
}

body .home-market-shell .market-banner > div {
  display: none !important;
}

body .home-market-shell .home-banner-image,
body .home-market-shell .market-banner > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 560px) {
  body .home-market-shell {
    padding-block: 10px !important;
  }

body .home-market-shell .market-banner,
body .home-market-shell .home-banner-image,
body .home-market-shell .market-banner > img {
    border-radius: 10px !important;
  }
}

body .home-image-banner {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08) !important;
  background: transparent !important;
}

body .home-image-banner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  object-fit: contain !important;
}

@media (max-width: 560px) {
  body .home-image-banner {
    border-radius: 10px !important;
  }
}

/* Complaints page */
.complaints-page {
  padding: clamp(28px, 5vw, 70px) 0 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.98)),
    repeating-linear-gradient(90deg, rgba(15,23,42,.035) 0 1px, transparent 1px 80px) !important;
}

.complaints-shell {
  width: min(100% - 24px, 920px) !important;
}

.complaints-card {
  border: 1px solid rgba(15,23,42,.1) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 20px 48px rgba(15,23,42,.09) !important;
  padding: clamp(18px, 3vw, 32px) !important;
  direction: rtl !important;
}

.complaints-head {
  display: grid !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

.complaints-head span {
  width: fit-content !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 900 !important;
  font-size: 13px !important;
}

.complaints-head h1 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(26px, 4vw, 42px) !important;
  font-weight: 900 !important;
}

.complaints-head p {
  margin: 0 !important;
  color: #64748b !important;
  line-height: 1.8 !important;
}

.complaints-form {
  display: grid !important;
  gap: 12px !important;
}

.complaints-form label {
  color: #0f172a !important;
  font-weight: 900 !important;
}

.complaints-form textarea {
  width: 100% !important;
  min-height: 220px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  padding: 14px !important;
  color: #0f172a !important;
  font-family: inherit !important;
  line-height: 1.8 !important;
  resize: vertical !important;
}

.complaints-form button {
  justify-self: start !important;
  min-width: 220px !important;
  min-height: 50px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  color: #fff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.complaints-form button:hover,
.complaints-form button:focus {
  background: #991b1b !important;
}

@media (max-width: 560px) {
  .complaints-form button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (min-width: 721px) {
  body .site-header .header-actions {
    grid-template-columns: minmax(220px, 340px) auto auto auto auto !important;
  }
}

@media (min-width: 721px) {
  body .site-header .topbar {
    grid-template-columns: minmax(260px, auto) minmax(680px, 1fr) !important;
    align-items: center !important;
  }

  body .site-header .header-actions {
    grid-template-columns: minmax(220px, 340px) repeat(6, auto) !important;
    align-items: center !important;
    justify-content: end !important;
  }

  body .site-header .nav-action {
    display: inline-flex !important;
  }

  body .site-header .nav-bar {
    display: none !important;
  }
}
