/* ─────────────────────────────────────────────────────────
   Catalog — Minimalist Product Catalog & Cart Styles
   Uses portal design tokens from portal.css :root
   ───────────────────────────────────────────────────────── */

/* ── Layout ──────────────────────────────────────────────── */

.catalog-page,
.product-page,
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Catalog Header ──────────────────────────────────────── */

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1rem;
}

.catalog-header-text {
  flex: 1;
}

.catalog-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  letter-spacing: -0.03em;
  margin: 0;
}

.catalog-subtitle {
  font-size: 0.95rem;
  color: var(--portal-muted, #64748b);
  margin: 0.25rem 0 0;
}

.catalog-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--portal-radius-sm, 10px);
  color: var(--portal-text, #1a1a1a);
  transition: background var(--portal-ease, .25s);
  text-decoration: none;
}

.catalog-cart-link:hover {
  background: var(--portal-cream, #f8faf9);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--portal-leaf, #2dc780);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Search ──────────────────────────────────────────────── */

.catalog-search-wrap {
  margin-bottom: 1.25rem;
}

.catalog-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-sm, 10px);
  font-size: 0.95rem;
  background: var(--portal-white, #fff);
  color: var(--portal-text, #1a1a1a);
  transition: border-color var(--portal-ease, .25s), box-shadow var(--portal-ease, .25s);
  outline: none;
}

.catalog-search:focus {
  border-color: var(--portal-sage, #26705c);
  box-shadow: 0 0 0 3px rgba(45, 199, 128, 0.1);
}

.catalog-search::placeholder {
  color: var(--portal-muted, #64748b);
}

/* ── Filter Pills ────────────────────────────────────────── */

.catalog-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-pills::-webkit-scrollbar {
  display: none;
}

.catalog-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: 100px;
  background: var(--portal-white, #fff);
  color: var(--portal-text, #1a1a1a);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--portal-ease, .25s);
  white-space: nowrap;
}

.catalog-pill:hover {
  border-color: var(--portal-sage, #26705c);
  color: var(--portal-sage, #26705c);
}

.catalog-pill.active {
  background: var(--portal-fern, #1a4a38);
  border-color: var(--portal-fern, #1a4a38);
  color: var(--portal-white, #fff);
}

.pill-count {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-left: 0.15rem;
}

.catalog-pill.active .pill-count {
  opacity: 0.8;
}

/* ── Filter Bar ──────────────────────────────────────────── */

.catalog-filters-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.catalog-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-xs, 6px);
  background: var(--portal-white, #fff);
  color: var(--portal-text, #1a1a1a);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--portal-ease, .25s);
}

.catalog-filter-btn:hover {
  border-color: var(--portal-sage, #26705c);
}

.catalog-result-count {
  font-size: 0.85rem;
  color: var(--portal-muted, #64748b);
  flex: 1;
}

.catalog-sort-select {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-xs, 6px);
  font-size: 0.85rem;
  background: var(--portal-white, #fff);
  color: var(--portal-text, #1a1a1a);
  cursor: pointer;
  outline: none;
}

/* ── Advanced Filters Panel ──────────────────────────────── */

.catalog-advanced-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-sm, 10px);
  background: var(--portal-cream, #f8faf9);
}

.filter-group-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--portal-muted, #64748b);
  margin: 0 0 0.6rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--portal-text, #1a1a1a);
  cursor: pointer;
}

.filter-check {
  accent-color: var(--portal-fern, #1a4a38);
}

.filter-empty {
  font-size: 0.82rem;
  color: var(--portal-muted, #64748b);
  font-style: italic;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
}

.catalog-btn-clear {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-xs, 6px);
  background: var(--portal-white, #fff);
  color: var(--portal-muted, #64748b);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--portal-ease, .25s);
}

.catalog-btn-clear:hover {
  border-color: var(--portal-text, #1a1a1a);
  color: var(--portal-text, #1a1a1a);
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input {
  width: 80px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-xs, 6px);
  font-size: 0.85rem;
  background: var(--portal-white, #fff);
  outline: none;
}

.price-input:focus {
  border-color: var(--portal-sage, #26705c);
}

.price-dash {
  color: var(--portal-muted, #64748b);
}

.price-hint {
  font-size: 0.75rem;
  color: var(--portal-muted, #64748b);
  margin-top: 0.3rem;
}

/* ── Product Grid ────────────────────────────────────────── */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--portal-muted, #64748b);
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--portal-radius, 16px);
  overflow: hidden;
  background: var(--portal-white, #fff);
  border: 1px solid var(--portal-border, #e2e8f0);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--portal-ease, .25s), transform var(--portal-ease, .25s);
}

.catalog-card:hover {
  box-shadow: var(--portal-shadow-md, 0 4px 16px rgba(0,0,0,.08));
  transform: translateY(-2px);
}

.catalog-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--portal-bg, #f8fafc);
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card-image img {
  transform: scale(1.03);
}

.catalog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.catalog-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--portal-fern, #1a4a38);
  color: var(--portal-white, #fff);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.catalog-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.catalog-card-meta {
  font-size: 0.76rem;
  color: var(--portal-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.catalog-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.catalog-card-swatches {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.catalog-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.catalog-swatch-more {
  font-size: 0.72rem;
  color: var(--portal-muted, #64748b);
  margin-left: 0.15rem;
}

.catalog-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
}

.catalog-card-moq {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--portal-muted, #64748b);
}

/* ── Load More ───────────────────────────────────────────── */

.catalog-load-more {
  text-align: center;
  padding: 2rem 0;
}

.catalog-btn-load-more {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-sm, 10px);
  background: var(--portal-white, #fff);
  color: var(--portal-text, #1a1a1a);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--portal-ease, .25s);
}

.catalog-btn-load-more:hover {
  border-color: var(--portal-sage, #26705c);
  color: var(--portal-sage, #26705c);
}

/* ── Empty State ─────────────────────────────────────────── */

.catalog-empty,
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 0;
  text-align: center;
  color: var(--portal-muted, #64748b);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1rem;
}

.product-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--portal-muted, #64748b);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--portal-ease, .25s);
}

.product-back:hover {
  color: var(--portal-text, #1a1a1a);
}

/* ── Product Hero (gallery + info) ───────────────────────── */

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.product-gallery-main {
  aspect-ratio: 3 / 4;
  border-radius: var(--portal-radius, 16px);
  overflow: hidden;
  background: var(--portal-bg, #f8fafc);
  border: 1px solid var(--portal-border, #e2e8f0);
}

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

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--portal-radius-xs, 6px);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--portal-bg, #f8fafc);
  transition: border-color var(--portal-ease, .25s);
}

.gallery-thumb.active {
  border-color: var(--portal-fern, #1a4a38);
}

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

/* ── Product Info ────────────────────────────────────────── */

.product-meta-line {
  font-size: 0.8rem;
  color: var(--portal-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.product-brand {
  font-size: 0.88rem;
  color: var(--portal-muted, #64748b);
  margin-bottom: 1rem;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--portal-text, #1a1a1a);
}

.product-price-unit {
  font-size: 0.85rem;
  color: var(--portal-muted, #64748b);
}

.product-moq {
  margin-left: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: var(--portal-cream, #f8faf9);
  border: 1px solid var(--portal-border, #e2e8f0);
  font-size: 0.75rem;
  color: var(--portal-muted, #64748b);
}

.product-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--portal-muted, #64748b);
  margin: 0 0 0.5rem;
}

/* ── Pricing Tiers ───────────────────────────────────────── */

.product-tiers {
  margin-bottom: 1.5rem;
}

.product-tier-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-tier-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.tier-range {
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  min-width: 80px;
}

.tier-label {
  color: var(--portal-muted, #64748b);
  flex: 1;
}

.tier-price {
  font-weight: 600;
  color: var(--portal-fern, #1a4a38);
}

/* ── Variant Selector ────────────────────────────────────── */

.product-variants {
  margin-bottom: 1.5rem;
}

.product-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-variant-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--portal-border, #e2e8f0);
  border-radius: 100px;
  background: var(--portal-white, #fff);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--portal-ease, .25s);
}

.product-variant-btn:hover {
  border-color: var(--portal-sage, #26705c);
}

.product-variant-btn.active {
  border-color: var(--portal-fern, #1a4a38);
  background: var(--portal-cream, #f8faf9);
}

.variant-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.variant-name {
  color: var(--portal-text, #1a1a1a);
}

/* ── Size & Quantity Grid ────────────────────────────────── */

.product-sizes {
  margin-bottom: 1.5rem;
}

.product-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.size-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.size-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--portal-muted, #64748b);
  text-transform: uppercase;
}

.size-qty-input {
  width: 64px;
  padding: 0.5rem 0.35rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-xs, 6px);
  font-size: 0.9rem;
  text-align: center;
  background: var(--portal-white, #fff);
  color: var(--portal-text, #1a1a1a);
  outline: none;
  transition: border-color var(--portal-ease, .25s);
}

.size-qty-input:focus {
  border-color: var(--portal-sage, #26705c);
  box-shadow: 0 0 0 3px rgba(45, 199, 128, 0.1);
}

.product-qty-summary {
  font-size: 0.9rem;
  color: var(--portal-muted, #64748b);
}

.product-qty-summary strong {
  color: var(--portal-text, #1a1a1a);
}

/* ── Artwork Upload ──────────────────────────────────────── */

.product-artwork {
  margin-bottom: 1.5rem;
}

.product-artwork-hint {
  font-size: 0.82rem;
  color: var(--portal-muted, #64748b);
  margin: 0 0 0.6rem;
}

.product-artwork-upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.product-artwork-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px dashed var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-xs, 6px);
  background: var(--portal-white, #fff);
  color: var(--portal-muted, #64748b);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--portal-ease, .25s);
}

.product-artwork-btn:hover {
  border-color: var(--portal-sage, #26705c);
  color: var(--portal-sage, #26705c);
}

.artwork-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.artwork-file-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--portal-radius-xs, 6px);
  background: var(--portal-pale, #c4eed8);
  font-size: 0.78rem;
  color: var(--portal-fern, #1a4a38);
}

.artwork-file-remove {
  border: none;
  background: none;
  color: var(--portal-fern, #1a4a38);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
}

.artwork-file-remove:hover {
  opacity: 1;
}

.product-artwork-notes {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-xs, 6px);
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color var(--portal-ease, .25s);
}

.product-artwork-notes:focus {
  border-color: var(--portal-sage, #26705c);
}

/* ── Add to Cart Button ──────────────────────────────────── */

.product-actions {
  margin-top: 0.5rem;
}

.product-add-to-cart {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--portal-radius-sm, 10px);
  background: var(--portal-fern, #1a4a38);
  color: var(--portal-white, #fff);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--portal-ease, .25s);
}

.product-add-to-cart:hover {
  background: var(--portal-sage, #26705c);
}

.product-add-to-cart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Product Detail Sections ─────────────────────────────── */

.product-divider {
  border: none;
  border-top: 1px solid var(--portal-border, #e2e8f0);
  margin: 3rem 0;
}

.product-detail-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-detail-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--portal-border, #e2e8f0);
}

.product-detail-section:last-child {
  border-bottom: none;
}

.product-detail-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--portal-muted, #64748b);
  margin: 0 0 1.25rem;
}

.product-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--portal-text, #1a1a1a);
  max-width: 680px;
}

/* ── Fabric & Composition ────────────────────────────────── */

.product-page .product-fabric-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.product-page .fabric-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--portal-text, #1a1a1a);
  letter-spacing: -0.01em;
  margin: 0;
}

.product-page .fabric-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--portal-cream, #f8faf9);
  border: 1px solid var(--portal-border, #e2e8f0);
  color: var(--portal-muted, #64748b);
}

.product-fabric-info {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-page .fabric-weight {
  font-size: 0.85rem;
  color: var(--portal-muted, #64748b);
  margin: 0;
}

.product-compositions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.composition-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-page .composition-bar {
  flex: 1;
  max-width: 200px;
  height: 6px;
  border-radius: 3px;
  background: var(--portal-border, #e2e8f0);
  overflow: hidden;
  position: static;
}

.product-page .composition-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--portal-fern, #1a4a38);
  transition: width 0.6s ease;
  position: static;
}

.composition-percent {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  min-width: 36px;
}

.composition-name {
  font-size: 0.85rem;
  color: var(--portal-muted, #64748b);
}

.product-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.certification-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--portal-pale, #c4eed8);
  background: var(--portal-cream, #f8faf9);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--portal-fern, #1a4a38);
}

/* ── Size Chart ──────────────────────────────────────────── */

.product-size-chart {
  overflow-x: auto;
}

.product-size-chart .portal-table {
  width: 100%;
  border-collapse: collapse;
}

.product-size-chart th,
.product-size-chart td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--portal-border, #e2e8f0);
  text-align: center;
  font-size: 0.85rem;
}

.product-size-chart th {
  background: var(--portal-cream, #f8faf9);
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
}

/* ── Washcare ────────────────────────────────────────────── */

.product-washcare {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.washcare-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.washcare-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.washcare-label {
  font-size: 0.82rem;
  color: var(--portal-muted, #64748b);
}

/* ═══════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════ */

.cart-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 1.5rem;
}

.cart-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin: 0;
  flex: 1;
}

.cart-item-count {
  font-size: 0.88rem;
  color: var(--portal-muted, #64748b);
}

.cart-loading {
  text-align: center;
  padding: 3rem 0;
  color: var(--portal-muted, #64748b);
}

/* ── Cart Items ──────────────────────────────────────────── */

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius, 16px);
  background: var(--portal-white, #fff);
}

.cart-item-image {
  width: 80px;
  height: 100px;
  border-radius: var(--portal-radius-xs, 6px);
  overflow: hidden;
  background: var(--portal-bg, #f8fafc);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin: 0 0 0.15rem;
}

.cart-item-variant {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--portal-muted, #64748b);
}

.cart-item-remove {
  border: none;
  background: none;
  font-size: 1.35rem;
  color: var(--portal-muted, #64748b);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--portal-ease, .25s);
}

.cart-item-remove:hover {
  color: #dc2626;
}

.cart-item-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.cart-size-tag {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--portal-cream, #f8faf9);
  border: 1px solid var(--portal-border, #e2e8f0);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--portal-text, #1a1a1a);
}

.cart-artwork {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--portal-muted, #64748b);
  margin-bottom: 0.5rem;
}

.cart-artwork-note {
  font-style: italic;
}

.cart-item-totals {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.cart-item-qty {
  font-weight: 500;
  color: var(--portal-text, #1a1a1a);
}

.cart-item-unit-price {
  color: var(--portal-muted, #64748b);
}

.cart-item-line-total {
  margin-left: auto;
  font-weight: 700;
  color: var(--portal-text, #1a1a1a);
  font-size: 1rem;
}

/* ── Cart Two-Column Layout ──────────────────────────────── */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.cart-left {
  min-width: 0;
}

.cart-right {
  position: relative;
}

.cart-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    position: static;
  }
}

/* ── Cart Related (inside left column) ──────────────────── */

.cart-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.cart-related-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.cart-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.cart-related-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  display: block;
  transition: border-color .2s, box-shadow .2s;
}

.cart-related-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.cart-related-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.cart-related-card-body {
  padding: .65rem .75rem;
}

.cart-related-card-body h4 {
  font-size: .8rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 .2rem;
  line-height: 1.3;
}

.cart-related-meta {
  font-size: .7rem;
  color: #64748b;
  margin: 0 0 .25rem;
}

.cart-related-price {
  font-size: .8rem;
  font-weight: 700;
  color: #166534;
  margin: 0;
}

.cart-related-swatches {
  display: flex;
  gap: .25rem;
  margin-top: .3rem;
}

/* ── Cart Sidebar Sections ──────────────────────────────── */

.cart-checkout-info {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.checkout-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--portal-text, #1a1a1a);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f1f5f9;
}

.checkout-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checkout-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.checkout-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--portal-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkout-value {
  font-size: 0.88rem;
  color: var(--portal-text, #1a1a1a);
  font-weight: 500;
  word-break: break-word;
}

.checkout-form-hint {
  font-size: 0.82rem;
  color: var(--portal-muted, #64748b);
  margin: 0 0 0.75rem;
}

.checkout-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin-bottom: 0.25rem;
}

.checkout-required {
  color: #dc2626;
}

.checkout-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--portal-text, #1a1a1a);
  background: #f8fafc;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.checkout-input:focus {
  outline: none;
  border-color: var(--portal-leaf, #166534);
  background: #fff;
}

.checkout-input-error {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  animation: checkout-shake 0.3s ease;
}

@keyframes checkout-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.cart-delivery-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.cart-notes-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.cart-notes-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--portal-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.35rem;
}

.cart-notes-textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cart-notes-textarea:focus {
  border-color: var(--portal-leaf, #166534);
  background: #fff;
}

.cart-summary {
  background: var(--portal-cream, #f8faf9);
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--portal-text, #1a1a1a);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--portal-border, #e2e8f0);
}

.cart-subtotal strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-place-order-btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.cart-clear-btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.cart-btn-primary {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--portal-radius-sm, 10px);
  background: var(--portal-fern, #1a4a38);
  color: var(--portal-white, #fff);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--portal-ease, .25s);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-btn-primary:hover {
  background: var(--portal-sage, #26705c);
  color: var(--portal-white, #fff);
}

.cart-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-btn-secondary {
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: var(--portal-radius-sm, 10px);
  background: var(--portal-white, #fff);
  color: var(--portal-text, #1a1a1a);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--portal-ease, .25s);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-btn-secondary:hover {
  border-color: var(--portal-text, #1a1a1a);
}

.cart-disclaimer {
  font-size: 0.72rem;
  color: var(--portal-muted, #64748b);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* ── Order Confirmation ──────────────────────────────────── */

.cart-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.confirmation-icon {
  margin-bottom: 1.5rem;
}

.confirmation-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin: 0 0 0.5rem;
}

.confirmation-ref {
  font-size: 0.88rem;
  color: var(--portal-muted, #64748b);
  font-family: monospace;
  margin: 0 0 0.75rem;
}

.confirmation-message {
  font-size: 0.95rem;
  color: var(--portal-text, #1a1a1a);
  max-width: 400px;
  margin: 0 0 2rem;
}

.confirmation-actions {
  display: flex;
  gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .catalog-page,
  .product-page,
  .cart-page {
    padding: 0 1rem 3rem;
  }

  .catalog-title {
    font-size: 1.5rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .catalog-card-body {
    padding: 0.65rem 0.75rem 0.85rem;
  }

  .catalog-card-title {
    font-size: 0.88rem;
  }

  .catalog-advanced-filters {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-title {
    font-size: 1.35rem;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 150px;
  }

  .cart-item-totals {
    flex-wrap: wrap;
  }

  .cart-actions {
    flex-direction: column;
  }

  .confirmation-actions {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catalog-advanced-filters {
    grid-template-columns: 1fr;
  }

  .product-size-grid {
    gap: 0.35rem;
  }

  .size-qty-input {
    width: 52px;
    padding: 0.4rem 0.2rem;
  }
}

/* ─────────────────────────────────────────────────────────
   Product Detail — Composition Text
   ───────────────────────────────────────────────────────── */

.product-page .product-composition-text {
  font-size: 0.95rem;
  color: var(--portal-text, #1a1a1a);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

/* ─────────────────────────────────────────────────────────
   Product Detail — Fabric Weight Gauge
   ───────────────────────────────────────────────────────── */

.product-page .fabric-weight-gauge {
  margin: 1.5rem 0 0.5rem;
  max-width: 400px;
}

.product-page .gauge-track {
  position: relative;
  height: 6px;
  background: linear-gradient(to right,
    var(--portal-pale, #c4eed8),
    var(--portal-border, #e2e8f0),
    var(--portal-muted, #64748b));
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.product-page .gauge-marker {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--portal-forest, #0f3d2c);
  border: 2.5px solid var(--portal-white, #fff);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transform: translate(-50%, -50%);
  transition: left 0.3s ease;
}

.product-page .gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--portal-muted, #64748b);
  letter-spacing: 0.02em;
}

.product-page .gauge-value {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin-top: 0.6rem;
}

.product-page .gauge-weight-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--portal-muted, #64748b);
  margin-top: 0.1rem;
}

/* ─────────────────────────────────────────────────────────
   Product Detail — Technology Cards
   ───────────────────────────────────────────────────────── */

.product-page .tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-page .tech-card {
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: var(--portal-white, #fff);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-page .tech-card:hover {
  border-color: var(--portal-leaf, #2dc780);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.product-page .tech-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--portal-sand, #f5f0eb);
  display: block;
}

.product-page .tech-card-body {
  padding: 1.15rem 1.25rem;
}

.product-page .tech-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #166534;
}

.product-page .tech-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--portal-text, #1a1a1a);
  margin: 0 0 0.35rem;
}

.product-page .tech-card-desc {
  font-size: 0.84rem;
  color: var(--portal-muted, #64748b);
  line-height: 1.6;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   Product Detail — Sustainability Scorecard
   ───────────────────────────────────────────────────────── */

.product-page .sustainability-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #fafffe 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: none;
  overflow: visible;
}

.product-page .sustainability-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.product-page .sustainability-grade {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.2);
}

.product-page .sustainability-grade.grade-a { background: linear-gradient(135deg, #166534, #15803d); }
.product-page .sustainability-grade.grade-b { background: linear-gradient(135deg, #15803d, #22c55e); }
.product-page .sustainability-grade.grade-c { background: linear-gradient(135deg, #a16207, #eab308); }
.product-page .sustainability-grade.grade-d { background: linear-gradient(135deg, #9a3412, #ea580c); }

.product-page .sustainability-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.product-page .sustainability-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--portal-text, #1a1a1a);
  line-height: 1.4;
}

.product-page .sustainability-metric-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #166534;
}

.product-page .sustainability-metric strong {
  font-weight: 800;
  font-size: 1.05rem;
  color: #166534;
}

.product-page .sustainability-note {
  font-size: 0.76rem;
  color: var(--portal-muted, #64748b);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(187, 247, 208, 0.5);
}

/* ─────────────────────────────────────────────────────────
   Product Detail — Care Instructions (Enhanced)
   ───────────────────────────────────────────────────────── */

.product-page .washcare-group {
  margin-bottom: 1.75rem;
}

.product-page .washcare-group:last-child {
  margin-bottom: 0;
}

.product-page .washcare-group-title {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--portal-muted, #64748b);
  margin: 0 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--portal-border, #e2e8f0);
}

.product-page .washcare-guide-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.product-page .washcare-guide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  width: 80px;
}

.product-page .washcare-guide-item .washcare-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 6px;
  background: var(--portal-bg, #f8fafc);
  border-radius: 10px;
  border: 1px solid var(--portal-border, #e2e8f0);
  box-shadow: none;
}

.product-page .washcare-guide-text {
  min-width: 0;
}

.product-page .washcare-guide-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin: 0;
  line-height: 1.3;
}

.product-page .washcare-guide-desc {
  font-size: 0.68rem;
  color: var(--portal-muted, #64748b);
  line-height: 1.4;
  margin: 0;
  display: none;
}

/* ─────────────────────────────────────────────────────────
   Product Detail — Environmental Certification Cards
   ───────────────────────────────────────────────────────── */

.product-page .cert-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-page .cert-card {
  border: 1px solid var(--portal-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--portal-white, #fff);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-page .cert-card:hover {
  border-color: var(--portal-leaf, #2dc780);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.product-page .cert-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-page .cert-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 4px;
  background: var(--portal-bg, #f8fafc);
  border: 1px solid var(--portal-border, #e2e8f0);
}

.product-page .cert-card-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #166534;
}

.product-page .cert-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--portal-text, #1a1a1a);
  margin: 0;
}

.product-page .cert-card-desc {
  font-size: 0.84rem;
  color: var(--portal-muted, #64748b);
  line-height: 1.55;
  margin: 0;
}

.product-page .cert-card-impacts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.product-page .cert-impact-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────
   Responsive — New sections
   ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .product-page .tech-cards-grid,
  .product-page .cert-cards-grid {
    grid-template-columns: 1fr;
  }

  .product-page .sustainability-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .product-page .fabric-weight-gauge {
    max-width: 100%;
  }
}

/* ── Added to Cart Page ────────────────────────────────────── */

.added-to-cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Confirmation banner */
.atc-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 2rem;
}
.atc-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atc-banner-text h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #166534;
  margin: 0;
}
.atc-banner-text p {
  font-size: .85rem;
  color: #15803d;
  margin: .15rem 0 0;
}

/* Added item card */
.atc-added-item {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.atc-added-item img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.atc-added-details {
  flex: 1;
  min-width: 0;
}
.atc-added-details h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 .35rem;
}
.atc-added-variant {
  font-size: .85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .35rem;
}
.atc-added-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .5rem;
}
.atc-size-tag {
  font-size: .75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: .2rem .5rem;
  border-radius: 5px;
}
.atc-added-price {
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
}

/* Two-column layout: actions left, cart summary right */
.atc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* Action buttons */
.atc-actions {
  display: flex;
  gap: .75rem;
  margin-bottom: 2rem;
}
.atc-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.atc-btn-cart:hover { background: #333; color: #fff; text-decoration: none; }
.atc-btn-browse {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.atc-btn-browse:hover { border-color: #94a3b8; color: #1a1a1a; text-decoration: none; }

/* Mini cart summary (right column) */
.atc-cart-summary {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}
.atc-cart-title {
  font-size: .85rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #f1f5f9;
}
.atc-cart-items {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
}
.atc-cart-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem;
  border-radius: 8px;
  background: #f8fafc;
}
.atc-cart-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.atc-cart-item-info {
  flex: 1;
  min-width: 0;
}
.atc-cart-item-name {
  font-size: .8rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atc-cart-item-meta {
  font-size: .72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.atc-cart-item-price {
  font-size: .82rem;
  font-weight: 700;
  color: #1a1a1a;
  flex-shrink: 0;
}
.atc-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .75rem;
  border-top: 1px solid #e2e8f0;
  font-size: .92rem;
  color: #1a1a1a;
}
.atc-cart-subtotal strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.atc-cart-view-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: .85rem;
  padding: .7rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.atc-cart-view-btn:hover { background: #333; color: #fff; text-decoration: none; }

/* Related products section */
.atc-related {
  margin-top: .5rem;
}
.atc-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}
.atc-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .atc-layout {
    grid-template-columns: 1fr;
  }
  .atc-cart-summary {
    position: static;
  }
  .atc-actions {
    flex-direction: column;
  }
  .atc-added-item img {
    width: 72px;
    height: 72px;
  }
}
