/* ═══════════════════════════════════════════════════════════
   A1 Prime — Core Design System
   Light mode. Editorial. Anti-template. Fashion-first.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --bg:           #F4F3EF;
  --bg-white:     #FFFFFF;
  --bg-dark:      #0F0F0F;
  --surface:      #ECEAE4;
  --surface2:     #E4E2DB;
  --border:       #D9D7D0;
  --border-dark:  #C8C5BC;
  --text:         #0C0C0B;
  --text-2:       #5C5B55;
  --text-3:       #9C9B94;
  --accent:       #E31E3A;
  --accent-2:     #C01830;
  --accent-pale:  #FDE8EB;
  --gold:         #D4A020;
  --white:        #FFFFFF;
  --black:        #0C0C0B;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;

  --header-h:     68px;
  --r:            4px;
  --r-md:         8px;
  --r-lg:         14px;

  --ease:         cubic-bezier(.25,.46,.45,.94);
  --ease-snap:    cubic-bezier(.34,1.56,.64,1);

  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow:       0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }

/* ── Container ── */
.container    { max-width: 1360px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 28px; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.1rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* ── Utility ── */
.text-muted   { color: var(--text-2); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.font-display { font-family: var(--font-display); }
.weight-800   { font-weight: 800; }
.py-section   { padding: 80px 0; }
.py-sm        { padding: 48px 0; }
.mt-1 { margin-top:  8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 28px; }
.mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ── Page wrapper ── */
.page-wrapper { padding-top: var(--header-h); min-height: 100vh; background: var(--bg); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: all .22s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.18);
  opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }

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

.btn-accent {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(227,30,58,.25);
}
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 8px 24px rgba(227,30,58,.35); }

.btn-outline-dark {
  background: transparent; color: var(--black);
  border-color: var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--white); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: var(--white); color: var(--black); }

.btn-sm  { padding: 8px 18px; font-size: .78rem; }
.btn-lg  { padding: 14px 36px; font-size: .92rem; }
.btn-xl  { padding: 16px 48px; font-size: 1rem; letter-spacing: .06em; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Ripple */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0);
  animation: rippleAnim .55s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--r);
  color: var(--text);
  padding: 12px 16px;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(12,12,11,.08); }
.form-control::placeholder { color: var(--text-3); }
.form-control option { background: var(--bg-white); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { font-size: .78rem; color: var(--accent); margin-top: 5px; }
.form-hint  { font-size: .78rem; color: var(--text-3); margin-top: 5px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Alerts ── */
.alert {
  padding: 13px 18px; border-radius: var(--r-md);
  margin-bottom: 20px; font-size: .875rem; font-weight: 500;
}
.alert-success { background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; }
.alert-danger  { background: var(--accent-pale); border: 1px solid rgba(227,30,58,.3); color: var(--accent-2); }
.alert-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }

/* ── Badge ── */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 2px; font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.badge-sale       { background: var(--accent); color: #fff; }
.badge-new        { background: var(--black); color: #fff; }
.badge-pending    { background: #FEF9C3; color: #854D0E; }
.badge-processing { background: #DBEAFE; color: #1E40AF; }
.badge-shipped    { background: #EDE9FE; color: #5B21B6; }
.badge-delivered  { background: #DCFCE7; color: #166534; }
.badge-cancelled  { background: var(--accent-pale); color: var(--accent-2); }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--black); color: var(--white);
  padding: 13px 20px; border-radius: var(--r-md);
  font-size: .85rem; font-weight: 500;
  transform: translateY(80px); opacity: 0;
  transition: all .3s var(--ease);
  z-index: 9999; max-width: 300px;
  box-shadow: var(--shadow-lg);
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ── Product Card ── */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease), border-color .28s;
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--border-dark);
}
.product-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.product-card-body { padding: 14px 14px 16px; }
.product-card-cat {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 4px;
}
.product-card-title {
  font-family: var(--font-body);
  font-size: .875rem; font-weight: 500;
  color: var(--text); line-height: 1.35; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-price {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800; letter-spacing: .01em;
}
.product-card-from { font-family: var(--font-body); font-size: .68rem; font-weight: 400; color: var(--text-3); display: block; margin-bottom: 1px; }
.product-card-atc {
  width: 36px; height: 36px;
  background: var(--black); color: var(--white);
  border: none; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 300;
  transition: background .2s, transform .2s var(--ease-snap);
  cursor: pointer;
}
.product-card-atc:hover { background: var(--accent); transform: scale(1.1); }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ── Section header ── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px;
}
.section-head .view-all {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.section-head .view-all:hover { color: var(--black); border-color: var(--black); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: .78rem; color: var(--text-3); margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .4; }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 56px; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-dark); border-radius: var(--r);
  color: var(--text-2); font-size: .85rem; font-weight: 600;
  transition: all .2s; text-decoration: none; background: var(--bg-white);
}
.page-btn:hover, .page-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  padding: 10px 16px; border-bottom: 2px solid var(--border-dark);
  color: var(--text-3); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .08em; text-align: left; font-weight: 700;
  background: var(--bg);
}
.data-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--bg); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: .3; }
.empty-state h3 { margin-bottom: 8px; font-size: 1.4rem; }
.empty-state p { color: var(--text-2); margin-bottom: 24px; font-size: .9rem; }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Responsive extras ── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .py-section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
}
