/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary:active { transform: translateY(0) scale(0.97); }

.btn-block { width: 100%; }

.btn-danger {
  background: transparent;
  color: var(--color-error);
  border: 1.5px solid var(--color-error);
}

.btn-danger:hover { background: var(--color-error); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn.added {
  background: var(--color-success);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-10) var(--space-9);
  background: linear-gradient(160deg, #e9f1fa 0%, var(--color-bg) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.hero-eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  background: rgba(201, 114, 43, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-5);
}

.hero p.lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-7);
  max-width: 480px;
}

.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.two-col-grid { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-card a.product-card-link {
  display: block;
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  overflow: hidden;
}

.product-card-stock-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-error);
  color: #fff;
}

.product-card-stock-badge.bestseller {
  background: var(--color-accent);
}

.product-card-reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
}

.product-card-reviews .stars {
  color: var(--color-accent);
  letter-spacing: 1px;
}

/* ---------- Category showcase cards (index.html) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 1000px;
  margin-inline: auto;
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.05);
}

/* Gradient stays dark at the bottom regardless of the photo underneath, so
   the white text is always legible without needing a per-image tweak. */
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(1, 26, 51, 0.92) 0%, rgba(1, 26, 51, 0.55) 38%, rgba(1, 26, 51, 0.05) 68%, transparent 100%);
}

.category-card-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  color: #fff;
}

.category-card-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-light);
  margin-bottom: var(--space-2);
}

.category-card-content h3 {
  color: #fff;
  margin: 0 0 var(--space-2);
}

.category-card-content p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--space-4);
  max-width: 34ch;
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.category-card-link .icon-inline {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-card-link .icon-inline {
  transform: translateX(3px);
}

.product-card-reviews .review-count {
  color: var(--color-text-muted);
}

/* ---------- About-page alternating media/text rows ---------- */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.about-row + .about-row {
  margin-top: var(--space-8);
}

.about-row.reverse .about-row-media {
  order: 2;
}

.about-row-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-row-text h2 {
  margin-top: 0;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.product-card-category {
  font-size: var(--fs-xs);
  color: var(--color-accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
}

.product-card-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--color-primary-dark);
}

.product-card-price .original {
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card-footer {
  padding: 0 var(--space-4) var(--space-4);
}

/* ---------- Category filter ---------- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.shop-toolbar-controls {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.shop-search,
.shop-sort {
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text);
  background: var(--color-surface);
}

.shop-search {
  min-width: 200px;
}

.search-autocomplete {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.search-suggestion img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-suggestion-name {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.search-suggestion-price {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.search-suggestion:hover,
.search-suggestion.active {
  background: var(--color-bg);
}

.shop-search:focus,
.shop-sort:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-bar {
  position: relative;
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filter-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  /* width/height are set directly by shop-page.js's movePillTo() to match
     the target button's box (snaps instantly, no layout-thrash animation);
     only the slide itself (transform) is animated. */
  transition: transform var(--transition-base);
  z-index: 0;
}

.filter-btn {
  position: relative;
  z-index: 1;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn[aria-pressed='true'] {
  background: transparent;
  color: #fff;
  border-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- Product gallery (image + video thumbnails) ---------- */
.product-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  background: var(--color-surface-sunken);
  touch-action: pan-y;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.product-gallery-nav:hover { background: #fff; }
.product-gallery-nav:active { transform: translateY(-50%) scale(0.94); }
.product-gallery-nav--prev { left: var(--space-3); }
.product-gallery-nav--next { right: var(--space-3); }

@media (hover: none) {
  /* Touch devices already swipe; keep the buttons but don't rely on :hover
     for discoverability - they're always at this same visible opacity. */
  .product-gallery-nav { background: rgba(255, 255, 255, 0.9); }
}

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

.product-gallery-video {
  width: 100%;
  height: 100%;
}

.product-gallery-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.product-gallery-file-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.product-gallery-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumb.active { border-color: var(--color-primary); }

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

.thumb-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 1rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--color-text); font-weight: 500; }

/* ---------- Long-form product description ---------- */
.product-long-description {
  max-width: 760px;
  margin: var(--space-9) auto 0;
}

.bestseller-tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.product-detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.product-detail-rating .stars,
.product-review-header .stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: var(--fs-md);
}

.product-detail-rating .review-count {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-decoration: underline;
}

.product-reviews-section {
  max-width: 760px;
  margin: var(--space-9) auto 0;
}

.product-review {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}

.product-review-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.badge-editorial {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2px 10px;
}

.product-review-title {
  font-weight: 700;
  margin: 0 0 var(--space-1);
}

.product-review-body {
  color: var(--color-text-muted);
  margin: 0;
}

.product-long-description h2 { margin-bottom: var(--space-4); }

.rich-content p { margin-bottom: var(--space-4); color: var(--color-text-muted); line-height: var(--lh-normal); }
.rich-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--space-4); color: var(--color-text-muted); }
.rich-content h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.rich-content a { color: var(--color-primary); text-decoration: underline; }

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
}
.rich-content th,
.rich-content td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.rich-content th {
  color: var(--color-text);
  font-weight: 700;
}
.rich-content td {
  color: var(--color-text-muted);
}
.rich-content tr:last-child th,
.rich-content tr:last-child td {
  border-bottom: none;
}

/* ---------- Related products ---------- */
.related-products {
  margin-top: var(--space-9);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.related-products h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}

.product-detail-category {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.product-detail h1 { font-size: var(--fs-2xl); margin-bottom: var(--space-4); }

.product-detail-price {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.product-detail-price .original {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.price-tier-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: calc(var(--space-5) * -1) 0 var(--space-5);
}

.price-tier-list strong {
  color: var(--color-text);
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-selector button {
  width: 40px;
  height: 40px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.qty-selector button:hover { background: var(--color-surface-sunken); }

.qty-selector input {
  width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--fs-base);
  /* Hide the native number-input spinner arrows - they render as a tiny
     gray browser-default box that clashes with the custom -/+ buttons and
     pill border either side of it. */
  -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.stock-note { font-size: var(--fs-sm); color: var(--color-success); }
.stock-note.low { color: var(--color-accent-dark); }
.stock-note.out { color: var(--color-error); }

.social-proof-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.line-total {
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--color-primary-dark);
}

/* Honeypot field for the contact form (js/contact-form.js). Hidden from
   sighted/mouse users and skipped by screen readers via aria-hidden, but
   still present in the DOM/tab order for form-filling bots to trip over. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-7);
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.cart-table td {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.cart-item-image {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  flex-shrink: 0;
}

.cart-item-remove {
  color: var(--color-error);
  font-size: var(--fs-xs);
  text-decoration: underline;
  cursor: pointer;
}

.cart-stock-warning {
  color: var(--color-error);
  font-size: var(--fs-xs);
  margin-top: var(--space-1);
}

.discount-input-row {
  display: flex;
  gap: var(--space-2);
}

.discount-input-row input {
  flex: 1;
}

.discount-input-row input:disabled {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.cart-summary {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--header-height) + var(--space-5));
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.cart-summary-row.discount {
  color: var(--color-success);
}

.cart-summary-row.total {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary-dark);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

.shipping-progress {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
}

.icon-inline {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  color: var(--color-success);
  margin-right: 2px;
}

.shipping-progress-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  margin-top: var(--space-2);
  overflow: hidden;
}

.shipping-progress-bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: var(--color-accent);
  transition: transform var(--transition-slow);
}

.cart-empty {
  text-align: center;
  padding: var(--space-9) var(--space-5);
  color: var(--color-text-muted);
}

/* ---------- Forms (contact) ---------- */
.form-field { margin-bottom: var(--space-5); }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-2);
}

.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 75, 148, 0.14);
}

.form-field textarea { min-height: 140px; resize: vertical; }
.form-status { font-size: var(--fs-sm); margin-top: var(--space-3); }
.form-status:empty { display: none; }
.form-status.success { color: var(--color-success); }
.form-status.error { color: var(--color-error); }

/* ---------- Account tabs (mitt-konto.html) ---------- */
.account-tabs {
  display: flex;
  gap: var(--space-2);
  max-width: 760px;
  margin: 0 auto var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.account-tab {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.account-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  max-width: 560px;
  margin-inline: auto;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  z-index: 1000;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-banner p { font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.cookie-banner-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- Carlius Digital footer badge (Variant B: subtle inline chip) ---------- */
.agency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: #9db8cf;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.agency-badge:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.agency-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Misc pages ---------- */
.page-hero {
  padding-block: var(--space-8) var(--space-6);
  text-align: center;
}

.page-hero h1 { font-size: var(--fs-2xl); margin-bottom: var(--space-3); }
.page-hero p { color: var(--color-text-muted); max-width: 640px; margin-inline: auto; }

.content-block { max-width: 760px; margin-inline: auto; }
.content-block h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.content-block p, .content-block li { margin-bottom: var(--space-3); color: var(--color-text-muted); }
.content-block ul { list-style: disc; padding-left: 1.4em; }
.content-block ul li { list-style: disc; }

.status-page {
  text-align: center;
  padding-block: var(--space-9);
}

.status-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.status-icon svg {
  width: 32px;
  height: 32px;
}

.status-icon.success { background: rgba(26, 138, 74, 0.12); color: var(--color-success); }
.status-icon.cancelled { background: rgba(192, 57, 43, 0.12); color: var(--color-error); }

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}

.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

/* ---------- Pack-size preset selector (produkt.html buy box) ---------- */
.pack-selector {
  margin-bottom: var(--space-5);
}

.pack-selector-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-sunken);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.pack-selector-toggle:hover { background: var(--color-bg); }
.pack-selector-toggle .chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.pack-selector-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.pack-selector-toggle[aria-expanded="true"] {
  border-color: var(--color-primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.pack-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--color-surface);
}

.pack-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-3) var(--space-2);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.pack-preset-btn:hover { border-color: var(--color-primary-light); }
.pack-preset-btn .pack-preset-qty {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}
.pack-preset-btn .pack-preset-total {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-text);
}
.pack-preset-btn .pack-preset-unit {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.pack-preset-btn.active {
  border-color: var(--color-primary);
  border-width: 2px;
  background: rgba(2, 75, 148, 0.06);
}
.pack-preset-btn.active .pack-preset-total { color: var(--color-primary); }

.pack-selector-contact {
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  text-decoration: underline;
  padding-top: var(--space-2);
}

/* ---------- Subscribe-instead secondary button ---------- */
.btn-subscribe-alt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.btn-subscribe-alt:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-sunken);
}
.btn-subscribe-alt:disabled { opacity: 0.6; cursor: default; }
