/* === Bathini Fiber — Luxury Main Stylesheet === */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --brand: #D9A648; /* Lustrous Gold */
  --brand-dark: #b5832f; /* Darker Gold */
  --brand-light: #f4d08b; /* Lighter Gold */
  --gold: #D9A648; /* Lustrous Gold */
  --bg: #0E1114; /* Midnight Slate Background */
  --surface: #14191E; /* Dark Obsidian Slate Surface */
  --surface-card: #181F26; /* Slightly lighter for cards/sections */
  --ink: #E2E8F0; /* Warm Light Ivory for readability */
  --muted: #8E9AA8; /* Desaturated Cool Grey */
  --border: #242D38; /* Distinct framed borders */
  --accent: #944431; /* Rust Bronze for CTA */
  --accent-hover: #b8543f; /* Lighter Rust Bronze */
  --danger: #E05A47;
  --success: #46B37A;
  --warn: #E0B347;
  --radius: 8px; /* Clean crisp boutique styling */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --gold-glow: 0 0 20px rgba(217, 166, 72, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.2px;
}

/* Base fade-in animation for pages */
main.main {
  animation: pageFadeIn 0.5s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--brand-light);
  text-decoration: none;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  color: var(--gold);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: 0.3px;
}
h1 { font-size: 38px; font-weight: 600; }
h2 { font-size: 30px; font-weight: 500; }
h3 { font-size: 22px; font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container.narrow { max-width: 880px; margin: 0 auto; }
.section { padding: clamp(60px, 7vw, 100px) 0; }
.muted { color: var(--muted); font-size: 14px; }
.text-center { text-align: center; }

/* === Topbar & Header === */
.topbar {
  background: #080A0C;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.6px;
}
.topbar strong { color: var(--gold); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(16px, 2vw, 28px) clamp(24px, 4vw, 64px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: var(--bg);
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}
.brand-mark.big { width: 72px; height: 72px; font-size: 28px; border-radius: 12px; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 24px; color: var(--gold); }

.search { display: flex; max-width: 480px; width: 100%; position: relative; }
.search input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
}
.search input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 8px rgba(217, 166, 72, 0.1);
}
.search button {
  background: var(--gold);
  color: var(--bg);
  border: 0;
  padding: 0 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.search button:hover { background: var(--brand-light); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--ink); font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--gold); text-decoration: none; }
.cart-link { position: relative; color: var(--gold); font-size: 22px; transition: var(--transition); display: inline-flex; align-items: center; }
.cart-link:hover { transform: scale(1.05); }
.cart-count {
  position: absolute;
  top: -8px; right: -12px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
  min-width: 18px; text-align: center;
  box-shadow: var(--shadow-sm);
}

.primary-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.primary-nav .container {
  display: flex;
  justify-content: center;
  padding: 0 clamp(24px, 4vw, 64px);
}
.primary-nav ul {
  display: flex; gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.primary-nav a {
  display: block;
  color: var(--ink);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: var(--transition);
}
.primary-nav a:hover, .primary-nav a.active {
  background: var(--bg);
  color: var(--gold);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.5px;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-primary { background: var(--accent); color: white; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--bg); }
.btn-block { width: 100%; display: block; margin-top: 12px; }
.btn-lg { padding: 15px 32px; font-size: 15px; }

.link-btn { background: none; border: 0; color: var(--gold); cursor: pointer; padding: 0; font-size: inherit; font-family: inherit; transition: var(--transition); }
.link-btn:hover { text-decoration: none; color: var(--brand-light); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { color: #ff7e6b; }
.link-arrow { color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.link-arrow:hover { color: var(--brand-light); transform: translateX(3px); }

/* === Flash messages === */
.flash-stack {
  position: fixed;
  top: 88px; right: 24px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px;
  width: 100%;
}
.flash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  color: var(--ink);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--danger); }
.flash-close { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); padding: 0 0 0 12px; transition: var(--transition); }
.flash-close:hover { color: var(--ink); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* === Hero === */
.hero {
  background: linear-gradient(180deg, rgba(20, 25, 30, 0.98) 0%, var(--bg) 100%);
  min-height: calc(100vh - 72px);
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(217, 166, 72, 0.14), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(148, 68, 49, 0.08), transparent 18%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 96px 24px;
}
.eyebrow {
  display: inline-block;
  background: rgba(217, 166, 72, 0.08);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(217, 166, 72, 0.2);
}
.hero-text h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 600;
}
.hero-text .accent {
  color: var(--gold);
  text-shadow: var(--gold-glow);
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 640px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 166, 72, 0.2) 0%, rgba(148, 68, 49, 0.05) 70%);
  opacity: 0.5;
  filter: blur(40px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
  height: 100%;
  width: min(100%, 600px);
}
.hero-grid > div {
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface) 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  min-height: 155px;
}
.hero-grid > div:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--gold-glow), var(--shadow);
}
.hero-grid > div:nth-child(2) {
  transform: translateY(24px);
}
.hero-grid > div:nth-child(2):hover {
  transform: translateY(19px);
}
.hero-grid > div:nth-child(3) {
  transform: translateY(-24px);
}
.hero-grid > div:nth-child(3):hover {
  transform: translateY(-29px);
}

/* === Trust bar === */
.trust-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.trust-grid > div {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 10px;
  border-right: 1px solid var(--border);
}
.trust-grid > div:last-child { border-right: none; }
.trust-grid strong { color: var(--gold); font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.trust-grid span { color: var(--muted); font-size: 13px; }

/* === Section heads === */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.section-head h2 { margin: 0; }

/* === Category grid === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.category-card {
  display: block;
  background: var(--surface-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--ink);
}
.category-card:hover { transform: translateY(-4px) scale(1.015); border-color: var(--gold); box-shadow: var(--gold-glow), var(--shadow); text-decoration: none; }
.category-card img, .category-card .placeholder-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: var(--transition); }
.category-card:hover img { transform: scale(1.04); }
.category-card-body { padding: 18px 20px; background: var(--surface); border-top: 1px solid var(--border); }
.category-card-body h3 { font-size: 18px; margin: 0 0 6px; color: var(--gold); }
.category-card-body span { font-size: 13px; color: var(--muted); }

/* === Product grid & card === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}
.product-card {
  display: block;
  background: var(--surface-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--ink);
}
.product-card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--gold); box-shadow: var(--gold-glow), var(--shadow); text-decoration: none; }
.product-card-img { position: relative; aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.placeholder-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--border) 100%);
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.placeholder-large { aspect-ratio: 1; min-height: 400px; }
.category-placeholder { font-size: 64px; }
.badge {
  position: absolute;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.badge-discount { top: 12px; left: 12px; background: var(--accent); color: white; border: 1px solid rgba(255,255,255,0.1); }
.badge-featured { top: 12px; right: 12px; background: var(--gold); color: var(--bg); font-weight: 800; }
.product-card-body { padding: 18px 20px; background: var(--surface); border-top: 1px solid var(--border); }
.product-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.product-card-body h3 { font-size: 16px; margin: 6px 0 10px; line-height: 1.4; min-height: 44px; color: var(--ink); }
.price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-row.big { font-size: 22px; }
.price { color: var(--gold); font-weight: 700; font-size: 17px; }
.price-row.big .price { font-size: 30px; }
.price-strike { color: var(--muted); text-decoration: line-through; font-size: 14px; }

/* === Shop layout === */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
.shop-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky; top: 100px;
}
.shop-filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 14px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 6px; }
.filter-list a {
  display: block; padding: 10px 14px;
  border-radius: 6px; color: var(--ink);
  font-size: 14px;
  transition: var(--transition);
}
.filter-list a:hover, .filter-list a.active {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.page-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; gap: 14px; }
.empty-state { text-align: center; padding: 72px 24px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border); }

.pagination { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  transition: var(--transition);
}
.pagination a.active, .pagination a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); text-decoration: none; font-weight: 700; }

/* === Product detail === */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--muted); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--gold); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.product-detail-img { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.product-detail-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail-info h1 { font-size: 34px; margin: 10px 0; color: var(--gold); }
.stock { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.stock.in-stock { color: var(--success); }
.stock.out-stock { color: var(--danger); }
.description { color: var(--ink); opacity: 0.9; margin: 24px 0; line-height: 1.7; font-size: 15px; }
.add-to-cart-form { display: flex; gap: 16px; align-items: flex-end; margin: 24px 0; flex-wrap: wrap; }
.qty-input { display: flex; flex-direction: column; gap: 8px; }
.qty-input label { font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.qty-input input { width: 90px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 16px; text-align: center; background: var(--bg); color: var(--ink); }
.qty-input input:focus { outline: none; border-color: var(--gold); }
.product-promise { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 24px; }
.product-promise li { display: flex; align-items: center; gap: 8px; }

/* === Cart === */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 20px;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: center;
}
.cart-item-img { width: 100px; height: 100px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.cart-item-img img, .cart-item-img .placeholder-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: 18px; margin: 0 0 8px; color: var(--gold); }
.cart-qty-form { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; }
.cart-qty-form input { width: 72px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--ink); text-align: center; }
.cart-item-actions { text-align: right; display: flex; flex-direction: column; gap: 10px; }
.cart-summary {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--muted); }
.summary-row strong { color: var(--ink); }
.summary-row.total { font-size: 20px; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 8px; color: var(--gold); font-weight: 700; }

/* === Checkout === */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.checkout-summary .checkout-items { list-style: none; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.checkout-summary .checkout-items li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.form-grid label.span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--gold); background: var(--surface-card); }
.form-grid label.checkbox { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); text-transform: none; font-weight: normal; letter-spacing: normal; }
.form-grid label.checkbox input { margin: 0; width: 18px; height: 18px; }

.radio-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--surface-card);
  transition: var(--transition);
}
.radio-card:hover { border-color: var(--gold); box-shadow: var(--gold-glow); }
.radio-card input { margin: 0; width: 18px; height: 18px; accent-color: var(--gold); }
.radio-card div { display: flex; flex-direction: column; }
.radio-card strong { color: var(--gold); }
.radio-card span { color: var(--muted); font-size: 13px; }

/* === Auth === */
.auth-section { padding: 80px 24px; }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.auth-card input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
}
.auth-card input:focus { outline: none; border-color: var(--gold); background: var(--surface-card); }

/* === Account === */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
.account-sidebar h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.account-sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.account-sidebar a, .account-sidebar button {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  transition: var(--transition);
  text-align: left;
  background: none; border: none; width: 100%; cursor: pointer; font-family: inherit;
}
.account-sidebar a:hover, .account-sidebar a.active, .account-sidebar button:hover {
  background: var(--gold); color: var(--bg); font-weight: 700; text-decoration: none;
}
.account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin-top: 24px; }
.card-tile {
  background: var(--surface);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: var(--transition);
}
.card-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--gold-glow), var(--shadow); border-color: var(--gold); text-decoration: none; }
.card-tile-num { font-size: 38px; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', Georgia, serif; }
.card-tile-label { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.account-content .card { margin-bottom: 24px; }
.account-content .card label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.account-content .card input, .account-content .card select, .account-content .card textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px;
  background: var(--bg); font-family: inherit; color: var(--ink); transition: var(--transition);
}
.account-content .card input:focus, .account-content .card select:focus, .account-content .card textarea:focus { outline: none; border-color: var(--gold); background: var(--surface-card); }

/* === Tables === */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--surface); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); border-bottom: 2px solid var(--border); }
.data-table tbody tr { background: var(--surface-card); transition: var(--transition); }
.data-table tbody tr:hover { background: rgba(217, 166, 72, 0.05); }
.row-actions { display: flex; gap: 14px; align-items: center; }

.status {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.status-pending { background: rgba(224, 179, 71, 0.15); color: #ffd670; border: 1px solid rgba(224, 179, 71, 0.3); }
.status-processing { background: rgba(92, 163, 224, 0.15); color: #9cd3ff; border: 1px solid rgba(92, 163, 224, 0.3); }
.status-shipped { background: rgba(140, 114, 224, 0.15); color: #c4b5fd; border: 1px solid rgba(140, 114, 224, 0.3); }
.status-delivered, .status-paid, .status-active { background: rgba(70, 179, 122, 0.15); color: #7ee0ab; border: 1px solid rgba(70, 179, 122, 0.3); }
.status-cancelled, .status-failed, .status-inactive { background: rgba(224, 90, 71, 0.15); color: #ff9e9c; border: 1px solid rgba(224, 90, 71, 0.3); }
.status-refunded { background: rgba(184, 114, 224, 0.15); color: #e9c4ff; border: 1px solid rgba(184, 114, 224, 0.3); }

.pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.pill-admin { background: var(--accent); color: white; border-color: var(--accent); font-weight: 700; }

.order-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-bottom: 24px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }

.lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }

/* === Testimonials === */
.testimonials {
  background: #080A0C;
  color: var(--ink);
  padding: 80px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}
.testimonials h2 { color: var(--gold); text-align: center; margin-bottom: 48px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.testimonial-grid blockquote {
  margin: 0; padding: 32px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-grid blockquote:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }
.testimonial-grid blockquote p { margin: 0 0 16px; font-style: italic; color: var(--ink); opacity: 0.95; line-height: 1.7; font-size: 15px; }
.testimonial-grid blockquote cite { color: var(--gold); font-size: 13px; font-style: normal; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

/* === Footer === */
.site-footer { background: #080A0C; color: var(--muted); margin-top: 80px; border-top: 1px solid var(--border); width: 100%; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  width: 100%;
  padding: clamp(64px, 6vw, 84px) clamp(24px, 4vw, 64px) clamp(40px, 4vw, 56px);
}
.footer-grid h4 { color: var(--gold); font-family: 'Playfair Display', Georgia, serif; font-size: 16px; margin-bottom: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: 14px; transition: var(--transition); }
.footer-grid a:hover { color: var(--gold); text-decoration: none; padding-left: 3px; }
.footer-grid p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border); padding: clamp(20px, 2vw, 28px) 0; font-size: 13px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 clamp(24px, 4vw, 64px); }
.footer-bottom a { color: var(--muted); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* === Responsive === */
@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding: 72px 18px;
  }
  .hero-art {
    min-height: 320px;
  }
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .hero-grid > div:nth-child(2),
  .hero-grid > div:nth-child(3) {
    transform: translateY(0);
  }
  .hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
  }
  .hero-cta {
    justify-content: center;
  }
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 12px 20px; }
  .search { grid-column: 1 / -1; order: 3; max-width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .trust-grid > div { border-right: none; }
  .trust-grid > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .product-detail { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .shop-layout, .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; width: 100%; margin-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.span-2 { grid-column: auto; }
  h1 { font-size: 32px; }
  .cart-summary { position: static; width: 100%; }
}
@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 56px 0;
  }
  .hero-inner {
    padding: 48px 16px 32px;
  }
  .hero-text h1 {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }
  .hero-text p {
    margin: 0 auto 22px;
    max-width: 100%;
  }
  .hero-art {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .hero-grid > div {
    min-height: 140px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-grid > div { border-right: none !important; }
  .nav-link { font-size: 13px; }
  .header-actions { gap: 14px; }
  .primary-nav a { padding: 12px 14px; font-size: 12px; }
  .brand-name { font-size: 20px; }
}

.inline { display: inline-block; }
.inline-form { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.inline-form select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; background: var(--bg); color: var(--ink); }

.danger-text { color: var(--danger); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 700; }

/* ==========================
   Mobile-specific overrides
   - Only rules inside these media queries modify desktop styles
   - Breakpoints: 768px (tablet/large phones) and 480px (small phones)
   - Use relative units, flex/grid adjustments, touch-size increases
   - Images set to max-width/height auto and object-fit where appropriate
   - Keep changes minimal and focused on mobile presentation
   ========================== */

@media (max-width: 768px) {
  /* Header / Nav: stack into single column and increase touch targets */
  .header-inner { grid-template-columns: 1fr; gap: 12px; padding: 12px 16px; align-items: center; }
  .brand-name { font-size: 1.25rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1rem; }
  .search { width: 100%; order: 3; }
  .search input { padding: 12px 14px; font-size: 1rem; }
  .search button { padding: 0 18px; font-size: 16px; }
  .header-actions { width: 100%; justify-content: flex-end; gap: 12px; }
  .primary-nav .container { padding: 0 16px; }
  .primary-nav a { padding: 12px 10px; font-size: 13px; }

  /* Hero: collapse grids, reduce paddings and scale typography */
  .hero { min-height: auto; padding: 40px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding: 48px 16px; }
  .hero-text h1 { font-size: clamp(1.6rem, 6vw, 2.8rem); line-height: 1.08; }
  .hero-text p { font-size: 1rem; margin-bottom: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; width: 100%; }
  .hero-grid > div { border-radius: 12px; padding: 14px; }
  .hero-art { min-height: 200px; }

  /* Grids & Cards: single-column flow and reduced gaps */
  .trust-grid, .stat-grid, .testimonial-grid, .product-list, .admin-grid {
    grid-template-columns: 1fr; gap: 14px;
  }
  .stat-card, .testimonial-grid blockquote, .product-card, .card { padding: 16px; }

  /* Images / Media */
  img, .hero-art img, .product-thumb { max-width: 100%; height: auto; display: block; object-fit: cover; }
  .hero-circle { width: 220px; height: 220px; filter: blur(30px); }

  /* Typography: scale down and use rem units */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  p, .muted, .footer-grid p { font-size: 0.95rem; }

  /* Forms & Buttons: larger touch targets, full width where appropriate */
  .btn, .search button, .link-btn { min-height: 44px; padding: 12px 18px; font-size: 15px; }
  .btn-block { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }

  /* Footer: compact single column and reduced padding */
  .footer-grid { grid-template-columns: 1fr; gap: 18px; padding: 32px 16px 20px; }
  .footer-bottom .container { padding: 0 16px; gap: 8px; }

  /* Flash and overlays: reposition for mobile */
  .flash-stack { top: 80px; right: 12px; max-width: calc(100% - 24px); }
}

@media (max-width: 480px) {
  /* Further reductions for small phones */
  .header-inner { padding: 10px 12px; gap: 8px; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 36px; height: 36px; }

  .hero-inner { padding: 28px 12px; gap: 12px; }
  .hero-text h1 { font-size: 1.4rem; }
  .hero-text p { font-size: 0.95rem; }

  /* Buttons larger for thumb interaction */
  .btn, .search button { padding: 14px 18px; font-size: 1rem; border-radius: 10px; }

  /* Reduce spacing site-wide */
  .section { padding: clamp(20px, 4vw, 36px) 0; }
  .container { padding-left: 12px; padding-right: 12px; }

  /* Images: ensure no overflow and good aspect handling */
  picture, img { max-width: 100%; height: auto; display: block; }

  /* Footer compact */
  .footer-grid { padding: 24px 12px 16px; }

  /* Ensure admin-specific panels also respect mobile touch sizes */
  .admin-topbar { padding: 12px 12px; }
  .admin-toggle { width: 44px; height: 44px; }
}
