:root {
  --bg: #f5e3cc;
  --surface: #fff8ef;
  --surface-strong: #fffdf9;
  --text: #3f2516;
  --muted: #8a6141;
  --line: rgba(86, 54, 30, 0.12);
  --primary: #b4784d;
  --primary-dark: #98633d;
  --secondary: #ebbe78;
  --accent: #c8925c;
  --accent-soft: #f2dfc7;
  --shadow: 0 20px 60px rgba(97, 60, 32, 0.16);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(180, 120, 77, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(235, 190, 120, 0.24), transparent 30%),
    linear-gradient(180deg, #fcf4eb 0%, #f2dcc0 100%);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  overflow: hidden;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(252, 244, 235, 0.84);
  border-bottom: 1px solid rgba(86, 54, 30, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.nav-search {
  flex: 1 1 280px;
  max-width: 340px;
  margin-left: auto;
}

.nav-search input {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(86, 54, 30, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.nav-search input:focus {
  outline: none;
  border-color: rgba(161, 107, 69, 0.5);
  box-shadow: 0 0 0 4px rgba(235, 191, 123, 0.18);
}

.nav-links a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: white;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(86, 54, 30, 0.08);
}

.cart-badge {
  position: relative;
}

.cart-badge-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero {
  padding: 2.5rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 3rem;
  display: grid;
  align-content: end;
  gap: 1rem;
  color: white;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(58, 36, 22, 0.76) 80%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 20%);
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.slide h1,
.page-hero h1 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(3rem, 5vw, 5.5rem);
  letter-spacing: -0.05em;
}

.slide p,
.page-hero p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.button,
.button-ghost,
.qty-btn,
.shop-filter {
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.button {
  padding: 0.95rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(180, 120, 77, 0.25);
}

.button:hover,
.qty-btn:hover {
  transform: translateY(-2px);
}

.button-ghost {
  padding: 0.95rem 1.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-aside {
  display: grid;
  gap: 1.5rem;
}

.glass-card,
.section-card,
.category-card,
.review-card,
.product-card,
.detail-grid,
.cart-layout,
.checkout-layout,
.contact-layout {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.glass-card,
.section-card {
  border-radius: 30px;
  padding: 1.5rem;
}

.hero-metric {
  display: grid;
  gap: 0.9rem;
}

.hero-metric strong {
  font-size: 3rem;
  line-height: 1;
}

.mini-products {
  display: grid;
  gap: 1rem;
}

.mini-product {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: center;
}

.mini-thumb,
.product-image {
  border-radius: 22px;
  min-height: 84px;
  background-size: cover;
  background-position: center;
}

.section {
  padding: 2rem 0 1rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head h2,
.section-head h3,
.summary-card h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.section-head p,
.muted {
  margin: 0;
  color: var(--muted);
}

.category-grid,
.review-grid,
.product-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

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

.category-card {
  padding: 1.3rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.category-card h3,
.review-card h3,
.product-card h3,
.cart-item h3,
.detail-copy h2 {
  margin: 0 0 0.4rem;
}

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

.review-card,
.product-card,
.summary-card,
.form-card,
.contact-card {
  border-radius: 28px;
  padding: 1.4rem;
}

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

.product-card {
  display: grid;
  gap: 1rem;
}

.product-image {
  min-height: 240px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.tag-row,
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a4f31;
  font-size: 0.88rem;
  font-weight: 700;
}

.tag-stock-out {
  background: #f8ddd5;
  color: #984331;
}

.tag-stock-low {
  background: #fff0d6;
  color: #9a6220;
}

.tag-stock-in {
  background: #e6f3e8;
  color: #2f6b3f;
}

.page-hero {
  padding: 3rem 0 1rem;
}

.page-hero-card {
  padding: 2.5rem;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(155, 102, 62, 0.98), rgba(232, 188, 121, 0.9)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  color: white;
  box-shadow: var(--shadow);
}

.page-hero-card > * + * {
  margin-top: 0.85rem;
}

.page-hero-card .pill {
  background: rgba(255, 249, 241, 0.92);
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(86, 54, 30, 0.12);
}

.page-hero-card .cta-row .button-ghost {
  background: rgba(255, 248, 239, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 26px rgba(86, 54, 30, 0.14);
}

.page-hero-card .cta-row .button-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 251, 246, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 30px rgba(86, 54, 30, 0.2);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
}

.page-hero-card h1 + p {
  margin-top: 1rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

[data-shop-pagination] {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.infinite-scroll-status {
  text-align: center;
}

.infinite-scroll-sentinel {
  width: 100%;
  height: 1px;
}

.product-card-entering {
  animation: productCardEnter 320ms ease both;
}

@keyframes productCardEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-skeleton {
  pointer-events: none;
}

.skeleton-block,
.skeleton-line,
.skeleton-pill,
.skeleton-button {
  background: linear-gradient(90deg, rgba(239, 224, 205, 0.85), rgba(255, 248, 240, 0.98), rgba(239, 224, 205, 0.85));
  background-size: 220% 100%;
  animation: skeletonPulse 1.15s linear infinite;
}

@keyframes skeletonPulse {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -20% 0;
  }
}

.product-card-skeleton .product-image {
  min-height: 220px;
}

.skeleton-pill {
  width: 88px;
  min-width: 88px;
  height: 36px;
  border-radius: 999px;
  border: none;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.skeleton-line-title {
  width: 72%;
  height: 22px;
  margin-bottom: 0.75rem;
}

.skeleton-line-price {
  width: 84px;
  height: 28px;
}

.skeleton-button {
  display: inline-block;
  width: 132px;
  height: 50px;
  border-radius: 18px;
}

.search-box {
  flex: 1 1 260px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.shop-filter {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  border: 1px solid rgba(31, 25, 51, 0.08);
}

.shop-filter.active {
  background: var(--primary-dark);
  color: white;
}

.shop-filter:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  border-radius: 34px;
  padding: 1.5rem;
}

.detail-gallery {
  min-height: 520px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
}

.detail-media {
  display: grid;
  gap: 1rem;
}

.detail-thumbs {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.detail-thumb {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  border: 2px solid rgba(31, 25, 51, 0.08);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fffdf9;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.detail-thumb:hover,
.detail-thumb:focus-visible {
  border-color: rgba(161, 107, 69, 0.45);
  transform: translateY(-2px);
}

.detail-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(161, 107, 69, 0.18);
}

.detail-copy {
  padding: 0.5rem 0.3rem;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.spec {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(247, 231, 212, 0.85);
}

.spec strong {
  display: block;
}

.cart-layout,
.checkout-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  border-radius: 34px;
  padding: 1.5rem;
}

.cart-items,
.form-card,
.summary-card,
.contact-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: 1.4rem;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(247, 231, 212, 0.78);
}

.cart-thumb {
  min-height: 120px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  border-bottom: none;
}

.payment-options {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.payment-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.payment-option input {
  margin-top: 0.2rem;
}

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

.field,
.field-full {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field textarea,
.field-full input,
.field-full textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.field textarea,
.field-full textarea {
  min-height: 150px;
  resize: vertical;
}

.status-message {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  display: none;
}

.status-message.show {
  display: block;
}

.status-message.success {
  background: #f1e1ce;
  color: #744c2d;
}

.status-message.error {
  background: #f9ddd2;
  color: #8e4630;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.map-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: 1rem;
  overflow: hidden;
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 20px;
}

.admin-shell {
  padding: 2rem 0 3rem;
}

.admin-grid {
  display: grid;
  gap: 1.25rem;
}

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

.admin-card,
.kpi-card,
.admin-table,
.admin-list {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.kpi-card {
  padding: 1.2rem;
}

.kpi-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 0.4rem;
}

.kpi-tone-new {
  background: #f3f7ff;
  border-color: rgba(91, 141, 239, 0.22);
}

.kpi-tone-confirmed {
  background: #fff7e8;
  border-color: rgba(216, 155, 43, 0.22);
}

.kpi-tone-packed {
  background: #f5f0ff;
  border-color: rgba(138, 99, 210, 0.22);
}

.kpi-tone-route {
  background: #ebfbf7;
  border-color: rgba(30, 159, 132, 0.22);
}

.kpi-tone-wakilni {
  background: #eefaf0;
  border-color: rgba(62, 165, 91, 0.22);
}

.kpi-tone-new strong {
  color: #315fae;
}

.kpi-tone-confirmed strong {
  color: #946413;
}

.kpi-tone-packed strong {
  color: #6541a9;
}

.kpi-tone-route strong {
  color: #127862;
}

.kpi-tone-wakilni strong {
  color: #2f8648;
}

.kpi-tone-fulfilled {
  background: #eefaf0;
  border-color: rgba(62, 165, 91, 0.22);
}

.kpi-tone-fulfilled strong {
  color: #2f8648;
}

.admin-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.admin-card {
  padding: 1.35rem;
}

.admin-card h3 {
  margin: 0 0 1rem;
}

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-section-head p {
  margin: 0.35rem 0 0;
}

.admin-kpis-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

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

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-subtitle {
  margin: 0 0 0.75rem;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-button-light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 25, 51, 0.08);
}

.admin-pagination {
  align-items: center;
  justify-content: space-between;
}

.admin-table {
  overflow: hidden;
}

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

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

.admin-table th {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-list {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.admin-item {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(247, 231, 212, 0.72);
}

.manager-queue-card {
  display: grid;
  gap: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border-left: 4px solid transparent;
}

.manager-queue-card:hover,
.manager-queue-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 245, 232, 0.94);
  box-shadow: 0 16px 26px rgba(120, 75, 38, 0.12);
  outline: none;
}

.manager-queue-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.manager-queue-top p,
.manager-modal-section p {
  margin: 0.15rem 0 0;
}

.admin-item h4,
.admin-item p {
  margin: 0;
}

.admin-item p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
  align-items: center;
}

.admin-order-tools {
  display: grid;
  gap: 0.75rem;
}

.admin-workflow {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.admin-workflow-copy {
  display: grid;
  gap: 0.2rem;
}

.admin-workflow-copy strong {
  font-size: 0.98rem;
}

.admin-workflow-copy p {
  margin: 0;
  color: var(--muted);
}

.admin-workflow-label,
.admin-actions-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-actions-label {
  min-width: 110px;
}

.admin-workflow-pending {
  background: rgba(255, 248, 239, 0.96);
}

.admin-workflow-success {
  background: rgba(240, 250, 242, 0.96);
  border-color: rgba(75, 140, 90, 0.16);
}

.admin-workflow-warning {
  background: rgba(255, 244, 232, 0.96);
  border-color: rgba(185, 119, 61, 0.2);
}

.admin-workflow-locked {
  background: rgba(244, 239, 235, 0.96);
  border-color: rgba(90, 72, 56, 0.14);
}

.admin-actions-secondary {
  margin-top: 0;
}

.admin-actions-secondary .button-ghost {
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
}

.admin-button-light:disabled,
.button-ghost:disabled,
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.admin-select {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}

.admin-badge {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a4f31;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-status-badge {
  border: 1px solid transparent;
}

.manager-queue-card.order-tone-new {
  background: #f3f7ff;
  border-left-color: #5b8def;
}

.manager-queue-card.order-tone-confirmed {
  background: #fff7e8;
  border-left-color: #d89b2b;
}

.manager-queue-card.order-tone-packed {
  background: #f5f0ff;
  border-left-color: #8a63d2;
}

.manager-queue-card.order-tone-route {
  background: #ebfbf7;
  border-left-color: #1e9f84;
}

.manager-queue-card.order-tone-fulfilled {
  background: #eefaf0;
  border-left-color: #3ea55b;
}

.manager-queue-card.order-tone-cancelled {
  background: #fff0ef;
  border-left-color: #d25555;
}

.order-status-badge.order-tone-new {
  background: rgba(91, 141, 239, 0.14);
  border-color: rgba(91, 141, 239, 0.24);
  color: #315fae;
}

.order-status-badge.order-tone-confirmed {
  background: rgba(216, 155, 43, 0.16);
  border-color: rgba(216, 155, 43, 0.24);
  color: #946413;
}

.order-status-badge.order-tone-packed {
  background: rgba(138, 99, 210, 0.15);
  border-color: rgba(138, 99, 210, 0.22);
  color: #6541a9;
}

.order-status-badge.order-tone-route {
  background: rgba(30, 159, 132, 0.14);
  border-color: rgba(30, 159, 132, 0.22);
  color: #127862;
}

.order-status-badge.order-tone-fulfilled {
  background: rgba(62, 165, 91, 0.14);
  border-color: rgba(62, 165, 91, 0.22);
  color: #2f8648;
}

.order-status-badge.order-tone-cancelled {
  background: rgba(210, 85, 85, 0.14);
  border-color: rgba(210, 85, 85, 0.22);
  color: #a33939;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.admin-divider {
  height: 1px;
  margin: 1.1rem 0;
  background: rgba(86, 54, 30, 0.12);
}

.admin-token {
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

.admin-inline-status {
  margin-top: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.admin-inline-status.idle {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-color: rgba(86, 54, 30, 0.08);
}

.admin-inline-status.working {
  background: rgba(255, 248, 239, 0.96);
  color: #8a6141;
  border-color: rgba(180, 120, 77, 0.18);
}

.admin-inline-status.success {
  background: rgba(240, 250, 242, 0.96);
  color: #2f6b3f;
  border-color: rgba(75, 140, 90, 0.18);
}

.admin-inline-status.error {
  background: rgba(255, 241, 238, 0.96);
  color: #9b3d2c;
  border-color: rgba(169, 71, 51, 0.18);
}

.admin-log-panel {
  margin-top: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(86, 54, 30, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.admin-log-panel summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-log-list {
  display: grid;
  gap: 0.8rem;
  padding: 0 1rem 1rem;
}

.admin-log-summary,
.admin-log-recent,
.admin-log-history-list {
  display: grid;
  gap: 0.8rem;
}

.admin-log-summary-head,
.admin-log-subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-log-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-log-entry {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(247, 231, 212, 0.58);
  border: 1px solid rgba(86, 54, 30, 0.08);
}

.admin-log-entry.compact {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
}

.admin-log-tone-success {
  border-color: rgba(63, 138, 92, 0.25);
  background: rgba(232, 247, 237, 0.9);
}

.admin-log-tone-error {
  border-color: rgba(164, 71, 51, 0.18);
  background: rgba(255, 240, 237, 0.92);
}

.admin-log-tone-pending {
  border-color: rgba(180, 120, 77, 0.18);
  background: rgba(255, 248, 238, 0.92);
}

.admin-log-tone-neutral {
  border-color: rgba(86, 54, 30, 0.08);
}

.admin-log-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.admin-log-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
}

.admin-log-history {
  border-top: 1px solid rgba(86, 54, 30, 0.08);
  padding-top: 0.35rem;
}

.admin-log-history summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .admin-kpis,
  .admin-columns,
  .admin-meta-grid,
  .admin-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .admin-kpis,
  .admin-columns,
  .admin-meta-grid,
  .admin-filter-grid,
  .admin-columns-equal {
    grid-template-columns: 1fr;
  }
}

.footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  background: linear-gradient(135deg, rgba(90, 57, 34, 0.97), rgba(140, 95, 59, 0.96));
  color: white;
  border-radius: 34px;
  padding: 2rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.74);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: white;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.3);
  transition: 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.mobile-cart-shortcut {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 1.25rem), 680px);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(31, 25, 51, 0.08);
  box-shadow: 0 18px 35px rgba(72, 45, 24, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-cart-shortcut-copy {
  display: grid;
  gap: 0.18rem;
}

.mobile-cart-shortcut-copy strong {
  font-size: 0.98rem;
}

.mobile-cart-shortcut-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.mobile-cart-shortcut-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-cart-shortcut-actions .button,
.mobile-cart-shortcut-actions .button-ghost {
  margin: 0;
  white-space: nowrap;
}

.mobile-cart-shortcut-actions .button-ghost {
  background: rgba(244, 233, 220, 0.92);
  color: var(--text);
  border: 1px solid rgba(86, 54, 30, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  color: var(--text);
  font-weight: 700;
}

.whatsapp-inline svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: floatUp 0.7s ease both;
}

@media (max-width: 1024px) {
  .hero-grid,
  .detail-grid,
  .cart-layout,
  .checkout-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .review-grid {
    grid-template-columns: 1fr;
  }
}

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

  .topbar {
    position: static;
  }

  .nav {
    display: grid;
    align-items: start;
    justify-items: stretch;
    gap: 0.55rem;
    padding: 0.8rem 0;
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .brand-mark {
    height: 42px;
  }

  .brand {
    width: max-content;
  }

  .nav-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    order: 3;
  }

  .nav-links {
    width: 100%;
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    order: 3;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-links {
    order: 2;
  }

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

  .nav-links a {
    flex: 0 0 auto;
    padding: 0.52rem 0.75rem;
    font-size: 0.96rem;
  }

  .nav-search input {
    padding: 0.82rem 0.95rem;
    font-size: 0.94rem;
  }

  .hero,
  .page-hero {
    padding: 0.95rem 0 0.4rem;
  }

  .hero-grid {
    gap: 0.85rem;
  }

  .hero-slider {
    order: 1;
    min-height: 420px;
    border-radius: 28px;
  }

  .hero-aside {
    order: 2;
    gap: 0.85rem;
  }

  .slide {
    padding: 1.15rem;
  }

  .slide h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.15rem);
    line-height: 0.98;
  }

  .slide p,
  .page-hero p {
    font-size: 0.92rem;
  }

  .hero-actions,
  .cta-row {
    gap: 0.65rem;
    margin-top: 0.85rem;
  }

  .page-hero-card,
  .glass-card,
  .section-card,
  .product-card,
  .summary-card,
  .form-card,
  .contact-card {
    border-radius: 24px;
    padding: 1.15rem;
  }

  .page-hero-card {
    padding: 1.35rem;
  }

  .section {
    padding: 1.25rem 0 0.5rem;
  }

  .section-head {
    gap: 0.7rem;
    margin-bottom: 0.95rem;
  }

  .section-head h2,
  .section-head h3 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .category-card,
  .review-card,
  .product-card {
    padding: 1.1rem;
  }

  .glass-card,
  .section-card {
    padding: 1.05rem;
  }

  .product-image {
    min-height: 200px;
  }

  .detail-thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .tag-row,
  .shop-filters {
    gap: 0.5rem;
  }

  .category-grid,
  .product-grid,
  .spec-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  [data-shop-pagination] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding-right: 0;
    padding-bottom: 0.8rem;
    margin-top: 1rem;
  }

  [data-shop-pagination] .shop-filter {
    padding-inline: 0.9rem;
  }

  .whatsapp-float {
    right: 0.9rem;
    bottom: calc(5.9rem + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .mobile-cart-shortcut {
    display: flex;
  }

  body.has-mobile-cart-shortcut {
    padding-bottom: calc(6.8rem + env(safe-area-inset-bottom));
  }
}

.order-modal[hidden] {
  display: none;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59, 36, 21, 0.42);
  backdrop-filter: blur(6px);
}

.order-modal-card {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 250, 244, 0.98), rgba(248, 233, 210, 0.98));
  border: 1px solid rgba(195, 136, 79, 0.22);
  box-shadow: 0 28px 60px rgba(120, 75, 38, 0.2);
}

.manager-modal-card {
  width: min(100%, 760px);
}

.order-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #6e4323;
  font-size: 1.5rem;
  cursor: pointer;
}

.order-modal-card h2 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.order-modal-copy {
  margin: 0 0 1rem;
  color: #7b5a42;
  line-height: 1.65;
}

.order-modal-number {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(215, 177, 122, 0.18);
  color: #6e4625;
  font-weight: 700;
}

.order-modal-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.checkout-login-modal-card {
  width: min(100%, 500px);
}

.checkout-login-modal-form {
  display: grid;
  gap: 0.9rem;
}

.checkout-login-modal-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.checkout-login-reset {
  justify-self: start;
  width: auto;
}

.manager-modal-copy {
  display: grid;
  gap: 0.8rem;
}

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

.manager-modal-section {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(86, 54, 30, 0.08);
}

.manager-modal-section h3 {
  margin: 0 0 0.6rem;
}

.manager-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.2rem;
}

.manager-modal-inline-actions {
  margin-top: 0.9rem;
}

.manager-line-items {
  display: grid;
  gap: 0.7rem;
}

.manager-line-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(247, 231, 212, 0.5);
}

.manager-line-item strong,
.manager-line-item p {
  margin: 0;
}

.manager-line-item p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.manager-line-item-meta {
  display: grid;
  gap: 0.25rem;
  text-align: right;
}

.manager-field {
  display: grid;
  gap: 0.45rem;
}

.manager-field-wide {
  grid-column: 1 / -1;
}

.manager-notes {
  min-height: 110px;
  width: 100%;
}

.auth-layout {
  max-width: 760px;
}

.account-dashboard {
  display: grid;
  gap: 1.4rem;
}

.account-panel,
.account-empty {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(86, 54, 30, 0.08);
  box-shadow: var(--shadow);
}

.account-empty h2,
.account-panel h2 {
  margin: 0;
}

.account-orders {
  display: grid;
  gap: 0.9rem;
}

.account-addresses {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.account-address-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 228, 203, 0.52);
  border: 1px solid rgba(86, 54, 30, 0.08);
  display: grid;
  gap: 0.45rem;
}

.account-address-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.address-card-actions,
.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.account-address-form-wrap {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(86, 54, 30, 0.08);
}

.account-address-book-inline,
.checkout-save-address {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(245, 228, 203, 0.38);
  border: 1px solid rgba(86, 54, 30, 0.08);
}

.checkout-auth-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(245, 228, 203, 0.42);
  border: 1px solid rgba(86, 54, 30, 0.08);
}

.checkout-auth-head h4 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.checkout-auth-head .muted {
  margin: 0;
}

.checkout-auth-toggle,
.checkout-auth-grid {
  display: grid;
  gap: 0.85rem;
}

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

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

.checkout-save-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
}

.checkout-default-address {
  min-height: 100%;
  align-content: center;
}

.checkout-address-form-wrap {
  display: grid;
  gap: 1rem;
}

.checkout-address-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.checkout-address-summary {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(86, 54, 30, 0.08);
}

.checkout-address-summary-copy {
  display: grid;
  gap: 0.35rem;
}

.checkout-address-summary-copy strong {
  font-size: 1.02rem;
}

.checkout-address-summary-copy p {
  margin: 0;
  color: var(--muted);
}

.checkout-address-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkout-address-summary-actions .button-ghost {
  width: auto;
}

.account-order-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 228, 203, 0.52);
  border: 1px solid rgba(86, 54, 30, 0.08);
}

.account-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-order-head p {
  margin: 0.35rem 0 0;
}

.account-checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.account-checkbox input {
  width: 18px;
  height: 18px;
}

.auth-actions-stack {
  display: grid;
  gap: 0.85rem;
}

.auth-helper {
  margin: 1rem 0 0;
}

.account-ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(86, 54, 30, 0.12);
}

.account-ghost-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

.account-link-authenticated {
  background: linear-gradient(135deg, rgba(180, 120, 77, 0.18), rgba(235, 190, 120, 0.28));
  color: var(--text) !important;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(86, 54, 30, 0.08);
  border-color: rgba(180, 120, 77, 0.18);
}

@media (max-width: 720px) {
  .manager-modal-grid,
  .manager-modal-actions {
    grid-template-columns: 1fr;
  }

  .manager-queue-top,
  .manager-line-item {
    flex-direction: column;
  }

  .manager-line-item-meta {
    text-align: left;
  }

  .checkout-save-address-grid {
    grid-template-columns: 1fr;
  }

  .checkout-address-form-grid,
  .checkout-auth-toggle,
  .checkout-auth-grid {
    grid-template-columns: 1fr;
  }

  .account-address-head,
  .account-order-head {
    flex-direction: column;
  }
}
