/* Big-box retail layout (Walmart-inspired) — sami / bava only via body.layout-walmart */

body.layout-walmart {
  --font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --display: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --bg: #f2f8fd;
  --price-green: #2a8703;
  --header-bg: #0071ce;
  --nav-bg: #ffffff;
  --accent: #ffc220;
  --header-h: 80px;
  font-size: 15px;
  background: var(--bg);
}

body.layout-walmart .site-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* —— Blue header —— */
body.layout-walmart .header-top {
  background: var(--header-bg, #0071ce);
  color: #fff;
}
body.layout-walmart .wm-header-inner,
body.layout-walmart .header-inner {
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0;
  min-height: 72px;
  align-items: center;
}
body.layout-walmart .brand {
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  border: 0;
}
body.layout-walmart .brand:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: transparent;
}
body.layout-walmart .brand-mark {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
}
body.layout-walmart .wm-wordmark,
body.layout-walmart .brand-wordmark.wm-wordmark {
  display: inline !important;
  flex-direction: row !important;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-transform: none !important;
  line-height: 1.2;
}

/* Pickup / delivery location pill */
body.layout-walmart .wm-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #004f9a;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  max-width: 200px;
  line-height: 1.15;
  flex-shrink: 0;
}
body.layout-walmart .wm-location:hover {
  background: #003d7a;
  text-decoration: none !important;
}
body.layout-walmart .wm-location svg {
  flex-shrink: 0;
  opacity: 0.95;
}
body.layout-walmart .wm-loc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.95;
}
body.layout-walmart .wm-loc-place {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fully rounded white search — icon button on right */
body.layout-walmart .header-search,
body.layout-walmart .wm-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  max-width: 640px;
  margin: 0;
  width: 100%;
  height: 44px;
}
body.layout-walmart .header-search:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
}
body.layout-walmart .header-search .search-cat {
  display: none;
}
body.layout-walmart .header-search input {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 1.1rem !important;
  font-size: 1rem !important;
  background: #fff !important;
  color: #2e2f32 !important;
  height: auto !important;
}
body.layout-walmart .header-search input::placeholder {
  color: #74767c;
}
body.layout-walmart .header-search button {
  width: 52px;
  background: transparent !important;
  color: #2e2f32 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid;
  place-items: center;
}
body.layout-walmart .header-search button:hover {
  background: #f0f0f0 !important;
}

/* Account / cart — icon + label */
body.layout-walmart .header-actions {
  gap: 0.15rem 0.35rem;
  align-items: center;
}
body.layout-walmart .action-link,
body.layout-walmart .wm-action {
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  line-height: 1.15;
  border: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-direction: row;
}
body.layout-walmart .action-link:hover,
body.layout-walmart .wm-action:hover {
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
  border-color: transparent !important;
}
body.layout-walmart .wm-action-icon {
  flex-shrink: 0;
  stroke: #fff;
}
body.layout-walmart .action-label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.95;
  font-weight: 400;
}
body.layout-walmart .action-strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
body.layout-walmart .cart-link {
  color: #fff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 0 !important;
}
body.layout-walmart .cart-link:hover {
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
  border-color: transparent !important;
}
body.layout-walmart .cart-icon svg {
  stroke: var(--accent);
  fill: none;
}
body.layout-walmart .cart-badge {
  background: var(--accent) !important;
  color: #041e42 !important;
  font-weight: 800;
  border: 0;
  min-width: 1.15rem;
  top: -4px;
}
body.layout-walmart .cart-text {
  font-weight: 700;
  font-size: 0.95rem;
}

/* —— White departments bar —— */
body.layout-walmart .cat-bar,
body.layout-walmart .wm-cat-bar {
  background: #fff !important;
  color: #2e2f32 !important;
  border-bottom: 1px solid #e3e4e5;
  border-top: 0 !important;
}
body.layout-walmart .cat-bar a,
body.layout-walmart .cat-bar .cat-all,
body.layout-walmart .wm-dept,
body.layout-walmart .wm-services {
  color: #2e2f32 !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 0.7rem;
  border-radius: 999px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  opacity: 1;
}
body.layout-walmart .cat-bar a:hover,
body.layout-walmart .cat-bar .cat-all:hover {
  background: #f0f0f0;
  text-decoration: none !important;
  color: #0071ce !important;
}
body.layout-walmart .wm-dept,
body.layout-walmart .wm-services {
  font-weight: 700 !important;
}
body.layout-walmart .cat-bar-inner {
  gap: 0.1rem;
  padding: 0.25rem 0;
}

/* —— Hero —— */
body.layout-walmart .home-banner,
body.layout-walmart .wm-hero {
  width: min(var(--max), 100%);
  margin: 1rem auto 1.25rem;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  box-sizing: border-box;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(105deg, #0071ce 0%, #004f9a 55%, #041e42 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 79, 154, 0.2);
  display: block;
}
body.layout-walmart.brand-bavamartllc .home-banner,
body.layout-walmart.brand-bavamartllc .wm-hero {
  background: linear-gradient(105deg, #002d62 0%, #004f9a 55%, #0071ce 100%);
}
body.layout-walmart .wm-hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
body.layout-walmart .home-banner h1,
body.layout-walmart .wm-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  max-width: 20ch;
}
body.layout-walmart .home-banner p,
body.layout-walmart .wm-hero p {
  max-width: 42ch;
  opacity: 0.95;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
body.layout-walmart .home-banner .btn,
body.layout-walmart .wm-hero .btn {
  background: #fff;
  color: #0071ce;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.35rem;
  display: inline-block;
  text-decoration: none !important;
}
body.layout-walmart .home-banner .btn:hover,
body.layout-walmart .wm-hero .btn:hover {
  background: #f0f0f0;
  text-decoration: none !important;
}

/* —— Section heads —— */
body.layout-walmart .section-head h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.35rem;
}
body.layout-walmart .section-head a {
  color: #0071ce !important;
  font-weight: 700;
  text-decoration: none !important;
}
body.layout-walmart .section-head a:hover {
  text-decoration: underline !important;
}

/* —— Category strip —— */
body.layout-walmart .cat-icon-strip {
  border: 0;
  box-shadow: none;
  background: transparent;
  gap: 1rem;
  padding: 0;
}
body.layout-walmart .cat-icon {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 0.75rem 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e3e4e5;
}
body.layout-walmart .cat-icon:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
}
body.layout-walmart .cat-icon-mark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
}

/* —— Product cards —— */
body.layout-walmart .product-card,
body.layout-walmart .wm-card {
  border-radius: 12px;
  border: 1px solid #e3e4e5;
  box-shadow: none;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
body.layout-walmart .product-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
body.layout-walmart .product-card .thumb {
  background: #fff;
  aspect-ratio: 1;
  position: relative;
}
body.layout-walmart .deal-badge {
  background: #e6f1fc;
  color: #004f9a;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: none;
  top: 8px;
  left: 8px;
}
body.layout-walmart .wm-save {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  color: #2e2f32;
  z-index: 2;
}
body.layout-walmart .wm-card-actions {
  padding: 0 0.75rem 0.35rem;
  margin-top: -0.25rem;
}
body.layout-walmart .product-card .price {
  color: var(--price-green) !important;
  font-size: 1.35rem;
  font-weight: 800;
}
body.layout-walmart .product-card .price::before {
  content: "Now ";
  font-size: 0.85rem;
  font-weight: 700;
}
body.layout-walmart .product-card .list-price {
  color: #74767c;
}
body.layout-walmart .card-actions .btn,
body.layout-walmart .card-actions .btn-accent {
  background: #fff !important;
  color: #2e2f32 !important;
  border: 1px solid #2e2f32 !important;
  border-radius: 999px !important;
  font-weight: 700;
  box-shadow: none !important;
  padding: 0.55rem 1rem !important;
}
body.layout-walmart .card-actions .btn:hover,
body.layout-walmart .card-actions .btn-accent:hover {
  background: #f0f0f0 !important;
  text-decoration: none;
}
body.layout-walmart .card-actions .btn-accent::before {
  content: "+ ";
  font-weight: 800;
}

/* Product page */
body.layout-walmart .price-lg {
  color: var(--price-green);
  font-weight: 800;
}
body.layout-walmart .price-lg::before {
  content: "Now ";
  font-size: 0.75em;
}
body.layout-walmart .btn-accent {
  background: var(--accent) !important;
  color: #041e42 !important;
  border-radius: 999px !important;
  border: 0 !important;
  font-weight: 800;
}

/* Footer */
body.layout-walmart .site-footer {
  background: #041e42;
  color: #fff;
  margin-top: 2rem;
}
body.layout-walmart .site-footer a {
  color: #fff !important;
}
body.layout-walmart .site-footer h3 {
  color: var(--accent);
}

@media (max-width: 1100px) {
  body.layout-walmart .wm-location {
    display: none;
  }
  body.layout-walmart .wm-header-inner,
  body.layout-walmart .header-inner {
    grid-template-columns: auto minmax(200px, 1fr) auto;
  }
}

@media (max-width: 900px) {
  body.layout-walmart .header-inner,
  body.layout-walmart .wm-header-inner {
    grid-template-columns: 1fr auto;
  }
  body.layout-walmart .header-search,
  body.layout-walmart .wm-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }
  body.layout-walmart .wm-action .action-label {
    display: none;
  }
}
