/* ============================================================
   RUUDRA SCOTT PLASTICS — DESIGN SYSTEM
   ============================================================
   Palette rationale: deep workshop-green + amber, evoking both
   the brand's leaf mark and the material world of cut sheet
   plastic (quarried, stacked, precision-cut). The recurring
   "spec ticket" perforated-edge motif throughout the site
   echoes the cut-to-size nature of the product itself.
   ============================================================ */

:root {
  /* ---- Color tokens (brand green #779745 — matches legacy site) ---- */
  --rs-brand: #779745;
  --rs-green-900: #4a5f2e;
  --rs-green-800: #779745;
  --rs-green-700: #668339;
  --rs-green-600: #8aab58;
  --rs-sage-500: #9bb56e;
  --rs-sage-300: #c5d4a8;
  --rs-sage-100: #e8f0dc;

  --rs-amber-700: #A85A1F;
  --rs-amber-600: #C9722C;
  --rs-amber-500: #DA8B45;
  --rs-amber-100: #F7E3CE;

  --rs-stone-50:  #FAF8F4;
  --rs-stone-100: #F3F0E9;
  --rs-stone-200: #E8E4DC;
  --rs-stone-300: #D9D3C6;

  --rs-ink-900: #15171A;
  --rs-ink-700: #3B3F3A;
  --rs-ink-500: #6B6F68;
  --rs-ink-300: #9A9D96;

  --rs-white: #FFFFFF;
  --rs-red-600: #B0432F;
  --rs-red-100: #F6DFD8;

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* ---- Scale ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(74, 95, 46, 0.06), 0 1px 1px rgba(74, 95, 46, 0.04);
  --shadow-md: 0 6px 16px rgba(74, 95, 46, 0.08), 0 2px 4px rgba(74, 95, 46, 0.05);
  --shadow-lg: 0 16px 40px rgba(74, 95, 46, 0.14), 0 4px 10px rgba(74, 95, 46, 0.06);
  --shadow-stack: 0 1px 0 var(--rs-stone-300), 0 4px 0 -1px var(--rs-stone-200), 0 4px 1px -1px rgba(18,40,33,0.08);

  --container-max: 1280px;
  --header-h: 76px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--rs-ink-900);
  background: var(--rs-stone-50);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--rs-amber-600);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--rs-green-900);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-amber-600);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce-bar {
  background: var(--rs-green-900);
  color: var(--rs-sage-100);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.announce-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}
.announce-bar .announce-left { display: flex; gap: 24px; align-items: center; }
.announce-bar a { color: var(--rs-sage-100); }
.announce-bar a:hover { color: var(--rs-amber-500); }
.announce-bar .vat-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  padding: 3px 4px;
}
.announce-bar .vat-toggle button {
  background: none; border: none; color: var(--rs-sage-300);
  font-family: var(--font-mono); font-size: 0.74rem;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.announce-bar .vat-toggle button.active { background: var(--rs-amber-600); color: var(--rs-white); }
@media (max-width: 760px) {
  .announce-bar .announce-left span:nth-child(2),
  .announce-bar .announce-left span:nth-child(3) { display: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-stone-200);
}
.header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--rs-green-900);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--rs-amber-600);
  font-weight: 600;
  text-transform: uppercase;
}

.header-search {
  grid-column: 2;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--rs-stone-300);
  border-radius: var(--radius-pill);
  background: var(--rs-white);
  padding: 0 20px 0 44px;
  font-size: 0.95rem;
  color: var(--rs-ink-900);
  transition: border-color 0.15s;
}
.header-search input:focus { border-color: var(--rs-green-600); outline: none; }
.header-search input::placeholder { color: var(--rs-ink-300); }
.header-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: var(--rs-ink-500);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  color: var(--rs-green-900);
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--rs-stone-200); }
.icon-btn svg { width: 22px; height: 22px; stroke-width: 1.7; }
.icon-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--rs-amber-600);
  color: var(--rs-white);
  font-size: 0.62rem;
  font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
}
.btn-profile {
  display: flex; align-items: center; gap: 8px;
  background: var(--rs-green-800);
  color: var(--rs-white);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-profile:hover { background: var(--rs-green-700); }
.btn-profile svg { width: 17px; height: 17px; }

/* ---- Nav row ---- */
.nav-row {
  border-top: 1px solid var(--rs-stone-200);
  background: var(--rs-white);
}
.nav-row .container { display: flex; align-items: center; gap: 6px; height: 52px; }
.cat-trigger {
  display: flex; align-items: center; gap: 10px;
  background: var(--rs-green-800);
  color: var(--rs-white);
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: background 0.15s;
  position: relative;
}
.cat-trigger:hover { background: var(--rs-green-700); }
.cat-trigger svg { width: 17px; height: 17px; }

.primary-nav { display: flex; gap: 2px; overflow-x: auto; }
.primary-nav a {
  display: flex; align-items: center;
  height: 38px; padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500;
  color: var(--rs-ink-700);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.primary-nav a:hover, .primary-nav a.active { background: var(--rs-stone-200); color: var(--rs-green-900); }

/* ---- Mega menu ---- */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--rs-white);
  border: 1px solid var(--rs-stone-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 90;
  display: none;
}
.mega-menu.open { display: block; }
.mega-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  color: var(--rs-ink-700);
}
.mega-menu a:hover { background: var(--rs-sage-100); color: var(--rs-green-900); }
.mega-menu a .count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--rs-ink-300); }

/* ---- Mobile nav ---- */
.mobile-bar { display: none; }
.mobile-menu-panel { display: none; }

@media (max-width: 980px) {
  .header-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .header-search { display: none; }
  .nav-row { display: none; }
  .header-main { height: 64px; }
  .logo-text { font-size: 1.08rem; }
  .btn-profile span { display: none; }
  .btn-profile { padding: 10px; width: 44px; height: 44px; justify-content: center; }
  .header-actions { margin-left: auto; }
  .mobile-bar { display: flex; padding: 10px 0 14px; gap: 10px; background: var(--rs-white); }
  .mobile-bar .header-search { display: block; flex: 1; grid-column: auto; max-width: none; }
  .mobile-bar .header-search input { height: 42px; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .header-main { height: 58px; gap: 8px; }
  .header-actions { gap: 2px; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .btn-profile { width: 40px; height: 40px; padding: 8px; }
  .mobile-bar { padding: 6px 0 10px; }
  .mobile-bar .header-search input { height: 40px; font-size: 0.88rem; padding-left: 40px; }
  .announce-bar .container { padding-top: 6px; padding-bottom: 6px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.84rem;
  color: var(--rs-ink-500);
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a:hover { color: var(--rs-green-700); }
.breadcrumb .sep { color: var(--rs-stone-300); }
.breadcrumb .current { color: var(--rs-ink-900); font-weight: 500; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rs-amber-600); color: var(--rs-white); }
.btn-primary:hover { background: var(--rs-amber-700); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--rs-green-900); color: var(--rs-white); }
.btn-dark:hover { background: var(--rs-green-800); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--rs-stone-300); color: var(--rs-ink-900); }
.btn-outline:hover { border-color: var(--rs-green-700); color: var(--rs-green-800); }
.btn-ghost { background: transparent; color: var(--rs-green-800); height: auto; padding: 0; }
.btn-ghost:hover { color: var(--rs-amber-600); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 0.84rem; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--rs-stone-300); color: var(--rs-ink-300); cursor: not-allowed; }

/* ============================================================
   CARDS — Category & Product
   ============================================================ */
.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
}
.category-chip {
  flex-shrink: 0;
  width: 132px;
  text-align: center;
  padding: 18px 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rs-stone-200);
  background: var(--rs-white);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.category-chip:hover { border-color: var(--rs-sage-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.category-chip .chip-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--rs-sage-100);
  display: grid; place-items: center;
}
.category-chip .chip-icon svg { width: 22px; height: 22px; stroke: var(--rs-green-800); }
.category-chip span { font-size: 0.8rem; font-weight: 600; color: var(--rs-ink-700); line-height: 1.3; }

.product-card {
  background: var(--rs-white);
  border: 1px solid var(--rs-stone-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--rs-stone-300); }
.product-card .card-media {
  position: relative;
  aspect-ratio: 1 / 0.82;
  background: var(--rs-stone-100);
  overflow: hidden;
}
.product-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--rs-green-900);
  color: var(--rs-white);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
}
.product-card .wish-btn {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}
.product-card .wish-btn:hover { background: var(--rs-white); }
.product-card .wish-btn svg { width: 17px; height: 17px; stroke: var(--rs-green-900); }
.product-card .card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card .card-cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rs-amber-600);
  font-weight: 600;
}
.product-card .card-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--rs-ink-900);
  line-height: 1.3;
}
.product-card .card-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--rs-ink-500);
}
.rating-pill {
  display: flex; align-items: center; gap: 3px;
  background: var(--rs-sage-100);
  color: var(--rs-green-800);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}
.rating-pill svg { width: 11px; height: 11px; fill: var(--rs-green-800); }
.product-card .card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}
.card-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.08rem; color: var(--rs-green-900); }
.card-price .from { font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--rs-ink-500); display: block; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 30px 0; }
.section-tight { padding: 36px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-header .view-all {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rs-green-800);
  border-bottom: 1.5px solid var(--rs-amber-600);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-header .view-all:hover { color: var(--rs-amber-600); }

.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 460px) { .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 640px) {
  .section { padding: 24px 0; }
  .section-tight { padding: 28px 0; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 10px;
  }
  .section-header h2 { font-size: clamp(1.35rem, 5.5vw, 1.65rem); }
  .section-header .view-all { font-size: 0.76rem; }
  .product-card .card-body { padding: 10px 12px 12px; gap: 6px; }
  .product-card .card-title {
    font-size: 0.84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card .card-cat { font-size: 0.6rem; }
  .product-card .card-rating { display: none; }
  .card-price { font-size: 0.92rem; }
  .card-price .from { font-size: 0.62rem; }
  .product-card .card-footer { gap: 6px; padding-top: 4px; }
  .product-card .card-footer .btn-sm {
    height: 34px;
    padding: 0 10px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
  .product-card .card-tag { font-size: 0.58rem; padding: 4px 7px; top: 8px; left: 8px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--rs-green-900);
  color: var(--rs-sage-300);
  margin-top: 64px;
}
.footer-top { padding: 48px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 32px 36px;
  align-items: start;
}
.footer-brand .logo-text { color: var(--rs-white); }
.footer-brand p { margin-top: 12px; font-size: 0.88rem; line-height: 1.65; color: var(--rs-sage-300); max-width: 300px; }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-item .ic {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center; flex-shrink: 0;
}
.footer-contact-item .ic svg { width: 16px; height: 16px; stroke: var(--rs-amber-500); }
.footer-contact-item .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rs-sage-500); font-family: var(--font-mono); }
.footer-contact-item .value { font-size: 0.9rem; color: var(--rs-white); font-weight: 500; }
.footer-contact-item .value a { color: inherit; text-decoration: none; }
.footer-contact-item .value a:hover { color: var(--rs-amber-500); }

.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--rs-amber-500);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0; padding: 0; }
.footer-col a { font-size: 0.87rem; color: var(--rs-sage-300); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--rs-white); }
.footer-col .footer-view-all { margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-col .footer-view-all a { color: var(--rs-amber-500); font-weight: 600; font-size: 0.82rem; }
.footer-col .footer-view-all a:hover { color: var(--rs-white); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background 0.15s;
}
.footer-social a:hover { background: var(--rs-amber-600); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--rs-white); }

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.12);
}
.footer-bottom {
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--rs-sage-500);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .pay-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-bottom .pay-icons .footer-pay-logos {
  display: block;
  height: 90px;
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
  background: var(--rs-white);
  border-radius: 4px;
  padding: 4px 8px;
}
@media (max-width: 560px) {
  .footer-bottom .pay-icons .footer-pay-logos {
    height: 28px;
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
}
@media (max-width: 560px) {
  .footer-top { padding: 36px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { margin-top: 40px; }
}
@media (max-width: 640px) {
  .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
  .back-to-top svg { width: 18px; height: 18px; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--rs-green-800);
  color: var(--rs-white);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  transition: background 0.15s;
}
.back-to-top:hover { background: var(--rs-amber-600); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   SPEC TICKET — signature motif (perforated cut-sheet card)
   used for order summaries / bag / checkout panels
   ============================================================ */
.spec-ticket {
  background: var(--rs-white);
  border: 1px solid var(--rs-stone-200);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.spec-ticket::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0;
  border-top: 2px dashed var(--rs-stone-300);
  top: var(--perf-y, 0px);
  display: var(--perf-display, none);
}
.spec-ticket .ticket-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px dashed var(--rs-stone-300);
}
.spec-ticket .ticket-head h3 { font-size: 1.05rem; }
.spec-ticket .ticket-body { padding: 20px 22px; }
.spec-ticket .ticket-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  font-size: 0.92rem;
}
.spec-ticket .ticket-row .k { color: var(--rs-ink-500); }
.spec-ticket .ticket-row .v { font-family: var(--font-mono); font-weight: 600; color: var(--rs-ink-900); }
.spec-ticket .ticket-divider { border-top: 1px dashed var(--rs-stone-300); margin: 8px 0; }
.spec-ticket .ticket-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px;
}
.spec-ticket .ticket-total .k { font-weight: 600; color: var(--rs-ink-900); }
.spec-ticket .ticket-total .v { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--rs-amber-600); }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--rs-ink-700); }
.field label .req { color: var(--rs-amber-600); }
.field input, .field textarea, .field select {
  height: 48px;
  border: 1.5px solid var(--rs-stone-300);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 0.94rem;
  font-family: var(--font-body);
  color: var(--rs-ink-900);
  background: var(--rs-white);
  transition: border-color 0.15s;
}
.field textarea { height: auto; padding: 14px 16px; min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rs-green-600); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--rs-ink-300); }

/* ============================================================
   ACCOUNT SIDEBAR (used on profile/orders/wishlist/addresses)
   ============================================================ */
.account-header {
  background: linear-gradient(135deg, var(--rs-amber-600), var(--rs-amber-700));
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--rs-white);
}
.account-header h3 { color: var(--rs-white); font-size: 1.2rem; }
.account-header .meta { font-size: 0.86rem; opacity: 0.92; margin-top: 6px; }
.account-header a {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-weight: 600; font-size: 0.88rem;
  border-bottom: 1.5px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
}
.account-nav {
  background: var(--rs-white);
  border: 1px solid var(--rs-stone-200);
  border-radius: var(--radius-lg);
  margin-top: 16px;
  overflow: hidden;
}
.account-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--rs-ink-700);
  border-bottom: 1px solid var(--rs-stone-100);
  transition: background 0.15s, color 0.15s;
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a svg { width: 19px; height: 19px; stroke-width: 1.7; }
.account-nav a:hover { background: var(--rs-sage-100); }
.account-nav a.active { background: var(--rs-amber-100); color: var(--rs-amber-700); font-weight: 600; }
.account-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-placed { background: var(--rs-amber-100); color: var(--rs-amber-700); }
.badge-shipped { background: #DCE8F5; color: #2A5E8C; }
.badge-delivered { background: var(--rs-sage-100); color: var(--rs-green-800); }
.badge-cancelled { background: var(--rs-red-100); color: var(--rs-red-600); }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--rs-white);
  border: 1px dashed var(--rs-stone-300);
  border-radius: var(--radius-lg);
}
.empty-state svg { width: 64px; height: 64px; stroke: var(--rs-stone-300); margin: 0 auto 18px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--rs-ink-500); font-size: 0.92rem; }

/* ============================================================
   UTILITY
   ============================================================ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--rs-ink-500); }
.divider { height: 1px; background: var(--rs-stone-200); border: none; margin: 24px 0; }
