/* ============================================
   FOOTWEARVILLE — STORE CSS
   ============================================ */

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #1A1A1A url('/assets/hero-bg.jpg') center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.75) 0%,
    rgba(10,10,10,0.4) 60%,
    rgba(10,10,10,0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  max-width: 600px;
}

.hero__eyebrow {
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-5);
}

.hero__sub {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 440px;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  margin-top: var(--space-2);
}

/* ============================================
   CATEGORIES
   ============================================ */

.categories-section {
  background: var(--surface);
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.category-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.category-card__image {
  aspect-ratio: 16 / 9;
  background: var(--skeleton-base);
  overflow: hidden;
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  opacity: 0;
}

.category-card__img.loaded {
  opacity: 1;
  transition: opacity 300ms ease, transform var(--transition-slow);
}

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

.category-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.product-card__image-wrap img {
  opacity: 0;
  transition: opacity 300ms ease, transform var(--transition-slow);
}

.product-card__image-wrap img.loaded {
  opacity: 1;
}

/* ============================================
   BRAND STATEMENT
   ============================================ */

.brand-statement {
  background: var(--bg);
  padding: var(--space-16) 0;
}

.brand-statement__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.brand-statement__desc {
  margin-top: var(--space-4);
  max-width: 480px;
}

.brand-statement__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pillar__icon {
  width: 48px;
  height: 48px;
  background: #FFECEC;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.pillar__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary);
}

.pillar__desc {
  max-width: 280px;
}

/* ============================================
   NEW ARRIVALS
   ============================================ */

.new-arrivals-section {
  background: var(--surface);
}

/* ============================================
   VIEW ALL BUTTON
   ============================================ */

.view-all-btn {
  display: none;
}

/* ============================================
   CART DRAWER
   ============================================ */

.cart-drawer__header {
  margin-bottom: var(--space-5);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 120px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-12) 0;
  color: var(--muted);
  text-align: center;
}

.cart-empty svg {
  color: var(--border);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-3);
  align-items: start;
}

.cart-item__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--skeleton-base);
}

.cart-item__name {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.cart-item__meta {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: var(--surface);
  transition: all var(--transition);
}

.qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.qty-value {
  font-size: var(--text-sm);
  font-weight: 500;
  min-width: 18px;
  text-align: center;
}

.cart-item__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.cart-item__remove {
  color: var(--muted);
  cursor: pointer;
  padding: var(--space-1);
  transition: color var(--transition);
}

.cart-item__remove:hover {
  color: var(--error);
}

.cart-drawer__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.cart-total__label {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

.cart-total__amount {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-card__image {
    aspect-ratio: 2 / 3;
  }

  .view-all-btn {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .brand-statement__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-16);
  }

  .brand-statement__pillars {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .brand-statement__pillars {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE HEADER (shop / about / contact / faq)
   ============================================ */

.page-header {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-header--tall {
  padding: var(--space-16) 0 var(--space-10);
}

.page-header__lede {
  margin-top: var(--space-5);
  max-width: 620px;
}

/* ============================================
   SHOP
   ============================================ */

.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.shop-search {
  position: relative;
}

.shop-search svg {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.shop-search .form-input {
  padding-left: calc(var(--space-4) + 24px);
}

.shop-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.shop-result-count {
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .shop-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .shop-search { flex: 1; max-width: 360px; }
  .shop-filters { grid-template-columns: auto auto; }
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */

.breadcrumb {
  margin-bottom: var(--space-6);
}
.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--accent); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.product-detail__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-detail__main {
  aspect-ratio: 1 / 1;
  background: var(--skeleton-base);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.product-detail__thumbs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  background: var(--skeleton-base);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }

.product-detail__name {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.product-detail__desc {
  margin-bottom: var(--space-6);
  white-space: pre-wrap;
}

.option-group {
  margin-bottom: var(--space-5);
}

.option-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.option-choices {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.chip {
  min-width: 44px;
  padding: 0.5rem var(--space-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: var(--text-sm);
  color: var(--primary);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--primary); }
.chip.active { border-color: var(--primary); background: var(--primary); color: var(--surface); }

.swatch {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition), border-color var(--transition);
}
.swatch:hover { transform: scale(1.05); }
.swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg) inset;
}

/* Sold-out states (color & size) */
.chip.is-sold-out {
  color: var(--muted, #888);
  cursor: not-allowed;
  position: relative;
  background: transparent;
}
.chip.is-sold-out:hover { border-color: var(--border); }
.chip.is-sold-out .chip__label {
  text-decoration: line-through;
  text-decoration-color: #d33;
  text-decoration-thickness: 2px;
}

.swatch.is-sold-out {
  cursor: not-allowed;
  opacity: 0.75;
  position: relative;
  overflow: hidden;
}
.swatch.is-sold-out:hover { transform: none; }
.swatch__cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1.5px),
    #d33 calc(50% - 1.5px),
    #d33 calc(50% + 1.5px),
    transparent calc(50% + 1.5px)
  );
}

.product-detail__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.product-detail__stock {
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

/* ============================================
   CHECKOUT
   ============================================ */

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.checkout-heading {
  margin-bottom: var(--space-5);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout-form .grid-2 {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .checkout-form .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-summary {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.summary-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-3);
  align-items: start;
}

.summary-item__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--skeleton-base);
}

.summary-item__name {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.summary-item__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.summary-total {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary);
  padding-top: var(--space-3);
}

.summary-total .text-accent { color: var(--accent); }

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-3) 0;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr 380px;
    gap: var(--space-10);
    align-items: start;
  }
}

/* ============================================
   ABOUT
   ============================================ */

.about-pillars-section { background: var(--surface); }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.about-image {
  background: var(--skeleton-base);
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .about-pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   CONTACT
   ============================================ */

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-item__value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-12);
    align-items: start;
  }
}

/* ============================================
   FAQ
   ============================================ */

.faq-container {
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] { border-color: var(--accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
}

.faq-cta {
  margin-top: var(--space-10);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* ============================================
   CHECKOUT — BANK TRANSFER CARD
   ============================================ */
.bank-card {
  background: linear-gradient(135deg, #fbf7ee 0%, #f3ead4 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bank-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.bank-card__row--total {
  padding-top: var(--space-3);
  border-top: 1px dashed rgba(0,0,0,.15);
  margin-top: var(--space-1);
}
.bank-card__label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.bank-card__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  word-break: break-word;
}
.bank-card__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  letter-spacing: .04em;
}
.bank-card__copy {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Receipt uploader */
.receipt-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 2px dashed var(--border, #ddd);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  background: #FBFAF6;
  transition: border-color .15s, color .15s, background .15s;
}
.receipt-uploader:hover { border-color: var(--accent); color: var(--primary); background: #fff; }
.receipt-uploader input { display: none; }
.receipt-preview {
  margin-top: var(--space-3);
}
.receipt-preview img {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border, #ddd);
  display: block;
}

/* Success modal */
.success-modal {
  max-width: 460px;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}
.success-modal__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #def5e3;
  color: #15803d;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-4);
}
.success-modal__title {
  font-family: var(--font-display, serif);
  font-size: 28px;
  margin: 0 0 var(--space-3);
  letter-spacing: -.01em;
}
.success-modal__desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  margin: 0 0 var(--space-6);
}
.success-modal__desc strong { color: var(--primary); font-family: ui-monospace, monospace; }
.success-modal__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.success-modal__actions .btn { flex: 1 1 160px; }

@media (max-width: 600px) {
  .bank-card__number { font-size: 16px; }
  .success-modal { padding: var(--space-6) var(--space-4); }
  .success-modal__title { font-size: 22px; }
}

/* Stock warnings (cart drawer / checkout summary) */
.stock-warning { color: var(--error); font-size: 12px; font-weight: 500; margin-top: 4px; }
.btn.is-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }

/* Box option (product page) */
.box-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.box-option:hover { border-color: var(--primary); }
.box-option input { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.box-option__text { display: flex; flex-direction: column; gap: 2px; }
.box-option__title { font-weight: 600; color: var(--primary); }
.box-option__sub { font-size: var(--text-sm); color: var(--accent); font-weight: 500; }

/* Box badge in cart drawer */
.cart-item__box { color: var(--accent); font-weight: 600; }
