:root {
  --ink: #3d2c1d;
  --brown: #5f442d;
  --muted: #9a7145;
  --soft: #fdfbf7;
  --sand: #faf5f0;
  --cream: #f5ebe0;
  --line: #e8ddd0;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --coral: #e56b52;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(61, 44, 29, 0.08);
  --shadow-strong: 0 10px 40px rgba(180, 83, 9, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

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

button {
  cursor: pointer;
}

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

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

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.site-header {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(61, 44, 29, 0.06);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner,
.logo,
.nav-links,
.header-actions,
.cart-button,
.lang-btn,
.lang-option,
.hero-actions,
.rating,
.reviewer,
.cart-header,
.cart-total,
.dialog-header,
.admin-header {
  align-items: center;
  display: flex;
}

.header-inner {
  gap: 18px;
  justify-content: space-between;
}

.logo {
  gap: 8px;
  min-width: max-content;
}

.logo-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  border-radius: 10px;
  color: var(--white);
  display: flex;
  font-size: 20px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.logo-text,
.section-title,
.hero h1,
.newsletter h2,
.footer-logo span,
.login-panel h1,
.admin-header h1 {
  font-family: "Playfair Display", Georgia, serif;
}

.logo-text {
  color: var(--brown);
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  gap: 24px;
}

.nav-links a,
.admin-link {
  color: #7d5a3a;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.admin-link:hover {
  color: var(--amber);
}

.header-actions {
  gap: 10px;
}

.cart-button,
.lang-btn {
  background: var(--cream);
  border: 1px solid #d4b896;
  border-radius: 8px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
}

.cart-button strong {
  align-items: center;
  background: var(--coral);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

.lang-switcher {
  position: relative;
}

.lang-btn svg {
  height: 14px;
  transition: transform 0.2s ease;
  width: 14px;
}

.lang-switcher.open .lang-btn svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(61, 44, 29, 0.12);
  display: none;
  min-width: 160px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

.lang-option {
  background: var(--white);
  border: 0;
  color: var(--brown);
  gap: 10px;
  padding: 10px 16px;
  text-align: left;
  width: 100%;
}

.lang-option:hover {
  background: #fdf8f3;
}

.lang-option.active {
  background: #fef3c7;
  color: #92400e;
}

.lang-option small {
  color: var(--muted);
  margin-left: auto;
}

.hero.attach-hero {
  background:
    linear-gradient(135deg, rgba(95, 68, 45, 0.95), rgba(229, 107, 82, 0.86), rgba(61, 44, 29, 0.9)),
    url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  min-height: 560px;
  overflow: hidden;
  padding: 88px 0;
  position: relative;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.58;
  margin-bottom: 32px;
  max-width: 650px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  text-align: center;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.value-props,
.reviews {
  background: var(--soft);
  padding: 80px 0;
}

.categories,
.products,
.trust {
  background: var(--sand);
  padding: 80px 0;
}

.section-title {
  color: var(--brown);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 42px;
  text-align: center;
}

.section-head-row {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}

.category-tabs button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  font-weight: 800;
  padding: 10px 16px;
}

.category-tabs button.active,
.category-tabs button:hover {
  background: var(--brown);
  color: var(--white);
}

.value-grid,
.category-grid,
.product-grid,
.trust-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.product-card,
.review-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.value-card {
  padding: 32px;
  text-align: center;
}

.value-card:hover,
.product-card:hover,
.review-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.value-icon {
  align-items: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 16px;
  display: flex;
  font-size: 28px;
  height: 64px;
  justify-content: center;
  margin: 0 auto 16px;
  width: 64px;
}

.value-card h3 {
  color: var(--brown);
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p,
.review-text,
.footer-about {
  color: var(--muted);
  line-height: 1.6;
}

.category-card {
  border-radius: 16px;
  cursor: pointer;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.category-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  background: linear-gradient(to top, rgba(61, 44, 29, 0.82), rgba(61, 44, 29, 0.04));
  inset: 0;
  position: absolute;
}

.category-info {
  bottom: 18px;
  color: var(--white);
  left: 18px;
  position: absolute;
  right: 18px;
}

.category-info h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.category-info p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-img {
  background: var(--product-color, var(--cream));
  height: 210px;
  position: relative;
}

.product-img img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.badge {
  background: var(--coral);
  border-radius: 20px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  left: 12px;
  padding: 5px 12px;
  position: absolute;
  top: 12px;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.product-info h3 {
  color: var(--brown);
  font-size: 17px;
  margin: 0;
}

.product-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.product-info small {
  color: #7d5a3a;
  font-weight: 700;
}

.rating {
  gap: 6px;
}

.stars {
  color: var(--amber);
  letter-spacing: 0;
}

.price-row {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.product-price {
  color: var(--amber);
  font-size: 21px;
  font-weight: 800;
}

.price-row s {
  color: #b79a7b;
}

.product-card .btn {
  margin-top: 4px;
  width: 100%;
}

.product-card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.product-card .btn-secondary,
.detail-button {
  background: #fff;
  border-color: var(--line);
  color: var(--brown);
}

.finder {
  background: linear-gradient(135deg, var(--brown), var(--coral));
  color: var(--white);
  padding: 70px 0;
}

.finder-inner {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr minmax(300px, 430px);
}

.finder h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 12px;
}

.finder p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  margin-bottom: 0;
}

.finder-panel,
.checkout-form,
.login-panel,
.admin-form {
  display: grid;
  gap: 14px;
}

.finder-panel {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  padding: 22px;
}

label {
  color: var(--brown);
  display: grid;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid #d4b896;
  border-radius: 12px;
  color: var(--ink);
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

.review-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  padding: 24px;
}

.reviewer {
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 50%;
  height: 48px;
  width: 48px;
}

.reviewer-name,
.review-title {
  color: var(--brown);
  font-weight: 800;
}

.review-title {
  margin-bottom: 8px;
}

.newsletter {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  padding: 80px 0;
  text-align: center;
}

.newsletter h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 0.9fr 1.1fr 1.2fr auto;
  margin: 0 auto;
  max-width: 900px;
}

.newsletter-form input {
  border: 0;
}

.newsletter-form button {
  background: var(--brown);
  border: 0;
  border-radius: 12px;
  color: var(--white);
  font-weight: 800;
  padding: 0 22px;
}

.trust {
  padding: 48px 0;
}

.trust-item {
  padding: 16px;
  text-align: center;
}

.trust-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.trust-item span {
  color: #7d5a3a;
  font-size: 14px;
  font-weight: 800;
}

footer {
  background: var(--ink);
  color: #d4b896;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 32px;
}

.footer-logo {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  height: 36px;
  width: 36px;
}

.footer-logo span {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.footer-contact div {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 16px;
}

.footer-links a {
  color: #d4b896;
  display: block;
  font-size: 14px;
  margin-bottom: 9px;
}

.footer-links a:hover {
  color: var(--amber);
}

.copyright {
  border-top: 1px solid var(--brown);
  font-size: 14px;
  padding-top: 24px;
  text-align: center;
}

.cart-drawer {
  background: var(--soft);
  border-left: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 18px 55px rgba(61, 44, 29, 0.22);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 430px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 180ms ease;
  width: min(100vw, 430px);
  z-index: 300;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  border-bottom: 1px solid var(--line);
  gap: 1rem;
  justify-content: space-between;
  padding: 18px;
}

.cart-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  display: grid;
}

.cart-items {
  overflow: auto;
  padding: 18px;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.cart-line-controls {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cart-line-controls button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 32px;
  width: 32px;
}

.ghost-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 800;
}

.overlay {
  background: rgba(61, 44, 29, 0.35);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 250;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.checkout-dialog {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(61, 44, 29, 0.22);
  max-width: 640px;
  padding: 0;
  width: calc(100% - 2rem);
}

.product-dialog {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(61, 44, 29, 0.26);
  max-width: 980px;
  padding: 0;
  width: calc(100% - 2rem);
}

.product-dialog::backdrop {
  background: rgba(61, 44, 29, 0.38);
}

.product-detail {
  padding: 22px;
}

.product-detail-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-detail-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-gallery-main {
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
}

.product-gallery-thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-gallery-thumbs button {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 3px;
}

.product-gallery-thumbs button.active {
  border-color: var(--amber);
}

.product-gallery-thumbs img {
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: cover;
  width: 100%;
}

.product-detail-copy {
  align-content: start;
  display: grid;
  gap: 14px;
}

.product-detail-copy h2 {
  color: var(--brown);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0;
}

.badge.inline {
  justify-self: start;
  position: static;
}

.checkout-dialog::backdrop {
  background: rgba(61, 44, 29, 0.35);
}

.checkout-form {
  padding: 24px;
}

.dialog-header {
  gap: 18px;
  justify-content: space-between;
}

.dialog-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
}

.toast {
  background: var(--ink);
  border-radius: 12px;
  bottom: 1rem;
  color: var(--white);
  left: 50%;
  max-width: calc(100% - 2rem);
  opacity: 0;
  padding: 12px 16px;
  position: fixed;
  transform: translate(-50%, 1rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 500;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-body {
  background: #efe8dd;
}

.admin-shell {
  padding: clamp(1rem, 4vw, 3rem);
}

.login-panel,
.admin-section,
.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.login-panel {
  gap: 2rem;
  grid-template-columns: 1fr minmax(280px, 420px);
  margin: 7vh auto;
  max-width: 1000px;
  padding: 2rem;
}

.hidden {
  display: none !important;
}

.admin-header {
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-title-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-header h1,
.login-panel h1 {
  color: var(--brown);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  margin: 0;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.metric {
  padding: 1rem;
}

.metric span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.metric strong {
  color: var(--brown);
  font-size: 2rem;
}

.admin-section {
  margin-bottom: 1rem;
  padding: 1rem;
}

.section-heading.compact h2 {
  color: var(--brown);
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 0 0 1rem;
}

.admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-products {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-product {
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem;
}

.import-panel {
  background: #fffaf5;
  border: 1px dashed #d4b896;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.import-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.event-list {
  display: grid;
  gap: 0.6rem;
  max-height: 440px;
  overflow: auto;
}

.event-item {
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
}

.event-item small {
  color: var(--muted);
  display: block;
}

.event-item pre {
  white-space: pre-wrap;
}

.admin-lang-toggle {
  background: var(--cream);
  border: 1px solid #d4b896;
  border-radius: 8px;
  color: var(--brown);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.admin-lang-toggle button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--brown);
  font-weight: 800;
  padding: 7px 10px;
}

.admin-lang-toggle button.active {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(61, 44, 29, 0.1);
}

.admin-body .btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--brown);
}

@media (max-width: 1024px) {
  .value-grid,
  .category-grid,
  .product-grid,
  .trust-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid,
  .finder-inner,
  .newsletter-form,
  .login-panel,
  .split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-form button {
    min-height: 46px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-link {
    display: none;
  }

  .cart-button,
  .lang-btn {
    padding: 7px 10px;
  }

  .hero.attach-hero {
    min-height: 500px;
    padding: 70px 0;
  }

  .value-grid,
  .category-grid,
  .product-grid,
  .review-grid,
  .trust-grid,
  .metric-grid,
  .footer-grid,
  .admin-form,
  .admin-product {
    grid-template-columns: 1fr;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .value-props,
  .categories,
  .products,
  .reviews,
  .newsletter {
    padding: 56px 0;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Shopline-style admin console */
.admin-console {
  background: #f4f6f8;
  border: 1px solid #e3e8ee;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(36, 30, 22, 0.14);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 2rem);
  overflow: hidden;
}

.admin-sidebar {
  background: #17212f;
  color: #d8e0ea;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 20px 14px;
}

.admin-brand {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 10px;
  font-weight: 900;
  margin: 2px 6px 26px;
}

.admin-brand .logo-icon {
  height: 34px;
  width: 34px;
}

.admin-nav {
  display: grid;
  gap: 6px;
  align-content: start;
}

.admin-nav button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #aeb9c7;
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
}

.admin-nav button:hover,
.admin-nav button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-main {
  min-width: 0;
  overflow: auto;
  padding: 22px;
}

.admin-topbar {
  align-items: center;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(37, 48, 63, 0.06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px;
}

.admin-topbar h1 {
  color: #1f2937;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.15;
  margin: 0;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-grid-two {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.admin-console .admin-section,
.admin-console .metric {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(37, 48, 63, 0.06);
}

.admin-section-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.toolbar-actions,
.quick-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-help {
  color: #667085;
  margin: 0 0 18px;
}

.admin-console .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-console .metric span {
  color: #667085;
  font-size: 0.83rem;
}

.admin-console .metric strong {
  color: #111827;
  font-size: 1.9rem;
}

.file-upload-btn,
.image-upload {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
}

.file-upload-btn input,
.image-upload input {
  display: none;
}

.product-editor-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(37, 48, 63, 0.06);
  display: grid;
  gap: 18px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 16px;
}

.product-editor-media {
  display: grid;
  gap: 12px;
  align-content: start;
}

.image-slot-grid {
  display: grid;
  gap: 10px;
}

.image-slot {
  background: #f8fafc;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.image-slot-preview {
  align-items: center;
  aspect-ratio: 1.25;
  background: #eef2f6;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #667085;
  display: flex;
  font-size: 0.85rem;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
}

.image-slot-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-upload.compact {
  min-height: 34px;
  padding: 7px 10px;
}

.image-slot input {
  min-height: 38px;
  padding: 8px 10px;
}

.product-editor-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-editor-head {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-editor-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-editor-card label,
.admin-form label {
  color: #344054;
}

.product-editor-card input,
.product-editor-card select,
.product-editor-card textarea,
.admin-console .admin-form input,
.admin-console .admin-form textarea,
.admin-search {
  border-color: #d0d5dd;
  border-radius: 10px;
}

.ghost-button.danger {
  color: #b42318;
}

.email-list {
  display: grid;
  gap: 10px;
}

.compact-list {
  max-height: 360px;
  overflow: auto;
}

.email-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.email-avatar {
  align-items: center;
  background: linear-gradient(135deg, #f59e0b, #e56b52);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.email-card strong,
.email-card a,
.email-card span {
  display: block;
}

.email-card a {
  color: #2563eb;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.email-card span,
.email-card small {
  color: #667085;
}

.admin-search {
  max-width: 280px;
}

@media (max-width: 1100px) {
  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
  }

  .admin-nav button {
    min-width: max-content;
  }

  .admin-grid-two,
  .product-editor-card {
    grid-template-columns: 1fr;
  }

  .image-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-main {
    padding: 14px;
  }

  .admin-topbar,
  .admin-section-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-editor-grid,
  .admin-console .metric-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .email-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .email-card small {
    grid-column: 2;
  }
}
