:root {
  --red: #d90000;
  --red-dark: #a90000;
  --ink: #171717;
  --muted: #555;
  --page: #f4f5f7;
  --white: #ffffff;
  --soft: #f7f7f7;
  --soft-red: #fff3f3;
  --border: #d7d7d7;
  --shadow: 0 12px 30px rgba(0, 0, 0, .10);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.cart-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

/* HEADER */

.store-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  backdrop-filter: blur(10px);
}

.store-header-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.store-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 11px;
}

.store-header nav {
  min-width: 0;
  margin-left: auto;
}

.store-header nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.store-header nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 800;
  text-decoration: none;
}

.store-header nav a:hover,
.store-header nav a.active,
.store-header nav a[aria-current="page"] {
  color: var(--red);
}

.store-menu-toggle {
  display: none;
}

.cart-header-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 2px solid var(--red);
  border-radius: 9px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.cart-header-button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  background: var(--white);
  border-radius: 50px;
  font-size: .78rem;
}

/* HERO */

.store-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 90px 24px;
  color: var(--ink);
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff4f4 52%, #eeeeee 100%);
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(
      45deg,
      transparent 46%,
      rgba(217, 0, 0, .035) 47%,
      rgba(217, 0, 0, .035) 53%,
      transparent 54%
    );
  background-size: 46px 46px;
}

.store-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .20);
}

.store-hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.store-hero h1 {
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.05;
}

.store-hero-content > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.store-hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* BUTTONS */

.store-btn {
  min-height: 50px;
  padding: 13px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.store-btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.store-btn-secondary,
.store-call-button {
  color: var(--ink);
  background: var(--white);
  border-color: #9f9f9f;
}

.store-btn-secondary:hover,
.store-call-button:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

/* BENEFITS */

.store-benefits {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  padding: 0 16px;
}

.store-benefits-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.store-benefits article {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
}

.store-benefits article + article {
  border-left: 1px solid var(--border);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-weight: 900;
}

.store-benefits strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.store-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* MESSAGES */

.store-message-section {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
}

.store-alert {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 10px;
}

.store-alert.error {
  color: #8f0000;
  background: #ffe6e6;
  border: 1px solid #ffc7c7;
}

/* CONTENT */

.store-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-heading p:last-child {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .14);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #fafafa, #eeeeee);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: none;
  padding: 20px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.product-image.missing-image .image-placeholder {
  display: block;
}

.product-content {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
}

.product-kicker {
  margin: 0 0 7px !important;
  color: var(--red) !important;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-content h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.3;
}

.product-content > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.product-footer {
  margin-top: auto;
}

.product-footer > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 1.5rem;
}

.product-footer button,
.buy-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  border-radius: 9px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.product-footer button:hover,
.buy-btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

/* CTA */

.store-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.store-cta > div:first-child {
  max-width: 680px;
}

.store-cta h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.store-cta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.store-cta-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* LIGHT FOOTER */

.store-footer {
  padding: 42px 24px 24px;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.store-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .7fr);
  gap: 30px;
  align-items: start;
}

.store-footer strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.store-footer p,
.store-footer a {
  color: #444;
}

.store-footer a {
  text-decoration: none;
}

.store-footer a:hover {
  color: var(--red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.copyright {
  width: min(1180px, 100%);
  margin: 28px auto 0 !important;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: #666 !important;
  font-size: .9rem;
  text-align: center;
}

/* CART OVERLAY */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* LIGHT SHOPPING CART */

.shopping-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  width: min(480px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 48px rgba(0, 0, 0, .14);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
}

.shopping-cart.is-open {
  transform: translateX(0);
  visibility: visible;
}

.cart-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.2;
}

.cart-close-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid #c7c7c7;
  border-radius: 50%;
  color: var(--ink);
  background: #eeeeee;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.cart-close-button:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.cart-items {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 22px;
  overflow-y: auto;
  color: var(--ink);
  background: var(--white);
}

.empty-cart-message {
  margin: 0;
  padding: 60px 15px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 74px;
  height: 74px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-image-placeholder {
  color: var(--red);
  font-weight: 900;
}

.cart-item-details {
  min-width: 0;
}

.cart-item-details h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart-item-details p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .88rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.quantity-button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #a9a9a9;
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.quantity-button:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.cart-item-quantity {
  min-width: 22px;
  color: var(--ink);
  text-align: center;
  font-weight: 900;
}

.remove-cart-item {
  margin-left: 4px;
  padding: 4px;
  border: 0;
  color: #a50000;
  background: transparent;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.cart-item-total {
  padding-top: 2px;
  color: var(--ink);
  white-space: nowrap;
}

.cart-summary {
  flex: 0 0 auto;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .04);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.25rem;
}

.cart-total-row strong {
  color: var(--red);
  font-size: 1.4rem;
}

.cart-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .8rem;
}

.cart-checkout-button,
.continue-shopping-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}

.cart-checkout-button {
  border: 2px solid var(--red);
  color: var(--white);
  background: var(--red);
}

.cart-checkout-button:hover:not(:disabled) {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.cart-checkout-button:disabled {
  color: #666;
  background: #dedede;
  border-color: #c6c6c6;
  opacity: 1;
  cursor: not-allowed;
}

.continue-shopping-button {
  margin-top: 10px;
  border: 2px solid #a9a9a9;
  color: var(--ink);
  background: var(--white);
}

.continue-shopping-button:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(217, 0, 0, .30);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* TABLET */

@media (max-width: 1050px) {
  .store-header-inner {
    gap: 14px;
  }

  .store-brand {
    font-size: 1rem;
  }

  .store-header nav ul {
    gap: 14px;
  }

  .store-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .store-menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .store-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--red);
    border-radius: 3px;
  }

  .store-header nav {
    margin-left: 0;
  }

  .store-header nav ul {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    white-space: normal;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .store-header nav ul.is-open {
    display: flex;
  }

  .store-header nav li,
  .store-header nav a,
  .cart-header-button {
    width: 100%;
  }

  .store-header nav a {
    padding: 12px 10px;
  }

  .cart-header-button {
    min-height: 48px;
    margin-top: 5px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-benefits-inner {
    grid-template-columns: 1fr;
  }

  .store-benefits article + article {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .store-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .store-header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 66px;
  }

  .store-brand {
    max-width: calc(100% - 58px);
    font-size: .95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .store-header nav ul {
    top: 66px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .store-hero {
    min-height: 390px;
    padding: 70px 18px;
  }

  .store-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .store-hero-actions,
  .store-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .store-hero-actions .store-btn,
  .store-cta-actions .store-btn {
    width: 100%;
  }

  .store-benefits {
    margin-top: -18px;
    padding: 0 14px;
  }

  .store-section,
  .store-message-section,
  .store-cta {
    width: min(100% - 28px, 1180px);
  }

  .store-section {
    padding: 58px 0;
  }

  .store-cta {
    margin-bottom: 58px;
    padding: 28px 20px;
  }

  .store-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-column: auto;
    align-items: center;
    justify-content: center;
  }

  .shopping-cart {
    width: 100%;
  }

  .cart-header {
    padding: 20px;
  }

  .cart-items {
    padding: 8px 16px;
  }

  .cart-summary {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .product-content {
    padding: 20px;
  }

  .cart-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .cart-item-image {
    width: 62px;
    height: 62px;
  }

  .cart-item-total {
    grid-column: 2;
    padding-top: 0;
  }

  .remove-cart-item {
    margin-left: 0;
  }
}