/* =========================================================
   Purefit Storefront Base
   ========================================================= */
:root {
  --ink: #0A0908;
  --ink2: #1C1A18;
  --ink3: #3A3630;
  --muted: #7A756E;
  --subtle: #B8B2AA;
  --ghost: #D8D2C8;
  --cream: #F5F2ED;
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --ember: #C8390A;
  --ember2: #E84C1E;
  --ember3: #FF6B3D;
  --ember-dim: rgba(200, 57, 10, 0.08);
  --ember-border: rgba(200, 57, 10, 0.20);
  --surf: #FFFFFF;
  --surf2: #F5F2ED;
  --surf3: #EFEBE5;
  --line: rgba(10, 9, 8, 0.08);
  --line2: rgba(10, 9, 8, 0.14);
  --line3: rgba(10, 9, 8, 0.22);
  --gold: #D4A017;
  --gold-l: #E8C035;
  --gold-t: #F0C840;
  --success-bg: #E8F5EE;
  --success-text: #1A7A45;
  --info-bg: #E8F0FF;
  --info-text: #2856C8;
  --warn-bg: #FFF5E0;
  --warn-text: #9A6600;
  --danger-bg: #FFE8E8;
  --danger-text: #C82828;
  --s1: 0 1px 4px rgba(10, 9, 8, 0.06);
  --s2: 0 4px 16px rgba(10, 9, 8, 0.09);
  --s3: 0 12px 40px rgba(10, 9, 8, 0.14);
  --s4: 0 24px 80px rgba(10, 9, 8, 0.18);
  --sE: 0 8px 32px rgba(200, 57, 10, 0.22);
  --r4: 4px;
  --r8: 8px;
  --r12: 12px;
  --r16: 16px;
  --r24: 24px;
  --rpill: 999px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Geist', 'SF Pro Display', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast: cubic-bezier(0.4, 0, 1, 1);
  --bar-h: 36px;
  --nav-h: 64px;
  --bot-h: 72px;
  --side-w: 72px;
  --max-w: 1400px;
}

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--ember);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-thumb {
  background: var(--ghost);
  border-radius: 1px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

#body-area {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

#main-scroll {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }
}

.w {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  box-sizing: border-box;
}

.pad {
  padding-inline: 20px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .pad {
    padding-inline: 32px;
  }
}

@media (min-width: 1200px) {
  .pad {
    padding-inline: 48px;
  }
}


.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-section {
  padding: 24px 20px 32px;
}

@media (min-width: 768px) {
  .page-section {
    padding: 32px;
  }
}

.section-wrap {
  padding-top: 34px;
}

@media (min-width: 768px) {
  .section-wrap {
    padding-top: 42px;
  }
}

@media (min-width: 1024px) {
  body[data-page="index"] #main-scroll > .section-wrap:first-of-type,
  body[data-page="index"] #main-scroll > .flash-banner + .section-wrap {
    padding-top: 64px;
  }

  body[data-page="index"] .section-wrap > .section-head {
    padding-top: 10px;
    padding-bottom: 8px;
    margin-bottom: 32px;
  }

  body[data-page="index"] .home-categories-section > .home-categories-head {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 14px;
  }
}

.section-head,
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .section-head,
  .page-head {
    margin-bottom: 24px;
  }
}

.section-title,
.page-header-title,
.empty-title,
.surface-title {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  line-height: 1.05;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
  min-width: 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 34px;
  }
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink3);
  text-transform: uppercase;
  transition: color .25s var(--ease);
}

.section-link:hover {
  color: var(--ember);
}

.section-link:focus-visible {
  outline: 2px solid rgba(232, 76, 30, .45);
  outline-offset: 3px;
  border-radius: var(--r8);
}

.section-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.surface-card {
  background: var(--surf);
  border: 1.5px solid var(--line);
  border-radius: var(--r16);
  box-shadow: var(--s1);
}

.surface-card + .surface-card {
  margin-top: 14px;
}

.surface-inner {
  padding: 18px;
}

.surface-title {
  font-size: 22px;
  font-weight: 600;
}

.surface-sub {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 14px;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-header {
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .page-header {
    padding: 32px 32px 24px;
  }
}

.page-header-title {
  font-size: 32px;
  font-weight: 600;
}

.page-header-sub {
  font-size: 13px;
  color: var(--subtle);
  margin-top: 4px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.breadcrumbs a {
  transition: color .2s var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs .current {
  color: var(--ink);
}

.spacer {
  height: 32px;
  flex-shrink: 0;
}

.divider-line {
  height: 1px;
  background: var(--line);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--r12);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(26, 122, 69, 0.16);
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid rgba(200, 40, 40, 0.16);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--rpill);
}

.status-delivered {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-shipped {
  background: var(--info-bg);
  color: var(--info-text);
}

.status-processing,
.status-confirmed,
.status-pending {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.status-cancelled,
.status-refunded {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.text-muted {
  color: var(--muted);
}

.text-subtle {
  color: var(--subtle);
}

.text-danger {
  color: var(--ember);
}

.g1 { background: linear-gradient(135deg, #EEF2FF, #DDE4FF); }
.g2 { background: linear-gradient(135deg, #FFF4EF, #FFDDD0); }
.g3 { background: linear-gradient(135deg, #F0FAF4, #CCF0DA); }
.g4 { background: linear-gradient(135deg, #FFFBF0, #FFE9A0); }
.g5 { background: linear-gradient(135deg, #F0FAFF, #C0E8FF); }
.g6 { background: linear-gradient(135deg, #FFF0F5, #FFCCE0); }
.g7 { background: linear-gradient(135deg, #F8FAF0, #EEF2D0); }
.g8 { background: linear-gradient(135deg, #F5F0FF, #DDD0FF); }

.rich-content,
.blog-content {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  line-height: 1.15;
  margin: 28px 0 12px;
}

.rich-content p,
.blog-content p,
.rich-content ul,
.blog-content ul,
.rich-content ol,
.blog-content ol,
.rich-content blockquote,
.blog-content blockquote {
  margin-bottom: 16px;
}

.rich-content ul,
.blog-content ul,
.rich-content ol,
.blog-content ol {
  padding-left: 20px;
  list-style: initial;
}

.rich-content blockquote,
.blog-content blockquote {
  padding: 18px 20px;
  background: var(--surf2);
  border-left: 3px solid var(--ember);
  border-radius: var(--r12);
  color: var(--ink3);
}

.rich-content a,
.blog-content a {
  color: var(--ember);
}

.support-feedback-shell {
  max-width: 760px;
}

.info-page-shell {
  max-width: 920px;
}

@media (min-width: 1200px) {
  body[data-page="index"],
  body[data-page="contact"],
  body[data-page="faq"],
  body[data-page="blog"],
  body[data-page="community"],
  body[data-page="order-track"],
  body[data-page="support-satisfaction"],
  body[data-page="purefit-systems"],
  body[data-page="page"],
  body[data-page="shop"],
  body[data-page="categories"],
  body[data-page="product"],
  body[data-page="search"],
  body[data-page="deals"],
  body[data-page="flash-sales"],
  body[data-page="cart"],
  body[data-page="checkout"],
  body[data-page="wishlist"] {
    --max-w: none;
  }

  body[data-page="faq"] .faq-content-shell {
    max-width: none;
  }

  body[data-page="support-satisfaction"] .support-feedback-shell,
  body[data-page="page"] .info-page-shell {
    max-width: none;
  }
}
