/* Foundry Honey Organized Package
   Shared styles for storefront, auth modal, cart drawer, chat widget, and admin dashboard. */

:root {
  --bg: #fffaf1;
  --surface: #ffffff;
  --surface-alt: #fff4d8;
  --text: #3f2b1f;
  --text-soft: #6d5848;
  --line: #eddab6;
  --primary: #f4b400;
  --primary-deep: #d99200;
  --accent: #ffcf57;
  --dark: #24150e;
  --shadow: 0 14px 40px rgba(78, 52, 19, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.26), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #fff7e8 100%);
}

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

button,
input {
  font: inherit;
}

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, #2f2118, #52392a);
  color: #fff4d6;
  font-size: 0.92rem;
}

.topbar-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(237, 218, 182, 0.9);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: 0 10px 24px transparent;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1,
.footer-brand h3 {
  margin: 0;
  font-size: 1.2rem;
}

.brand p,
.footer-brand p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.search-wrap {
  width: 100%;
}

.search {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(91, 57, 24, 0.06);
}

.search svg {
  width: 20px;
  height: 20px;
  fill: #96724e;
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
}

.search button,
.header-link-btn,
.cart-pill,
.primary-btn,
.secondary-btn,
.auth-btn,
.chip-btn,
.product-btn,
.buy-btn {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search button,
.primary-btn,
.auth-btn,
.product-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: 0 10px 24px rgba(244, 180, 0, 0.26);
}

.search button:hover,
.primary-btn:hover,
.auth-btn:hover,
.product-btn:hover,
.chat-btn:hover,
.chip-btn:hover {
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link-btn,
.cart-pill {
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.cart-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff4d8;
  border: 1px solid #f3dfba;
}

.hero-section {
  padding: 38px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.story-card,
.testimonial-card,
.product-card,
.hero-card,
.trust-strip article {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(237, 218, 182, 0.95);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9b6b12;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-copy h2,
.section-heading h2,
.story-card h2 {
  margin: 0;
  line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-copy p,
.story-card p,
.result-count,
.testimonial-card p,
.story-points p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.secondary-btn {
  background: #fff2cc;
  color: #7d5810;
  border: 1px solid #f1dfad;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-highlights article {
  background: #fff8ea;
  border: 1px solid #f3dfba;
  border-radius: 18px;
  padding: 16px;
}

.hero-highlights strong,
.story-points strong,
.testimonial-card strong,
.product-meta strong {
  display: block;
  margin-bottom: 6px;
}

.hero-highlights span,
.story-points p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.hero-visual {
  border-radius: var(--radius-xl);
  padding: 18px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 207, 87, 0.6), transparent 35%),
    linear-gradient(180deg, #fff8de, #fff0be);
}

.hero-card {
  border-radius: 24px;
}

.main-banner {
  min-height: 320px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(83, 57, 24, 0.08), rgba(83, 57, 24, 0.18)),
    url('https://images.unsplash.com/photo-1471943311424-646960669fbc?auto=format&fit=crop&w=1200&q=80') center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(255, 244, 214, 0.95);
  color: #7f590a;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

.main-banner h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.main-banner p,
.small-card span,
.small-card strong {
  margin: 0;
}

.hero-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.price-tag {
  font-size: 1.55rem;
  font-weight: 800;
}

.mini-note {
  color: rgba(255, 255, 255, 0.82);
}

.hero-sidecards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.small-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
}

.small-card span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.honey-bg {
  background: linear-gradient(135deg, #fff6d9, #ffe2a0);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.trust-strip article {
  border-radius: 22px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-strip span {
  font-size: 1.6rem;
}

.trust-strip p,
.site-footer p,
.site-footer a {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.category-section,
.products-section,
.story-section,
.testimonial-section {
  padding: 30px 0 10px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.story-card h2 {
  font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.section-heading-between {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.category-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.95);
  color: var(--text);
  border: 1px solid #f0dfbc;
  font-weight: 600;
}

.chip-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
}

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

.product-card {
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  background: #f5e2b7;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 247, 223, 0.95);
  color: #7d5810;
}

.product-content {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.product-meta h3 {
  margin: 0;
  font-size: 1.02rem;
}

.product-meta p,
.product-category {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.product-price {
  white-space: nowrap;
  font-size: 1.18rem;
  font-weight: 800;
  color: #a65b00;
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.product-btn,
.buy-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 700;
}

.buy-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 700;
  background: #fff5dc;
  color: #7d5810;
  border: 1px solid #f0dfbc;
}

.story-card {
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-points {
  display: grid;
  gap: 16px;
}

.story-points article {
  background: #fff8ea;
  border: 1px solid #f3dfba;
  border-radius: 18px;
  padding: 16px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  border-radius: 22px;
  padding: 22px;
}

.site-footer {
  margin-top: 36px;
  padding: 28px 0 50px;
  border-top: 1px solid rgba(237, 218, 182, 0.9);
  background: rgba(255, 249, 235, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 12px 28px rgba(244, 180, 0, 0.35);
}

.chat-window {
  width: min(360px, calc(100vw - 24px));
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(237, 218, 182, 0.95);
  background: #fffdfa;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  display: none;
}

.chat-header {
  padding: 18px;
  background: linear-gradient(135deg, #ffcf57, #f1a800);
  color: white;
}

.chat-header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.chat-body {
  min-height: 220px;
  max-height: 300px;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: #fffdf7;
}

.bot-bubble,
.user-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.5;
}

.bot-bubble {
  background: #fff2cc;
  color: #6d5848;
}

.user-bubble {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(237, 218, 182, 0.95);
}

.chat-input input {
  min-height: 46px;
  border: 1px solid #ecd8b4;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
}

.small-btn {
  min-height: 46px;
  padding-inline: 16px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(27, 18, 9, 0.6);
  z-index: 200;
  padding: 20px;
}

.auth-modal.hidden {
  display: none;
}

.auth-content {
  width: min(460px, 100%);
  background: #fffaf2;
  border-radius: 26px;
  border: 1px solid #f0dfbc;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  padding: 26px;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff3cf;
  color: #7d5810;
  font-size: 1.25rem;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tab {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #f0dfbc;
  background: #fff5dc;
  color: #7d5810;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form.hidden {
  display: none;
}

.auth-form h2 {
  margin: 0 0 6px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  font-weight: 600;
}

.auth-field input {
  min-height: 48px;
  border: 1px solid #ecd8b4;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: white;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: 0.92rem;
}

.auth-btn.guest {
  background: #f3ead4;
  color: var(--text);
  box-shadow: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-card {
    grid-template-columns: 1fr;
  }

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

  .trust-strip,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .header-inner,
  .section-heading-between {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
  }

  .header-inner {
    padding: 14px 0;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-highlights,
  .hero-sidecards,
  .trust-strip,
  .testimonial-grid,
  .footer-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .header-actions,
  .hero-actions,
  .category-chips,
  .product-actions {
    flex-wrap: wrap;
  }

  .search {
    grid-template-columns: 20px 1fr;
  }

  .search button {
    grid-column: 1 / -1;
  }
}



/* Added store cart + admin panel */
.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  background: #edf9ee;
  color: #1e7c33;
  border: 1px solid #ccefd1;
}

.stock-pill.out {
  background: #fff1f1;
  color: #a33434;
  border-color: #f1c3c3;
}

.product-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: stretch end;
  background: rgba(27, 17, 8, 0.46);
}

.cart-panel {
  width: min(500px, 100%);
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  background: #fffdf8;
  border-left: 1px solid rgba(237, 218, 182, 0.95);
  box-shadow: -10px 0 30px rgba(46, 28, 9, 0.16);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.cart-head,
.cart-foot {
  padding: 24px;
  border-bottom: 1px solid #f0dfbc;
}

.cart-foot {
  border-bottom: 0;
  border-top: 1px solid #f0dfbc;
  background: #fff8ea;
}

.cart-items {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: grid;
  gap: 14px;
  align-content: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #eddab6;
  background: white;
}

.cart-item img,
.table-product img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-item h3,
.admin-card h1,
.admin-card h2,
.admin-card p,
.table-product strong {
  margin: 0;
}

.cart-item-copy p,
.table-product p,
.admin-muted,
.admin-label {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.cart-item-actions button,
.mini-action,
.order-status-select {
  border: 1px solid #ead2a3;
  background: #fff8ea;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}

.remove-link {
  color: #9b2d2d;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-checkout-btn {
  width: 100%;
}

.dark-note {
  color: #7a634f;
  margin-top: 12px;
}

.empty-state {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  background: #fff8ea;
  border: 1px dashed #e2c98e;
  color: var(--text-soft);
}

.admin-body {
  min-height: 100vh;
}

.admin-page {
  padding: 36px 0 52px;
}

.admin-guard {
  padding-top: 28px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-card,
.admin-stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(237, 218, 182, 0.95);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.admin-card {
  padding: 24px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.admin-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.admin-stat-card {
  padding: 20px;
}

.admin-stat-card span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.admin-stat-card strong {
  font-size: 1.9rem;
}

.admin-form {
  display: grid;
  gap: 16px;
}

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

textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e9d7b2;
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
  background: white;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f1e2c2;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.table-product {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: start;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-action.danger {
  color: #9b2d2d;
}

.admin-orders-card {
  margin-top: 18px;
}

.admin-orders-list {
  display: grid;
  gap: 14px;
}

.order-card {
  border: 1px solid #eddab6;
  border-radius: 20px;
  background: #fffdf8;
  padding: 18px;
}

.order-head,
.order-item-row,
.order-meta-grid {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.order-head {
  align-items: start;
  margin-bottom: 14px;
}

.order-head-right {
  text-align: right;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}

.admin-label {
  display: block;
  font-size: 0.85rem;
}

.order-meta-grid p,
.order-head p {
  margin: 4px 0 0;
}

.order-items {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1e2c2;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .admin-grid,
  .hero-grid,
  .product-grid,
  .admin-stats,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    order: 3;
  }
}

@media (max-width: 760px) {
  .admin-grid,
  .hero-grid,
  .product-grid,
  .admin-stats,
  .trust-strip,
  .hero-highlights,
  .hero-sidecards,
  .order-meta-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .section-heading-between,
  .admin-hero,
  .header-actions {
    flex-direction: column;
    align-items: start;
  }

  .cart-item,
  .table-product {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    width: 100%;
  }
}


.cart-items::-webkit-scrollbar {
  width: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #e6c66b;
  border-radius: 999px;
}

.cart-items::-webkit-scrollbar-track {
  background: #fff7df;
}


/* Small polish updates for the organized package */
.header-user {
  font-weight: 700;
  color: var(--text);
}

.empty-state {
  color: var(--text-soft);
}

.cart-checkout-btn {
  width: 100%;
}

.auth-message:empty,
#productMessage:empty {
  display: none;
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero-copy,
  .story-card,
  .admin-card {
    padding: 20px;
  }
}


.orders-drawer {
  position: fixed;
  inset: 0;
  z-index: 141;
  display: grid;
  place-items: stretch end;
  background: rgba(27, 17, 8, 0.46);
}

.orders-panel {
  width: min(720px, 100%);
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  background: #fffdf8;
  border-left: 1px solid rgba(237, 218, 182, 0.95);
  box-shadow: -10px 0 30px rgba(46, 28, 9, 0.16);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.orders-summary-row {
  padding: 0 24px 16px;
  border-bottom: 1px solid #f0dfbc;
  background: #fff8ea;
}

.orders-summary-row p {
  margin: 0;
}

.orders-items {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 14px;
  align-content: start;
}

.customer-order-card .order-meta-grid {
  align-items: start;
}

.customer-order-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-cancel-btn {
  width: 100%;
  min-height: 40px;
}

.order-static-note,
.order-note {
  margin: 14px 0 0;
  color: var(--text-soft);
}

.canceled-note {
  color: #9b2d2d;
  font-weight: 600;
}

.stock-pill.paid {
  background: #edf9ee;
  color: #1e7c33;
  border-color: #ccefd1;
}

.stock-pill.preparing {
  background: #fff8e6;
  color: #8c5d08;
  border-color: #f1deab;
}

.stock-pill.shipped {
  background: #eef5ff;
  color: #2f5fb5;
  border-color: #ccddff;
}

.stock-pill.delivered {
  background: #eef9f2;
  color: #187146;
  border-color: #cdecd9;
}

.stock-pill.canceled {
  background: #fff1f1;
  color: #a33434;
  border-color: #f1c3c3;
}

.order-card.canceled,
.customer-order-card.canceled {
  border-color: #f1c3c3;
  background: #fff8f8;
}

.order-status-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.orders-items::-webkit-scrollbar {
  width: 10px;
}

.orders-items::-webkit-scrollbar-thumb {
  background: #e6c66b;
  border-radius: 999px;
}

.orders-items::-webkit-scrollbar-track {
  background: #fff7df;
}

@media (max-width: 760px) {
  .orders-panel {
    width: 100%;
  }

  .customer-order-meta {
    grid-template-columns: 1fr;
  }
}


/* Checkout modal + enhanced order details */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: grid;
  place-items: center;
  background: rgba(27, 17, 8, 0.58);
  padding: 18px;
}

.checkout-dialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(237, 218, 182, 0.95);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.checkout-head {
  border-bottom: 1px solid #f0dfbc;
}

.checkout-body {
  min-height: 0;
  overflow: auto;
  padding: 24px;
  display: grid;
  gap: 18px;
  background: #fffaf0;
}

.checkout-block {
  background: white;
  border: 1px solid #eddab6;
  border-radius: 20px;
  padding: 20px;
}

.checkout-section-heading {
  margin-bottom: 14px;
}

.checkout-section-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.default-address-wrap {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-choice,
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #ead2a3;
  background: #fffaf0;
  cursor: pointer;
}

.checkout-choice input,
.payment-option input,
.save-address-row input {
  margin-top: 3px;
}

.checkout-choice strong,
.payment-option strong {
  display: block;
}

.checkout-choice small,
.payment-option small {
  display: block;
  color: var(--text-soft);
  margin-top: 4px;
}

.address-card,
.order-extra-box {
  background: #fff8ea;
  border: 1px solid #f1dfad;
  border-radius: 16px;
  padding: 14px 16px;
}

.address-card p,
.order-extra-box p {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.checkout-address-form {
  margin-top: 14px;
}

.checkout-grid {
  display: grid;
  gap: 14px;
}

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

.checkout-grid .span-two,
.order-meta-grid .span-two {
  grid-column: span 2;
}

.save-address-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-soft);
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-option.active {
  border-color: #e0b03f;
  background: #fff3c7;
  box-shadow: 0 8px 18px rgba(244, 180, 0, 0.12);
}

.checkout-summary-items {
  display: grid;
  gap: 12px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f2e4c5;
}

.checkout-summary-row p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.checkout-total-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff8ea;
  border: 1px solid #f1dfad;
}

.checkout-total-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkout-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid #f0dfbc;
  background: #fffdf8;
}

.checkout-message {
  margin-bottom: 12px;
}

.customer-order-meta-extended,
.order-meta-grid-extended {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .checkout-dialog {
    width: 100%;
  }

  .payment-options,
  .checkout-grid.two-col,
  .customer-order-meta-extended,
  .order-meta-grid-extended {
    grid-template-columns: 1fr;
  }

  .checkout-grid .span-two,
  .order-meta-grid .span-two {
    grid-column: auto;
  }
}


.chat-btn {
  position: relative;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #7c1c1c;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fffdf7;
}

.chat-message {
  display: grid;
  gap: 4px;
}

.chat-message.is-user {
  justify-items: end;
}

.chat-message-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.chat-message-status {
  font-size: 0.73rem;
  font-weight: 700;
  color: #8c6515;
}

.chat-message-status.customer-status {
  justify-self: end;
}

.chat-message-status.admin-status {
  justify-self: start;
}

.system-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.5;
  background: #f3ead3;
  color: var(--text-soft);
  border: 1px dashed #d9c299;
}

.admin-chat-widget .chat-btn {
  width: 62px;
  height: 62px;
}

.admin-chat-window {
  width: min(860px, calc(100vw - 24px));
}

.admin-chat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 520px;
}

.admin-chat-sidebar {
  border-right: 1px solid rgba(237, 218, 182, 0.95);
  background: #fff8ea;
  display: flex;
  flex-direction: column;
}

.admin-chat-sidebar-head {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(237, 218, 182, 0.95);
}

.admin-chat-unread-summary {
  font-size: 0.82rem;
  color: #8c6515;
  font-weight: 700;
}

.admin-chat-threads {
  padding: 10px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.admin-chat-thread {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #f0dfbc;
  background: #fffdf7;
  display: grid;
  gap: 6px;
}

.admin-chat-thread.active {
  border-color: #e3b54a;
  background: #fff4d8;
  box-shadow: 0 10px 22px rgba(244, 180, 0, 0.14);
}

.thread-name-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.thread-name-row strong {
  font-size: 0.96rem;
}

.thread-unread {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #7c1c1c;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.thread-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.thread-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: #f5ecd8;
  color: #7d5c20;
}

.thread-status.waiting {
  background: #fde8e8;
  color: #8b1f1f;
}

.thread-status.replied {
  background: #e8f7ea;
  color: #1f6b34;
}

.thread-status.seen {
  background: #e8f0ff;
  color: #2451a8;
}

.thread-status.neutral {
  background: #f5ecd8;
  color: #7d5c20;
}

.admin-chat-thread p,
.thread-time {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.83rem;
}

.thread-preview {
  min-height: 34px;
}

.admin-chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

.admin-chat-meta {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(237, 218, 182, 0.95);
  background: #fffdf7;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-soft);
}

.admin-chat-meta strong {
  color: var(--text);
}

.admin-chat-body {
  min-height: 0;
  max-height: none;
  height: 100%;
}

.admin-chat-input {
  border-top: 1px solid rgba(237, 218, 182, 0.95);
  background: #fffdf7;
}

@media (max-width: 900px) {
  .admin-chat-window {
    width: min(96vw, 720px);
  }

  .admin-chat-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 210px minmax(0, 1fr);
  }

  .admin-chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(237, 218, 182, 0.95);
  }
}


/* Order confirmation and feedback */
.delivery-confirm-box,
.feedback-summary-box {
  margin-top: 16px;
  border: 1px solid rgba(237, 218, 182, 0.95);
  background: #fffaf0;
  border-radius: 18px;
  padding: 16px;
}

.delivery-confirm-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.delivery-confirm-box.confirmed {
  background: #f6fff7;
  border-color: #cfe8cf;
}

.small-confirm-btn {
  min-height: 42px;
  padding-inline: 16px;
}

.feedback-form {
  margin-top: 16px;
  border: 1px solid rgba(237, 218, 182, 0.95);
  background: #fffdf7;
  border-radius: 20px;
  padding: 18px;
}

.feedback-form-grid,
.feedback-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field label {
  font-weight: 700;
}

.feedback-comment-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  border: 1px solid #ecd8b4;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: white;
  outline: none;
}

.rating-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-star-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #f0dfbc;
  background: #fff7e0;
  color: #c48a09;
  font-size: 1.25rem;
  cursor: pointer;
}

.rating-star-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  border-color: transparent;
}

.rating-helper,
.feedback-score-text,
.feedback-comment.muted {
  color: var(--text-soft);
}

.feedback-form-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.feedback-submit-btn {
  min-height: 44px;
}

.feedback-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.feedback-score-grid > div {
  background: #fff7e8;
  border: 1px solid #f3dfba;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.feedback-stars-readonly {
  color: #d79a08;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.feedback-comment {
  margin: 14px 0 0;
  line-height: 1.65;
}

.admin-feedback-confirm-box {
  margin-bottom: 0;
}

.stock-edit-btn {
  border: 0;
  cursor: pointer;
}

.stock-editor-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-input {
  width: 92px;
  min-height: 38px;
  border: 1px solid #ecd8b4;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

.mini-action.success {
  background: #ebfff0;
  color: #167c2d;
  border: 1px solid #cbe7d0;
}

@media (max-width: 860px) {
  .delivery-confirm-box,
  .feedback-form-actions,
  .feedback-summary-head {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-form-grid,
  .feedback-score-grid {
    grid-template-columns: 1fr;
  }
}



/* Finance automation add-on */
.finance-overview-card,
.finance-reports-card {
  margin-top: 22px;
}

.finance-process-note {
  max-width: 420px;
  text-align: right;
}

.finance-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin: 22px 0;
}

.finance-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finance-metric-card,
.finance-chart-card,
.costing-summary-card,
.costing-row-card,
.report-card {
  border: 1px solid #f1dfad;
  background: #fff8ea;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(91, 57, 24, 0.06);
}

.finance-metric-card {
  padding: 18px;
}

.finance-metric-card span,
.costing-summary-card span,
.report-card-head h3,
.finance-chart-head h3 {
  display: block;
}

.finance-metric-card span,
.finance-metric-card p,
.costing-summary-card span,
.costing-row-card p,
.journal-item p,
.finance-bar-meta span,
.report-table-wrap td:first-child,
.report-table-wrap th {
  color: var(--text-soft);
}

.finance-metric-card strong,
.costing-summary-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.4rem;
}

.finance-metric-card p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.92rem;
}

.finance-charts-wrap,
.finance-report-grid {
  display: grid;
  gap: 14px;
}

.finance-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.finance-chart-card {
  padding: 18px;
}

.finance-chart-head h3,
.report-card-head h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.finance-bar-list {
  display: grid;
  gap: 12px;
}

.finance-bar-row {
  display: grid;
  gap: 8px;
}

.finance-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.finance-bar-meta strong,
.journal-item-head strong,
.costing-row-main strong {
  font-size: 0.95rem;
}

.finance-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #f4e7c2;
}

.finance-bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.costing-summary-wrap {
  margin-bottom: 16px;
}

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

.costing-summary-card,
.costing-row-card,
.report-card,
.journal-item {
  padding: 16px;
}

.costing-list-wrap {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.costing-row-main,
.journal-item-head,
.journal-item-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.costing-value-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff4d8;
  border: 1px solid #f0dfbc;
  font-weight: 700;
  color: #7d5810;
}

.costing-row-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.costing-row-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
}

.costing-input-row {
  display: flex;
  gap: 8px;
}

.costing-input-row input,
.costing-static {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #eddab6;
  background: #fffdfa;
  padding: 0 12px;
}

.costing-input-row input {
  width: 100%;
}

.costing-static {
  display: flex;
  align-items: center;
  margin: 0;
}

.finance-reports-wrap {
  margin-top: 8px;
}

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

.report-card-wide {
  grid-column: 1 / -1;
}

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

.finance-table {
  width: 100%;
  border-collapse: collapse;
}

.finance-table td,
.finance-table th {
  padding: 10px 0;
  border-bottom: 1px solid #f1dfad;
  text-align: left;
  font-size: 0.93rem;
}

.finance-table td:last-child,
.finance-table th:last-child {
  text-align: right;
  font-weight: 700;
}

.finance-table.compact th,
.finance-table.compact td {
  padding-right: 8px;
}

.finance-table .positive {
  color: #227a2e;
}

.finance-table .negative {
  color: #b13c2e;
}

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

.journal-item {
  background: #fffdfa;
}

.journal-item-head span,
.journal-item-foot span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.journal-item p {
  margin: 8px 0;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .finance-metrics-grid,
  .finance-visual-grid,
  .finance-report-grid,
  .costing-summary-grid,
  .finance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .finance-grid,
  .finance-metrics-grid,
  .finance-visual-grid,
  .finance-report-grid,
  .costing-summary-grid,
  .costing-row-grid {
    grid-template-columns: 1fr;
  }

  .finance-process-note {
    text-align: left;
    max-width: none;
  }
}


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

.finance-report-actions .result-count {
  margin: 0;
}

@media (max-width: 720px) {
  .finance-report-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* PHP/Laragon conversion additions */
.notice-bar, .flash-message {
  width: min(var(--container), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff7df;
}
.flash-message.success { background: #ecfdf3; border-color: #bbe8c9; color: #166534; }
.flash-message.error { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.flash-message.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.page-section { width: min(var(--container), calc(100% - 32px)); margin: 24px auto; }
.simple-grid { display: grid; gap: 18px; }
.two-col { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.panel-card, .cart-card, .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-grid.two { grid-template-columns: 1fr; } }
.form-card input, .form-card textarea, .form-card select,
.panel-card input, .panel-card textarea, .panel-card select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ecd8b4;
  border-radius: 14px;
  padding: 10px 14px;
  background: white;
  font: inherit;
}
.form-card textarea, .panel-card textarea { min-height: 110px; resize: vertical; }
.inline-form { display: inline; }
.inline-flex-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-list, .orders-items { display: grid; gap: 14px; }
.order-card, .mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff9ee;
  padding: 16px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .summary-grid { grid-template-columns: 1fr; } }
.summary-grid .admin-stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.table-wrap { overflow-x: auto; }
.admin-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.table-product { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.badge-soft { display:inline-block; padding: 5px 10px; border-radius: 999px; background:#fff1bf; font-size: .85rem; font-weight:600; }
.product-tools { display:flex; gap:10px; flex-wrap: wrap; margin-top: 10px; }
.cart-table { width:100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom:1px solid var(--line); padding:12px 8px; text-align:left; vertical-align: top; }
.cart-total-line { display:flex; justify-content:space-between; gap:12px; font-size:1.1rem; margin-top:16px; }
.empty-box { padding:22px; border-radius:18px; background:#fff7e7; border:1px dashed #e6cc95; }
.small-muted, .muted { color: var(--text-soft); }
.auth-links { display:flex; gap:10px; flex-wrap: wrap; }
.admin-live-note { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom: 14px; }
.status-form select { min-height: 40px; }
.qty-input { width: 80px; min-height: 40px; padding: 8px 10px; border-radius: 10px; border:1px solid #ecd8b4; }
.top-space { margin-top: 20px; }
.link-btn { background:none; border:none; padding:0; color:inherit; text-decoration:underline; cursor:pointer; }
.center-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.product-grid.server-grid .product-card { display:flex; flex-direction:column; }
.product-grid.server-grid .product-image img { width:100%; height:220px; object-fit:cover; }
.product-grid.server-grid .product-content { display:grid; gap:12px; height:100%; }
.helper-text { font-size:.92rem; color:var(--text-soft); }
.success-text { color:#166534; }
.error-text { color:#be123c; }
.auth-shell { min-height: calc(100vh - 220px); display:grid; place-items:center; padding: 30px 0; }
.nav-pills { display:flex; gap:12px; flex-wrap:wrap; }
.nav-pills a { padding:10px 14px; border-radius:999px; background:#fff3cf; border:1px solid var(--line); }
.status-chip { display:inline-block; padding:6px 12px; border-radius:999px; font-weight:700; font-size:.85rem; }
.status-paid { background:#fff7cc; color:#8a6400; }
.status-preparing { background:#e0f2fe; color:#075985; }
.status-shipped { background:#ede9fe; color:#5b21b6; }
.status-delivered { background:#dcfce7; color:#166534; }
.status-canceled { background:#ffe4e6; color:#be123c; }

/* Admin panel cleanup patch */
.page-section.admin-dashboard-page {
  width: min(1380px, calc(100% - 32px));
  display: grid;
  gap: 22px;
}

.admin-page-intro {
  margin-bottom: 0;
  align-items: end;
}

.admin-page-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.admin-card-note {
  max-width: 460px;
  margin: 0;
}

.admin-add-card {
  padding: 26px;
}

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

.admin-product-form-grid .span-2 {
  grid-column: span 2;
}

.admin-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-form-foot p {
  margin: 0;
}

.admin-live-shell,
.admin-live-stack {
  display: grid;
  gap: 22px;
}

.admin-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-summary-grid .admin-stat-card {
  min-width: 0;
}

.finance-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.finance-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.finance-visual-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.finance-process-note {
  max-width: 420px;
}

.costing-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.costing-list-wrap {
  max-height: 560px;
  overflow: auto;
  padding-right: 6px;
}

.costing-row-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.costing-row-grid > div,
.finance-chart-card,
.report-card,
.finance-metric-card,
.costing-row-card,
.costing-summary-card {
  min-width: 0;
}

.costing-input-row .secondary-btn {
  min-height: 40px;
  padding-inline: 16px;
}

.finance-report-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.finance-report-actions {
  align-items: center;
  justify-content: flex-end;
}

.finance-report-actions .secondary-btn,
.finance-report-actions .primary-btn {
  min-height: 42px;
}

.admin-section-card {
  overflow: hidden;
}

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

.admin-table {
  min-width: 880px;
}

.admin-inline-form .qty-input {
  width: 88px;
}

.danger-btn {
  background: #fff4f4;
  color: #a33434;
  border: 1px solid #f1c3c3;
}

.admin-order-card-clean {
  background: #fffdfa;
  padding: 22px;
}

.admin-order-grid-clean {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.admin-order-grid-clean .span-two {
  grid-column: span 2;
}

.status-form select {
  min-width: 180px;
}

.order-head-right strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

.order-item-row span,
.order-item-row strong,
.feedback-comment,
.delivery-confirm-box p,
.feedback-summary-head p {
  overflow-wrap: anywhere;
}

.admin-scroll-area::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-scroll-area::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb {
  background: #e6c66b;
  border-radius: 999px;
}

.admin-scroll-area::-webkit-scrollbar-track,
.admin-table-wrap::-webkit-scrollbar-track {
  background: #fff7df;
}

@media (max-width: 1180px) {
  .admin-product-form-grid,
  .admin-order-grid-clean,
  .costing-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-product-form-grid .span-2,
  .admin-order-grid-clean .span-two {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .page-section.admin-dashboard-page {
    width: min(1380px, calc(100% - 24px));
  }

  .finance-grid,
  .finance-visual-grid,
  .finance-report-grid {
    grid-template-columns: 1fr;
  }

  .finance-report-actions {
    justify-content: flex-start;
  }

  .admin-table {
    min-width: 760px;
  }
}

@media (max-width: 760px) {
  .admin-page-intro,
  .admin-form-foot,
  .finance-report-actions,
  .order-head,
  .order-head-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-product-form-grid,
  .admin-order-grid-clean,
  .costing-row-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-form-grid .span-2,
  .admin-order-grid-clean .span-two {
    grid-column: auto;
  }

  .status-form select {
    min-width: 0;
    width: 100%;
  }

  .admin-table {
    min-width: 680px;
  }
}

/* Admin sequence layout fix */
.admin-sequence-page {
  gap: 24px;
}

.admin-products-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.admin-products-row > .admin-products-card {
  flex: 0 0 44%;
  max-width: 44%;
}

.admin-products-row > .admin-inventory-wrap {
  flex: 1 1 56%;
  min-width: 0;
}

.admin-products-card,
.admin-inventory-card {
  height: 100%;
}

.admin-products-card {
  position: sticky;
  top: 110px;
}

.admin-inventory-wrap,
.admin-inventory-wrap > .admin-inventory-card {
  width: 100%;
}

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

.admin-inventory-card .admin-table {
  min-width: 760px;
}

.admin-inventory-card .table-wrap {
  max-height: 920px;
  overflow: auto;
}

.finance-grid-tight {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .admin-products-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-products-row > .admin-products-card,
  .admin-products-row > .admin-inventory-wrap {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .admin-products-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-product-form-grid.compact-two-col {
    grid-template-columns: 1fr;
  }

  .admin-product-form-grid.compact-two-col .span-2 {
    grid-column: auto;
  }
}


/* Auth modal AJAX patch */
.auth-content-modal {
  width: min(460px, calc(100% - 32px));
}

.auth-subtle {
  margin: 0 0 6px;
  color: var(--text-soft);
  line-height: 1.55;
}

.auth-message {
  min-height: 18px;
}

.auth-message.is-success {
  color: #1e7c33;
}

.auth-message.is-error {
  color: #b42318;
}

.auth-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

body.modal-open {
  overflow: hidden;
}


/* Product size/ml variant controls */
.product-tools-variant {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: end;
}

.variant-select-wrap {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-variant-select,
.variant-select-wrap select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ecd8b4;
  border-radius: 14px;
  background: #fffdf8;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
}

.variant-admin-table {
  min-width: 1100px;
}

.variant-admin-list {
  display: grid;
  gap: 10px;
  min-width: 520px;
}

.variant-admin-row,
.variant-add-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #f0dfbc;
  border-radius: 16px;
  background: #fffaf0;
}

.variant-admin-row {
  grid-template-columns: 1.1fr 0.9fr 0.9fr 0.7fr 0.55fr auto auto;
  align-items: end;
}

.variant-admin-row label,
.variant-add-form label {
  display: grid;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--text-soft);
  font-weight: 700;
}

.variant-admin-row input,
.variant-add-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #ecd8b4;
  border-radius: 12px;
  background: white;
  padding: 0 10px;
  font: inherit;
}

.variant-active-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  padding-bottom: 9px;
}

.variant-active-check input {
  width: auto;
  min-height: auto;
}

.variant-hide-btn {
  margin-top: 4px;
}

.variant-add-form {
  min-width: 210px;
}

.variant-add-form .primary-btn {
  width: 100%;
}

@media (max-width: 900px) {
  .product-tools-variant {
    grid-template-columns: 1fr;
  }

  .variant-admin-table {
    min-width: 760px;
  }

  .variant-admin-row {
    grid-template-columns: 1fr 1fr;
  }

  .variant-active-check {
    padding-bottom: 0;
  }
}

/* Clean product variant selector: all products can keep editable size/price options */
.product-tools-variant {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}

.variant-picker {
  display: grid;
  gap: 8px;
}

.variant-label {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.variant-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #ead2a3;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--text);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.variant-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(244, 180, 0, 0.12);
}

.variant-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(244, 180, 0, 0.20);
}

.variant-chip.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  text-decoration: line-through;
}

.variant-chip.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.product-purchase-row {
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:12px;
}

.qty-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:120px;
  height:46px;
  background:#fff;
  border:1px solid #ececec;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  flex-shrink:0;
}

.qty-btn{
  width:38px;
  height:46px;
  border:none;
  background:transparent;
  font-size:20px;
  font-weight:700;
  color:#444;
  cursor:pointer;
  transition:all .2s ease;
}

.qty-btn:hover{
  background:#f7f7f7;
}

.qty-input{
  width:60px !important;
  border:none;
  text-align:center;
  font-size:15px;
  font-weight:600;
  background:transparent;
  appearance:textfield;
  -moz-appearance:textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.product-btn-group{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.product-btn{
  width:100%;
  min-height:46px;
  border-radius:14px;
}

@media (max-width:760px){
  .product-purchase-row{
    flex-direction:column;
    align-items:stretch;
  }

  .qty-wrapper{
    width:100%;
  }
}


/* =========================================================
   Admin Panel Final Cleanup Patch
   Fixes the admin page width, spacing, header, cards, tables,
   and removes the unwanted horizontal page scroll.
   ========================================================= */
html,
body {
  max-width: 100%;
}

.admin-layout-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 207, 87, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(244, 180, 0, 0.16), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #fff8ea 42%, #fffaf1 100%);
}

.admin-layout-body .topbar {
  background: #2f2118;
  border-bottom: 1px solid rgba(255, 218, 124, 0.18);
}

.admin-layout-body .topbar-inner {
  width: min(1440px, calc(100% - 32px));
  min-height: 38px;
}

.admin-layout-body .topbar .nav-pills a {
  background: rgba(255, 244, 214, 0.12);
  border-color: rgba(255, 244, 214, 0.2);
  color: #fff4d6;
  padding: 7px 12px;
}

.admin-layout-body .site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 30px rgba(75, 48, 18, 0.08);
}

.admin-layout-body .header-inner {
  width: min(1440px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px;
  gap: 20px;
}

.admin-layout-body .brand {
  min-width: 0;
}

.admin-layout-body .brand h1 {
  font-size: 1.22rem;
}

.admin-layout-body .brand p {
  max-width: none;
  white-space: normal;
}

.admin-layout-body .logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.admin-layout-body .header-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-layout-body .header-link-btn,
.admin-layout-body .admin-header-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #f0dfbc;
  background: #fff8ea;
  color: #4b321f;
  font-weight: 800;
  text-decoration: none;
}

.admin-layout-body .header-user {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-layout-body .site-footer {
  display: none;
}

.page-section.admin-dashboard-page {
  width: min(1440px, calc(100% - 32px));
  max-width: 100%;
  margin: 24px auto 52px;
  display: grid;
  gap: 24px;
}

.admin-page-intro {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(237, 218, 182, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 207, 87, 0.45), transparent 34%),
    linear-gradient(135deg, #fffdf7 0%, #fff3cc 100%);
  box-shadow: 0 18px 42px rgba(78, 52, 19, 0.10);
}

.admin-page-intro h2 {
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

.admin-page-intro .helper-text {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1rem;
}

.admin-page-intro .center-actions {
  justify-content: flex-end;
}

.admin-live-shell,
.admin-live-stack,
.admin-inventory-wrap,
.panel-card,
.admin-section-card,
.finance-overview-card,
.finance-reports-card {
  min-width: 0;
  max-width: 100%;
}

.summary-grid.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-grid .admin-stat-card,
.admin-stat-card {
  min-width: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #eddab6;
  box-shadow: 0 12px 30px rgba(78, 52, 19, 0.08);
}

.admin-stat-card span {
  color: #7a634f;
  font-weight: 700;
}

.admin-stat-card strong {
  display: block;
  color: #2f2118;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  letter-spacing: -0.03em;
}

.panel-card,
.form-card,
.cart-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(237, 218, 182, 0.98);
  box-shadow: 0 18px 42px rgba(78, 52, 19, 0.09);
}

.section-heading-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.admin-section-card h2,
.finance-overview-card h2,
.finance-reports-card h2 {
  letter-spacing: -0.03em;
}

.finance-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finance-metric-card,
.finance-chart-card,
.costing-summary-card,
.costing-row-card,
.report-card,
.journal-item {
  min-width: 0;
  background: #fffaf0;
  border: 1px solid #f1dfad;
  box-shadow: none;
}

.finance-metric-card strong,
.costing-summary-card strong {
  overflow-wrap: anywhere;
}

.finance-grid,
.finance-grid.finance-grid-tight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

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

.costing-list-wrap {
  max-height: 610px;
}

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

.admin-products-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  flex-wrap: initial;
}

.admin-products-row > .admin-products-card,
.admin-products-row > .admin-inventory-wrap {
  flex: initial;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.admin-products-card {
  position: sticky;
  top: 112px;
  align-self: start;
}

.admin-add-card {
  padding: 24px;
}

.admin-product-form-grid.compact-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.admin-product-form-grid.compact-two-col .span-2 {
  grid-column: 1 / -1;
}

.admin-form-foot {
  padding-top: 4px;
  border-top: 1px solid #f3e5c8;
}

.admin-inventory-card .table-wrap,
.admin-table-wrap,
.report-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 18px;
  border: 1px solid #f2e1bf;
  background: #fffdf8;
}

.admin-inventory-card .admin-table,
.variant-admin-table {
  min-width: 980px;
  width: 100%;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff7df;
  color: #6d5848;
  font-weight: 800;
  white-space: nowrap;
}

.admin-table td {
  background: #fffdf8;
}

.table-product {
  min-width: 0;
}

.table-product img {
  width: 64px;
  height: 64px;
}

.variant-admin-list {
  min-width: 0;
  width: 100%;
}

.variant-admin-row {
  grid-template-columns: repeat(5, minmax(90px, 1fr)) auto auto;
  align-items: end;
  gap: 8px;
}

.variant-admin-row label,
.variant-add-form label,
.auth-field label {
  color: #6d5848;
}

.variant-admin-row input,
.variant-add-form input,
.auth-field input,
.auth-field textarea,
.panel-card select,
.form-card select {
  border-color: #ead2a3;
  background: #fffefa;
}

.variant-add-form {
  min-width: 0;
  gap: 10px;
}

.order-list {
  display: grid;
  gap: 16px;
}

.admin-order-card-clean {
  border-radius: 22px;
  background: #fffdf8;
}

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

.delivery-confirm-box,
.feedback-summary-box {
  background: #fffaf0;
}

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

.report-card-wide {
  grid-column: 1 / -1;
}

.live-chat-widget,
.gemini-chat-launcher,
.ai-chat-launcher {
  z-index: 250;
}

@media (max-width: 1220px) {
  .summary-grid.admin-summary-grid,
  .finance-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-grid,
  .finance-grid.finance-grid-tight,
  .admin-products-row {
    grid-template-columns: 1fr;
  }

  .admin-products-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .admin-layout-body .header-inner {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .admin-layout-body .header-actions {
    justify-content: flex-start;
  }

  .admin-page-intro,
  .section-heading-between,
  .admin-form-foot,
  .order-head,
  .feedback-summary-head,
  .costing-row-main,
  .journal-item-head,
  .journal-item-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .finance-visual-grid,
  .finance-report-grid,
  .admin-order-grid-clean,
  .costing-row-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-grid-clean .span-two,
  .report-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .page-section.admin-dashboard-page,
  .admin-layout-body .header-inner,
  .admin-layout-body .topbar-inner {
    width: min(100% - 20px, 1440px);
  }

  .admin-page-intro,
  .panel-card,
  .admin-add-card {
    padding: 18px;
    border-radius: 22px;
  }

  .summary-grid.admin-summary-grid,
  .finance-metrics-grid,
  .admin-product-form-grid.compact-two-col {
    grid-template-columns: 1fr;
  }

  .admin-layout-body .header-user {
    max-width: 100%;
  }

  .admin-layout-body .header-link-btn,
  .admin-layout-body .admin-header-btn,
  .admin-page-intro .primary-btn,
  .admin-page-intro .secondary-btn {
    width: 100%;
  }

  .admin-page-intro .center-actions {
    width: 100%;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 10px;
  }
}


/* Inventory clean card layout patch */
.inventory-clean-card {
  overflow: visible;
}

.inventory-heading-clean {
  align-items: flex-start;
  margin-bottom: 18px;
}

.inventory-heading-clean .helper-text {
  margin: 8px 0 0;
}

.inventory-card-list {
  display: grid;
  gap: 16px;
}

.inventory-product-card {
  border: 1px solid #eddab6;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(91, 57, 24, 0.07);
  overflow: hidden;
}

.inventory-product-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #fff8e8, #fff1ca);
  border-bottom: 1px solid #f1dfad;
}

.inventory-product-info {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.inventory-product-info img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #f0dfbc;
  background: #fff8ea;
}

.inventory-product-info strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.inventory-product-info p {
  margin: 4px 0 8px;
  color: var(--text-soft);
}

.inventory-delete-form {
  flex: 0 0 auto;
}

.inventory-product-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.inventory-options-panel,
.inventory-add-form {
  min-width: 0;
  border: 1px solid #f0dfbc;
  border-radius: 18px;
  background: #fffaf0;
  padding: 14px;
}

.inventory-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.inventory-panel-title strong {
  font-size: 0.98rem;
}

.inventory-panel-title span {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.inventory-variant-list {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 12px;
}

.inventory-variant-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #f1dfad;
  border-radius: 16px;
  background: #fffdf8;
}

.inventory-variant-form {
  display: grid;
  grid-template-columns: minmax(110px, 1.25fr) repeat(4, minmax(84px, 0.9fr)) minmax(72px, 0.55fr) auto;
  gap: 9px;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
}

.inventory-variant-form label {
  min-width: 0;
}

.inventory-variant-form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
}

.inventory-show-check {
  min-height: 40px;
  padding: 0 8px 4px 0 !important;
  justify-content: center;
}

.inventory-show-check input {
  width: auto;
  min-height: auto;
}

.inventory-save-btn {
  min-height: 40px;
  padding-inline: 18px;
  white-space: nowrap;
}

.inventory-hide-form {
  display: flex;
  justify-content: flex-start;
}

.inventory-hide-form .variant-hide-btn {
  margin-top: 0;
  min-height: 38px;
}

.inventory-add-form {
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.inventory-add-title {
  margin-bottom: 0;
}

.inventory-add-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.inventory-add-form .primary-btn,
.inventory-delete-form .danger-btn {
  white-space: nowrap;
}

.admin-inventory-card .admin-table-wrap,
.admin-inventory-card .table-wrap {
  border: 0;
  background: transparent;
  overflow: visible;
}

@media (max-width: 1380px) {
  .inventory-product-body {
    grid-template-columns: 1fr;
  }

  .inventory-add-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .inventory-variant-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inventory-save-btn,
  .inventory-hide-form .variant-hide-btn {
    width: 100%;
  }

  .inventory-hide-form {
    justify-content: stretch;
  }
}

@media (max-width: 860px) {
  .inventory-product-head {
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-delete-form .danger-btn {
    width: 100%;
  }

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

@media (max-width: 640px) {
  .inventory-product-info {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .inventory-product-info img {
    width: 60px;
    height: 60px;
  }

  .inventory-variant-form,
  .inventory-add-grid {
    grid-template-columns: 1fr;
  }

  .inventory-show-check {
    justify-content: flex-start;
  }
}


/* Contact info section */
.contact-section {
  padding: 34px 0 14px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: stretch;
  background:
    radial-gradient(circle at top right, rgba(255, 207, 87, 0.34), transparent 34%),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(237, 218, 182, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.12;
}

.contact-copy p {
  color: var(--text-soft);
  line-height: 1.65;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-info-item {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  background: #fff8ea;
  border: 1px solid #f1dfad;
  border-radius: 18px;
  padding: 16px;
}

.contact-info-item span {
  color: #9b6b12;
  font-weight: 800;
  font-size: 0.9rem;
}

.contact-info-item strong {
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-info-item a,
.footer-contact-block a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-info-address {
  grid-column: 1 / -1;
}

.footer-grid-contact {
  grid-template-columns: 1.05fr 1.35fr 0.75fr;
}

.footer-contact-block p {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .contact-card,
  .footer-grid-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .contact-card {
    padding: 20px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}


/* Top quick-link bubbles visibility patch */
.topbar {
  background: linear-gradient(90deg, #2f2118, #4b3020);
  color: #fff4d6;
}

.topbar-label {
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.topbar-links.nav-pills {
  gap: 10px;
  align-items: center;
}

.topbar-links.nav-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff3cf;
  border: 1px solid #f4d887;
  color: #4a301f;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.topbar-links.nav-pills a:hover {
  background: #ffffff;
  color: #2f2118;
  transform: translateY(-1px);
}

.admin-layout-body .topbar .topbar-links.nav-pills a {
  background: #fff3cf;
  border-color: #f4d887;
  color: #4a301f;
}

.admin-layout-body .topbar .topbar-links.nav-pills a:hover {
  background: #ffffff;
  color: #2f2118;
}

@media (max-width: 900px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .topbar-label {
    white-space: normal;
  }

  .topbar-links.nav-pills {
    width: 100%;
    gap: 8px;
  }

  .topbar-links.nav-pills a {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 0.84rem;
  }
}


/* Phone/mobile usability patch */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(244, 180, 0, 0.22);
}

@media (max-width: 900px) {
  .container,
  .page-section,
  .notice-bar,
  .flash-message,
  .topbar-inner,
  .header-inner {
    width: min(var(--container), calc(100% - 20px));
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 8px 0;
  }

  .topbar-label {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .topbar-links.nav-pills {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 0 2px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topbar-links.nav-pills::-webkit-scrollbar {
    display: none;
  }

  .topbar-links.nav-pills a {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 7px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .site-header {
    top: 0;
  }

  .header-inner {
    min-height: 0;
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand h1,
  .footer-brand h3 {
    font-size: 1.02rem;
    line-height: 1.1;
  }

  .brand p,
  .footer-brand p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
  }

  .header-user {
    width: 100%;
    text-align: right;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .header-link-btn,
  .cart-pill,
  .admin-header-btn,
  .header-actions .secondary-btn {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.84rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .search-wrap {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
  }

  .search {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 18px;
  }

  .search svg {
    width: 18px;
    height: 18px;
  }

  .search input {
    min-width: 0;
    font-size: 0.95rem;
  }

  .search button {
    min-height: 38px;
    padding: 0 14px;
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  main {
    overflow: hidden;
  }

  .hero-section,
  .category-section,
  .products-section,
  .story-section,
  .testimonial-section,
  .contact-section {
    padding: 18px 0 8px;
  }

  .hero-grid,
  .story-card,
  .contact-card {
    gap: 16px;
  }

  .hero-copy,
  .hero-visual,
  .story-card,
  .contact-card,
  .admin-card,
  .panel-card,
  .cart-card,
  .form-card {
    border-radius: 20px;
    padding: 18px;
  }

  .hero-copy h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .hero-copy p,
  .story-card p,
  .contact-copy p,
  .result-count {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-actions,
  .center-actions,
  .admin-hero-actions,
  .cart-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn,
  .center-actions .primary-btn,
  .center-actions .secondary-btn,
  .cart-footer-actions .primary-btn,
  .cart-footer-actions .secondary-btn {
    width: 100%;
  }

  .hero-highlights,
  .hero-sidecards,
  .contact-info-grid,
  .footer-grid,
  .footer-grid-contact,
  .payment-options,
  .checkout-grid.two-col {
    grid-template-columns: 1fr;
  }

  .main-banner {
    min-height: 230px;
    padding: 20px;
    border-radius: 20px;
  }

  .main-banner h3 {
    font-size: 1.55rem;
  }

  .hero-price-row,
  .section-heading-between,
  .admin-page-intro,
  .admin-hero,
  .order-head,
  .order-head-right,
  .feedback-summary-head,
  .delivery-confirm-box,
  .finance-report-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .category-chips .chip-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .product-grid,
  .product-grid.server-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .product-card {
    border-radius: 20px;
  }

  .product-grid.server-grid .product-image img,
  .product-image img {
    height: 100%;
    object-fit: cover;
  }

  .product-image {
    aspect-ratio: 1.35 / 0.95;
  }

  .product-content {
    padding: 14px;
    gap: 10px;
  }

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

  .product-price {
    white-space: normal;
    font-size: 1.08rem;
  }

  .product-bottom-row {
    align-items: flex-start;
  }

  .variant-chip-row {
    gap: 7px;
  }

  .variant-chip {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .product-purchase-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .qty-input,
  .product-purchase-row .qty-input,
  .product-purchase-row .product-btn {
    min-height: 44px;
  }

  .contact-card {
    padding: 18px;
  }

  .contact-info-item {
    padding: 14px;
  }

  .site-footer {
    margin-top: 24px;
    padding: 24px 0 88px;
  }

  .cart-drawer,
  .orders-drawer {
    place-items: stretch;
  }

  .cart-panel,
  .orders-panel {
    width: 100%;
    max-width: 100%;
    border-left: 0;
  }

  .cart-head,
  .cart-foot,
  .checkout-foot {
    padding: 16px;
  }

  .cart-head h2,
  .checkout-head h2 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .cart-items,
  .orders-items {
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item img,
  .table-product img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
  }

  .cart-item > strong {
    grid-column: 2;
    justify-self: start;
  }

  .cart-item-actions button,
  .mini-action,
  .order-status-select {
    min-height: 34px;
    padding: 0 10px;
  }

  .checkout-modal {
    padding: 8px;
    place-items: stretch;
  }

  .checkout-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .checkout-body {
    padding: 14px;
    gap: 12px;
  }

  .checkout-block {
    padding: 14px;
    border-radius: 16px;
  }

  .checkout-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .checkout-choice,
  .payment-option,
  .save-address-row {
    align-items: flex-start;
  }

  .auth-content,
  .auth-content-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
    overflow: auto;
    padding: 20px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .admin-page,
  .page-section.admin-dashboard-page {
    padding-top: 16px;
  }

  .page-section.admin-dashboard-page {
    width: calc(100% - 20px);
    gap: 16px;
  }

  .admin-page-intro h2,
  .admin-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .admin-card,
  .admin-stat-card,
  .finance-metric-card,
  .finance-chart-card,
  .costing-summary-card,
  .costing-row-card,
  .report-card,
  .inventory-product-card {
    border-radius: 18px;
  }

  .admin-card,
  .admin-stat-card,
  .finance-metric-card,
  .finance-chart-card,
  .costing-summary-card,
  .costing-row-card,
  .report-card {
    padding: 14px;
  }

  .admin-summary-grid,
  .summary-grid,
  .finance-metrics-grid,
  .finance-visual-grid,
  .finance-report-grid,
  .costing-summary-grid,
  .costing-row-grid,
  .admin-product-form-grid,
  .admin-product-form-grid.compact-two-col,
  .admin-order-grid-clean,
  .order-meta-grid,
  .customer-order-meta,
  .customer-order-meta-extended,
  .order-meta-grid-extended {
    grid-template-columns: 1fr !important;
  }

  .admin-product-form-grid .span-2,
  .admin-order-grid-clean .span-two,
  .checkout-grid .span-two,
  .order-meta-grid .span-two {
    grid-column: auto !important;
  }

  .admin-products-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-products-card {
    position: static;
  }

  .admin-table-wrap,
  .table-wrap,
  .report-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table,
  .variant-admin-table,
  .finance-table {
    min-width: 640px;
  }

  .inventory-clean-card {
    overflow: visible;
  }

  .inventory-product-head,
  .inventory-product-body,
  .inventory-options-panel,
  .inventory-add-form {
    padding: 12px;
  }

  .inventory-product-info {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .inventory-product-info img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .inventory-panel-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .inventory-variant-form,
  .inventory-add-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .inventory-save-btn,
  .inventory-hide-form .variant-hide-btn,
  .inventory-add-form .primary-btn,
  .inventory-delete-form .danger-btn {
    width: 100%;
  }

  .inventory-show-check {
    justify-content: flex-start;
    padding: 4px 0 !important;
  }

  .finance-process-note {
    text-align: left;
    max-width: none;
  }

  .report-card-head,
  .finance-chart-head,
  .costing-row-main,
  .journal-item-head,
  .journal-item-foot,
  .order-item-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-form select,
  .order-cancel-btn,
  .small-confirm-btn,
  .feedback-submit-btn,
  .primary-btn,
  .secondary-btn,
  .auth-btn {
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    display: flex;
  }

  .header-user {
    text-align: left;
  }

  .search {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-copy,
  .hero-visual,
  .story-card,
  .contact-card {
    padding: 16px;
  }

  .hero-copy h2 {
    font-size: clamp(1.85rem, 11vw, 2.35rem);
  }

  .main-banner {
    min-height: 205px;
  }

  .product-purchase-row {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item img,
  .table-product img {
    width: 100%;
    height: 140px;
  }

  .cart-item > strong {
    grid-column: auto;
  }

  .admin-table,
  .variant-admin-table,
  .finance-table {
    min-width: 560px;
  }
}



/* =========================================================
   Original Design Mobile Polish
   Keeps the existing honey theme. Only improves phone spacing,
   product cards, buttons, and readability.
   ========================================================= */
main section[id], footer[id] {
  scroll-margin-top: 98px;
}

.product-meta h3,
.product-meta p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta h3 { -webkit-line-clamp: 2; }
.product-meta p { -webkit-line-clamp: 2; }

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .topbar-inner,
  .header-inner {
    width: min(var(--container), calc(100% - 22px));
  }

  .topbar-inner {
    min-height: auto;
    gap: 10px;
    padding: 10px 0;
  }

  .topbar-label {
    font-size: 0.95rem;
    font-weight: 800;
  }

  .topbar-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .topbar-links a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff4d8;
    color: #3f2b1f;
    font-weight: 800;
    font-size: 0.9rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 250, 241, 0.98);
  }

  .header-inner {
    padding: 12px 0 14px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    width: 100%;
  }

  .logo {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .brand h1 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .brand p {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .header-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .header-user {
    grid-column: 1 / -1;
    font-size: 0.9rem;
  }

  .header-link-btn,
  .cart-pill {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 999px;
    background: #fff4d8;
    border: 1px solid #f3dfba;
    font-weight: 800;
  }

  .search {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .search input {
    min-width: 0;
    font-size: 0.96rem;
  }

  .search button {
    grid-column: auto !important;
    width: auto !important;
    min-height: 40px;
    padding: 8px 14px;
  }

  .hero-section {
    padding: 18px 0 8px;
  }

  .hero-grid {
    gap: 14px;
  }

  .hero-copy {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .hero-copy h2 {
    font-size: clamp(1.72rem, 8vw, 2.25rem) !important;
    line-height: 1.12;
  }

  .hero-copy p {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 0;
  }

  .hero-actions {
    margin: 20px 0 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
  }

  .hero-highlights {
    gap: 10px;
  }

  .hero-highlights article {
    padding: 13px;
    border-radius: 16px;
  }

  .hero-highlights strong {
    margin-bottom: 3px;
  }

  .hero-highlights span {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .hero-visual {
    display: none;
  }

  .category-section,
  .products-section,
  .story-section,
  .testimonial-section {
    padding-top: 20px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2,
  .story-card h2 {
    font-size: clamp(1.55rem, 7vw, 1.95rem) !important;
    line-height: 1.15;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .category-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 9px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .chip-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 42px;
    padding: 9px 16px;
    font-size: 0.95rem;
  }

  .section-heading-between {
    gap: 8px;
  }

  .result-count {
    margin: 0;
    font-size: 0.92rem;
  }

  .product-grid,
  .product-grid.server-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-image {
    aspect-ratio: 1.55 / 1 !important;
  }

  .product-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .product-content {
    padding: 13px 13px 14px;
    gap: 8px;
  }

  .product-meta {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
  }

  .product-meta h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .product-meta p {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-top: 4px;
  }

  .product-price {
    font-size: 1.05rem;
    white-space: nowrap;
    text-align: right;
  }

  .product-bottom-row {
    margin: 4px 0 3px;
    gap: 8px;
  }

  .product-category {
    font-size: 0.88rem;
  }

  .stock-pill {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .variant-picker {
    gap: 6px;
  }

  .variant-label {
    font-size: 0.8rem;
  }

  .variant-chip-row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .variant-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .product-purchase-row {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 8px;
  }

  .qty-input,
  .product-purchase-row .qty-input,
  .product-purchase-row .product-btn {
    min-height: 42px;
    border-radius: 12px;
  }

  .story-card {
    padding: 18px 15px;
    border-radius: 22px;
    gap: 16px;
  }

  .story-card p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .story-points {
    gap: 10px;
  }

  .story-points article {
    padding: 14px;
    border-radius: 16px;
  }

  .chat-widget {
    right: 14px;
    bottom: 16px;
  }

  .chat-btn {
    width: 54px;
    height: 54px;
  }

  .site-footer {
    padding-bottom: 78px;
  }
}

@media (max-width: 460px) {
  .container,
  .topbar-inner,
  .header-inner {
    width: min(var(--container), calc(100% - 18px));
  }

  .search {
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
  }

  .search button {
    grid-column: auto !important;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.9rem;
  }

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

  .product-meta {
    grid-template-columns: 1fr !important;
  }

  .product-price {
    text-align: left;
    white-space: normal;
  }

  .product-purchase-row {
    grid-template-columns: 70px minmax(0, 1fr) !important;
  }
}


/* =========================================================
   Mobile Quick Shop Upgrade
   Makes product browsing easier on phones with compact cards,
   2-column browsing, and a quick choose drawer.
   ========================================================= */
.mobile-choose-btn,
.product-quick-view {
  display: none;
}

body.quick-view-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .hero-highlights {
    display: none;
  }

  .category-section {
    padding-top: 14px;
    padding-bottom: 4px;
    position: sticky;
    top: 132px;
    z-index: 20;
    background: linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(255, 248, 235, 0.92));
    backdrop-filter: blur(8px);
    margin-bottom: 4px;
  }

  .category-section .section-heading {
    display: none;
  }

  .category-chips {
    padding: 2px 0 8px;
    margin: 0;
  }

  .products-section .section-heading {
    margin-bottom: 10px;
  }

  .products-section .section-heading .eyebrow {
    margin-bottom: 4px;
  }

  .product-grid,
  .product-grid.server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    align-items: start;
  }

  .product-card {
    border-radius: 18px;
    overflow: hidden;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

  .product-grid.server-grid .product-image img,
  .product-image img {
    height: 100%;
    object-fit: cover;
  }

  .product-content {
    padding: 10px;
    gap: 7px;
  }

  .product-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px;
  }

  .product-meta h3 {
    font-size: 0.94rem;
    line-height: 1.25;
    min-height: 2.35em;
    margin: 0;
  }

  .product-meta p {
    display: none;
  }

  .product-price {
    font-size: 0.98rem;
    line-height: 1.2;
    text-align: left;
  }

  .product-bottom-row {
    margin: 0;
    gap: 6px;
    align-items: flex-start;
    flex-direction: column;
  }

  .product-category,
  .stock-pill {
    font-size: 0.76rem;
  }

  .stock-pill {
    min-height: 0;
    padding: 4px 8px;
  }

  .product-tools-variant .variant-picker,
  .product-tools-variant .product-purchase-row {
    display: none !important;
  }

  .mobile-choose-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-weight: 800;
    font-size: 0.89rem;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(244, 180, 0, 0.22);
  }

  .mobile-choose-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
  }

  .product-quick-view {
    display: grid;
    position: fixed;
    inset: 0;
    z-index: 300;
    padding: 12px;
    background: rgba(36, 21, 14, 0.56);
    align-items: end;
  }

  .product-quick-dialog {
    width: min(100%, 560px);
    margin: 0 auto;
    max-height: min(86vh, 86dvh);
    overflow: auto;
    background: #fffdf8;
    border: 1px solid rgba(237, 218, 182, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .product-quick-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 8px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 252, 246, 0.92));
    backdrop-filter: blur(8px);
  }

  .product-quick-head .eyebrow {
    margin: 0;
  }

  .product-quick-body {
    padding: 0 16px 16px;
  }

  .product-quick-card {
    display: grid;
    gap: 14px;
  }

  .product-quick-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff4d8;
  }

  .product-quick-image {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
  }

  .product-quick-badge {
    position: absolute;
  }

  .product-quick-info {
    display: grid;
    gap: 10px;
  }

  .product-quick-meta {
    display: grid;
    gap: 8px;
  }

  .product-quick-meta h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .product-quick-meta p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .product-quick-bottom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .quick-view-variant-row {
    flex-wrap: wrap !important;
    overflow: visible;
    padding-bottom: 0;
  }

  .product-quick-actions {
    grid-template-columns: 80px minmax(0, 1fr) !important;
    position: sticky;
    bottom: 0;
    padding-top: 4px;
    background: #fffdf8;
  }
}

@media (max-width: 460px) {
  .category-section {
    top: 176px;
  }

  .product-grid,
  .product-grid.server-grid {
    gap: 8px;
  }

  .product-content {
    padding: 9px;
  }

  .product-meta h3 {
    font-size: 0.9rem;
  }

  .product-category,
  .stock-pill {
    font-size: 0.72rem;
  }

  .mobile-choose-btn {
    min-height: 38px;
    font-size: 0.84rem;
    padding: 8px 10px;
  }
}

/* FINAL PRODUCT BUTTON OVERRIDE */
.product-purchase-row{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  margin-top:16px !important;
}

.qty-wrapper{
  width:100% !important;
  height:48px !important;
  display:grid !important;
  grid-template-columns:48px 1fr 48px !important;
  align-items:center !important;
  overflow:hidden !important;
  border:2px solid #e8d4a2 !important;
  border-radius:18px !important;
  background:#fff !important;
}

.qty-btn{
  height:100% !important;
  border:none !important;
  background:#fff8ea !important;
  color:#8a5a00 !important;
  font-size:28px !important;
  font-weight:700 !important;
  cursor:pointer !important;
  transition:.2s !important;
}

.qty-btn:hover{
  background:#f4b400 !important;
  color:#fff !important;
}

.qty-input{
  width:100% !important;
  height:100% !important;
  border:none !important;
  outline:none !important;
  text-align:center !important;
  font-size:22px !important;
  font-weight:700 !important;
  background:#fff !important;
  color:#2d2d2d !important;
}

.product-btn-group{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  width:100% !important;
}

.product-btn{
  width:100% !important;
  min-height:48px !important;
  border:none !important;
  border-radius:18px !important;
  font-size:16px !important;
  font-weight:800 !important;
  cursor:pointer !important;
  transition:.2s !important;
}

.product-btn:first-child{
  background:linear-gradient(135deg,#f4b400,#d89200) !important;
  color:#fff !important;
}

.product-btn:last-child{
  background:linear-gradient(135deg,#1d8a34,#18722c) !important;
  color:#fff !important;
}


/* FINAL PRODUCT BUTTON FIX */
.product-purchase-row{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:14px !important;
}

.qty-wrapper{
  width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:60px 1fr 60px !important;
  overflow:hidden !important;
  border:2px solid #e2c98b !important;
  border-radius:18px !important;
  min-height:54px !important;
}

.product-btn-group{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
}

.product-btn,
.buy-now-btn{
  width:100% !important;
  display:block !important;
  flex:none !important;
}

/* =========================================================
   Honey shop product card feature
   Detailed product cards with size selector, stock badge,
   quantity stepper, Add to Cart, Buy Now, and trust badges.
   ========================================================= */
.product-grid.server-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
  align-items: stretch;
}

.product-grid.server-grid .product-card {
  overflow: hidden;
  border: 1px solid rgba(236, 214, 177, 0.95);
  border-radius: 24px !important;
  background: #fffdfa;
  box-shadow: 0 18px 42px rgba(92, 56, 5, 0.10);
}

.product-grid.server-grid .product-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ffd56b, #fff1c5);
}

.product-grid.server-grid .product-image img {
  height: 100% !important;
}

.product-grid.server-grid .product-content.honey-shop-card-body,
.product-grid.server-grid .product-content {
  padding: 18px 18px 16px !important;
  gap: 12px !important;
}

.product-meta.honey-card-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 12px !important;
}

.product-copy h3 {
  margin: 0;
  color: #27211a;
  font-size: clamp(1rem, 1.7vw, 1.18rem) !important;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.product-copy p,
.product-meta.honey-card-heading p {
  display: -webkit-box !important;
  margin: 7px 0 0 !important;
  color: #8a8173 !important;
  font-size: 0.86rem !important;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta.honey-card-heading .product-price {
  color: #c77200 !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  line-height: 1.1;
  white-space: nowrap !important;
  text-align: right;
}

.honey-mini-meta {
  margin: 2px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.honey-category-pill,
.stock-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
}

.honey-category-pill {
  margin: 0 !important;
  border: 1px solid #f6e2b0;
  background: #fff8e8;
  color: #765213 !important;
}

.stock-pill {
  border-color: #c8ecd1 !important;
  background: #edfaef !important;
  color: #24783a !important;
}

.stock-pill.out {
  border-color: #f3c9c9 !important;
  background: #fff1f1 !important;
  color: #a33434 !important;
}

.feature-icon,
.section-icon,
.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.product-tools-variant {
  display: grid !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

.product-card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 218, 184, 0.95), transparent);
}

.variant-picker {
  gap: 8px !important;
}

.variant-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #776b5c !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.variant-chip-row {
  gap: 8px !important;
}

.variant-chip {
  min-height: 36px !important;
  border: 1px solid #f3d89b !important;
  border-radius: 10px !important;
  background: #fff7e7 !important;
  color: #765213 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  padding: 8px 11px !important;
  box-shadow: none !important;
}

.variant-chip.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #ffbd23, #f2a600) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(244, 180, 0, 0.22) !important;
}

.variant-chip .variant-check {
  display: none;
  font-weight: 900;
}

.variant-chip.active .variant-check {
  display: inline;
}

.variant-chip.is-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.product-purchase-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

.quantity-picker {
  display: grid;
  gap: 8px;
}

.qty-wrapper {
  width: min(100%, 150px) !important;
  height: 42px !important;
  min-height: 42px !important;
  max-width: 150px !important;
  display: grid !important;
  grid-template-columns: 42px 1fr 42px !important;
  justify-self: center;
  overflow: hidden !important;
  border: 1px solid #f0ddbe !important;
  border-radius: 10px !important;
  background: #fff9ef !important;
  box-shadow: 0 6px 16px rgba(92, 56, 5, 0.06) !important;
}

.qty-btn {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #fff7e6 !important;
  color: #7d5810 !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

.qty-btn:hover:not(:disabled) {
  background: #f4b400 !important;
  color: #fff !important;
}

.qty-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.qty-input {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-inline: 1px solid #f0ddbe !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #2d261c !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  outline: 0 !important;
  padding: 0 !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-btn-group {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.product-btn,
.buy-now-btn,
.add-cart-btn {
  width: 100% !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 10px 12px !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 20px rgba(92, 56, 5, 0.14) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.product-btn:hover:not(:disabled),
.buy-now-btn:hover:not(:disabled),
.add-cart-btn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: saturate(1.08);
  box-shadow: 0 16px 24px rgba(92, 56, 5, 0.18) !important;
}

.product-btn:disabled,
.buy-now-btn:disabled,
.add-cart-btn:disabled,
.qty-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
}

.add-cart-btn,
.product-btn:first-child {
  background: linear-gradient(135deg, #ffbd23, #e29a00) !important;
}

.buy-now-btn,
.product-btn:last-child {
  background: linear-gradient(135deg, #2dab48, #16712d) !important;
}

.product-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 1px;
  padding-top: 12px;
  border-top: 1px solid rgba(236, 218, 184, 0.9);
  color: #6f8068;
  font-size: 0.68rem;
  font-weight: 800;
}

.product-trust-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .product-grid,
  .product-grid.server-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 430px;
    margin-inline: auto;
    gap: 16px !important;
  }

  .product-grid.server-grid .product-card {
    border-radius: 20px !important;
  }

  .product-grid.server-grid .product-image,
  .product-image {
    aspect-ratio: 16 / 9 !important;
  }

  .product-tools-variant .variant-picker,
  .product-tools-variant .product-purchase-row {
    display: grid !important;
  }

  .mobile-choose-btn {
    display: none !important;
  }

  .product-meta.honey-card-heading {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .product-meta.honey-card-heading .product-price {
    font-size: 1rem !important;
  }

  .honey-mini-meta {
    flex-direction: row !important;
    align-items: center !important;
  }
}

@media (max-width: 380px) {
  .product-grid.server-grid .product-content.honey-shop-card-body,
  .product-grid.server-grid .product-content {
    padding: 14px !important;
  }

  .product-btn-group {
    gap: 8px !important;
  }

  .product-btn,
  .buy-now-btn,
  .add-cart-btn {
    font-size: 0.76rem !important;
    padding-inline: 8px !important;
  }

  .product-trust-row {
    font-size: 0.62rem;
    gap: 4px;
  }
}

/* =========================================================
   BeeConnect responsive product card polish v2
   Cleaner mobile layout, stronger laptop grid, and touch-friendly controls.
   ========================================================= */
:root {
  --bee-card-bg: #fffdf8;
  --bee-card-bg-soft: #fff8eb;
  --bee-card-border: rgba(235, 207, 154, 0.9);
  --bee-card-text: #2f2517;
  --bee-card-muted: #7e725f;
  --bee-card-gold: #f5a800;
  --bee-card-gold-deep: #d88900;
  --bee-card-green: #18833a;
}

.products-section {
  scroll-margin-top: 100px;
}

body .product-grid.server-grid,
body .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(16px, 2vw, 24px) !important;
}

body .product-grid.server-grid .product-card,
body .product-card {
  position: relative !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--bee-card-border) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 211, 99, 0.22), transparent 34%),
    linear-gradient(180deg, #fffefa 0%, var(--bee-card-bg) 54%, #fff9ee 100%) !important;
  box-shadow: 0 18px 45px rgba(86, 52, 6, 0.11) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

body .product-grid.server-grid .product-card:hover,
body .product-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(229, 172, 61, 0.95) !important;
  box-shadow: 0 24px 60px rgba(86, 52, 6, 0.16) !important;
}

body .product-grid.server-grid .product-image,
body .product-image {
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
  background: linear-gradient(135deg, #ffe3a1, #fff7db) !important;
}

body .product-grid.server-grid .product-image img,
body .product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body .product-badge {
  top: 14px !important;
  left: 14px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, 0.92) !important;
  color: #9a4f00 !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 20px rgba(69, 40, 4, 0.12) !important;
  backdrop-filter: blur(10px) !important;
}

body .product-grid.server-grid .product-content.honey-shop-card-body,
body .product-grid.server-grid .product-content,
body .product-content.honey-shop-card-body {
  display: grid !important;
  grid-template-rows: auto auto auto 1fr auto !important;
  gap: 13px !important;
  padding: clamp(15px, 1.7vw, 20px) !important;
}

body .product-meta.honey-card-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
}

body .product-copy h3,
body .product-meta.honey-card-heading h3 {
  margin: 0 !important;
  color: var(--bee-card-text) !important;
  font-size: clamp(1rem, 1.2vw, 1.18rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

body .product-copy p,
body .product-meta.honey-card-heading p {
  display: -webkit-box !important;
  margin: 7px 0 0 !important;
  color: var(--bee-card-muted) !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body .product-meta.honey-card-heading .product-price,
body .product-price[data-price-display] {
  align-self: start !important;
  padding: 3px 0 0 !important;
  color: #c87800 !important;
  font-size: clamp(1rem, 1.25vw, 1.18rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body .honey-mini-meta,
body .product-bottom-row.honey-mini-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

body .honey-category-pill,
body .stock-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  width: auto !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body .honey-category-pill {
  border: 1px solid #f4dfac !important;
  background: #fff7e7 !important;
  color: #72500d !important;
}

body .stock-pill {
  margin-left: auto !important;
  border: 1px solid #bfe8c7 !important;
  background: #ecfaef !important;
  color: #24753c !important;
}

body .stock-pill.out {
  border-color: #f0c6c4 !important;
  background: #fff1f0 !important;
  color: #9f302a !important;
}

body .product-tools-variant {
  display: grid !important;
  gap: 12px !important;
  margin: 0 !important;
}

body .product-card-divider {
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(232, 207, 166, 0.9), transparent) !important;
}

body .variant-picker {
  display: grid !important;
  gap: 9px !important;
}

body .variant-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  color: #665644 !important;
  font-size: 0.8rem !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

body .variant-chip-row,
body .quick-view-variant-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow: visible !important;
  padding: 0 !important;
}

body .variant-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 38px !important;
  max-width: 100% !important;
  border: 1px solid #efcf88 !important;
  border-radius: 999px !important;
  background: #fff6e4 !important;
  color: #74500a !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  padding: 9px 13px !important;
  box-shadow: inset 0 -1px 0 rgba(119, 74, 0, 0.05) !important;
  cursor: pointer !important;
}

body .variant-chip.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #ffbd24, #e99b00) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(236, 165, 0, 0.24) !important;
}

body .variant-chip .variant-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}

body .variant-chip:not(.active) .variant-check {
  display: none !important;
}

body .variant-chip.is-disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
}

body .product-tools-variant .product-purchase-row,
body .product-purchase-row {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.45fr) !important;
  align-items: end !important;
  gap: 12px !important;
  margin: 0 !important;
}

body .quantity-picker {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body .qty-wrapper {
  display: grid !important;
  grid-template-columns: 42px minmax(42px, 1fr) 42px !important;
  align-items: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  overflow: hidden !important;
  border: 1px solid #efd9ac !important;
  border-radius: 14px !important;
  background: #fffaf0 !important;
  box-shadow: 0 8px 18px rgba(90, 54, 8, 0.06) !important;
}

body .qty-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff3d8 !important;
  color: #7a560e !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

body .qty-btn:hover:not(:disabled),
body .qty-btn:focus-visible:not(:disabled) {
  background: var(--bee-card-gold) !important;
  color: #fff !important;
}

body .qty-input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-inline: 1px solid #efd9ac !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--bee-card-text) !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
  outline: 0 !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

body .qty-input::-webkit-outer-spin-button,
body .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

body .product-btn-group {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body .product-btn,
body .add-cart-btn,
body .buy-now-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 10px 9px !important;
  color: #fff !important;
  font-size: clamp(0.78rem, 0.85vw, 0.92rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: normal !important;
  cursor: pointer !important;
  box-shadow: 0 12px 22px rgba(85, 49, 4, 0.15) !important;
}

body .add-cart-btn,
body .product-btn:first-child {
  background: linear-gradient(135deg, #ffbd24, var(--bee-card-gold-deep)) !important;
}

body .buy-now-btn,
body .product-btn:last-child {
  background: linear-gradient(135deg, #2aaa4c, var(--bee-card-green)) !important;
}

body .product-btn:hover:not(:disabled),
body .product-btn:focus-visible:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: saturate(1.08) !important;
  box-shadow: 0 16px 26px rgba(85, 49, 4, 0.2) !important;
}

body .product-btn:disabled,
body .qty-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.58 !important;
  box-shadow: none !important;
}

body .product-trust-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(232, 207, 166, 0.86) !important;
  color: #617355 !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body .product-trust-row span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 28px !important;
  padding: 6px 8px !important;
  border-radius: 999px !important;
  background: rgba(246, 255, 238, 0.9) !important;
  white-space: nowrap !important;
}

body .mobile-choose-btn {
  display: none !important;
}

@media (min-width: 1200px) {
  body .product-grid.server-grid,
  body .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1560px) {
  body .product-grid.server-grid,
  body .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  body .product-grid.server-grid,
  body .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body .products-section {
    padding-inline: 0 !important;
  }

  body .product-grid.server-grid,
  body .product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 430px !important;
    width: 100% !important;
    margin-inline: auto !important;
    gap: 18px !important;
  }

  body .product-grid.server-grid .product-card,
  body .product-card {
    border-radius: 26px !important;
    box-shadow: 0 16px 34px rgba(86, 52, 6, 0.12) !important;
  }

  body .product-grid.server-grid .product-card:hover,
  body .product-card:hover {
    transform: none !important;
  }

  body .product-grid.server-grid .product-image,
  body .product-image {
    aspect-ratio: 16 / 10.5 !important;
  }

  body .product-grid.server-grid .product-content.honey-shop-card-body,
  body .product-grid.server-grid .product-content,
  body .product-content.honey-shop-card-body {
    padding: 16px !important;
    gap: 13px !important;
  }

  body .product-copy p,
  body .product-meta.honey-card-heading p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
  }

  body .product-tools-variant .variant-picker,
  body .product-tools-variant .product-purchase-row {
    display: grid !important;
  }

  body .product-tools-variant .product-purchase-row,
  body .product-purchase-row {
    grid-template-columns: 1fr !important;
    gap: 11px !important;
  }

  body .qty-wrapper {
    height: 50px !important;
    min-height: 50px !important;
    grid-template-columns: 50px minmax(0, 1fr) 50px !important;
  }

  body .product-btn-group {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body .product-btn,
  body .add-cart-btn,
  body .buy-now-btn {
    min-height: 50px !important;
    border-radius: 15px !important;
    font-size: 0.9rem !important;
  }

  body .product-trust-row {
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  body .product-grid.server-grid,
  body .product-grid {
    max-width: 100% !important;
  }

  body .product-meta.honey-card-heading {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body .product-meta.honey-card-heading .product-price,
  body .product-price[data-price-display] {
    justify-self: start !important;
    text-align: left !important;
  }

  body .honey-mini-meta,
  body .product-bottom-row.honey-mini-meta {
    align-items: flex-start !important;
  }

  body .stock-pill {
    margin-left: 0 !important;
  }

  body .variant-chip {
    min-height: 36px !important;
    padding: 8px 11px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 355px) {
  body .product-grid.server-grid .product-content.honey-shop-card-body,
  body .product-grid.server-grid .product-content,
  body .product-content.honey-shop-card-body {
    padding: 13px !important;
  }

  body .product-btn-group {
    grid-template-columns: 1fr !important;
  }

  body .product-trust-row span {
    flex: 1 1 calc(50% - 8px) !important;
  }
}

/* === BeeConnect quantity stepper button polish ===
   Keeps the - / + controls finger-friendly on mobile and neat on laptop/desktop. */
body .product-card .quantity-picker {
  align-self: stretch !important;
}

body .product-card .qty-wrapper,
body .product-quick-modal .qty-wrapper {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 48px minmax(58px, 1fr) 48px !important;
  align-items: center !important;
  gap: 5px !important;
  height: 50px !important;
  min-height: 50px !important;
  width: 100% !important;
  padding: 4px !important;
  overflow: visible !important;
  border: 1px solid rgba(226, 166, 46, 0.38) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,225,0.98)) !important;
  box-shadow:
    0 12px 24px rgba(116, 70, 5, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

body .product-card .qty-wrapper:focus-within,
body .product-quick-modal .qty-wrapper:focus-within {
  border-color: rgba(245, 168, 0, 0.75) !important;
  box-shadow:
    0 14px 28px rgba(116, 70, 5, 0.14),
    0 0 0 4px rgba(245, 168, 0, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

body .product-card .qty-btn,
body .product-quick-modal .qty-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  inline-size: 100% !important;
  block-size: 100% !important;
  min-inline-size: 42px !important;
  min-block-size: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(181, 117, 0, 0.18) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe9ad 100%) !important;
  color: #8a5b06 !important;
  box-shadow:
    0 7px 14px rgba(94, 58, 4, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
  font-size: 0 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    color 150ms ease,
    opacity 150ms ease !important;
}

body .product-card .qty-btn::before,
body .product-quick-modal .qty-btn::before {
  display: block !important;
  font-size: 1.28rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

body .product-card .minus-btn::before,
body .product-quick-modal .minus-btn::before {
  content: "−" !important;
}

body .product-card .plus-btn,
body .product-quick-modal .plus-btn {
  border-color: rgba(211, 130, 0, 0.38) !important;
  background: linear-gradient(135deg, #ffc53b 0%, #f5a800 48%, #d98a00 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 9px 18px rgba(217, 138, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.45) !important;
}

body .product-card .plus-btn::before,
body .product-quick-modal .plus-btn::before {
  content: "+" !important;
}

body .product-card .qty-btn:hover:not(:disabled),
body .product-card .qty-btn:focus-visible:not(:disabled),
body .product-quick-modal .qty-btn:hover:not(:disabled),
body .product-quick-modal .qty-btn:focus-visible:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow:
    0 11px 22px rgba(94, 58, 4, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

body .product-card .plus-btn:hover:not(:disabled),
body .product-card .plus-btn:focus-visible:not(:disabled),
body .product-quick-modal .plus-btn:hover:not(:disabled),
body .product-quick-modal .plus-btn:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #ffd05d 0%, #f7aa00 48%, #c77d00 100%) !important;
  box-shadow:
    0 12px 24px rgba(217, 138, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.48) !important;
}

body .product-card .qty-btn:active:not(:disabled),
body .product-quick-modal .qty-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow:
    0 5px 10px rgba(94, 58, 4, 0.12),
    inset 0 2px 5px rgba(104, 62, 4, 0.14) !important;
}

body .product-card .qty-input,
body .product-quick-modal .qty-input {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(239, 217, 172, 0.72),
    inset 0 2px 6px rgba(100, 62, 4, 0.06) !important;
  color: #2f2517 !important;
  font-size: 1.02rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
  outline: none !important;
}

body .product-card .qty-wrapper.is-at-min .minus-btn,
body .product-card .qty-wrapper.is-at-max .plus-btn,
body .product-quick-modal .qty-wrapper.is-at-min .minus-btn,
body .product-quick-modal .qty-wrapper.is-at-max .plus-btn {
  opacity: 0.46 !important;
  filter: grayscale(0.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

body .product-card .qty-btn:disabled,
body .product-card .qty-input:disabled,
body .product-quick-modal .qty-btn:disabled,
body .product-quick-modal .qty-input:disabled {
  cursor: not-allowed !important;
  opacity: 0.52 !important;
}

body .product-card .qty-wrapper.qty-just-changed .qty-input,
body .product-quick-modal .qty-wrapper.qty-just-changed .qty-input {
  animation: beeQtyPulse 260ms ease-out !important;
}

@keyframes beeQtyPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

@media (min-width: 860px) {
  body .product-card .qty-wrapper {
    grid-template-columns: 46px minmax(58px, 1fr) 46px !important;
    height: 48px !important;
    min-height: 48px !important;
  }
}

@media (max-width: 560px) {
  body .product-card .qty-wrapper {
    grid-template-columns: 52px minmax(62px, 1fr) 52px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 5px !important;
  }

  body .product-card .qty-btn {
    min-inline-size: 44px !important;
    min-block-size: 44px !important;
  }

  body .product-card .qty-btn::before {
    font-size: 1.35rem !important;
  }
}



/* V4 login/register legal + quick login patch */
.auth-legal-links,
.legal-policy-links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(224, 180, 88, .45);
  border-radius: 14px;
  background: rgba(255, 248, 230, .86);
  color: #6a4a1d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.auth-legal-links a,
.legal-policy-links a,
.quick-legal-card a,
.footer-legal-links a,
.legal-links-box a {
  color: #a66b00 !important;
  font-weight: 900;
  text-decoration: none;
}
.auth-legal-links a:hover,
.legal-policy-links a:hover,
.quick-legal-card a:hover,
.footer-legal-links a:hover,
.legal-links-box a:hover {
  text-decoration: underline;
}
.quick-legal-card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(224, 180, 88, .45);
  border-radius: 16px;
  background: #fff8e6;
  display: grid;
  gap: 10px;
}
.quick-legal-card strong {
  color: #3b2b1f;
  font-size: 15px;
}
.footer-legal-links {
  border-top: 1px solid rgba(120, 80, 20, .18);
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #5b432d;
}
.legal-page {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.7;
}
.legal-page h2 { margin-top: 8px; }
.legal-page h3 {
  margin-top: 24px;
  color: #3d2b1f;
}
.legal-links-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(169, 110, 0, .25);
  border-radius: 18px;
  background: #fff8e7;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Remove disabled login methods */
.quick-facebook,
.quick-phone,
.quick-phone-card,
.quick-phone-panel,
.quick-or {
  display: none !important;
}

/* Keep Quick Login visible in Register tab */
.auth-split-modal.show-signup .auth-quick-panel {
  display: flex !important;
}
.auth-split-modal.show-signup .auth-split-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr) !important;
  max-width: none !important;
  margin: 0 !important;
}
.auth-split-modal.show-signup .auth-email-panel {
  padding: clamp(22px, 3vw, 34px) !important;
}

/* Hide top admin bar pills fallback */
body.admin-layout-body .topbar .nav-pills {
  display: none !important;
}

@media (max-width: 860px) {
  .auth-split-modal.show-signup .auth-split-grid,
  .auth-split-grid {
    grid-template-columns: 1fr !important;
  }
  .auth-quick-panel {
    border-left: 0 !important;
    border-top: 1px solid rgba(219, 198, 158, 0.86);
  }
}


/* V5 login/register cleanup and scroll fix */
.quick-legal-card {
  display: none !important;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body.modal-open {
  overflow-y: auto !important;
}

/* Login/register full pages can now scroll on small screens */
.bc-login-page {
  min-height: 100dvh !important;
  height: auto !important;
  align-items: start !important;
  place-items: start center !important;
  overflow-y: auto !important;
  padding-top: max(18px, env(safe-area-inset-top)) !important;
  padding-bottom: max(80px, env(safe-area-inset-bottom)) !important;
}

/* The split login/register card can scroll instead of getting stuck */
.auth-content-modal.auth-split-modal,
.bc-login-modal.auth-split-modal {
  max-height: calc(100dvh - 24px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

/* Keep form legal links visible only under the forms */
.auth-legal-links.legal-policy-links {
  display: flex !important;
}

/* Keep Quick Login visible on register, but without the legal box */
.auth-split-modal.show-signup .auth-quick-panel {
  display: flex !important;
}

@media (max-width: 860px) {
  .auth-content-modal.auth-split-modal,
  .bc-login-modal.auth-split-modal {
    max-height: none !important;
    width: min(520px, calc(100vw - 18px)) !important;
  }

  .auth-split-grid,
  .auth-split-modal.show-signup .auth-split-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-quick-panel {
    border-left: 0 !important;
    border-top: 1px solid rgba(219, 198, 158, 0.86);
  }
}


/* V6 register confirm password + no-captcha security */
.bee-hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.auth-security-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 180, 88, .36);
  border-radius: 12px;
  background: rgba(255, 249, 233, .72);
  color: #6f5736;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}
.auth-signup-form .auth-field {
  margin-bottom: 0;
}


/* V7 Cloudflare Turnstile API security */
.auth-turnstile-wrap {
  margin: 4px 0 2px;
  display: grid;
  place-items: center;
}
.auth-turnstile-wrap .cf-turnstile {
  max-width: 100%;
}
.turnstile-test-note {
  margin: 8px 0 0 !important;
  max-width: 420px;
  text-align: center;
  color: #8a5c00 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.auth-security-note {
  margin: 10px 0 0;
  color: #6b5535;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}


/* V8 Email OTP verification */
.auth-otp-field.hidden {
  display: none !important;
}
.auth-otp-field input {
  letter-spacing: 0.18em;
  font-weight: 900;
}
.auth-otp-field .auth-security-note {
  margin: 6px 0 0;
  text-align: left;
}
.auth-form input[readonly] {
  background: #fff8e6 !important;
  color: #6a563d;
}


/* V9 register OTP/token fix */
.auth-otp-field.hidden {
  display: none !important;
}
.auth-form input[readonly] {
  background: #fff8e6 !important;
  color: #6a563d;
}


/* V14 email verification link patch */
[data-register-otp-wrap],
.auth-otp-field {
  display: none !important;
}
.verify-email-page .is-success,
.auth-message.is-success {
  color: #176b2c;
}
.verify-email-page .is-error,
.auth-message.is-error {
  color: #b42318;
}


/* V17 force email-link verification: remove old OTP UI */
[data-register-otp-wrap],
.auth-otp-field,
.quick-facebook,
.quick-phone,
.quick-phone-card,
.quick-phone-panel,
.quick-or {
  display: none !important;
}
.auth-message.is-success,
.is-success {
  color: #176b2c;
}
.auth-message.is-error,
.is-error {
  color: #b42318;
}


/* Storefront search jump v26: scroll target + product highlight */
.products-section {
  scroll-margin-top: 120px;
}

.products-section.products-section-focus .section-heading h2 {
  text-decoration: underline;
  text-decoration-color: rgba(246, 173, 0, 0.55);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.product-card.search-jump-highlight {
  outline: 3px solid rgba(246, 173, 0, 0.55);
  box-shadow: 0 18px 44px rgba(246, 173, 0, 0.24) !important;
  transform: translateY(-3px);
  transition: outline-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-empty-state {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(246, 173, 0, 0.28);
  border-radius: 16px;
  background: #fff8e4;
  color: #6b4a16;
  font-weight: 700;
  text-align: center;
}

.product-empty-state.hidden {
  display: none !important;
}

/* V27 Help & Support Center */
.support-hero {
  padding-top: 48px;
  padding-bottom: 18px;
}

.support-hero-card {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 420px);
  gap: 26px;
  align-items: stretch;
  border: 1px solid rgba(225, 189, 118, 0.78);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 46px);
  background:
    radial-gradient(circle at 14% 12%, rgba(246, 173, 0, 0.16), transparent 30%),
    linear-gradient(135deg, #fffaf0 0%, #ffffff 68%);
  box-shadow: 0 20px 60px rgba(76, 45, 13, 0.08);
}

.support-hero-card h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #2b2019;
}

.support-hero-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.support-contact-card,
.support-side-card,
.support-info-card,
.support-form-card,
.support-admin-ticket,
.support-ticket-card {
  border: 1px solid rgba(225, 189, 118, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(76, 45, 13, 0.06);
}

.support-contact-card {
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.support-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffbd00, #ef9e00);
  box-shadow: 0 16px 30px rgba(239, 158, 0, 0.22);
  font-size: 1.5rem;
}

.support-contact-card h3,
.support-info-card h3,
.support-side-card h3 {
  margin: 0;
  color: #2b2019;
}

.support-contact-card p,
.support-info-card p,
.support-side-card li {
  color: #5d5148;
  line-height: 1.55;
}

.support-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 34px;
}

.support-info-card {
  padding: 22px;
}

.support-info-card > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #fff5d8;
  color: #a86800;
  font-size: 1.35rem;
}

.support-info-card p {
  margin-bottom: 0;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: start;
  margin-bottom: 38px;
}

.support-form-card {
  padding: clamp(22px, 3vw, 34px);
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-form-grid .span-2 {
  grid-column: 1 / -1;
}

.support-form .auth-field input,
.support-form .auth-field select,
.support-form .auth-field textarea,
.support-admin-update .auth-field select,
.support-admin-update .auth-field textarea {
  width: 100%;
  border: 1px solid rgba(217, 195, 157, 0.9);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
  color: #2d241d;
  outline: none;
}

.support-form .auth-field input:focus,
.support-form .auth-field select:focus,
.support-form .auth-field textarea:focus,
.support-admin-update .auth-field select:focus,
.support-admin-update .auth-field textarea:focus {
  border-color: #f0a500;
  box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.14);
}

.support-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(225, 189, 118, 0.5);
}

.support-side-card {
  padding: 24px;
  position: sticky;
  top: 24px;
}

.support-side-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.support-ticket-success {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #a8e6bd;
  border-radius: 16px;
  background: #eafaf0;
  color: #086b33;
}

.support-my-tickets {
  margin-bottom: 40px;
}

.support-ticket-list {
  display: grid;
  gap: 12px;
}

.support-ticket-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.support-ticket-card strong,
.support-admin-ticket h3 {
  color: #2b2019;
}

.support-ticket-card p,
.support-ticket-card small {
  margin: 4px 0 0;
  color: #665a50;
}

.support-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #fff5d8;
  color: #9a6500;
}

.support-status-open {
  background: #fff5d8;
  color: #9a6500;
}

.support-status-in-progress {
  background: #e9f2ff;
  color: #1d5fa5;
}

.support-status-resolved {
  background: #eafaf0;
  color: #087a37;
}

.support-status-closed {
  background: #f1f5f9;
  color: #475569;
}

.faq-section {
  margin-bottom: 56px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid details {
  border: 1px solid rgba(225, 189, 118, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 18px 20px;
}

.faq-grid summary {
  cursor: pointer;
  color: #2b2019;
  font-weight: 850;
}

.faq-grid p {
  margin: 12px 0 0;
  color: #5d5148;
  line-height: 1.55;
}

.support-admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.support-stat-card {
  padding: 18px;
  border: 1px solid rgba(225, 189, 118, 0.72);
  border-radius: 20px;
  background: #fff;
  color: #2b2019;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(76, 45, 13, 0.05);
}

.support-stat-card span {
  color: #75695f;
  font-weight: 750;
}

.support-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.support-stat-card.active {
  border-color: #f0a500;
  background: #fff7df;
}

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

.support-admin-ticket {
  padding: clamp(18px, 2.5vw, 28px);
}

.support-admin-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.support-admin-ticket-head h3 {
  margin: 6px 0 6px;
  font-size: 1.35rem;
}

.support-admin-ticket-head p {
  margin: 0;
  color: #75695f;
}

.support-ticket-meta {
  margin-bottom: 18px;
}

.support-ticket-message {
  border: 1px solid rgba(225, 189, 118, 0.55);
  border-radius: 16px;
  background: #fffdf8;
  padding: 16px;
  margin-bottom: 18px;
}

.support-ticket-message p {
  margin: 8px 0 0;
  color: #3b3028;
  line-height: 1.6;
}

.support-admin-update {
  border-top: 1px solid rgba(225, 189, 118, 0.55);
  padding-top: 18px;
}

.support-admin-update-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 16px;
}

.support-admin-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .support-hero-card,
  .support-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .support-side-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .support-hero-card {
    width: min(100% - 16px, 100%);
    border-radius: 22px;
    padding: 22px;
  }

  .support-quick-grid,
  .support-form-grid,
  .support-admin-stats,
  .support-admin-update-grid {
    grid-template-columns: 1fr;
  }

  .support-form-grid .span-2 {
    grid-column: auto;
  }

  .support-form-foot,
  .support-ticket-card,
  .support-admin-ticket-head {
    flex-direction: column;
    align-items: stretch;
  }

  .support-hero-actions,
  .support-admin-actions {
    justify-content: stretch;
  }

  .support-hero-actions a,
  .support-admin-actions a,
  .support-admin-actions button,
  .support-form-foot button {
    width: 100%;
  }
}

/* Storefront advertisements controlled from admin panel */
.storefront-ad-section {
  margin-top: 28px;
  margin-bottom: 32px;
}

.storefront-ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.storefront-ad-card {
  display: grid;
  grid-template-columns: minmax(160px, 38%) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(225, 189, 118, 0.66);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 250, 240, .96), rgba(255, 255, 255, .92));
  box-shadow: 0 16px 38px rgba(98, 72, 25, .08);
  overflow: hidden;
}

.storefront-ad-card img {
  width: 100%;
  min-height: 180px;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.storefront-ad-card h3 {
  margin: 6px 0 8px;
  color: var(--text-dark);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.storefront-ad-card p {
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .storefront-ad-grid,
  .storefront-ad-card {
    grid-template-columns: 1fr;
  }

  .storefront-ad-card img {
    height: 220px;
  }
}

/* Announcement notification bell */
.announcement-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.announcement-bell {
  position: relative;
  min-width: 46px;
  justify-content: center;
  padding-inline: 14px;
}
.announcement-count {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 20px;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.25);
}
.announcement-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, 86vw);
  background: #fffdf8;
  border: 1px solid #ecd39d;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(70, 43, 28, 0.18);
  padding: 14px;
  z-index: 1200;
}
.announcement-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #fffdf8;
  border-left: 1px solid #ecd39d;
  border-top: 1px solid #ecd39d;
  transform: rotate(45deg);
}
.announcement-dropdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid #f2e3bd;
}
.announcement-dropdown-head strong {
  color: #3b2418;
  font-size: 1.05rem;
}
.announcement-dropdown-head span {
  background: #fff0bf;
  color: #9a6500;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}
.announcement-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 12px 2px;
}
.announcement-item {
  border: 1px solid #f0dfb6;
  border-radius: 16px;
  padding: 12px;
  background: #fffaf0;
}
.announcement-item.is-unread {
  border-color: #efae00;
  background: linear-gradient(135deg, #fff9e6, #fffdf8);
}
.announcement-item strong {
  color: #3b2418;
  display: block;
}
.announcement-item small {
  color: #836e5c;
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
}
.announcement-item p {
  margin: 8px 0 0;
  color: #5d4334;
  line-height: 1.45;
  font-size: 0.92rem;
}
.announcement-item.is-read {
  opacity: 0.78;
}
.announcement-empty {
  margin: 0;
  padding: 20px 10px;
  color: #796250;
  text-align: center;
}
.announcement-read-form {
  border-top: 1px solid #f2e3bd;
  padding-top: 10px;
}
.announcement-read-form button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6b800, #e59a00);
  color: #3b2418;
  font-weight: 900;
  padding: 11px 14px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .announcement-dropdown {
    right: -78px;
  }
}

/* Site-wide responsive compatibility patch */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  max-width: 100%;
  min-width: 0;
}

.container,
.header-inner,
.topbar-inner,
.hero-grid,
.hero-copy,
.hero-visual,
.hero-card,
.product-grid,
.admin-content,
.cart-panel,
.checkout-dialog,
.checkout-body,
.checkout-grid,
.form-grid,
.panel-card,
.cart-card,
.support-ticket-card,
.support-ticket-meta,
.announcement-dropdown,
.announcement-item {
  min-width: 0;
}

.cart-table-wrap,
.table-scroll,
.orders-table-wrap,
.support-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.announcement-dropdown {
  max-width: min(420px, calc(100vw - 20px));
}

@media (max-width: 900px) {
  .topbar-inner,
  .header-inner {
    width: 100%;
    gap: 12px;
  }

  .topbar-links,
  .header-actions,
  .nav-pills {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-wrap,
  .search {
    width: 100%;
  }

  .hero-grid,
  .hero-highlights,
  .hero-sidecards,
  .feature-grid,
  .support-grid,
  .checkout-grid.two-col,
  .form-grid.two,
  .summary-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .topbar-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .brand h1,
  .footer-brand h3 {
    font-size: 1rem;
  }

  .brand p,
  .footer-brand p {
    font-size: 0.82rem;
  }

  .logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .hero-copy,
  .hero-visual,
  .hero-card,
  .panel-card,
  .cart-card,
  .checkout-dialog,
  .support-ticket-card {
    border-radius: 18px;
  }

  .hero-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .header-actions,
  .checkout-foot,
  .cart-foot {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions a,
  .hero-actions button,
  .header-actions a,
  .header-actions button,
  .checkout-foot button,
  .cart-foot button {
    width: 100%;
    justify-content: center;
  }

  .product-grid,
  .product-grid.server-grid {
    grid-template-columns: 1fr !important;
  }

  .cart-panel {
    width: min(100vw, 100%);
    border-radius: 0;
  }

  .checkout-modal {
    padding: 10px;
  }

  .announcement-dropdown {
    position: fixed;
    top: 72px;
    left: 10px;
    right: 10px;
    width: auto;
  }
}

/* Browser zoom and flexible storefront grid fix
   Keeps storefront usable across different browser widths/zoom levels. */
:root {
  --container: 1280px;
}

@media (min-width: 1600px) {
  :root {
    --container: min(1480px, calc(100vw - 48px));
  }
}

.container,
.header-inner,
.topbar-inner {
  max-width: var(--container);
}

/* Use auto-fit so empty product columns collapse when there are only a few products.
   This fixes the large blank right side visible when browser zoom is reduced. */
body .products-section .product-grid.server-grid,
body .products-section .product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 22vw, 340px), 1fr)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

body .products-section .product-grid.server-grid .product-card,
body .products-section .product-grid .product-card {
  width: 100% !important;
  max-width: none !important;
}

@media (min-width: 1100px) and (max-width: 1500px) {
  body .products-section .product-grid.server-grid,
  body .products-section .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

@media (min-width: 1501px) {
  body .products-section .product-grid.server-grid,
  body .products-section .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body .products-section .product-grid.server-grid,
  body .products-section .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body .products-section .product-grid.server-grid,
  body .products-section .product-grid {
    grid-template-columns: 1fr !important;
    max-width: 430px !important;
    margin-inline: auto !important;
  }

  .section-heading-between {
    align-items: flex-start;
  }

  .result-count {
    width: 100%;
    text-align: left;
  }
}

/* Mobile storefront UI upgrade: compact header, hamburger menu, cleaner actions */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #f4d887;
  border-radius: 999px;
  background: #fff3cf;
  color: #3f2819;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(43, 26, 12, 0.14);
  cursor: pointer;
}

@media (max-width: 760px) {
  .topbar {
    overflow: visible;
  }

  body:not(.admin-layout-body) .topbar-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body:not(.admin-layout-body) .topbar-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    font-size: clamp(0.95rem, 4vw, 1.08rem) !important;
    line-height: 1.15;
  }

  body:not(.admin-layout-body) .mobile-menu-toggle {
    display: inline-flex;
  }

  body:not(.admin-layout-body) .topbar-links.nav-pills {
    grid-column: 1 / -1;
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 2px 0 0 !important;
  }

  body:not(.admin-layout-body) .topbar-links.nav-pills.is-open {
    display: grid !important;
  }

  body:not(.admin-layout-body) .topbar-links.nav-pills a {
    width: 100%;
    min-height: 40px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    font-size: 0.88rem !important;
    white-space: normal !important;
    text-align: center;
    box-shadow: 0 8px 18px rgba(43, 26, 12, 0.12);
  }

  body:not(.admin-layout-body) .site-header {
    top: 0;
  }

  body:not(.admin-layout-body) .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  body:not(.admin-layout-body) .brand {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
  }

  body:not(.admin-layout-body) .brand .logo {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
  }

  body:not(.admin-layout-body) .brand h1 {
    font-size: 1.12rem !important;
    line-height: 1.08 !important;
  }

  body:not(.admin-layout-body) .brand p {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  body:not(.admin-layout-body) .header-actions {
    order: 2;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 3px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body:not(.admin-layout-body) .header-actions::-webkit-scrollbar {
    display: none;
  }

  body:not(.admin-layout-body) .header-user {
    display: none !important;
  }

  body:not(.admin-layout-body) .header-link-btn,
  body:not(.admin-layout-body) .cart-pill {
    width: auto !important;
    min-width: max-content;
    flex: 0 0 auto;
    min-height: 42px !important;
    padding: 9px 13px !important;
    border-radius: 999px !important;
    background: #fff4d8;
    border: 1px solid #f2dcae;
    color: #3f2819;
    font-size: 0.88rem !important;
    font-weight: 850;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  body:not(.admin-layout-body) .announcement-widget {
    flex: 0 0 auto;
    position: static;
  }

  body:not(.admin-layout-body) .announcement-bell {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
  }

  body:not(.admin-layout-body) .cart-pill {
    background: linear-gradient(135deg, #fff2cc, #ffe6a0);
  }

  body:not(.admin-layout-body) .search-wrap {
    order: 3;
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body:not(.admin-layout-body) .search {
    width: 100% !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    padding: 10px 11px !important;
    border-radius: 22px !important;
    background: #fffdfa;
  }

  body:not(.admin-layout-body) .search input {
    min-width: 0 !important;
    font-size: 16px !important;
  }

  body:not(.admin-layout-body) .search button {
    min-height: 40px !important;
    padding: 0 15px !important;
    font-size: 0.95rem !important;
  }

  body:not(.admin-layout-body) .announcement-dropdown {
    position: fixed !important;
    top: 132px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(65vh, 520px);
    overflow-y: auto;
    border-radius: 20px;
  }

  body:not(.admin-layout-body) .hero-section {
    padding-top: 22px !important;
  }

  body:not(.admin-layout-body) .hero-copy,
  body:not(.admin-layout-body) .hero-card,
  body:not(.admin-layout-body) .hero-visual {
    padding: 20px !important;
    border-radius: 22px !important;
  }

  body:not(.admin-layout-body) .hero-copy h2 {
    font-size: clamp(2.15rem, 9.5vw, 3.05rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em;
  }

  body:not(.admin-layout-body) .hero-copy p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 430px) {
  body:not(.admin-layout-body) .topbar-inner,
  body:not(.admin-layout-body) .header-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body:not(.admin-layout-body) .topbar-links.nav-pills {
    grid-template-columns: 1fr;
  }

  body:not(.admin-layout-body) .brand .logo {
    width: 40px !important;
    height: 40px !important;
  }

  body:not(.admin-layout-body) .brand h1 {
    font-size: 1.04rem !important;
  }

  body:not(.admin-layout-body) .brand p {
    font-size: 0.76rem !important;
  }

  body:not(.admin-layout-body) .header-link-btn,
  body:not(.admin-layout-body) .cart-pill {
    min-height: 39px !important;
    padding: 8px 11px !important;
    font-size: 0.82rem !important;
  }

  body:not(.admin-layout-body) .announcement-bell {
    width: 39px !important;
    min-width: 39px !important;
    height: 39px !important;
  }

  body:not(.admin-layout-body) .search {
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    padding: 9px 9px !important;
  }

  body:not(.admin-layout-body) .search button {
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.88rem !important;
  }

  body:not(.admin-layout-body) .hero-copy h2 {
    font-size: clamp(2rem, 10vw, 2.7rem) !important;
  }
}


/* Final mobile header compact patch: only top area through search bar */
@media (max-width: 760px) {
  body:not(.admin-layout-body) .site-header {
    position: relative !important;
    top: auto !important;
  }

  body:not(.admin-layout-body) .header-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 8px !important;
  }

  body:not(.admin-layout-body) .brand {
    justify-content: flex-start !important;
    align-items: center !important;
    margin: 0 !important;
  }

  body:not(.admin-layout-body) .brand .logo {
    width: 38px !important;
    height: 38px !important;
  }

  body:not(.admin-layout-body) .brand h1 {
    font-size: clamp(1.05rem, 4.7vw, 1.22rem) !important;
  }

  body:not(.admin-layout-body) .brand p {
    font-size: clamp(0.74rem, 3.25vw, 0.86rem) !important;
    white-space: normal !important;
  }

  body:not(.admin-layout-body) .header-actions {
    order: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 2px 0 0 !important;
  }

  body:not(.admin-layout-body) .header-actions .header-user {
    display: none !important;
  }

  body:not(.admin-layout-body) .header-actions > .header-link-btn,
  body:not(.admin-layout-body) .header-actions > .cart-pill,
  body:not(.admin-layout-body) .header-actions > .announcement-widget,
  body:not(.admin-layout-body) .announcement-widget > .announcement-bell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body:not(.admin-layout-body) .header-actions > .header-link-btn,
  body:not(.admin-layout-body) .header-actions > .cart-pill,
  body:not(.admin-layout-body) .announcement-widget > .announcement-bell {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body:not(.admin-layout-body) .announcement-widget {
    position: static !important;
    display: flex !important;
    align-items: stretch !important;
  }

  body:not(.admin-layout-body) .announcement-widget > .announcement-bell {
    background: #fff4d8 !important;
    border: 1px solid #f2dcae !important;
    box-shadow: none !important;
  }

  body:not(.admin-layout-body) .announcement-count {
    top: -5px !important;
    right: -4px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 0.62rem !important;
  }

  body:not(.admin-layout-body) .search-wrap {
    order: 3 !important;
    margin-top: 2px !important;
  }

  body:not(.admin-layout-body) .search {
    min-height: 48px !important;
    padding: 7px 8px 7px 12px !important;
    border-radius: 18px !important;
    gap: 8px !important;
  }

  body:not(.admin-layout-body) .search svg {
    width: 18px !important;
    height: 18px !important;
  }

  body:not(.admin-layout-body) .search input {
    font-size: 0.96rem !important;
    min-width: 0 !important;
  }

  body:not(.admin-layout-body) .search button {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 13px !important;
    font-size: 0.86rem !important;
  }

  body:not(.admin-layout-body) .announcement-dropdown {
    top: 118px !important;
  }
}

@media (max-width: 380px) {
  body:not(.admin-layout-body) .header-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body:not(.admin-layout-body) .header-actions {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)) !important;
    gap: 5px !important;
  }

  body:not(.admin-layout-body) .header-actions > .header-link-btn,
  body:not(.admin-layout-body) .header-actions > .cart-pill,
  body:not(.admin-layout-body) .announcement-widget > .announcement-bell {
    min-height: 32px !important;
    height: 32px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 0.72rem !important;
  }

  body:not(.admin-layout-body) .search button {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
