:root {
  --bg: #f4efe9;
  --bg-strong: #e8dfd4;
  --surface: #ffffff;
  --surface-soft: rgba(20, 17, 15, 0.03);
  --ink: #171513;
  --ink-soft: #473f3b;
  --muted: #5a504b;
  --accent: #d9b998;
  --gold: #b88a3b;
  --gold-bright: #d8b56a;
  --accent-soft: #f0e2d2;
  --line: rgba(23, 21, 19, 0.12);
  --line-strong: rgba(23, 21, 19, 0.2);
  --panel: rgba(255, 255, 255, 0.68);
  --primary: #171513;
  --primary-strong: #0e0d0c;
  --success: #2d7d4a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(216, 181, 106, 0.16), transparent 24rem),
    radial-gradient(circle at 92% 64%, rgba(184, 138, 59, 0.1), transparent 28rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.announcement-bar {
  background: var(--primary);
  color: #fff;
  border-bottom: 2px solid var(--gold);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 2.8vw, 3.4rem);
  letter-spacing: -0.08em;
  color: var(--ink);
  font-weight: 600;
  font-style: italic;
  display: inline-block;
  transform: perspective(800px) rotateX(6deg);
}

.brand img {
  width: 86px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.site-nav a,
.admin-link {
  position: relative;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
  color: var(--ink);
}

.site-nav a:hover,
.admin-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.site-nav a.active::after,
.site-nav a:hover::after,
.admin-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

.admin-link {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.44);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.icon-button:hover {
  transform: translateY(-3px) rotateX(8deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.bag-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}

.hero {
  padding: 52px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: rgba(255, 255, 255, 0.75);
}

.hero-copy h1,
.section-heading h2,
.story-copy h2,
.newsletter-box h2,
.shop-hero h1,
.promo-copy h2,
.dashboard-header h2 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  font-weight: 600;
}

.hero-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 12px 0 8px;
  transform-style: preserve-3d;
  animation: tiltText 8s ease-in-out infinite alternate;
  filter: drop-shadow(0 18px 24px rgba(17, 17, 17, 0.12));
}

.hero-wordmark img {
  width: clamp(230px, 32vw, 470px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 14px rgba(17, 17, 17, 0.12));
  animation: logoFloat 6s ease-in-out infinite;
}

.hero-wordmark .word-part {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: clamp(5rem, 11vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.14em;
  color: var(--primary);
  font-weight: 300;
  text-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
  transform: perspective(1200px) rotateX(12deg) rotateY(-12deg) translateZ(30px);
  animation: logoFloat 6s ease-in-out infinite;
}

.infinity-mark {
  display: inline-block;
  margin-top: -10px;
  margin-left: 18px;
  font-size: clamp(3rem, 6vw, 8rem);
  line-height: 1;
  color: var(--ink);
  font-weight: 300;
  animation: pulseGlow 4s ease-in-out infinite;
  transform: perspective(1200px) rotateY(18deg) translateZ(20px);
}

.lead {
  margin: 20px 0 26px;
  max-width: 550px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 16px 24px;
  border: 1px solid transparent;
  transition: transform 0.32s ease, box-shadow 0.35s ease, filter 0.35s ease;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-5px) rotateX(8deg) rotateY(-6deg);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #332d2a 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(24, 18, 14, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(184, 138, 59, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.52);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: #8a6428;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta li {
  position: relative;
  padding-left: 12px;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 630px;
}

.card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  animation: floatCard 7s ease-in-out infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(17,17,17,0.06);
}

.card:hover {
  transform: translateY(-10px) rotateX(8deg) rotateY(-8deg) scale(1.02);
  box-shadow: 0 26px 48px rgba(0,0,0,0.18), 0 30px 70px rgba(0,0,0,0.18);
}

.card-large {
  inset: 0 80px 30px 0;
}

.card-small {
  width: 44%;
  height: 42%;
  border: 8px solid rgba(244, 239, 233, 0.88);
  box-shadow: var(--shadow-soft);
}

.card-small.top {
  top: 0;
  right: 0;
  animation-delay: 0.7s;
}

.card-small.bottom {
  bottom: 0;
  right: 80px;
  animation-delay: 1.4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-18px) rotateX(4deg) rotateY(-5deg); }
}

@keyframes tiltText {
  0% { transform: perspective(1000px) rotateX(8deg) rotateY(-10deg); }
  100% { transform: perspective(1000px) rotateX(-6deg) rotateY(10deg); }
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  50% { filter: drop-shadow(0 0 18px rgba(0,0,0,0.12)); }
}

@keyframes logoFloat {
  0%, 100% { transform: perspective(1200px) rotateX(12deg) rotateY(-12deg) translateY(0) translateZ(30px); }
  50% { transform: perspective(1200px) rotateX(16deg) rotateY(-8deg) translateY(-10px) translateZ(60px); }
}

.brands {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 0 36px;
  color: rgba(23, 21, 19, 0.56);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.76rem;
}

.products-section,
.story,
.newsletter,
.delivery-section {
  padding: 50px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.story-copy h2,
.newsletter-box h2,
.shop-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.section-heading.split {
  align-items: center;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.85rem;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #4b3924);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(184, 138, 59, 0.2);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: #8a6428;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 21, 19, 0.09);
  transform: perspective(1000px) rotateX(3deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardReveal 0.55s both;
}

.product-card:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-8px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.12);
}

.product-image {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #eee;
}

.product-image img {
  transition: transform 0.45s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.18s; }

@keyframes cardReveal {
  from { opacity: 0; transform: perspective(1000px) rotateX(8deg) translateY(18px); }
  to { opacity: 1; transform: perspective(1000px) rotateX(3deg) translateY(0); }
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 138, 59, 0.55);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 10px;
  color: var(--ink);
}

.product-info {
  padding: 18px 16px 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.product-name {
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-weight: 700;
  color: var(--ink);
}

.product-price-sale {
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-price-sale del {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.product-price-sale strong,
.product-price-sale em {
  color: #a54032;
}

.product-price-sale em {
  width: 100%;
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-sizes {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -6px 0 14px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(184, 138, 59, 0.35);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink-soft);
  padding: 4px 8px 4px 5px;
  font-size: 0.68rem;
  text-transform: capitalize;
}

.color-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(23, 21, 19, 0.18);
  border-radius: 50%;
  background: var(--swatch, var(--gold));
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rating {
  color: #b56a20;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.add-to-cart {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.add-to-cart:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(184, 138, 59, 0.25);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.delivery-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transform: translateY(0) rotateX(0deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.delivery-card:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(-2deg);
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.17);
  border-color: var(--gold);
  box-shadow: 0 26px 42px rgba(184, 138, 59, 0.16);
}

.delivery-card.dark {
  background: var(--primary);
  color: #fff;
}

.delivery-card.dark p {
  color: rgba(255,255,255,0.8);
}

.delivery-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #e1c27e);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 18px;
}

.delivery-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-family: "Cormorant Garamond", serif;
}

.delivery-card p {
  margin: 0;
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.story-image {
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.story-copy p,
.story-copy li,
.site-footer p,
.site-footer li {
  color: var(--muted);
}

.story-copy ul {
  margin: 20px 0 28px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.story-motto {
  color: var(--ink) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.text-link {
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  color: var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-link:hover {
  color: #8a6428;
  border-color: var(--gold);
}

.newsletter-band {
  padding-top: 26px;
  padding-bottom: 22px;
}

.newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 42px);
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(248, 237, 213, 0.9));
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: 28px;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
}

.newsletter-copy {
  flex: 1;
}

.newsletter-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin: 0;
  max-width: 700px;
  color: var(--ink);
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: min(100%, 490px);
}

.subscribe-form input,
.checkout-form input,
.checkout-form textarea,
.product-form input,
.product-form select,
.admin-panel input,
.admin-panel textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  padding: 0 18px;
  color: var(--ink);
}

.subscribe-form input {
  flex: 1 1 260px;
  min-width: 0;
  height: 56px;
}

.subscribe-form input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.phone-row select:focus,
.shop-toolbar select:focus {
  outline: 2px solid rgba(184, 138, 59, 0.35);
  border-color: var(--gold);
}

.site-footer {
  padding: 18px 0 34px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(23, 21, 19, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 10px 0 24px;
}

.footer-brand-block {
  padding-right: 18px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 1.05rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 21, 19, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.shop-page {
  padding: 42px 0 80px;
}

.shop-hero {
  padding: 24px 0 20px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
}

.shop-sidebar {
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 21, 19, 0.05);
  border-radius: var(--radius-md);
  height: fit-content;
}

.filter-group {
  display: grid;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.filter-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatches span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(23, 21, 19, 0.12);
  display: inline-block;
}

.shop-content {
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
}

.shop-toolbar select {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
}

.checkout-section {
  padding-top: 28px;
}

.checkout-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23,21,19,0.08);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.checkout-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -130px;
  right: -80px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.8;
  pointer-events: none;
}

.checkout-card > * {
  position: relative;
  z-index: 1;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.checkout-header h3 {
  margin: 0;
  font-size: 2rem;
  font-family: "Cormorant Garamond", serif;
}

.checkout-header::after {
  content: "SECURE CHECKOUT";
  margin-left: auto;
  color: var(--success);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(23,21,19,0.03);
  border-radius: 14px;
  color: var(--ink);
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form input,
.checkout-form textarea,
.product-form input,
.product-form select {
  min-height: 52px;
}

.phone-field {
  display: grid;
  gap: 6px;
}

.phone-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) 1.2fr;
  gap: 8px;
}

.phone-row select,
.phone-row input {
  min-width: 0;
}

.checkout-form textarea {
  grid-column: 1 / -1;
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.checkout-form button {
  grid-column: 1 / -1;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}

.admin-modal.open {
  display: flex;
}

.admin-panel {
  width: min(420px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.admin-panel h2 {
  margin: 0 0 18px;
  font-size: 2.1rem;
  font-family: "Cormorant Garamond", serif;
}

.admin-panel form {
  display: grid;
  gap: 14px;
}

.admin-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
}

.admin-panel input {
  height: 52px;
}

.close-admin,
.chat-close,
.dashboard-close {
  border: none;
  background: transparent;
  cursor: pointer;
}

.close-admin {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.admin-dashboard {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1160px, calc(100% - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #f7f3ee;
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 21, 19, 0.12);
  z-index: 90;
}

.admin-dashboard.hidden {
  display: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--ink);
}

.admin-dashboard .eyebrow.dark {
  color: var(--muted);
}

.dashboard-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.dashboard-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-actions .btn-secondary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(184, 138, 59, 0.16);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.settings-label {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.gateway-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(184, 138, 59, 0.35);
  border-radius: 14px;
  background: #fffaf0;
}

.gateway-status i {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.gateway-status span {
  color: var(--muted);
  font-size: 0.76rem;
}

.settings-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.account-settings {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.account-settings h3 {
  margin: 0;
  font: 600 1.8rem/0.95 "Cormorant Garamond", serif;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-form input {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 12px;
}

.account-form button { grid-column: 1 / -1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(23, 21, 19, 0.09);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(23, 21, 19, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(23, 21, 19, 0.11);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-box strong {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}

.dashboard-box {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(23, 21, 19, 0.09);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(23, 21, 19, 0.06);
}

.box-header h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.box-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.box-kicker {
  color: var(--accent-strong, #a16b45);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.order-badge {
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-list,
.inventory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.order-list li,
.inventory-list li {
  background: #fbf9f6;
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .order-list li,
  .inventory-list li {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
    border-radius: 10px;
  }

  .order-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.order-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

@media (max-width: 768px) {
  .order-main {
    width: 100%;
    gap: 8px;
  }
}

.order-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.order-main strong,
.order-main span {
  display: block;
}

.order-meta {
  max-width: 300px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.order-status {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  padding: 5px 8px;
}

.order-contact {
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 800;
}

.inventory-list button,
.delete-item {
  border: none;
  background: #bd4a4a;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.8rem;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.product-form input,
.product-form select {
  min-height: 46px;
  padding: 0 12px;
}

.product-form .product-sizes,
.product-form .product-colors,
.product-form .discount-fields,
.product-form > input[type="url"] {
  grid-column: 1 / -1;
}

.discount-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-form button {
  grid-column: 1 / -1;
}

.product-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.inventory-actions { display: flex; gap: 8px; align-items: center; }
.edit-item { border: 1px solid var(--gold); background: #fffaf0; color: #8a6428; border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: 0.8rem; }

.inventory-list li {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.inventory-list li:hover,
.order-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 18px rgba(23, 21, 19, 0.08);
}

.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.chat-toggle {
  background: linear-gradient(135deg, var(--primary), #594326);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  animation: chatPulse 2.8s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.chat-toggle:hover {
  transform: translateY(-6px) rotateX(8deg) rotateY(-5deg) scale(1.04);
  background: var(--gold);
  box-shadow: 0 20px 35px rgba(184, 138, 59, 0.3);
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 21, 19, 0.18), var(--shadow-soft); }
  50% { box-shadow: 0 0 0 10px rgba(23, 21, 19, 0), var(--shadow-soft); }
}

.chat-window {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  width: min(320px, 82vw);
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  animation: chatWindowIn 0.3s ease both;
}

@keyframes chatWindowIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-window.hidden,
.hidden {
  display: none !important;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.chat-window p {
  margin: 0 0 14px;
  color: var(--muted);
}

.whatsapp-link {
  display: inline-flex;
  background: #25d366;
  color: #0a2f1d;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 18px rgba(37, 211, 102, 0.25);
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 120px 20px 20px;
  background: rgba(23, 21, 19, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-panel.open {
  opacity: 1;
  visibility: visible;
}

.search-form {
  display: flex;
  width: min(720px, 100%);
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-16px);
  transition: transform 0.3s ease;
}

.search-panel.open .search-form {
  transform: translateY(0);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
}

.search-close {
  width: 46px;
  border: 0;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.5rem;
}

.search-status {
  color: #fff;
  margin: 14px 0 0;
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(23,21,19,0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

/* Independent admin control room */
.admin-page {
  background: #f3eee7;
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  background: #f3eee7;
}

@media (max-width: 768px) {
  .admin-login-screen {
    grid-template-columns: 1fr;
  }
}

.admin-login-art {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 100vh;
  padding: clamp(32px, 8vw, 100px);
  background: linear-gradient(135deg, #1d1916, #40352d);
  color: #fff;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .admin-login-art {
    display: none;
  }
}

.admin-login-art::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -150px;
  top: 12%;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,0.04), 0 0 0 80px rgba(255,255,255,0.025);
}

.admin-art-mark { width: min(620px, 80%); height: auto; filter: invert(1); transform: perspective(900px) rotateY(-12deg); }

.admin-login-art p {
  margin: 28px 0 0;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.admin-login-card {
  align-self: center;
  width: min(420px, calc(100% - 48px));
  margin: auto;
}

@media (max-width: 768px) {
  .admin-login-card {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    margin: 0;
    align-self: auto;
  }
}

.admin-login-card h1 {
  margin: 0;
  font: 600 clamp(3rem, 5vw, 5rem)/0.9 "Cormorant Garamond", serif;
  letter-spacing: -0.04em;
}

.admin-login-card > p:not(.eyebrow) {
  color: var(--muted);
  margin: 18px 0 26px;
}

.admin-login-card form {
  display: grid;
  gap: 16px;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 700;
}

.admin-login-card input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
}

@media (max-width: 768px) {
  .admin-login-card input {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
  }
}

.admin-login-card .btn {
  margin-top: 8px;
}

.admin-back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  font-size: 0.9rem;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background: #f3eee7;
}

@media (max-width: 768px) {
  .admin-shell {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
}

.admin-shell.hidden,
.admin-login-screen.hidden {
  display: none;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  padding: 30px 20px 22px;
  background: #211c18;
  color: #fff;
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 16px 20px;
    gap: 24px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
}

.admin-brand {
  display: grid;
  gap: 2px;
  padding: 0 12px;
}

@media (max-width: 768px) {
  .admin-brand {
    padding: 0 8px;
  }

  .admin-brand img {
    width: 90px;
  }

  .admin-brand small {
    font-size: 0.55rem;
  }
}

.admin-brand img { width: 112px; height: auto; filter: invert(1); }

.admin-brand small {
  color: rgba(255,255,255,0.55);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}

.profile-avatar,
.top-avatar,
.large-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.profile-avatar { width: 34px; height: 34px; }
.admin-profile div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.admin-profile strong { font-size: 0.82rem; }
.admin-profile span:not(.profile-dot) { color: rgba(255,255,255,0.55); font-size: 0.68rem; }
.profile-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #60c982; }

.admin-nav { display: grid; gap: 8px; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.62);
  font-size: 0.86rem;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.admin-nav a:hover,
.admin-nav a.active { color: #fff; background: rgba(255,255,255,0.1); transform: translateX(3px); }
.admin-nav a b { margin-left: auto; font-size: 0.7rem; color: var(--accent); }

.sidebar-footer { display: grid; gap: 12px; margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer a, .sidebar-footer button { color: rgba(255,255,255,0.62); text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 0.8rem; }
.sidebar-footer a:hover, .sidebar-footer button:hover { color: #fff; }

.admin-content { min-width: 0; padding: 34px clamp(22px, 4vw, 60px) 60px; }

@media (max-width: 1024px) {
  .admin-grid-main {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-content {
    padding: 20px 16px 80px;
    overflow-y: auto;
  }
}

@media (max-width: 560px) {
  .admin-login-card {
    width: min(100%, 420px);
    padding: 20px 16px;
  }

  .admin-login-card h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .admin-login-card form {
    gap: 14px;
  }

  .admin-topbar {
    margin-bottom: 22px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-content {
    padding-left: 12px;
    padding-right: 12px;
  }
}
.admin-topbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }

@media (max-width: 768px) {
  .admin-topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .admin-topbar > div:nth-child(2) {
    width: 100%;
  }

  .admin-topbar > div:nth-child(2) h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
  }

  .admin-topbar > div:nth-child(2) .eyebrow {
    margin-bottom: 6px;
  }
}
.admin-topbar h1 { margin: 0; font: 600 clamp(2.6rem, 4vw, 4rem)/0.9 "Cormorant Garamond", serif; }
.admin-topbar .eyebrow { margin-bottom: 10px; }
.admin-top-actions { display: flex; align-items: center; gap: 18px; }
.admin-icon-button { position: relative; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.admin-icon-button span { position: absolute; top: 0; right: 0; width: 6px; height: 6px; border-radius: 50%; background: #bd4a4a; }
.admin-mobile-toggle { display: none; }
.top-avatar { width: 38px; height: 38px; }

@media (max-width: 768px) {
  .admin-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--ink);
    transition: all 0.2s ease;
  }

  .admin-mobile-toggle:active {
    background: rgba(0,0,0,0.05);
  }

  .admin-icon-button {
    font-size: 1.2rem;
  }

  .top-avatar {
    width: 32px;
    height: 32px;
  }
}
.admin-view { display: grid; gap: 20px; }
.admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.stat-box small { display: block; margin-top: 8px; font-size: 0.72rem; }
.stat-up { color: var(--success); }
.stat-neutral { color: var(--muted); }
.admin-grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr); gap: 20px; }
.chart-box, .profile-box, .admin-orders-box, .admin-inventory-box, .settings-box { background: #fff; color: var(--ink); }
.chart-box h2, .profile-box h2, .admin-orders-box h2, .admin-inventory-box h2, .settings-box h2 { margin: 0; font: 600 2rem/0.95 "Cormorant Garamond", serif; }
.chart-box select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: #fff; color: var(--ink); }
.sales-chart { display: flex; gap: 16px; height: 230px; margin-top: 24px; padding: 16px 0 0; border-bottom: 1px solid var(--line); }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 10px; color: var(--muted); font-size: 0.68rem; }
.chart-bars { flex: 1; display: flex; align-items: end; justify-content: space-around; gap: 14px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 31%, rgba(23,21,19,0.06) 32%); }
.chart-bars i { position: relative; width: clamp(16px, 5%, 34px); min-height: 10px; border-radius: 8px 8px 0 0; background: linear-gradient(#d9b998, #80634a); transition: height 0.5s ease, filter 0.25s ease; }
.chart-bars i:hover { filter: brightness(1.14); }
.chart-bars b { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.68rem; font-weight: 500; }
.profile-box { position: relative; overflow: hidden; padding: 0 22px 22px; text-align: center; }
.profile-cover { height: 78px; margin: 0 -22px; background: linear-gradient(135deg, #d9b998, #4d4035); }
.large-avatar { position: relative; width: 72px; height: 72px; margin: -36px auto 10px; border: 5px solid #fff; font-size: 1.4rem; }
.profile-box p { color: var(--muted); margin: 6px 0 16px; font-size: 0.82rem; }
.profile-stats { display: flex; justify-content: center; gap: 30px; margin: 18px 0; color: var(--muted); font-size: 0.74rem; }
.profile-stats strong { display: block; color: var(--ink); font-size: 1.1rem; }
.profile-box .btn { padding: 10px 16px; font-size: 0.78rem; }
.admin-orders-box, .admin-inventory-box, .settings-box { margin-top: 20px; }
.currency-setting { display: grid; gap: 8px; max-width: 420px; color: var(--ink-soft); font-weight: 700; }
.currency-setting select { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 12px; background: #fff; color: var(--ink); }
.settings-note { color: var(--muted); font-size: 0.86rem; }

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid,
  .story,
  .shop-layout,
  .dashboard-split {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .delivery-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .brands,
  .products-grid,
  .delivery-grid,
  .footer-grid,
  .stats-grid,
  .checkout-form,
  .product-form {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-actions {
    gap: 8px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-wordmark .word-part {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  .admin-dashboard {
    padding: 18px;
  }
}

  .icon-button {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .card-large {
    inset: 0 30px 20px 0;
  }

  .card-small {
    width: 46%;
    height: 36%;
  }

  .hero-visual {
    min-height: 480px;
  }

  .promo-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Admin Dashboard Mobile */
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

  .admin-content {
    padding: 20px 16px 60px;
    overflow-y: auto;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
  }

  .admin-topbar h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .admin-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-grid-main {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .account-settings {
    grid-template-columns: 1fr;
  }

  .product-form,
  .account-form {
    grid-template-columns: 1fr;
  }

  .product-form .product-sizes,
  .product-form .product-colors,
  .product-form .discount-fields,
  .product-form > input[type="url"],
  .discount-fields {
    grid-column: 1 / -1;
  }

  .discount-fields {
    grid-template-columns: 1fr;
  }

  .order-list li,
  .inventory-list li {
    flex-wrap: wrap;
    gap: 8px;
  }

  .order-main {
    width: 100%;
    gap: 8px;
  }

  .order-side {
    width: 100%;
    flex-direction: row;
    justify-items: start;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .sales-chart {
    flex-direction: column;
    height: auto;
    min-height: 240px;
  }

  .chart-y {
    margin-bottom: 16px;
    flex-direction: row;
    justify-content: space-between;
  }

  .chart-bars {
    height: 160px;
    gap: 8px;
  }

  .chart-bars i {
    width: clamp(12px, 8vw, 28px);
  }

  /* Toggle for mobile navigation */
  .admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    pointer-events: none;
  }

  .admin-sidebar.mobile-open::before {
    pointer-events: auto;
  }

  /* Client-side mobile styles */
  .hero-grid {
    gap: 24px;
  }

  .checkout-form {
    gap: 12px;
  }

  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select {
    min-height: 48px;
  }

  .phone-field label {
    font-size: 0.75rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-image {
    height: 240px;
  }

  .product-info {
    padding: 12px 12px 14px;
  }

  .product-name {
    font-size: 0.85rem;
  }

  .add-to-cart {
    padding: 8px 12px;
    font-size: 0.75rem;
    width: 100%;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shop-sidebar {
    padding: 16px;
  }

  .shop-content {
    width: 100%;
  }

  .shop-toolbar {
    gap: 8px;
  }

  .shop-toolbar select {
    width: 100%;
  }

  .newsletter-box {
    gap: 16px;
    min-height: auto;
    padding: 20px 16px;
  }

  .newsletter-copy h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .subscribe-form {
    width: 100%;
  }

  .subscribe-form input {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-brand-block {
    padding-right: 0;
  }

  .story {
    gap: 20px;
  }

  .story-image {
    height: 320px;
  }

  /* Checkout page mobile */
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-form-section {
    padding: 20px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .currency-selector {
    gap: 6px;
  }

  /* Buttons with better touch targets */
  .btn,
  .icon-button,
  .add-to-cart,
  input[type="submit"],
  button {
    min-height: 44px;
    font-size: 1rem;
  }

  /* Forms with better spacing */
  label {
    font-size: 0.9rem;
  }

  .payment-method label {
    padding: 12px;
    font-size: 0.9rem;
  }

  .payment-method label div strong {
    font-size: 0.95rem;
  }

  .payment-method label small {
    font-size: 0.75rem;
  }

  /* Currency buttons on mobile */
  .currency-btn {
    flex: 1;
    min-width: 60px;
    font-size: 0.8rem !important;
    padding: 10px 8px !important;
  }

  /* Admin forms */
  .admin-panel {
    width: calc(100% - 40px);
    max-width: 100%;
    padding: 20px;
  }

  .admin-panel input,
  .admin-panel textarea,
  .admin-panel select {
    min-height: 44px;
  }

  /* Order list adjustments */
  .order-meta {
    max-width: 100%;
    white-space: normal;
  }

  /* Toast positioning */
  .toast {
    left: 12px;
    right: 12px;
    bottom: 80px;
    transform: none;
    max-width: calc(100% - 24px);
  }

  /* Profile box mobile */
  .profile-stats {
    gap: 16px;
  }

  /* Top bar actions */
  .admin-icon-button {
    font-size: 1.2rem;
    padding: 8px;
  }

  .top-avatar {
    width: 32px;
    height: 32px;
  }

  /* Box headers */
  .box-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-badge {
    margin-top: 8px;
  }

  /* Prevent overflow on small screens */
  body {
    overflow-x: hidden;
  }

  table {
    font-size: 0.85rem;
  }

  /* Search panel adjustments */
  .search-panel {
    padding: 80px 12px 12px;
  }

  .search-form {
    padding: 8px;
    gap: 6px;
  }

  .search-form input {
    padding: 0 10px;
    font-size: 1rem;
  }

  /* Chat window */
  .chat-window {
    width: min(280px, 90vw);
  }

  /* Checkout sidebar */
  .order-summary-sidebar {
    position: relative;
    margin-top: 20px;
  }

  /* Hero section mobile */
  .hero {
    padding: 32px 0 12px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .card-large {
    inset: 0 20px 10px 0;
  }

  .card-small {
    width: 60%;
    height: 50%;
  }
}

/* ============================================
   EXTRA SMALL SCREENS (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .admin-sidebar {
    width: 240px;
  }

  .admin-sidebar::before {
    right: -240px;
    width: 240px;
  }

  .admin-content {
    padding: 16px 12px 60px;
  }

  .admin-topbar h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  .admin-topbar {
    gap: 12px;
  }

  .nav-wrap {
    min-height: 60px;
    gap: 8px;
  }

  .site-nav {
    right: 12px !important;
    left: 12px !important;
  }

  .products-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-box {
    padding: 14px 16px;
  }

  .stat-box strong {
    font-size: 1.6rem;
  }

  .checkout-form {
    gap: 10px;
  }

  .payment-methods {
    flex-direction: column;
  }

  .currency-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .currency-btn {
    font-size: 0.7rem !important;
  }

  .btn,
  button,
  input[type="submit"],
  .icon-button {
    width: 100%;
    padding: 12px 16px;
  }

  .btn-group,
  .product-form-actions {
    flex-direction: column;
  }

  .btn-group button,
  .product-form-actions button {
    width: 100%;
  }

  .footer-grid {
    gap: 16px;
  }

  .site-footer h3 {
    font-size: 0.7rem;
  }

  .site-footer ul {
    font-size: 0.9rem;
    gap: 8px;
  }

  .logo {
    width: 60px;
    height: auto;
  }

  .announcement-bar {
    padding: 8px 12px;
    font-size: 0.65rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    margin-bottom: 10px;
  }

  /* Smaller form elements */
  input,
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 10px 12px;
  }

  .admin-panel {
    width: 90vw;
    padding: 16px;
  }

  .admin-modal {
    padding: 12px;
  }

  /* Hero mobile optimization */
  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .hero-wordmark .word-part {
    font-size: clamp(3rem, 20vw, 5rem);
  }

  .infinity-mark {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-left: 8px;
  }

  /* Delivery cards */
  .delivery-card {
    padding: 16px;
  }

  .delivery-card h3 {
    font-size: 1.2rem;
  }

  .delivery-tag {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Mobile menu toggle area */
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  /* Prevent text selection issues */
  .product-footer {
    flex-direction: column;
    gap: 8px;
  }

  .rating {
    width: 100%;
  }

  .add-to-cart {
    width: 100%;
  }

  /* Order/inventory list */
  .order-list li,
  .inventory-list li {
    padding: 10px;
    flex-direction: column;
    gap: 6px;
  }

  .order-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  /* Sidebar profile mobile */
  .admin-profile {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .admin-profile div:nth-child(2) {
    width: 100%;
  }

  .profile-avatar {
    width: 32px;
    height: 32px;
  }

  /* Dashboard boxes */
  .dashboard-box {
    padding: 14px;
  }

  .box-header {
    margin-bottom: 12px;
  }

  /* Payment section mobile */
  .payment-loading {
    padding: 20px 16px;
  }

  /* Chart bars optimization */
  .chart-bars i b {
    font-size: 0.6rem;
    top: calc(100% + 6px);
  }

  /* Better touch targets for interactive elements */
  .filter-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .color-chip {
    padding: 3px 6px;
    font-size: 0.65rem;
  }

  /* Adjust newsletter band */
  .newsletter-band {
    padding: 20px 0;
  }

  .newsletter-box {
    padding: 16px 12px;
  }

  /* Search input mobile */
  .search-form input {
    padding: 0 8px;
  }

  .search-close {
    width: 40px;
    height: 40px;
  }

  /* Floating chat button */
  .chat-toggle {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .floating-chat {
    right: 12px;
    bottom: 12px;
  }

  /* Better spacing in modals */
  .admin-panel form {
    gap: 12px;
  }

  .admin-panel label {
    gap: 6px;
  }

  .admin-panel input:not([type="hidden"]) {
    min-height: 40px;
  }
}
