:root {
  --store-navy: #121820;
  --store-navy-2: #202b38;
  --store-cream: #f3f3f3;
  --store-line: #d7d7d7;
  --store-ink: #111820;
  --store-link: #8f1418;
}

.store-page,
.cart-page {
  background: var(--store-cream);
  color: var(--store-ink);
}

.store-header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.store-header-cart:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.store-header-cart svg {
  width: 21px;
  height: 21px;
}

.store-header-cart strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 0.78rem;
}

.store-search-band {
  background: var(--store-navy);
  color: #fff;
}

.store-search-row {
  display: grid;
  grid-template-columns: max-content minmax(280px, 1fr) max-content;
  gap: 0.8rem;
  align-items: center;
  padding-block: 0.78rem;
}

.store-search-label {
  display: grid;
  gap: 0.08rem;
  color: #fff;
  line-height: 1.05;
  text-decoration: none;
}

.store-search-label span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.store-search-label strong {
  font-size: 0.94rem;
}

.store-search-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow 0.15s ease;
}

.store-search-form:focus-within {
  box-shadow: 0 0 0 3px var(--yellow);
}

.store-search-form input {
  min-width: 0;
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border: 0;
  outline: 0;
  color: #111;
  font: inherit;
}

.store-search-form button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--yellow);
  color: #111;
  cursor: pointer;
}

.store-search-form button:hover {
  background: #ffd95a;
}

.store-search-form svg {
  width: 23px;
  height: 23px;
}

.store-search-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.store-search-cart:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.store-search-cart strong {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 0.8rem;
}

.store-category-bar {
  background: var(--store-navy-2);
  color: #fff;
}

.store-category-bar__inner {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding-block: 0.28rem;
  scrollbar-width: thin;
}

.store-category-bar button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
}

.store-category-bar button:hover,
.store-category-bar button.is-active {
  border-color: #fff;
}

.store-category-bar button.is-active {
  color: var(--yellow);
}

.store-masthead {
  padding-block: 1.4rem;
  background: linear-gradient(100deg, #fff7d6 0%, #fff 58%, #f4f4f4 100%);
  border-bottom: 1px solid var(--store-line);
}

.store-masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
}

.store-masthead__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.store-masthead__copy .eyebrow {
  margin-bottom: 0.5rem;
  color: var(--red);
}

.store-masthead h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.store-masthead__copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 1rem 0 0;
  color: #4f5660;
  font-size: 1.04rem;
  line-height: 1.55;
}

.store-masthead__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.store-masthead__links button {
  padding: 0.52rem 0.72rem;
  border: 1px solid #b9b9b9;
  border-radius: 999px;
  background: #fff;
  color: #202020;
  font-weight: 850;
  cursor: pointer;
}

.store-masthead__links button:hover {
  border-color: var(--red);
  color: var(--red);
}

.store-masthead__feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.store-feature-tile {
  position: relative;
  display: flex;
  min-height: 180px;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.store-feature-tile:first-child {
  grid-column: 1 / -1;
  min-height: 230px;
}

.store-feature-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-feature-tile:hover img {
  transform: scale(1.035);
  opacity: 0.72;
}

.store-feature-tile span {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
  font-size: 0.8rem;
  font-weight: 750;
}

.store-feature-tile strong {
  font-size: 1.15rem;
}

.store-benefits {
  background: #fff;
  border-bottom: 1px solid var(--store-line);
}

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

.store-benefits__grid > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--store-line);
}

.store-benefits__grid > div:last-child {
  border-right: 0;
}

.store-benefits svg {
  width: 30px;
  height: 30px;
  color: var(--red);
}

.store-benefits strong,
.store-benefits span {
  display: block;
}

.store-benefits strong {
  font-size: 0.9rem;
}

.store-benefits span {
  margin-top: 0.12rem;
  color: #60666d;
  font-size: 0.78rem;
}

.store-catalog-section {
  padding-block: 1.25rem 2.5rem;
}

.store-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.store-catalog-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.store-catalog-heading p {
  margin: 0.2rem 0 0;
  color: #5e646b;
}

.store-sort {
  display: grid;
  gap: 0.28rem;
  color: #4e545b;
  font-size: 0.75rem;
  font-weight: 800;
}

.store-sort select {
  min-height: 40px;
  padding: 0.45rem 2.1rem 0.45rem 0.72rem;
  border: 1px solid #b9bec4;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
}

.store-catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.store-departments {
  position: sticky;
  top: 110px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--store-line);
}

.store-departments h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.store-departments [data-retail-categories] {
  display: grid;
  gap: 0.16rem;
}

.store-departments button {
  width: 100%;
  padding: 0.48rem 0.4rem;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #333940;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.store-departments button:hover,
.store-departments button.is-active {
  border-left-color: var(--red);
  background: #f7f1e7;
  color: var(--red);
}

.store-departments__service {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--store-line);
}

.store-departments__service strong,
.store-departments__service span {
  display: block;
}

.store-departments__service span {
  margin: 0.3rem 0 0.65rem;
  color: #666c73;
  font-size: 0.8rem;
  line-height: 1.45;
}

.store-departments__service a {
  color: var(--store-link);
  font-size: 0.84rem;
  font-weight: 850;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #d8d8d8;
  border: 1px solid #d8d8d8;
}

.store-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.store-product-gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 0.8rem;
  background: #f7f7f7;
}

.store-product-gallery > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.store-product-gallery__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.7rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.store-product-card:hover .store-product-gallery__arrow,
.store-product-gallery__arrow:focus-visible {
  opacity: 1;
}

.store-product-gallery__arrow--prev {
  left: 0.45rem;
}

.store-product-gallery__arrow--next {
  right: 0.45rem;
}

.store-product-gallery__count {
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  padding: 0.22rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4f555c;
  font-size: 0.68rem;
  font-weight: 850;
}

.store-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.9rem;
}

.store-product-card__department {
  margin: 0 0 0.38rem;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-product-card h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.store-product-card__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.52rem 0 0;
  color: #555c63;
  font-size: 0.83rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.store-product-card__pack {
  margin: 0.65rem 0 0;
  color: #30363c;
  font-size: 0.78rem;
  font-weight: 800;
}

.store-product-card__price {
  margin: 0.22rem 0 0;
  color: #111;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.store-product-card__delivery {
  margin: 0.38rem 0 0;
  color: #2e633b;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.35;
}

.store-purchase-control {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding-top: 0.72rem;
}

.store-add-button,
.store-quantity-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e0aa00;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-weight: 900;
}

.store-add-button {
  padding: 0.62rem 0.8rem;
  cursor: pointer;
}

.store-add-button:hover {
  background: #ffda5e;
}

.store-quantity-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  overflow: hidden;
}

.store-quantity-control button {
  display: grid;
  place-items: center;
  min-width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.store-quantity-control button:hover {
  background: rgba(255, 255, 255, 0.42);
}

.store-quantity-control button:active {
  transform: scale(0.9);
}

.store-quantity-control button:disabled {
  color: rgba(17, 17, 17, 0.38);
  cursor: not-allowed;
}

.store-quantity-control button:focus-visible,
.store-add-button:focus-visible {
  outline: 3px solid #146dcc;
  outline-offset: -3px;
}

.store-quantity-control__value {
  display: grid;
  place-items: center;
  border-inline: 1px solid rgba(89, 67, 0, 0.22);
  font-size: 0.95rem;
}

.store-add-button.is-entering,
.store-quantity-control.is-entering {
  animation: store-control-enter 180ms cubic-bezier(0.2, 0.75, 0.35, 1);
}

@keyframes store-control-enter {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-add-button.is-entering,
  .store-quantity-control.is-entering {
    animation: none;
  }
}

.store-empty {
  padding: 3rem 1rem;
  background: #fff;
  border: 1px solid var(--store-line);
  text-align: center;
}

.store-empty h2 {
  margin: 0;
  font-size: 1.4rem;
}

.store-empty p {
  margin: 0.45rem 0 0;
  color: #60666d;
}

.store-toast {
  position: fixed;
  z-index: 5100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-left: 5px solid var(--yellow);
  background: #111820;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-weight: 800;
}

.store-toast[hidden] {
  display: none;
}

.cart-main {
  min-height: 65vh;
  padding-block: 1.5rem 3rem;
}

.retail-cart-breadcrumb {
  margin: 0 0 0.8rem;
  color: #5d6369;
  font-size: 0.84rem;
}

.retail-cart-breadcrumb a {
  color: var(--store-link);
  font-weight: 800;
}

.retail-cart-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.retail-cart-title-row h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  letter-spacing: -0.045em;
}

.retail-cart-title-row a {
  color: var(--store-link);
  font-weight: 850;
}

.retail-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
}

.retail-cart-list,
.retail-cart-empty,
.retail-cart-summary {
  background: #fff;
  border: 1px solid var(--store-line);
}

.retail-cart-list[hidden],
.retail-cart-empty[hidden] {
  display: none;
}

.retail-cart-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) max-content 100px;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-bottom: 1px solid var(--store-line);
}

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

.retail-cart-item__image {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 0.5rem;
  background: #f7f7f7;
}

.retail-cart-item__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.retail-cart-item__department {
  margin: 0;
  color: var(--red) !important;
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retail-cart-item h2 {
  margin: 0.22rem 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.retail-cart-item__details > p:not(.retail-cart-item__department) {
  margin: 0.45rem 0 0;
  color: #5a6168;
  font-size: 0.84rem;
}

.retail-cart-item__delivery {
  color: #2e633b !important;
  font-weight: 750;
}

.retail-cart-item__remove {
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--store-link);
  font-weight: 800;
  cursor: pointer;
}

.retail-cart-item__quantity {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #b8bdc3;
  border-radius: 999px;
}

.retail-cart-item__quantity button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: #f5f5f5;
  color: #111;
  font-size: 1rem;
  cursor: pointer;
}

.retail-cart-item__quantity span {
  min-width: 30px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 900;
}

.retail-cart-item__price {
  display: grid;
  gap: 0.24rem;
  justify-items: end;
  text-align: right;
}

.retail-cart-item__price strong {
  font-size: 1.12rem;
}

.retail-cart-item__price span {
  color: #686e74;
  font-size: 0.74rem;
}

.retail-cart-empty {
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  text-align: center;
}

.retail-cart-empty h2 {
  margin: 0;
  font-size: 1.7rem;
}

.retail-cart-empty p {
  margin: 0.5rem 0 1rem;
  color: #5c6268;
}

.retail-cart-summary {
  position: sticky;
  top: 110px;
  padding: 1rem;
}

.retail-cart-summary h2 {
  margin: 0;
  font-size: 1.25rem;
}

.retail-cart-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--store-line);
}

.retail-cart-summary__line strong {
  font-size: 1.25rem;
}

.retail-cart-summary__delivery {
  margin: 0.8rem 0 0;
  padding: 0.7rem;
  background: #edf7ef;
  color: #275d36;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

.retail-cart-summary__note {
  margin: 0.75rem 0 0;
  color: #61676d;
  font-size: 0.75rem;
  line-height: 1.45;
}

.retail-cart-summary__actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.retail-cart-request {
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border: 1px solid #e0aa00;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-weight: 900;
  text-decoration: none;
}

.retail-cart-request:hover {
  background: #ffda5e;
}

.retail-cart-request.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.retail-cart-clear {
  min-height: 40px;
  border: 1px solid #b9bec4;
  border-radius: 999px;
  background: #fff;
  color: #333a41;
  font-weight: 850;
  cursor: pointer;
}

.retail-cart-status {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  color: #2c623a;
  font-size: 0.78rem;
  font-weight: 800;
}

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

@media (max-width: 980px) {
  .store-masthead__grid,
  .retail-cart-layout {
    grid-template-columns: 1fr;
  }

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

  .store-feature-tile:first-child {
    grid-column: auto;
    min-height: 190px;
  }

  .store-feature-tile {
    min-height: 190px;
  }

  .retail-cart-summary {
    position: static;
  }
}

@media (max-width: 800px) {
  .store-search-row {
    grid-template-columns: 1fr max-content;
  }

  .store-search-label {
    display: none;
  }

  .store-catalog-layout {
    grid-template-columns: 1fr;
  }

  .store-departments {
    position: static;
    padding: 0.6rem;
  }

  .store-departments h2,
  .store-departments__service {
    display: none;
  }

  .store-departments [data-retail-categories] {
    display: flex;
    gap: 0.2rem;
    overflow-x: auto;
  }

  .store-departments button {
    flex: 0 0 auto;
    width: auto;
    border: 1px solid #d2d5d8;
    border-radius: 999px;
    padding-inline: 0.75rem;
  }

  .store-departments button:hover,
  .store-departments button.is-active {
    border-color: var(--red);
  }

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

  .retail-cart-item {
    grid-template-columns: 110px minmax(0, 1fr) max-content;
  }

  .retail-cart-item__price {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .store-search-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .store-search-cart {
    justify-self: end;
  }

  .store-masthead {
    padding-block: 0.8rem;
  }

  .store-masthead__copy {
    padding: 1.2rem;
  }

  .store-masthead__feature {
    grid-template-columns: 1fr 1fr;
  }

  .store-feature-tile:first-child {
    grid-column: 1 / -1;
  }

  .store-benefits__grid {
    grid-template-columns: 1fr;
  }

  .store-benefits__grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--store-line);
  }

  .store-benefits__grid > div:last-child {
    border-bottom: 0;
  }

  .store-catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .store-product-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .store-product-card {
    border: 1px solid var(--store-line);
  }

  .store-product-gallery {
    min-height: 260px;
  }

  .store-product-gallery__arrow {
    opacity: 1;
  }

  .retail-cart-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .retail-cart-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .retail-cart-item__image {
    min-height: 90px;
  }

  .retail-cart-item__quantity {
    grid-column: 2;
    justify-self: start;
  }

  .retail-cart-item__price {
    grid-column: 2;
  }
}
