/* ORRANET storefront. Customer facing, mobile first.
   Design idea: a clean white shell that works for any kind of business.
   Headers are always white. The vendor colour (--store-accent) drives icons,
   actions, badges, active states and a soft tint on the page background. */

:root {
  --store-accent: #25d366;
  --store-dark: #075e54;
  --store-bg: #f6f6f4;
  --store-surface: #ffffff;
  --store-text: #16181a;
  --store-muted: #6b7177;
  --store-border: #ebebe8;
  --store-radius: 16px;
  --store-shadow: 0 2px 4px rgba(22, 24, 26, 0.04), 0 10px 24px rgba(22, 24, 26, 0.07);
  --store-gutter: 16px;
  --store-max: 1080px;
}

/* Tints are derived on body so they follow the vendor colour set inline there. */
body {
  --store-accent-soft: color-mix(in srgb, var(--store-accent) 12%, #ffffff);
  --store-accent-line: color-mix(in srgb, var(--store-accent) 30%, #ffffff);
  --store-accent-ink: color-mix(in srgb, var(--store-accent) 82%, #000000);
  --store-page: color-mix(in srgb, var(--store-accent) 6%, #fafaf9);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--store-text);
  background: var(--store-page, var(--store-bg));
  padding-bottom: 90px; /* leaves room for the floating WhatsApp button */
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.45;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

/* Icons in the headers follow the vendor colour, even partials with white strokes */
.store-header svg,
.product-header svg,
.store-menu__header svg {
  stroke: currentColor;
}

/* ---------- Header icon buttons (vendor colour) ---------- */

.store-menu-toggle,
.store-cart-link,
.product-header__back,
.store-account summary {
  background: var(--store-accent-soft);
  color: var(--store-accent);
}

/* ---------- Header (always white) ---------- */

.store-header {
  background: #fff;
  color: var(--store-text);
  padding: 14px max(var(--store-gutter), calc((100% - var(--store-max)) / 2)) 12px;
}

.store-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

/* Fixed box so any logo, whatever its size or shape, takes the same footprint. */
.store-header__logo-rect {
  width: 112px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.store-header__logo-rect--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  background: var(--store-accent-soft);
  color: var(--store-accent-ink);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
}

.store-header__divider {
  width: 1px;
  height: 28px;
  background: var(--store-border);
  flex-shrink: 0;
}

.store-header__tagline {
  min-width: 0;
  overflow: hidden;
}

.store-header__business-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-header__description-short {
  font-size: 12px;
  color: var(--store-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--store-accent);
}

.store-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
}

.store-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--store-page, var(--store-bg));
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 16px;
  height: 46px;
  transition: border-color 0.15s, background 0.15s;
}

.store-search:focus-within {
  background: #fff;
  border-color: var(--store-accent);
}

.store-search__icon {
  color: var(--store-muted);
  flex-shrink: 0;
}

.store-search input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--store-text);
  background: transparent;
  min-width: 0;
  height: 100%;
}

.store-search input[type="text"]::placeholder {
  color: var(--store-muted);
}

@media (min-width: 700px) {
  .store-header {
    padding-top: 18px;
  }

  .store-search {
    max-width: 560px;
  }
}

/* ---------- Account icon and dropdown (partials/account-menu.php) ---------- */

.store-account {
  position: relative;
  flex-shrink: 0;
}

.store-account summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.store-account summary::-webkit-details-marker {
  display: none;
}

.store-account__dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--store-accent);
  border: 2px solid #fff;
}

/* Always opens towards the right edge of the icon so it stays on screen */
.store-account .store-account__menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(22, 24, 26, 0.16);
  padding: 8px;
  z-index: 70;
  color: var(--store-text);
}

.store-account__menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  color: var(--store-text);
}

.store-account__menu a:hover {
  background: var(--store-accent-soft);
  color: var(--store-accent-ink);
}

.store-account__hello {
  padding: 10px 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--store-muted);
}

.store-account__menu .store-account__logout {
  color: #d1453b;
}

.store-account__note {
  padding: 8px 12px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--store-muted);
}

/* ---------- Slide in menu ---------- */

.store-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 26, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 105;
}

.store-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.store-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 84%;
  max-width: 320px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 110;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.store-menu.is-open {
  transform: translateX(0);
}

.store-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  color: var(--store-text);
  border-bottom: 1px solid var(--store-border);
}

.store-menu__title {
  font-size: 16px;
  font-weight: 700;
}

.store-menu__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--store-accent-soft);
  border: none;
  color: var(--store-accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.store-menu__section {
  padding: 16px 12px;
  flex: 1;
}

.store-menu__section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--store-muted);
  padding: 0 8px;
  margin-bottom: 6px;
}

.store-menu__link {
  display: block;
  padding: 12px;
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--store-text);
  text-decoration: none;
  border-radius: 12px;
}

.store-menu__link:hover {
  background: var(--store-bg);
}

.store-menu__link.is-active {
  background: var(--store-accent-soft);
  color: var(--store-accent-ink);
  font-weight: 700;
}

.store-menu__footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--store-border);
}

.store-menu__cta {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--store-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Category chips ---------- */

.store-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px max(var(--store-gutter), calc((100% - var(--store-max)) / 2)) 14px;
  background: #fff;
  border-bottom: 1px solid var(--store-border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.store-categories::-webkit-scrollbar {
  display: none;
}

.store-category-item {
  flex-shrink: 0;
  display: flex;
  text-decoration: none;
}

/* The icon is not needed in chip form, the label does the work. */
.store-category-item__icon-wrap {
  display: none;
}

.store-category-item__label {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--store-text);
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.store-category-item:hover .store-category-item__label {
  border-color: var(--store-accent-line);
}

.store-category-item__label.is-active {
  background: var(--store-accent);
  border-color: var(--store-accent);
  color: #fff;
  font-weight: 600;
}

/* ---------- Product grid ---------- */

.store-content {
  padding: 20px max(14px, calc((100% - var(--store-max)) / 2));
}

.store-section-head {
  margin: 0 2px 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  min-width: 0;
}

.store-product {
  display: block;
  background: var(--store-surface);
  border-radius: 22px;
  padding: 8px;
  overflow: hidden;
  text-decoration: none;
  border: none;
  box-shadow: var(--store-shadow);
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(22, 24, 26, 0.12);
}

.store-product__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f0efec;
  border-radius: 16px;
  overflow: hidden;
}

.store-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-product__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--store-muted);
}

.store-product__stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--store-text);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* The extra class keeps this winning over storefront-flex.css */
.store-product__image .store-product__flex-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  width: auto;
  display: inline-block;
  background: var(--store-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
}

.store-product__info {
  position: relative;
  padding: 12px 52px 8px 6px;
}

/* Small round arrow in the vendor colour */
.store-product__info::after {
  content: "\2192";
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--store-accent);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.store-product:hover .store-product__info::after {
  transform: translateX(3px);
}

.store-product__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-product__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.store-product__price-old {
  text-decoration: line-through;
  color: var(--store-muted);
  font-size: 11px;
  order: 2;
}

.store-product__price-current {
  font-weight: 700;
  font-size: 15px;
  color: var(--store-text);
  order: 1;
}

.store-product__price-old + .store-product__price-current {
  color: var(--store-accent-ink);
}

/* ---------- Pagination ---------- */

.store-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 2px 4px;
}

.store-pagination__link {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--store-border);
  color: var(--store-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

a.store-pagination__link:hover {
  border-color: var(--store-accent);
  color: var(--store-accent-ink);
}

.store-pagination__link--disabled {
  background: transparent;
  color: #b4b8bc;
}

.store-pagination__status {
  font-size: 12px;
  color: var(--store-muted);
  white-space: nowrap;
}

/* ---------- Empty state ---------- */

.store-empty {
  text-align: center;
  padding: 56px 24px 48px;
  color: var(--store-muted);
}

.store-empty__art {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.store-empty__bag {
  color: var(--store-accent);
}

.store-empty__spark {
  position: absolute;
  font-size: 20px;
  color: var(--store-accent);
  opacity: 0.6;
}

.store-empty__spark--left {
  top: 10px;
  left: -22px;
  transform: rotate(-15deg);
}

.store-empty__spark--note {
  position: absolute;
  top: -6px;
  right: -70px;
  width: 90px;
  font-size: 12px;
  font-family: "Segoe Script", "Comic Sans MS", cursive;
  color: var(--store-accent);
  opacity: 0.85;
  transform: rotate(6deg);
  text-align: left;
  line-height: 1.3;
}

.store-empty__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--store-text);
  margin: 0 0 8px;
}

.store-empty__hint {
  font-size: 14px;
  max-width: 280px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

.store-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 14px;
  background: var(--store-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Footer ---------- */

.store-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px 32px;
  font-size: 12px;
  color: var(--store-muted);
}

.store-footer__line {
  width: 40px;
  height: 1px;
  background: var(--store-border);
}

/* ---------- Floating WhatsApp button ---------- */

.store-whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  z-index: 40;
}

/* ---------- Not found page ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.not-found__logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--store-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
}

.not-found h1 {
  font-size: 18px;
  margin: 0 0 8px;
}

.not-found p {
  color: var(--store-muted);
  font-size: 14px;
  max-width: 320px;
}

@media (min-width: 600px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .store-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .store-content {
    padding-top: 28px;
  }

  .store-product__name {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .store-header {
    padding: 12px 12px;
  }

  .store-header__logo-rect {
    width: 80px;
    height: 32px;
  }

  .store-header__logo-rect--placeholder {
    width: 36px;
    height: 36px;
  }

  .store-header__business-name {
    font-size: 13px;
  }

  .store-header__description-short {
    font-size: 10px;
  }

  .store-header__divider {
    display: none;
  }

  .store-content {
    padding: 16px 10px;
  }

  .store-grid {
    gap: 10px;
  }
}

/* ---------- Product detail page ---------- */

.product-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--store-accent);
  padding: 12px max(var(--store-gutter), calc((100% - var(--store-max)) / 2));
  border-bottom: 1px solid var(--store-border);
}

.product-header__back {
  order: 1;
  font-size: 18px;
  text-decoration: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-header__store-name {
  order: 2;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--store-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Account icon sits beside the cart so its dropdown opens inside the screen */
.product-header .store-account {
  order: 3;
  margin-left: auto;
}

.product-header .store-cart-link--inline {
  order: 4;
  margin-left: 0;
}

.product-detail {
  padding: 16px var(--store-gutter) 8px;
}

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

.product-detail__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0efec;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--store-shadow);
}

.product-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail__image .store-product__stock-badge {
  top: 14px;
  left: 14px;
}

.product-detail__info {
  padding: 20px 2px 8px;
}

.product-detail__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--store-accent-ink);
  background: var(--store-accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.product-detail__name {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.product-detail__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 18px;
}

.product-detail__price .store-product__price-old {
  order: 2;
  font-size: 14px;
}

.product-detail__price-current {
  order: 1;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--store-text);
}

.product-detail__price .store-product__price-old + .product-detail__price-current {
  color: var(--store-accent-ink);
}

.product-detail__description {
  font-size: 14px;
  line-height: 1.65;
  color: #3b4045;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--store-border);
}

.product-detail__order-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--store-accent);
  border: none;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.product-detail__order-btn:hover {
  filter: brightness(0.95);
}

.product-detail__order-btn:active {
  transform: scale(0.99);
}

.product-detail__order-btn--disabled {
  background: var(--store-border);
  color: var(--store-muted);
  cursor: not-allowed;
}

.product-detail__order-btn--disabled:hover {
  filter: none;
}

.product-detail__order-btn--secondary {
  background: transparent;
  color: var(--store-accent-ink);
  border: 1px solid var(--store-accent);
}

.store-section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 2px 14px;
}

.product-detail__cart-form {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.product-detail__cart-form .product-detail__order-btn {
  flex: 1;
  width: auto;
}

.product-detail__qty-input {
  width: 72px;
  padding: 0 10px;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--store-text);
}

.product-detail__qty-input:focus {
  outline: none;
  border-color: var(--store-accent);
}

@media (min-width: 700px) {
  .product-detail {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: var(--store-max);
    margin: 0 auto;
    padding: 32px var(--store-gutter);
  }

  .product-gallery {
    flex: 1.1;
  }

  .product-detail__info {
    flex: 1;
    padding: 4px 0 0;
    position: sticky;
    top: 84px;
  }

  .product-detail__name {
    font-size: 28px;
  }
}

/* Gallery thumbnails */

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumbs__item {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #f0efec;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}

.gallery-thumbs__item:hover {
  opacity: 1;
}

.gallery-thumbs__item.is-active {
  border-color: var(--store-accent);
  opacity: 1;
}

.gallery-thumbs__item img,
.gallery-thumbs__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

/* ---------- Cart icon in headers ---------- */

.store-cart-link {
  position: absolute;
  top: 20px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
}

.store-cart-link svg {
  stroke: currentColor;
}

.store-cart-link--inline {
  position: relative;
  top: 0;
  right: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.store-cart-link__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--store-accent);
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Cart page ---------- */

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  gap: 14px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  padding: 14px;
  align-items: flex-start;
}

.cart-item__image img,
.cart-item__image .store-product__placeholder {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background: #f0efec;
}

.cart-item__details {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item__unit-price {
  font-size: 12px;
  color: var(--store-muted);
  margin-bottom: 8px;
}

.cart-item__qty-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cart-item__qty-form input {
  width: 60px;
  padding: 7px 8px;
  font-size: 13px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  text-align: center;
}

.cart-item__subtotal {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--store-accent-ink);
  cursor: pointer;
  text-decoration: none;
}

.btn-link--danger {
  color: #d1453b;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-top: 1px solid var(--store-border);
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
}

.cart-total__amount {
  color: var(--store-text);
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* ---------- Checkout ---------- */

.checkout-summary {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: var(--store-text);
}

.checkout-summary__row--total {
  border-top: 1px solid var(--store-border);
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 15px;
}

.store-alert {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.store-alert--error {
  background: #fdeceb;
  color: #d1453b;
  border: 1px solid #f4c7c3;
}

.store-field {
  margin-bottom: 16px;
}

.store-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--store-text);
}

.store-field input,
.store-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  background: #fff;
  color: var(--store-text);
}

.store-field input:focus,
.store-field textarea:focus,
.store-field select:focus {
  outline: none;
  border-color: var(--store-accent);
  box-shadow: 0 0 0 3px var(--store-accent-soft);
}

.store-field textarea {
  resize: vertical;
}

.store-field select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--store-text);
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7177' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.store-field select:hover {
  border-color: var(--store-accent-line);
}

.store-field select option {
  padding: 10px;
  color: #111;
  background: #fff;
}

.checkout-payment {
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  padding: 14px 16px;
  margin: 20px 0;
}

.checkout-payment h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.checkout-payment p {
  font-size: 13px;
  color: var(--store-muted);
  margin: 0 0 8px;
}

.checkout-payment__details {
  font-size: 14px;
  line-height: 1.6;
}

.checkout-payment__note {
  margin-top: 8px;
  font-size: 12px;
}

.payment-method-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-method-picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.payment-method-picker__option:hover {
  border-color: var(--store-accent-line);
}

.payment-method-picker__option input {
  width: auto;
  accent-color: var(--store-accent);
}

/* ---------- Order confirmation ---------- */

.confirmation {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
}

.confirmation__check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--store-accent);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirmation h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.confirmation__order-number {
  color: var(--store-muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.confirmation__continue {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--store-accent-ink);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
