/* ============================================
   Client Store — Design tokens
   ============================================ */
:root {
  --bg: #0B0F1A;
  --surface: #131826;
  --surface-alt: #1B2333;
  --border: #232B3D;
  --text: #EDF1F7;
  --text-muted: #8B96AC;
  --accent: #FF7A3D;      /* warm amber-orange — deals, CTAs */
  --accent-2: #4DE1C1;    /* mint-cyan — success, highlights */
  --danger: #FF5470;
  --radius: 10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
button { font-family: var(--font-body); cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.muted { color: var(--text-muted); }

/* ============================================
   Topbar + Header
   ============================================ */
.topbar {
  background: var(--surface-alt);
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
}
.topbar-inner a { color: var(--accent-2); }

.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.search-form {
  flex: 1;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 18px;
  color: var(--text);
  font-size: 14px;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: var(--accent);
  border: none;
  color: #1a0f08;
  padding: 0 18px;
  display: flex;
  align-items: center;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #1a0f08;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.account-link:hover { border-color: var(--accent); }
.account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a0f08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.main-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 20px;
}
.nav-inner a {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-inner a:hover, .nav-inner a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 600px 400px at 85% 20%, rgba(255,122,61,0.15), transparent),
    radial-gradient(ellipse 500px 400px at 10% 90%, rgba(77,225,193,0.10), transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 64px 20px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
}
.hero-stats div span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg { width: 100%; max-width: 340px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a0f08; }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============================================
   Sections / product grid
   ============================================ */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 26px; letter-spacing: -0.01em; }
.section-head .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 6px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-card .icon { font-size: 26px; margin-bottom: 10px; }
.category-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.category-card span { font-size: 12px; color: var(--text-muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-thumb {
  position: relative;
  background: var(--surface-alt);
  aspect-ratio: 1 / 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-thumb img { max-height: 100%; }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--accent-2); color: #06231d; }

.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-name { font-size: 15px; font-weight: 600; }
.product-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-now { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--accent); }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.product-actions { padding: 0 16px 16px; }

/* ============================================
   Banner
   ============================================ */
.promo-banner {
  background: linear-gradient(120deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.promo-banner h3 { font-size: 24px; margin-bottom: 8px; }

/* ============================================
   Breadcrumb / Page header
   ============================================ */
.page-header { padding: 32px 0 8px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--accent-2); }
.page-title { font-size: 28px; }

/* ============================================
   Shop layout
   ============================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.filter-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; color: var(--text-muted); }
.filter-box ul li { margin-bottom: 4px; }
.filter-box ul li a {
  display: flex;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.filter-box ul li a:hover, .filter-box ul li a.active { background: var(--surface-alt); color: var(--text); }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ============================================
   Product detail page
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 60px;
}
.pd-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-gallery img { max-width: 320px; }
.pd-info .product-cat { margin-bottom: 8px; }
.pd-info h1 { font-size: 30px; margin-bottom: 10px; }
.pd-rating { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; margin-bottom: 18px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pd-price .price-now { font-size: 30px; }
.pd-desc { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.qty-selector button {
  background: var(--surface);
  border: none;
  color: var(--text);
  width: 38px;
  height: 42px;
  font-size: 16px;
}
.qty-selector input {
  width: 46px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
}
.pd-add-row { display: flex; gap: 12px; margin-bottom: 28px; }

.spec-table { border-top: 1px solid var(--border); }
.spec-table div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-table div span:first-child { color: var(--text-muted); }

/* ============================================
   Cart page
   ============================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  padding: 32px 0 60px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 56px; height: 56px; object-fit: contain; background: var(--surface-alt); border-radius: 8px; padding: 8px; }
.cart-remove { color: var(--danger); font-size: 13px; background: none; border: none; }

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.summary-box h3 { font-size: 17px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.summary-row.total { color: var(--text); font-weight: 700; font-size: 17px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }

/* ============================================
   Auth pages (login / signup)
   ============================================ */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.auth-box h1 { font-size: 24px; margin-bottom: 6px; }
.auth-box > p { margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.auth-form input {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-size: 14px;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-error {
  background: rgba(255,84,112,0.12);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.auth-success {
  background: rgba(77,225,193,0.12);
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-switch a { color: var(--accent-2); font-weight: 600; }

.guest-notice {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.guest-notice a { color: var(--accent-2); font-weight: 600; }

/* ============================================
   Dashboard
   ============================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0 60px;
}
.dash-profile { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.dash-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a0f08;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.dash-profile strong { display: block; font-size: 15px; }

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.order-status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: capitalize; }
.status-pending { background: rgba(255,176,32,0.15); color: #FFB020; }
.status-completed { background: rgba(77,225,193,0.15); color: var(--accent-2); }
.status-cancelled { background: rgba(255,84,112,0.15); color: var(--danger); }
.order-items-list li { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--text-muted); }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; }

/* ============================================
   Footer
   ============================================ */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 48px 20px;
}
.footer-col h4 { font-size: 14px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 14px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--accent-2); }
.footer-col p { font-size: 13px; margin: 10px 0 0; }
.newsletter-form { display: flex; margin-top: 14px; gap: 8px; }
.newsletter-form input {
  flex: 1;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
}
.newsletter-form button {
  background: var(--accent);
  border: none;
  color: #1a0f08;
  font-weight: 600;
  font-size: 13px;
  padding: 0 16px;
  border-radius: 8px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 34px; }
  .shop-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; }
  .search-form { order: 3; flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-product { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* =========================================================
   Client Store Storefront Wide Layout V1
   Expands the public website working area while keeping
   comfortable responsive gutters on desktop/tablet/mobile.
   ========================================================= */
:root {
  --tb-site-max-width: 1680px;
  --tb-site-gutter: clamp(18px, 2.1vw, 34px);
}

.container {
  width: 100%;
  max-width: var(--tb-site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tb-site-gutter);
  padding-right: var(--tb-site-gutter);
}

/* Existing inner elements already carry horizontal padding.
   Remove the duplicate side inset on wide screens so the
   header, navigation and hero align to the same wider grid. */
.topbar-inner,
.header-inner,
.nav-inner,
.hero-inner {
  padding-left: var(--tb-site-gutter);
  padding-right: var(--tb-site-gutter);
}

@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
  }

  .category-strip {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 700px) {
  :root {
    --tb-site-gutter: 16px;
  }
}
