/* =====================================================
   VELORA — Fashion E-Commerce Store
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #c9a055;
  --dark:    #0f0f0f;
  --gray:    #6b7280;
  --light:   #f5f5f3;
  --border:  #e5e7eb;
  --white:   #ffffff;
  --red:     #dc2626;
  --green:   #16a34a;
  --radius:  6px;
}

html { font-size: 15px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--dark);
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo span { color: var(--gold); }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gray);
  text-transform: uppercase;
  transition: color 0.15s;
  position: relative;
}

.main-nav a:hover, .main-nav a.active { color: var(--dark); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── ACCESSIBILITY ISSUE: control-name-inaccessible ──
   These icon buttons have no aria-label or accessible name.
   A screen reader will announce them as "button" with no context. */
.icon-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--gray);
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.icon-btn:hover { color: var(--dark); }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--light);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  width: 160px;
  color: var(--dark);
}

/* ACCESSIBILITY ISSUE: control-name-inaccessible — search button has no label */
.search-bar button {
  background: none;
  border: none;
  padding: 2px;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
}

.cart-count {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--dark);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Footer ─── */
.footer {
  background: var(--dark);
  color: #999;
  padding: 48px 40px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: var(--white); font-size: 18px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 240px; }

.footer-col h4 {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1f 100%);
  color: var(--white);
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(135deg, #c9a055 0%, #e8c47a 100%);
  opacity: 0.08;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 560px;
  margin-bottom: 20px;
}

.hero h1 em { font-style: normal; color: var(--gold); }

.hero p {
  font-size: 16px;
  color: #ccc;
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: #b8912d; }

.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); }

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #2a2a2a; }

.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ─── Section ─── */
.section { padding: 64px 40px; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all:hover { text-decoration: underline; }

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  cursor: pointer;
}

.product-card:hover .product-img-wrap img,
.product-card:hover .product-placeholder { transform: scale(1.03); }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  background: var(--light);
  margin-bottom: 12px;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  transition: transform 0.35s ease;
}

.product-img-wrap .wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--white);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
/* ACCESSIBILITY ISSUE: control-name-inaccessible — wishlist buttons have no aria-label */

.product-card:hover .wishlist-btn { opacity: 1; }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
}

.product-badge.sale { background: var(--red); }

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-category {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 6px;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
}

.product-price .original {
  text-decoration: line-through;
  color: var(--gray);
  font-weight: 400;
  margin-right: 6px;
}

/* Product images */
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.03); }

/* Mini images in cart / order items */
.cart-item-img img,
.mini-cart-img img,
.order-product-img img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ─── Categories ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.category-card:hover { transform: translateY(-2px); }

.category-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%);
  z-index: 1;
}

.category-card-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.category-card h3 { font-size: 18px; font-weight: 700; }
.category-card p  { font-size: 12px; opacity: 0.8; }

/* ─── Newsletter ─── */
.newsletter {
  background: var(--light);
  padding: 56px 40px;
  text-align: center;
}

.newsletter h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.newsletter p { color: var(--gray); margin-bottom: 28px; font-size: 15px; }

/* ACCESSIBILITY ISSUE: form-label-missing — no label for the email input */
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input:focus { border-color: var(--gold); }

/* ─── Breadcrumb ─── */
.breadcrumb {
  padding: 14px 40px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb span { color: var(--dark); font-weight: 500; }

/* ─── Shop Page Layout ─── */
.shop-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 64px;
  gap: 40px;
}

.shop-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.shop-main { flex: 1; }

/* ACCESSIBILITY ISSUE: expand-collapse-state — accordion divs have no aria-expanded */
.filter-group { margin-bottom: 24px; }

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.filter-header .toggle-icon { font-size: 12px; color: var(--gray); }

.filter-options { padding: 12px 0; }

/* ACCESSIBILITY ISSUE: form-group-not-labeled — no group label on these filter groups */
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
}

.filter-option input { cursor: pointer; }
.filter-option:hover { color: var(--dark); }

.filter-option span { flex: 1; }
.filter-option em { font-style: normal; color: #bbb; font-size: 12px; }

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px 0;
}

.size-btn-filter {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.size-btn-filter:hover  { border-color: var(--dark); }
.size-btn-filter.active { border-color: var(--dark); background: var(--dark); color: var(--white); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.shop-results { font-size: 14px; color: var(--gray); }
.shop-results strong { color: var(--dark); }

/* ACCESSIBILITY ISSUE: form-label-missing — sort select has no associated label */
.sort-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
}

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ─── Product Detail ─── */
.product-detail-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 64px;
  gap: 56px;
}

.product-gallery { flex: 1; }

.main-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 12px;
}

.main-img .product-placeholder { font-size: 100px; }

.thumb-row { display: flex; gap: 10px; }

.thumb {
  width: 70px; height: 90px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb.active { border-color: var(--dark); }
.thumb .product-placeholder { font-size: 28px; }

.product-info { width: 420px; flex-shrink: 0; padding-top: 8px; }

.product-info-brand { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }

.product-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars { color: var(--gold); letter-spacing: -1px; }
.rating-count { font-size: 12px; color: var(--gray); }

.product-price-detail {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
}

.product-price-detail .original { font-size: 16px; font-weight: 400; color: var(--gray); text-decoration: line-through; margin-right: 8px; }

.product-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ACCESSIBILITY ISSUE: form-group-not-labeled — color/size selectors have no group label via aria-labelledby */
.option-group { margin-bottom: 20px; }

.option-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

.option-label span { color: var(--gray); font-weight: 400; text-transform: none; letter-spacing: 0; }

.color-options { display: flex; gap: 8px; }

.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  /* Input type radio hidden, custom div used — ACCESSIBILITY ISSUE: control-role-name-missing */
}

.color-swatch.active { border-color: var(--dark); transform: scale(1.1); }

.size-options { display: flex; gap: 8px; flex-wrap: wrap; }

.size-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover  { border-color: var(--dark); }
.size-btn.active { border-color: var(--dark); background: var(--dark); color: var(--white); }

/* ACCESSIBILITY ISSUE: control-state-disabled — sold-out size looks disabled but has no aria-disabled */
.size-btn.sold-out {
  color: #ccc;
  border-color: var(--border);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.45;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

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

/* ACCESSIBILITY ISSUE: control-role-name-missing — div used as button with no role */
.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
  user-select: none;
  color: var(--gray);
  transition: background 0.1s;
}
.qty-btn:hover { background: var(--light); }

.qty-num {
  width: 48px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn {
  flex: 1;
  padding: 14px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.add-to-cart-btn:hover { background: #2a2a2a; }

/* ACCESSIBILITY ISSUE: expand-collapse-state — product info accordion has no aria-expanded */
.info-accordion { margin-top: 28px; }

.accordion-item { border-top: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: 1px solid var(--border); }

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}

.accordion-icon { font-size: 20px; color: var(--gray); transition: transform 0.2s; }
.accordion-icon.open { transform: rotate(45deg); }

.accordion-body { display: none; padding-bottom: 16px; }
.accordion-body.open { display: block; }

.accordion-body p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ─── Cart ─── */
.cart-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 64px;
  gap: 40px;
}

.cart-items { flex: 1; }
.cart-summary { width: 340px; flex-shrink: 0; }

.cart-title { font-size: 24px; font-weight: 800; margin-bottom: 24px; }

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 100px; height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img .product-placeholder { font-size: 36px; }

.cart-item-details { flex: 1; }

.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--gray); margin-bottom: 12px; }

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* ACCESSIBILITY ISSUE: control-role-name-missing — qty +/- are divs acting as buttons */
.cart-qty-btn {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  color: var(--gray);
}

.cart-qty-btn:hover { background: var(--light); }

.cart-qty-num {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  height: 34px;
  line-height: 34px;
}

.cart-item-price { font-size: 15px; font-weight: 700; }

/* ACCESSIBILITY ISSUE: control-name-inaccessible — remove button has no aria-label */
.remove-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  margin-left: 16px;
  transition: color 0.15s;
}
.remove-btn:hover { color: var(--red); }

.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty p { color: var(--gray); margin-bottom: 20px; font-size: 15px; }

.summary-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.summary-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 20px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
}

.summary-row.total {
  border-top: 1.5px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 800;
  font-size: 16px;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
  text-align: center;
  text-decoration: none;
}

.checkout-btn:hover { background: #2a2a2a; }

.promo-row { margin-top: 14px; display: flex; gap: 8px; }
.promo-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
}
.promo-row button {
  padding: 9px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ─── Checkout ─── */
.checkout-layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 64px;
  gap: 40px;
}

.checkout-form-col { flex: 1; }
.checkout-summary-col { width: 320px; flex-shrink: 0; }

.checkout-form-col h1 { font-size: 24px; font-weight: 800; margin-bottom: 28px; }

.form-section { margin-bottom: 32px; }
.form-section h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-full { margin-bottom: 14px; }

/* ACCESSIBILITY ISSUE: form-field-missing-label — visible label but no `for` association */
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }

/* ACCESSIBILITY ISSUE: form-label-missing — card inputs have no label */
.card-inputs { display: flex; flex-direction: column; gap: 10px; }

.card-field {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.card-field:focus { border-color: var(--gold); }
.card-field::placeholder { color: #bbb; }

.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ACCESSIBILITY ISSUE: form-group-not-labeled — payment radio group has no group label */
.payment-options { display: flex; flex-direction: column; gap: 10px; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}

.payment-option:hover { border-color: var(--gray); }
.payment-option.selected { border-color: var(--dark); background: #fafafa; }

.payment-option input { cursor: pointer; }
.payment-option label { cursor: pointer; font-size: 14px; font-weight: 500; }
.payment-option .payment-icon { margin-left: auto; font-size: 20px; }

/* ACCESSIBILITY ISSUE: control-state-disabled — button looks disabled but has no aria-disabled */
.place-order-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.15s;
}

.place-order-btn:hover { background: #2a2a2a; }
.place-order-btn.inactive { opacity: 0.45; cursor: default; }
.place-order-btn.inactive:hover { background: var(--dark); }

.checkout-mini-cart { position: sticky; top: 80px; }
.checkout-mini-cart h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }

.mini-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mini-cart-img {
  width: 64px; height: 80px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.mini-cart-img .product-placeholder { font-size: 22px; }

.mini-cart-info { flex: 1; }
.mini-cart-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.mini-cart-meta { font-size: 11px; color: var(--gray); }
.mini-cart-price { font-size: 13px; font-weight: 700; margin-top: 4px; }

/* ─── Login ─── */
.auth-wrap {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--light);
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.15s;
  font-family: inherit;
}

.auth-tab.active { color: var(--dark); border-bottom-color: var(--dark); }

/* ACCESSIBILITY ISSUE: form-label-missing — inputs use only placeholders, no <label> elements */
.auth-field {
  margin-bottom: 14px;
  position: relative;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.auth-field input:focus { border-color: var(--dark); }

.auth-field.has-toggle input { padding-right: 44px; }

/* ACCESSIBILITY ISSUE: control-name-inaccessible — show/hide password button has no label */
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray);
  padding: 4px;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
  font-family: inherit;
}

.auth-submit:hover { background: #2a2a2a; }

.auth-divider { text-align: center; color: var(--gray); font-size: 13px; margin: 16px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::after  { content: ''; position: absolute; right: 0; top: 50%; width: 42%; height: 1px; background: var(--border); }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  font-family: inherit;
  margin-bottom: 10px;
  transition: background 0.1s;
}
.social-btn:hover { background: var(--light); }

.auth-footer-text { text-align: center; font-size: 12px; color: var(--gray); margin-top: 20px; }
.auth-footer-text a { color: var(--dark); font-weight: 600; }

/* ─── Account ─── */
.account-layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 64px;
  gap: 40px;
}

.account-sidebar { width: 220px; flex-shrink: 0; }
.account-main { flex: 1; }

.account-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.account-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e8c47a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.account-name { font-size: 14px; font-weight: 700; }
.account-email { font-size: 12px; color: var(--gray); }

.account-nav { display: flex; flex-direction: column; gap: 2px; }

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.15s;
}

.account-nav a:hover, .account-nav a.active {
  background: var(--light);
  color: var(--dark);
}

.account-main h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.account-main .sub { font-size: 13px; color: var(--gray); margin-bottom: 24px; }

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-card-header h3 { font-size: 14px; font-weight: 700; }

/* ACCESSIBILITY ISSUE: control-name-inaccessible — edit button has no label */
.edit-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  transition: all 0.15s;
}
.edit-btn:hover { border-color: var(--dark); color: var(--dark); }

.profile-field { margin-bottom: 12px; }
.profile-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--gray); margin-bottom: 3px; }
.profile-field span { font-size: 14px; color: var(--dark); }

/* ─── Order Accordion ─── */
/* ACCESSIBILITY ISSUE: expand-collapse-state — order rows have no aria-expanded */
.order-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.order-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  background: #fafafa;
  transition: background 0.1s;
}

.order-header:hover { background: var(--light); }

.order-num { font-size: 14px; font-weight: 700; }
.order-date { font-size: 12px; color: var(--gray); }
.order-total { font-size: 14px; font-weight: 700; margin-left: auto; }
.order-status { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.order-status.delivered { background: #dcfce7; color: var(--green); }
.order-status.shipped { background: #dbeafe; color: #2563eb; }
.order-status.processing { background: #fef3c7; color: #d97706; }
.order-chevron { font-size: 12px; color: var(--gray); transition: transform 0.2s; }
.order-chevron.open { transform: rotate(180deg); }

.order-body { display: none; padding: 20px; border-top: 1px solid var(--border); }
.order-body.open { display: block; }

.order-product { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-product:last-child { border-bottom: none; }
.order-product-img { width: 56px; height: 72px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.order-product-img .product-placeholder { font-size: 20px; }
.order-product-info { flex: 1; }
.order-product-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.order-product-meta { font-size: 12px; color: var(--gray); }
.order-product-price { font-size: 13px; font-weight: 700; }

/* ─── Badges/Chips ─── */
.tag-new { background: #dcfce7; color: var(--green); padding: 3px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-sale { background: #fee2e2; color: var(--red); padding: 3px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Misc ─── */
.text-muted { color: var(--gray); }
.text-sm    { font-size: 13px; }
.mt-4       { margin-top: 16px; }
.mb-0       { margin-bottom: 0 !important; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .main-nav { display: none; }
  .section  { padding: 40px 16px; }
  .hero h1  { font-size: 34px; }
  .product-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-grid { grid-template-columns: 1fr; }
  .shop-layout, .product-detail-layout, .cart-layout, .checkout-layout, .account-layout { flex-direction: column; padding: 16px; }
  .shop-sidebar, .product-info, .cart-summary, .checkout-summary-col, .account-sidebar { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding: 12px 16px; }
}

/* ── Toast notifications (app.js) ── */
#vc-rack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.vc-toast {
  background: #111318;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 300px;
  line-height: 1.4;
}
.vc-toast--in { opacity: 1; transform: translateX(0); }
.vc-toast--error { background: #991b1b; }

/* ── Wishlist active state ── */
.wishlist-btn.wl-active { color: #e11d48; }
.icon-btn.wl-active { color: #e11d48; }

/* ── Order confirmation modal ── */
.order-modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.2s ease;
}
@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }
.order-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.order-modal-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.order-modal-box p  { color: var(--gray); margin-bottom: 6px; line-height: 1.55; }
.order-modal-btn-primary {
  display: block; padding: 14px;
  background: var(--dark); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  font-size: 14px; text-decoration: none;
  margin-top: 24px; margin-bottom: 10px;
  transition: opacity 0.2s;
}
.order-modal-btn-primary:hover { opacity: 0.85; }
.order-modal-btn-secondary {
  display: block; padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius); font-weight: 600;
  font-size: 14px; text-decoration: none;
  color: var(--dark);
}

/* ── Checkout card label helper ── */
.card-inputs label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 4px;
  margin-top: 12px;
}
.card-inputs label:first-child { margin-top: 0; }
.card-inputs > div { flex: 1; }

/* ─── Skip Link ─── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 6px;
  z-index: 9999;
  background: var(--dark);
  color: var(--white);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ─── Global focus ring ─── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* Remove default outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* ─── Keyboard-clickable divs ─── */
[tabindex="0"]:not(input):not(select):not(textarea):not(a):not(button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Color swatch focus ─── */
.color-swatch:focus-visible,
.color-swatch-filter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 50%;
}

/* ─── Size button focus ─── */
.size-btn:focus-visible,
.size-btn-filter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── Auth tab focus ─── */
.auth-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── Qty stepper div focus ─── */
.qty-btn:focus-visible,
.cart-qty-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Filter header focus ─── */
.filter-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ─── Product card focus (role=link) ─── */
.product-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ─── Accordion trigger focus ─── */
.accordion-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── Order header focus ─── */
.order-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}
