:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #687186;
  --line: #dfe5ee;
  --primary: #2d078b;
  --primary-dark: #1f0561;
  --accent: #2d078b;
  --soft: #f1eafd;
  --shadow: 0 10px 24px rgba(27, 39, 64, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.sidebar {
  background: #182238;
  color: white;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
}

.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.28);
  border-radius: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 28px;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
}

nav { display: grid; gap: 6px; }

nav a {
  color: #d9e2f2;
  padding: 10px 12px;
  border-radius: 8px;
}

nav a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
}

.nav-badge {
  background: #f97316;
  border-radius: 999px;
  color: white;
  display: inline-grid;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
  min-width: 20px;
  padding: 2px 6px;
  place-items: center;
}

.sidebar-user {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #d9e2f2;
  font-size: 13px;
}

.sidebar-user strong {
  color: white;
  text-transform: capitalize;
}

.sidebar-user a {
  color: #9bd4ce;
  font-weight: 700;
  margin-top: 4px;
}

.main {
  padding: 30px;
  min-width: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1, h2 { margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 18px; margin-bottom: 16px; }

.primary-action,
button {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}

.primary-action.compact {
  min-height: 36px;
  padding: 9px 12px;
  white-space: nowrap;
}

.secondary-action,
.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--primary);
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}

.secondary-action:hover,
.secondary-button:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.primary-action:hover,
button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.full { width: 100%; }

.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.flash-message {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  font-weight: 700;
  padding: 10px 12px;
}

.text-center {
  display: block;
  text-align: center;
}

.auth-body {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 100vh;
  background: #eef2f7;
}

.auth-shell {
  width: min(440px, calc(100vw - 32px));
}

.auth-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-brand img {
  width: 92px;
  height: 70px;
  object-fit: contain;
}

.auth-brand h1 {
  font-size: 26px;
}

.auth-intro {
  color: var(--muted);
  line-height: 1.55;
  margin: -8px 0 22px;
}

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

.auth-hint {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.auth-back-link {
  color: var(--primary);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 20px;
  text-align: center;
  text-decoration: none;
}

.auth-back-link:hover {
  text-decoration: underline;
}

.alert {
  background: #fff4ed;
  border: 1px solid #f2c9b9;
  border-radius: 8px;
  color: #8d321d;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics div,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics div { padding: 16px; }
.metrics span { color: var(--muted); font-size: 13px; display: block; }
.metrics strong { font-size: 24px; display: block; margin-top: 6px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.65fr);
  gap: 18px;
}

.panel { padding: 18px; overflow: auto; }

.notification-panel {
  margin-bottom: 18px;
}

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

.notification-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.notification-card p {
  margin: 4px 0;
}

.notification-card span {
  color: var(--muted);
  font-size: 12px;
}

.notification-modal-backdrop {
  align-items: center;
  background: rgba(9, 14, 26, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.notification-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(8, 13, 24, 0.28);
  max-width: 720px;
  overflow: hidden;
  width: min(720px, 100%);
}

.notification-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.notification-modal-header h2 {
  margin-bottom: 0;
}

.notification-modal-list {
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding: 18px;
}

.icon-close {
  align-items: center;
  background: #eef2f7;
  color: var(--ink);
  display: inline-flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.icon-close:hover {
  background: #e2e8f0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.products-table th:nth-child(6),
.products-table td:nth-child(6) {
  min-width: 82px;
  white-space: nowrap;
}

.products-table .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  white-space: nowrap;
}

.products-table .actions a,
.products-table .actions .link-danger {
  display: inline-block;
  line-height: 1.3;
}

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

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

.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.badge.warning {
  background: #fff7ed;
  color: #9a3412;
}

.message-cell {
  max-width: 420px;
  white-space: normal;
}

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

.conversation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 8px;
  padding: 14px;
  text-decoration: none;
}

.conversation-card:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.conversation-card div:first-child {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.conversation-card span,
.conversation-card p {
  color: var(--muted);
}

.conversation-card p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.chat-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: minmax(380px, 1fr) auto;
  overflow: hidden;
}

.chat-history {
  background: #eef2f7;
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding: 18px;
}

.chat-message {
  display: flex;
}

.chat-message.sent {
  justify-content: flex-end;
}

.chat-bubble {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: min(680px, 78%);
  padding: 10px 12px;
}

.chat-message.sent .chat-bubble {
  background: #e7ddff;
  border-color: #d8c6ff;
}

.chat-bubble p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.chat-bubble span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  text-align: right;
}

.chat-compose {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.ai-config-layout {
  align-items: start;
}

.ai-config-form,
.ai-contact-form {
  display: grid;
  gap: 16px;
}

.ai-contact-list {
  display: grid;
  gap: 10px;
  max-height: 650px;
  overflow: auto;
  padding-right: 4px;
}

.ai-contact-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 140px;
  padding: 12px;
}

.ai-contact-row strong,
.ai-contact-row span,
.ai-contact-row small {
  display: block;
}

.ai-contact-row span,
.ai-contact-row small {
  color: var(--muted);
}

.empty, .muted { color: var(--muted); }

.actions {
  white-space: nowrap;
}

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

.order-status-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-status-filter label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.order-status-filter select {
  min-width: 190px;
}

.fiscal-cancel-panel {
  border-color: #e5c5c0;
}

.cancel-nfe-form {
  display: grid;
  gap: 12px;
}

.cancel-nfe-form .danger-button {
  justify-self: start;
}

.shipping-quote {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.shipping-options {
  display: grid;
  gap: 8px;
}

.shipping-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 10px 12px;
}

.shipping-option input {
  width: auto;
}

.shipping-option span {
  display: grid;
  gap: 3px;
}

.shipping-option small {
  color: var(--muted);
}

.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.product-filters input {
  flex: 1;
  min-width: 220px;
}

.product-filters select {
  flex: 0 0 190px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  background: white;
  color: var(--ink);
}

textarea { resize: vertical; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  min-height: 42px;
}

.checkbox-line input {
  width: auto;
}

.field-title {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.attendance-config {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.weekday-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 12px;
}

.weekday-grid .checkbox-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 8px;
}

.schedule-grid {
  margin-top: 10px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.form-section { min-width: 0; }
.wide { grid-column: 1 / 2; }
.form-grid .wide { grid-column: 1 / -1; }
.totals { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 14px; }

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

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

.section-heading h2 {
  margin: 2px 0 0;
}

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

.form-subsection {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.form-subsection .form-grid {
  margin-top: 10px;
}

.collapsible-section {
  overflow: hidden;
}

.collapsible-section > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
}

.collapsible-section > summary::-webkit-details-marker {
  display: none;
}

.collapsible-section > summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}

.collapsible-section[open] > summary {
  margin-bottom: 16px;
}

.collapsible-section[open] > summary::after {
  content: "-";
}

/* Os dados tributarios do produto agora sao definidos na configuracao fiscal; apenas o NCM permanece visivel. */
form.panel.form-section label:has(input[name="cest"]),
form.panel.form-section label:has(input[name="cfop"]),
form.panel.form-section label:has(select[name="tax_origin"]),
form.panel.form-section label:has(input[name="csosn"]),
form.panel.form-section label:has(input[name="icms_rate"]),
form.panel.form-section label:has(input[name="pis_cst"]),
form.panel.form-section label:has(input[name="cofins_cst"]) {
  display: none;
}

.form-help {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.store-config-form {
  display: grid;
  gap: 18px;
}

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

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

.sortable-list.compact {
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.sortable-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.sortable-row.dragging {
  opacity: 0.55;
}

.drag-handle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: grab;
  font-weight: 900;
  letter-spacing: 1px;
}

.menu-config-row {
  grid-template-columns: 34px auto minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, 0.75fr);
}

.menu-visible {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.menu-visible input {
  width: auto;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: rgba(244, 247, 251, 0.92);
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

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

.product-image-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.product-image-preview img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-image-gallery {
  flex-wrap: wrap;
}

.product-image-gallery img {
  flex: 0 0 96px;
}

.product-image-gallery-item {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.image-remove-button {
  min-height: 0;
  padding: 2px 5px;
  background: transparent;
  color: #a43b2b;
  font-size: 11px;
}

.image-remove-button:hover {
  background: #f8e8e4;
  color: #7f2115;
}

.product-image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-image-thumb {
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
}

.product-image-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--soft);
}

.product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-preview span {
  color: var(--muted);
  font-size: 13px;
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.inline-form input {
  min-width: 130px;
  padding: 7px 9px;
}

.inline-form button {
  min-height: 34px;
  padding: 7px 10px;
}

.danger-button {
  background: #f1e4e0;
  color: #8d321d;
}

.danger-button:hover {
  background: #e8cfc7;
  color: #742714;
}

.actions form {
  display: inline;
}

.link-danger {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #a43b2b;
  font-size: inherit;
  font-weight: 700;
}

.link-danger:hover {
  background: transparent;
  color: #7f2115;
  text-decoration: underline;
}

.results {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
  cursor: pointer;
}

.result-item:hover {
  border-color: var(--primary);
  background: var(--soft);
}

.result-item strong { display: block; }
.result-item span { color: var(--muted); font-size: 13px; }

.selected-box {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.items-table input {
  min-width: 86px;
  padding: 8px;
}

.items-table .remove {
  background: #f1e4e0;
  color: #8d321d;
  min-height: 34px;
  padding: 6px 10px;
}

.total-line,
.total-stack div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.total-line span,
.total-stack span { color: var(--muted); }

.grand {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 20px;
}

.form-message {
  margin: 0;
  color: var(--accent);
  min-height: 20px;
}

.details {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.details dt { color: var(--muted); }
.details dd { margin: 0; }

.status-form {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.order-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px;
  align-items: stretch;
}

.order-action-row input,
.order-action-row select,
.order-action-row .action-pair,
.order-action-row .action-single {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
}

.order-action-row button {
  width: 160px !important;
  min-width: 160px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  box-sizing: border-box;
}

.order-action-row input,
.order-action-row select {
  height: 46px !important;
  min-height: 46px !important;
}

.payment-action-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.action-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
}

.action-single {
  display: block;
}

.stock-action-row {
  grid-template-columns: 160px minmax(0, 1fr);
}

.order-item-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 140px 160px;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.order-item-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-item-form input,
.order-item-form select {
  width: 100%;
  min-width: 0;
  height: 46px;
  box-sizing: border-box;
}

.order-item-form button {
  width: 160px;
  height: 46px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .order-action-row,
  .payment-action-row,
  .stock-action-row {
    grid-template-columns: 1fr;
  }

  .action-pair {
    grid-template-columns: 1fr;
  }

  .order-action-row button {
    width: 100% !important;
    min-width: 0 !important;
  }

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

  .order-item-form button {
    width: 100%;
  }
}

.total-stack {
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .main { padding: 18px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .order-layout { grid-template-columns: 1fr; }
  .totals, .wide { grid-column: auto; grid-row: auto; }
}

@media (max-width: 640px) {
  .page-header, .searchbar, .status-form, .header-actions { align-items: stretch; flex-direction: column; }
  nav { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}

/* Product page: final two-column layout override */
.store-product-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px;
}

.store-product-shell.without-sidebar {
  grid-template-columns: 1fr;
}

.store-product-shell .product-category-menu {
  position: sticky;
  top: 132px;
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: visible;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 18px;
}

.store-product-shell .product-category-chips {
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-height: none;
  overflow: visible;
}

.store-body {
  overflow-x: hidden;
}

.tazze-store-body {
  background: #fff8fa;
  color: #5f3044;
}

.tazze-store-body .store-logo {
  display: none;
}

.tazze-header-wordmark,
.tazze-wordmark {
  color: #d85b87;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .02em;
}

.tazze-header-wordmark {
  font-size: 28px;
  margin-right: 12px;
}

.tazze-top-menu {
  background: #f8e4ea;
  border-top-color: #f1c4d2;
  border-bottom-color: #f1c4d2;
  justify-content: center;
}

.tazze-top-menu a { color: #7d4057; }
.tazze-top-menu a:hover,
.tazze-top-menu a.active,
.tazze-menu-home { color: #c94878 !important; }

.tazze-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 30px 34px;
  border: 1px solid var(--tazze-hero-border, #f1c4d2);
  border-radius: 12px;
  background-color: var(--tazze-hero-background, #f8e4ea);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.tazze-hero-image-spacer { display: block; min-height: 92px; }

.tazze-wordmark { font-size: 54px; line-height: 1; margin: 0; }
.tazze-tagline { margin: 10px 0 0; color: #7d4057; }
.tazze-page { width: min(1180px, calc(100% - 40px)); margin: 28px auto 54px; }
.tazze-eyebrow { color: #c94878; }
.tazze-count { color: #a66a7f; }
.tazze-product-grid .product-card { border-color: #f1c4d2; }

/* Tazze palette and centered navigation override the shared store theme. */
.tazze-store-body {
  --primary: #d85b87;
  --primary-dark: #b7436c;
  --accent: #d85b87;
  --soft: #f8e4ea;
  --store-primary: #d85b87;
  --store-primary-dark: #b7436c;
  --store-line: #f1c4d2;
  --store-soft: #fff8fa;
  --store-text: #7d4057;
}

.tazze-store-body .store-ribbon,
.tazze-store-body .store-search button,
.tazze-store-body .store-actions .store-cart-link,
.tazze-store-body .product-add-button,
.tazze-store-body .primary-action,
.tazze-store-body .detail-actions .primary-action,
.tazze-store-body .cart-summary .primary-action {
  background: #d85b87 !important;
  border-color: #d85b87 !important;
}

.tazze-store-body .store-ribbon { color: #fff8fa; }

.tazze-store-body .tazze-top-menu {
  justify-content: center !important;
  overflow: visible;
  width: 100%;
  background: transparent;
  border-top-color: transparent;
  border-bottom-color: #f1c4d2;
}

.store-body:not(.tazze-store-body) .store-menu {
  justify-content: center;
  overflow: visible;
}

.tazze-store-body .product-card strong,
.tazze-store-body .detail-price,
.tazze-store-body .store-carousel-meta strong {
  color: #a52f5d;
}

.tazze-store-body .product-category,
.tazze-store-body .tazze-eyebrow,
.tazze-store-body .store-carousel-info .eyebrow {
  color: #a52f5d;
}

.store-product-shell .product-category-chips a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.store-product-shell .product-category-chips a > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-product-shell .product-category-chips strong {
  flex: 0 0 24px;
}

.store-product-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.store-product-content .product-detail,
.store-product-content .store-section {
  max-width: none;
  margin: 0;
}

.store-product-content .product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1fr);
  gap: 26px;
}

.store-product-content .product-description-section,
.store-product-content > .store-section:not(.product-description-section) {
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 22px;
}

/* Final Tazze theme override: keep the independent palette after shared store rules. */
.tazze-store-body {
  --primary: #d85b87;
  --primary-dark: #b7436c;
  --accent: #d85b87;
  --soft: #f8e4ea;
  --store-primary: #d85b87;
  --store-primary-dark: #b7436c;
  --store-line: #f1c4d2;
  --store-soft: #fff8fa;
  --store-text: #7d4057;
}

.tazze-store-body .store-ribbon,
.tazze-store-body .store-search button,
.tazze-store-body .store-actions .store-cart-link,
.tazze-store-body .product-add-button,
.tazze-store-body .primary-action,
.tazze-store-body .detail-actions .primary-action,
.tazze-store-body .cart-summary .primary-action {
  background: #d85b87 !important;
  border-color: #d85b87 !important;
}

.tazze-store-body .tazze-top-menu {
  justify-content: center !important;
  overflow: visible;
  width: 100%;
}

@media (max-width: 1080px) {
  .store-product-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .store-product-content .product-detail {
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .store-product-shell,
  .store-product-shell.without-sidebar {
    display: block;
    padding: 22px 16px;
  }

  .store-product-shell .product-category-menu {
    position: static;
    margin-bottom: 20px;
  }

  .store-product-content .product-detail {
    grid-template-columns: 1fr;
  }
}

/* Final Tazze theme override: keep the independent palette after shared store rules. */
.tazze-store-body {
  --primary: #d85b87;
  --primary-dark: #b7436c;
  --accent: #d85b87;
  --soft: #f8e4ea;
  --store-primary: #d85b87;
  --store-primary-dark: #b7436c;
  --store-line: #f1c4d2;
  --store-soft: #fff8fa;
  --store-text: #7d4057;
}

.tazze-store-body .store-ribbon,
.tazze-store-body .store-search button,
.tazze-store-body .store-actions .store-cart-link,
.tazze-store-body .product-add-button,
.tazze-store-body .primary-action,
.tazze-store-body .detail-actions .primary-action,
.tazze-store-body .cart-summary .primary-action {
  background: #d85b87 !important;
  border-color: #d85b87 !important;
}

.tazze-store-body .tazze-top-menu {
  justify-content: center !important;
  overflow: visible;
  width: 100%;
}

.tazze-store-body .tazze-top-menu {
  background: transparent !important;
  border-top-color: transparent !important;
  border-bottom-color: #f1c4d2 !important;
}

.store-body:not(.tazze-store-body) .store-menu {
  justify-content: center !important;
  overflow: visible;
}

.tazze-store-body {
  --tazze-primary: #d85b87;
  --tazze-primary-dark: #b7436c;
  --tazze-accent: #c94878;
  --tazze-soft: #f8e4ea;
  --tazze-line: #f1c4d2;
  --tazze-text: #7d4057;
  --tazze-background: #fff8fa;
  background: var(--tazze-background);
  color: var(--tazze-text);
}

.tazze-store-body .store-ribbon,
.tazze-store-body .store-search button,
.tazze-store-body .store-actions .store-cart-link,
.tazze-store-body .product-add-button,
.tazze-store-body .primary-action {
  background: var(--tazze-primary) !important;
  border-color: var(--tazze-primary) !important;
}

.tazze-store-body .product-card,
.tazze-store-body .store-hero,
.tazze-store-body .product-category-menu {
  border-color: var(--tazze-line);
}

.tazze-store-body .tazze-hero {
  background: var(--tazze-soft);
  border-color: var(--tazze-line);
}

.tazze-store-body .tazze-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.tazze-store-body .tazze-logo-link img {
  display: block;
  width: auto;
  max-width: 132px;
  height: min(var(--tazze-logo-size), 132px);
  object-fit: contain;
}

.tazze-store-body:has(.tazze-logo-link) .tazze-header-wordmark {
  display: none;
}

.tazze-brand-image {
  display: block;
  width: auto;
  max-width: 220px;
  height: var(--tazze-logo-size);
  margin: 0;
  object-fit: contain;
}

.store-body:has(.panta-logo-link) .store-logo {
  display: none;
}

.panta-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.panta-logo-link img {
  display: block;
  width: auto;
  max-width: 180px;
  height: min(var(--panta-logo-size), 132px);
  object-fit: contain;
}

.tazze-store-body .product-category,
.tazze-store-body .detail-price,
.tazze-store-body .product-card strong,
.tazze-store-body .store-carousel-meta strong,
.tazze-store-body .tazze-eyebrow {
  color: var(--tazze-accent);
}

.store-config-form input[type="color"] {
  width: 48px;
  min-width: 48px;
  height: 32px;
  padding: 3px;
  border-radius: 6px;
  cursor: pointer;
}

.blender-color-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 120px));
  justify-content: center;
  align-items: end;
  gap: 34px;
}

.blender-color-row label {
  justify-items: center;
  text-align: center;
}

.blender-transparent-option {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: max-content;
  white-space: nowrap;
  min-height: 32px;
}

.blender-transparent-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.blender-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 320px;
}

.blender-credit-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 14px;
}

.blender-credit-banner span { color: var(--muted); font-size: 13px; }
.blender-workspace { display: grid; grid-template-columns: 2fr 3fr; gap: 20px; align-items: start; }
.blender-left-column { display: grid; gap: 20px; min-width: 0; }
.blender-render-panel, .blender-results-panel { min-width: 0; }
.blender-results-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-height: 650px; overflow: auto; }
.blender-result-card { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface); }
.blender-delete-form { position: absolute; top: 8px; right: 8px; z-index: 2; }
.blender-delete-form button { width: 26px; height: 26px; padding: 0; border: 1px solid #f0b8b3; border-radius: 6px; background: rgba(255, 247, 246, .94); color: #a52f2a; font-size: 17px; font-weight: 600; line-height: 22px; cursor: pointer; box-shadow: 0 1px 3px rgba(30, 40, 60, .12); transition: background .15s ease, color .15s ease, transform .15s ease; }
.blender-delete-form button:hover { background: #b42318; color: #fff; transform: scale(1.05); }
.blender-result-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #f5f6f8; border-radius: 6px; }
.blender-result-card form { display: block; margin-top: 10px; }
.blender-result-card form input { min-width: 0; }
.blender-result-card form input.saved { border-color: #2e9b68; box-shadow: 0 0 0 2px rgba(46,155,104,.12); }
.blender-progress-track { height: 14px; background: #e5e7eb; border-radius: 8px; overflow: hidden; }
.blender-progress-track div { height: 100%; width: 5%; background: var(--primary); transition: width .25s ease; }
.blender-result-image { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.blender-progress-panel { width: auto; margin-top: 0; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.table-scroll { overflow-x: auto; }
.search-history-panel { margin-top: 20px; }
@media (max-width: 900px) { .dashboard-columns { grid-template-columns: 1fr; } }
.blender-credit-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
@media (max-width: 900px) { .blender-credit-form { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .blender-color-row {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 18px;
  }
}

.store-config-form input[type="range"] {
  width: 180px;
  min-width: 180px;
  accent-color: var(--primary);
}

.store-config-form output {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.print-body {
  display: block;
  min-height: auto;
  background: #e9edf3;
  color: #111827;
}

.print-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: 960px;
  margin: 18px auto 12px;
  padding: 0 18px;
}

.print-page {
  max-width: 960px;
  margin: 0 auto 32px;
  background: white;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.print-header,
.print-grid,
.print-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.print-header {
  align-items: start;
  border-bottom: 2px solid #172033;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.print-logo-block {
  display: flex;
  align-items: center;
}

.print-logo {
  display: block;
  width: 150px;
  max-height: 105px;
  object-fit: contain;
}

.print-company {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: #172033;
  line-height: 1.35;
  text-align: right;
  font-size: 13px;
}

.print-company strong {
  font-size: 15px;
}

.print-order-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #cfd7e3;
  padding: 8px 0 18px;
  margin-bottom: 24px;
}

.print-order-strip h1 {
  margin-top: 2px;
}

.print-grid {
  margin-bottom: 26px;
}

.print-grid p,
.print-notes p {
  margin: 6px 0;
}

.print-table th,
.print-table td {
  border-color: #cfd7e3;
}

.print-product-thumb {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid #d7dde8;
  border-radius: 6px;
  background: white;
}

.print-transport {
  margin: 20px 0 24px;
  padding-top: 12px;
  border-top: 1px solid #cfd7e3;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  font-size: 13px;
}

.transport-grid div {
  display: grid;
  gap: 3px;
}

.transport-grid span { color: #334155; }

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

.transport-form .primary-action { justify-self: start; }

@media (max-width: 760px) {
  .transport-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.print-footer {
  margin-top: 24px;
  align-items: start;
}

.print-totals {
  display: grid;
  gap: 10px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  padding: 16px;
}

.print-totals div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 760px) {
  .print-header,
  .print-grid,
  .print-footer {
    grid-template-columns: 1fr;
  }

  .print-company {
    justify-items: start;
    text-align: left;
  }

  .print-order-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  @page { margin: 12mm; }
  .print-toolbar { display: none; }
  .print-body { background: white; }
  .print-page {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .print-logo {
    width: 140px;
    max-height: 95px;
  }
  a { color: inherit; }
}

.store-body {
  display: block;
  min-height: 100vh;
  background: #f7f8fb;
}

.store-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 190px minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.store-logo img {
  display: block;
  width: 158px;
  max-height: 72px;
  object-fit: contain;
}

.store-search {
  display: flex;
  gap: 10px;
}

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

.store-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  padding: 9px 12px;
}

.store-actions a:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 28px 26px;
}

.store-hero-copy h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 16px;
}

.store-hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 560px;
}

.store-hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.store-hero-media a,
.product-image,
.product-detail-image {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.store-hero-media a {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 18px;
}

.store-hero-media img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.store-section,
.store-page-heading,
.store-layout,
.product-detail,
.cart-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

.store-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px;
}

.store-section h2,
.store-page-heading h1 {
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.category-grid a,
.store-filter a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 14px;
}

.category-grid a:hover,
.store-filter a:hover,
.store-filter a.active {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: 190px 1fr auto;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  place-items: center;
  padding: 14px;
}

.product-image img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.product-card-body {
  display: grid;
  gap: 7px;
}

.product-card h3 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
}

.product-card span {
  color: var(--muted);
  font-size: 12px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
}

.table-pagination > div {
  color: var(--muted);
  white-space: nowrap;
}

.table-pagination > div strong {
  color: var(--ink);
}

.per-page-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.per-page-form select {
  width: auto;
  min-width: 82px;
  padding: 8px 10px;
}

.pagination-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-links a,
.pagination-links span {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  padding: 6px 10px;
}

.pagination-links a:hover,
.pagination-links a.active {
  border-color: var(--primary);
  background: var(--soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.pagination-links a.disabled {
  color: var(--muted);
  pointer-events: none;
  opacity: 0.55;
}

.product-card strong,
.detail-price {
  color: var(--primary-dark);
  font-size: 20px;
}

.store-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.store-filter {
  display: grid;
  gap: 10px;
  align-self: start;
}

.store-filter h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.product-detail-image {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 28px;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 410px;
  object-fit: contain;
}

.product-detail-info {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.product-description {
  color: #4f5d73;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  white-space: pre-line;
}

.product-description-section {
  padding-top: 0;
}

.product-description-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.product-detail-info h1 {
  font-size: 30px;
  margin-bottom: 16px;
}

.product-detail-info dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.detail-actions input {
  max-width: 92px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.cart-panel,
.cart-summary {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.cart-summary {
  display: grid;
  gap: 12px;
  align-self: start;
}

.checkout-account-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid #d8c9f7;
  border-radius: 8px;
}

.checkout-account-note span {
  color: #687186;
  font-size: 13px;
}

.store-cart-page {
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto 56px;
}

.store-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 22px;
  align-items: start;
}

.store-cart-items,
.store-cart-checkout {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dfe5ee);
  border-radius: 10px;
  padding: 22px;
}

.store-cart-checkout { position: sticky; top: 18px; }
.store-cart-checkout h2 { margin-top: 0; }
.store-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #dfe5ee);
}
.store-cart-item img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line, #dfe5ee); border-radius: 8px; }
.store-cart-item small { display: block; color: var(--muted, #687186); margin-top: 4px; }
.cart-quantity { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cart-quantity button { border: 1px solid var(--line, #dfe5ee); background: var(--surface, #fff); color: var(--primary, #2d078b); border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.cart-quantity button:last-child { border: 0; padding-left: 4px; color: var(--primary, #2d078b); }
.checkout-summary { display: grid; gap: 8px; margin: 20px 0; padding-top: 14px; border-top: 1px solid var(--line, #dfe5ee); }
.checkout-summary div { display: flex; justify-content: space-between; gap: 12px; }
.checkout-summary div:last-child { font-size: 18px; }
.checkout-message { min-height: 22px; margin-bottom: 12px; color: var(--primary, #2d078b); }

@media (max-width: 860px) {
  .store-cart-layout { grid-template-columns: 1fr; }
  .store-cart-checkout { position: static; }
}

.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr 84px 110px auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.empty-cart {
  color: var(--muted);
  padding: 26px;
  text-align: center;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 20px;
  padding-top: 12px;
}

.store-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 30px auto 0;
  max-width: 1180px;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
  .store-topbar,
  .store-hero,
  .store-layout,
  .product-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .store-actions,
  .store-footer {
    flex-wrap: wrap;
  }

  .store-hero-copy h1 {
    font-size: 34px;
  }

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

/* Product page: final two-column layout override */
.store-product-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px;
}

.store-product-shell.without-sidebar {
  grid-template-columns: 1fr;
}

.store-product-shell .product-category-menu {
  position: sticky;
  top: 132px;
  align-self: start;
  min-width: 0;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 18px;
}

.store-product-shell .product-category-chips {
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.store-product-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.store-product-content .product-detail,
.store-product-content .store-section {
  max-width: none;
  margin: 0;
}

.store-product-content .product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1fr);
  gap: 26px;
}

.store-product-content .product-description-section,
.store-product-content > .store-section:not(.product-description-section) {
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 22px;
}

@media (max-width: 1080px) {
  .store-product-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .store-product-content .product-detail {
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .store-product-shell,
  .store-product-shell.without-sidebar {
    display: block;
    padding: 22px 16px;
  }

  .store-product-shell .product-category-menu {
    position: static;
    margin-bottom: 20px;
  }

  .store-product-content .product-detail {
    grid-template-columns: 1fr;
  }
}

.store-product-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px;
}

.store-product-shell .product-category-menu {
  position: sticky;
  top: 112px;
  align-self: start;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 18px;
}

.store-product-shell .product-category-chips {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.store-product-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.store-product-shell.without-sidebar {
  grid-template-columns: 1fr;
}

.store-product-content .product-detail,
.store-product-content .store-section {
  max-width: none;
  margin: 0;
  padding: 0;
}

.store-product-content .product-detail {
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
}

.store-product-content .product-description-section,
.store-product-content > .store-section:not(.product-description-section) {
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 22px;
}

@media (max-width: 1080px) {
  .store-product-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
  }

  .store-product-content .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .store-product-shell {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .store-product-shell .product-category-menu {
    position: static;
  }
}

/* Store polish */
.store-body {
  background: #f3f5f8;
  color: #1e2532;
}

.store-ribbon {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 18px;
  background: #10243c;
  color: #eef5ff;
  font-size: 13px;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  border-bottom: 1px solid #dfe5ee;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.store-header-main {
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
}

.store-logo img {
  width: 178px;
  max-height: 74px;
}

.store-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 0;
}

.store-search input {
  border-radius: 8px 0 0 8px;
  border-color: #cfd7e3;
  min-height: 46px;
}

.store-search button {
  border-radius: 0 8px 8px 0;
  min-height: 46px;
}

.store-actions {
  display: flex;
  gap: 10px;
}

.store-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #cfd7e3;
  background: white;
  color: #172033;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
}

.store-actions .store-cart-link {
  gap: 8px;
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.store-actions .store-menu-group {
  display: flex;
}

.store-actions .store-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #cfd7e3;
  background: white;
  color: #172033;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
}

.store-actions .store-submenu {
  left: auto;
  right: 0;
  min-width: 190px;
}

.store-cart-link strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.store-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 14px;
  overflow: visible;
  scrollbar-width: none;
}

.store-menu::-webkit-scrollbar {
  display: none;
}

.store-menu a,
.store-menu-link {
  color: #364255;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  white-space: nowrap;
}

.store-menu a:hover,
.store-menu-group:hover .store-menu-link,
.store-menu-group:focus-within .store-menu-link {
  background: var(--soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.store-menu-group {
  position: relative;
  display: flex;
  align-items: center;
}

.store-menu-group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.store-menu-link::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.store-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 230px;
  padding: 8px;
  background: white;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(27, 39, 64, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.store-menu-group:hover .store-submenu,
.store-menu-group:focus-within .store-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.store-submenu a {
  color: #172033;
  border-radius: 6px;
  padding: 10px 11px;
}

.store-submenu a:hover {
  background: var(--soft);
  color: var(--primary-dark);
}

.store-hero {
  max-width: 1240px;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  gap: 28px;
  padding: 34px 28px 24px;
  align-items: stretch;
  margin-bottom: 18px;
}

.store-hero-copy {
  background: #ffffff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 14px 32px rgba(27, 39, 64, 0.08);
}

.store-hero-copy h1 {
  color: #172033;
  font-size: 42px;
  line-height: 1.08;
}

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

.store-carousel {
  display: block;
  position: relative;
  min-height: 500px;
}

.store-carousel-slide {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 0;
  align-items: center;
  background: white;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(27, 39, 64, 0.1);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 34px 28px 64px;
  transition: opacity 0.28s ease;
}

.store-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.store-carousel-image,
.store-carousel-info {
  min-height: 330px;
}

.store-carousel-image {
  display: grid;
  place-items: center;
  border-right: 1px solid #edf1f6;
  padding: 30px;
}

.store-carousel-image img {
  width: 100%;
  height: 276px;
  object-fit: contain;
  object-position: center;
}

.store-carousel-info {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
}

.store-carousel-info > p:not(.eyebrow) {
  color: #24314a;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-carousel-info h1 {
  color: #172033;
  font-size: 34px;
  line-height: 1.12;
  margin: 0;
}

.store-carousel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-carousel-meta span {
  color: #687186;
  font-weight: 700;
}

.store-carousel-meta strong {
  color: var(--primary-dark);
  font-size: 26px;
}

.store-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.store-carousel-dots button {
  width: 10px;
  height: 10px;
  min-height: 10px;
  border-radius: 999px;
  padding: 0;
  background: #c7cedb;
}

.store-carousel-dots button.active {
  width: 26px;
  background: var(--primary);
}

.store-hero-media {
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, minmax(0, 176px));
  grid-auto-rows: 176px;
  align-self: start;
}

.store-hero-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  border: 1px solid #dfe5ee;
  box-shadow: 0 14px 32px rgba(27, 39, 64, 0.08);
  overflow: hidden;
  padding: 18px 54px 24px 18px;
}

.store-hero-media a:first-child {
  grid-row: span 2;
  padding: 22px 58px 26px 22px;
}

.store-hero-media img {
  width: 100%;
  height: 100%;
  max-height: 214px;
  object-fit: contain;
  object-position: center;
}

.store-hero-media a:first-child img {
  max-height: 318px;
}

.store-hero-media span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  font-weight: 800;
  padding: 7px 10px;
}

.store-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 18px;
}

.store-benefits div {
  background: white;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 15px 16px;
}

.store-benefits strong {
  display: block;
  color: #172033;
}

.store-benefits span {
  color: #687186;
  font-size: 13px;
}

.store-section,
.store-page-heading,
.store-layout,
.product-detail,
.cart-layout,
.store-footer {
  max-width: 1240px;
}

.store-section {
  padding-top: 22px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.category-grid a {
  align-items: center;
  min-height: 72px;
  box-shadow: 0 8px 18px rgba(27, 39, 64, 0.05);
}

.category-grid a span {
  font-weight: 800;
}

.category-grid a strong {
  color: var(--primary);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  align-items: start;
}

.product-card {
  grid-template-rows: 210px 142px 44px;
  border-color: #dfe5ee;
  padding: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-height: 438px;
}

.product-card:hover {
  border-color: #b8c7d9;
  box-shadow: 0 16px 34px rgba(27, 39, 64, 0.12);
  transform: translateY(-2px);
}

.product-image {
  background: #fbfcfe;
  border-color: #edf1f6;
}

.product-image img {
  max-height: 180px;
}

.product-card-body {
  display: grid;
  grid-template-rows: 17px 54px 17px 28px;
  gap: 7px;
  align-content: start;
  min-width: 0;
  overflow: hidden;
}

.product-category {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sku {
  color: #8b94a7;
  font-size: 12px;
}

.product-card h3 {
  font-size: 14px;
  min-height: 0;
  max-height: 54px;
  overflow: hidden;
}

.product-add-button {
  width: 100%;
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 12px;
  font-weight: 800;
  align-self: end;
}

.product-add-button:hover {
  background: var(--primary-dark);
}

.sold-out,
.sold-out:hover,
button:disabled.sold-out {
  background: #c6ceda;
  color: #4f5d73;
  border-color: #c6ceda;
  cursor: not-allowed;
}

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

.client-heading p {
  color: #687186;
  margin: 8px 0 0;
}

.client-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 38px;
}

.client-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  background: white;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 10px;
}

.client-nav a {
  color: #364255;
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 12px;
}

.client-nav a:hover,
.client-nav a.active {
  background: var(--soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.client-panel {
  background: white;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 22px;
}

.client-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.client-panel-header h2 {
  margin: 0 0 4px;
}

.client-panel-header p {
  color: #687186;
  margin: 0;
}

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

.client-cards a,
.profile-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 16px;
}

.client-cards a:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.client-cards span,
.profile-grid span {
  color: #687186;
  font-size: 13px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .store-ribbon {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .store-header-main,
  .store-hero,
  .store-benefits {
    grid-template-columns: 1fr;
  }

  .store-actions {
    justify-content: stretch;
  }

  .store-actions a {
    flex: 1;
  }

  .store-actions .store-menu-group {
    flex: 1;
  }

  .store-actions .store-menu-link {
    width: 100%;
  }

  .store-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
  }

  .store-hero-copy h1 {
    font-size: 31px;
  }

  .store-carousel {
    min-height: 760px;
  }

  .store-carousel-slide {
    grid-template-columns: 1fr;
    inset: 22px 28px 64px;
  }

  .store-carousel-image,
  .store-carousel-info {
    min-height: 280px;
  }

  .store-carousel-image {
    border-right: 0;
    border-bottom: 1px solid #edf1f6;
  }

  .store-carousel-info h1 {
    font-size: 28px;
  }

  .store-hero-media {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .client-heading,
  .client-shell,
  .client-cards,
  .profile-grid,
  .store-config-grid {
    grid-template-columns: 1fr;
  }

  .client-heading {
    align-items: flex-start;
  }

  .table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .store-ribbon {
    font-size: 12px;
  }

  .store-header-main,
  .store-menu,
  .store-hero,
  .store-benefits,
  .store-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .store-search input,
  .store-search button {
    border-radius: 8px;
  }

  .section-heading,
  .menu-config-row {
    grid-template-columns: 34px 1fr;
  }

  .section-heading {
    display: grid;
  }

  .menu-config-row .muted {
    grid-column: 2;
  }

  .store-hero {
    gap: 18px;
    padding-top: 22px;
  }

  .store-hero-copy {
    padding: 24px;
  }

  .store-hero-copy h1 {
    font-size: 28px;
  }

  .store-hero-media {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .store-carousel {
    min-height: 730px;
  }

  .store-carousel-slide {
    left: 16px;
    right: 16px;
  }

  .store-carousel-image img {
    height: 220px;
  }

  .store-hero-media a:first-child {
    grid-row: span 1;
  }

  .store-benefits {
    gap: 10px;
  }
}

/* Store clean refresh */
.store-body {
  --store-ink: #101828;
  --store-text: #344054;
  --store-muted: #667085;
  --store-line: #e4e7ec;
  --store-soft: #f8fafc;
  --store-panel: #ffffff;
  --store-primary: #35009b;
  --store-primary-dark: #250071;
  --store-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
  background:
    linear-gradient(180deg, #ffffff 0, #f6f8fb 360px, #f7f9fc 100%);
  color: var(--store-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.store-ribbon {
  background: var(--store-primary);
  color: #ffffff;
  justify-content: center;
  gap: 22px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
}

.store-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--store-line);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(12px);
}

.store-header-main {
  grid-template-columns: 190px minmax(280px, 1fr) auto;
  max-width: 1200px;
  gap: 18px;
  padding: 12px 24px;
}

.store-logo img {
  width: 150px;
  max-height: 62px;
}

.store-search {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: var(--store-soft);
  padding: 4px;
}

.store-search input {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding-left: 16px;
}

.store-search input:focus {
  box-shadow: none;
}

.store-search button,
.store-actions a,
.store-actions .store-menu-link,
.product-add-button,
.detail-actions .primary-action,
.cart-summary .primary-action {
  border-radius: 999px;
}

.store-search button {
  min-height: 42px;
  padding: 0 20px;
  background: var(--store-primary);
  color: #fff;
}

.store-actions {
  gap: 8px;
}

.store-actions a,
.store-actions .store-menu-link {
  min-height: 42px;
  border-color: var(--store-line);
  color: var(--store-text);
  background: #fff;
  padding: 9px 14px;
}

.store-actions a:hover,
.store-actions .store-menu-link:hover {
  border-color: #c8b8f0;
  color: var(--store-primary);
}

.store-actions .store-cart-link {
  background: var(--store-primary);
  border-color: var(--store-primary);
  color: #fff;
}

.store-menu {
  max-width: 1200px;
  padding: 0 24px 12px;
  justify-content: flex-start;
  overflow-x: auto;
}

.store-menu a,
.store-menu-link {
  color: var(--store-text);
  font-size: 13px;
  border-radius: 999px;
  padding: 8px 12px;
}

.store-menu a:hover,
.store-menu-group:hover .store-menu-link,
.store-menu-group:focus-within .store-menu-link {
  background: #f2edff;
  color: var(--store-primary);
}

.store-submenu {
  border-color: var(--store-line);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.14);
}

.store-carousel {
  max-width: 1200px;
  min-height: 430px;
  margin: 0 auto 12px;
  padding: 26px 24px 54px;
}

.store-carousel-slide {
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  inset: 26px 24px 54px;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  box-shadow: var(--store-shadow);
  background: #fff;
}

.store-carousel-image,
.store-carousel-info {
  min-height: 300px;
}

.store-carousel-image {
  background:
    radial-gradient(circle at 50% 45%, #f5f7fb 0, #ffffff 64%);
  border-right: 1px solid var(--store-line);
  padding: 26px;
}

.store-carousel-image img {
  height: 250px;
}

.store-carousel-info {
  gap: 14px;
  padding: 34px 40px;
}

.store-carousel-info h1 {
  color: var(--store-ink);
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.store-carousel-info > p:not(.eyebrow) {
  color: var(--store-muted);
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.store-carousel-meta strong {
  color: var(--store-primary);
  font-size: 28px;
}

.store-hero-actions .primary-action,
.store-hero-actions .secondary-button {
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
}

.store-carousel-dots {
  bottom: 24px;
}

.store-carousel-dots button {
  background: #d0d5dd;
}

.store-carousel-dots button.active {
  background: var(--store-primary);
}

.store-benefits,
.store-section,
.store-page-heading,
.store-layout,
.product-detail,
.cart-layout,
.store-footer {
  max-width: 1200px;
}

.store-benefits {
  gap: 14px;
  padding: 0 24px 18px;
}

.store-benefits div,
.category-grid a,
.cart-panel,
.cart-summary,
.product-detail-info,
.product-description-card {
  border: 1px solid var(--store-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.store-benefits div {
  padding: 16px 18px;
}

.store-benefits strong,
.category-grid a span,
.store-section h2,
.store-page-heading h1 {
  color: var(--store-ink);
}

.store-benefits span,
.store-page-heading,
.product-sku,
.cart-item span {
  color: var(--store-muted);
}

.store-section,
.store-page-heading,
.store-layout,
.product-detail,
.cart-layout {
  padding-left: 24px;
  padding-right: 24px;
}

.store-section-header {
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--store-primary);
  letter-spacing: 0;
  font-size: 12px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.category-grid a {
  min-height: 78px;
  padding: 16px 18px;
}

.category-grid a:hover {
  transform: translateY(-1px);
  box-shadow: var(--store-shadow);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.product-card {
  grid-template-rows: 188px 138px 42px;
  min-height: 398px;
  border: 1px solid var(--store-line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
  padding: 12px;
  background: #fff;
}

.product-card:hover {
  border-color: #d6c9f6;
  box-shadow: var(--store-shadow);
}

.product-image {
  border: 0;
  border-radius: 12px;
  background: var(--store-soft);
}

.product-image img {
  max-height: 158px;
}

.product-card-body {
  grid-template-rows: 16px 52px 16px 26px;
  gap: 7px;
}

.product-category {
  color: var(--store-primary);
  font-size: 11px;
}

.product-card h3 {
  color: var(--store-ink);
  font-size: 14px;
  line-height: 1.28;
}

.product-card strong,
.detail-price {
  color: var(--store-primary);
  font-size: 21px;
}

.product-add-button {
  min-height: 42px;
  background: var(--store-primary);
}

.product-add-button:hover {
  background: var(--store-primary-dark);
}

.store-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}

.store-layout .product-category-menu {
  position: sticky;
  top: 132px;
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: visible;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 18px;
}

.store-layout .product-category-chips {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.store-layout .product-category-chips a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--store-text);
  font-weight: 800;
  padding: 11px 12px;
  box-shadow: none;
}

.store-layout .product-category-chips a > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-layout .product-category-chips a:hover,
.store-layout .product-category-chips a.active {
  background: #f2edff;
  color: var(--store-primary);
  text-decoration: none;
}

.store-layout .product-category-chips strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--store-muted);
  font-size: 12px;
}

.store-layout .product-category-chips a.active strong,
.store-layout .product-category-chips a:hover strong {
  background: var(--store-primary);
  color: #fff;
}

/* Mobile store layout: keep the shopping flow compact and touch friendly. */
@media (max-width: 640px) {
  .store-body { overflow-x: hidden; }
  .store-ribbon { padding: 6px 12px; font-size: 11px; line-height: 1.3; }
  .store-ribbon span:nth-child(3) { display: none; }
  .store-header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }
  .store-logo { min-width: 0; }
  .store-logo img { width: 112px; max-height: 48px; object-fit: contain; }
  .tazze-header-wordmark { font-size: 30px; }
  .tazze-logo-link img { max-width: 88px; max-height: 38px; }
  .store-search { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .store-search input { min-height: 40px; font-size: 13px; }
  .store-search button { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .store-actions { grid-column: 2; grid-row: 1; gap: 5px; min-width: 0; }
  .store-actions a,
  .store-actions .store-menu-link { min-height: 36px; padding: 7px 8px; font-size: 11px; white-space: nowrap; }
  .store-actions .store-cart-link { gap: 4px; }
  .store-cart-link strong { min-width: 20px; height: 20px; font-size: 11px; }
  .store-menu {
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 12px 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .store-menu a, .store-menu-link { padding: 7px 10px; font-size: 12px; }
  .store-submenu { position: fixed; left: 12px; right: 12px; top: auto; min-width: 0; }
  .store-carousel { min-height: 620px; margin: 12px 12px 8px; padding: 12px 12px 46px; }
  .store-carousel-slide { inset: 12px 12px 44px; grid-template-columns: 1fr; }
  .store-carousel-image { min-height: 220px; padding: 14px; border-right: 0; border-bottom: 1px solid var(--store-line); }
  .store-carousel-image img { height: 190px; max-width: 100%; }
  .store-carousel-info { min-height: 230px; padding: 18px; gap: 10px; }
  .store-carousel-info h1 { font-size: 22px; line-height: 1.18; }
  .store-carousel-info > p:not(.eyebrow) { font-size: 13px; -webkit-line-clamp: 3; }
  .store-hero-actions { flex-wrap: wrap; gap: 8px; }
  .store-hero-actions .primary-action, .store-hero-actions .secondary-button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .store-section, .store-page-heading, .store-layout, .product-detail, .cart-layout { padding-left: 12px; padding-right: 12px; }
  .store-section-header { gap: 8px; align-items: flex-start; }
  .store-section-header h1, .store-section-header h2 { font-size: 22px; line-height: 1.2; }
  .store-layout { display: block; }
  .store-layout .product-category-menu { position: static; margin-bottom: 14px; padding: 12px; border-radius: 14px; }
  .store-layout .product-category-chips { max-height: 210px; overflow-y: auto; }
  .store-layout .product-category-chips a { padding: 9px 10px; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { grid-template-rows: 132px 122px 38px; min-height: 316px; padding: 8px; border-radius: 12px; }
  .product-image { border-radius: 9px; }
  .product-image img { max-height: 118px; }
  .product-card-body { grid-template-rows: 15px 50px 16px 23px; gap: 5px; }
  .product-category, .product-sku { font-size: 10px; }
  .product-card h3 { font-size: 12px; line-height: 1.25; }
  .product-card strong, .detail-price { font-size: 17px; }
  .product-add-button { min-height: 36px; padding: 6px 5px; font-size: 11px; }
  .product-detail { display: block; padding-top: 18px; }
  .product-detail-image { min-height: 300px; border-radius: 14px; margin-bottom: 14px; }
  .product-detail-info { padding: 18px; border-radius: 14px; }
  .product-detail-info h1 { font-size: 24px; line-height: 1.18; }
  .product-detail-info dl { grid-template-columns: 72px minmax(0, 1fr); font-size: 13px; }
  .detail-actions { flex-wrap: wrap; }
  .store-footer { grid-template-columns: 1fr; gap: 12px; padding: 24px 12px; }
}

.store-filter {
  position: sticky;
  top: 138px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  border: 1px solid var(--store-line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.store-filter h2 {
  padding: 0 4px 6px;
}

.store-filter a {
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 11px 12px;
}

.store-filter a:hover,
.store-filter a.active {
  background: #f2edff;
}

.product-detail {
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: 26px;
  padding-top: 32px;
}

.product-detail-image {
  min-height: 420px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
}

.product-detail-info {
  border-radius: 18px;
  padding: 28px;
}

.product-detail-info h1 {
  color: var(--store-ink);
  font-size: 30px;
  line-height: 1.16;
}

.product-detail-info dl {
  grid-template-columns: 84px 1fr;
  color: var(--store-muted);
}

.detail-actions {
  align-items: center;
}

.detail-actions input {
  border-radius: 999px;
  max-width: 86px;
  text-align: center;
}

.product-description-card {
  padding: 24px;
}

.product-category-menu {
  padding-top: 0;
}

.store-section-header.compact {
  margin-bottom: 12px;
}

.product-category-chips {
  display: grid;
  gap: 8px;
  max-width: 360px;
  border: 1px solid var(--store-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
  padding: 10px;
}

.product-category-chips a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--store-text);
  font-weight: 800;
  padding: 11px 12px;
  box-shadow: none;
}

.product-category-chips a:hover,
.product-category-chips a.active {
  border-color: #d6c9f6;
  background: #f4f0ff;
  color: var(--store-primary);
  text-decoration: none;
}

.product-category-chips strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--store-muted);
  font-size: 12px;
}

.product-category-chips a.active strong,
.product-category-chips a:hover strong {
  background: var(--store-primary);
  color: #fff;
}

.cart-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
}

.cart-panel,
.cart-summary {
  padding: 20px;
}

.cart-summary {
  gap: 13px;
}

.cart-item {
  grid-template-columns: 76px 1fr 82px 104px auto;
}

.cart-item img {
  background: var(--store-soft);
  border-radius: 12px;
}

.checkout-account-note {
  background: #f4f0ff;
  border-color: #ded3ff;
  border-radius: 14px;
}

.store-footer {
  border-top: 1px solid var(--store-line);
  color: var(--store-muted);
}

@media (max-width: 980px) {
  .store-header {
    position: static;
  }

  .store-header-main,
  .store-carousel-slide,
  .store-layout,
  .product-detail,
  .cart-layout,
  .client-shell {
    grid-template-columns: 1fr;
  }

  .store-header-main {
    gap: 12px;
  }

  .store-actions {
    justify-content: space-between;
  }

  .store-menu {
    justify-content: flex-start;
  }

  .store-carousel {
    min-height: 680px;
  }

  .store-carousel-slide {
    grid-template-rows: 260px auto;
  }

  .store-carousel-image {
    border-right: 0;
    border-bottom: 1px solid var(--store-line);
  }

  .store-benefits {
    grid-template-columns: 1fr;
  }

  .store-filter {
    position: static;
    max-height: none;
  }

  .store-layout .product-category-menu {
    position: static;
  }
}

@media (max-width: 640px) {
  .store-ribbon {
    display: none;
  }

  .store-header-main,
  .store-menu,
  .store-carousel,
  .store-benefits,
  .store-section,
  .store-page-heading,
  .store-layout,
  .product-detail,
  .cart-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .store-logo img {
    width: 132px;
  }

  .store-search {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .store-search input,
  .store-search button {
    border-radius: 12px;
  }

  .store-actions {
    flex-wrap: wrap;
  }

  .store-carousel {
    min-height: 700px;
    padding-top: 18px;
  }

  .store-carousel-slide {
    inset: 18px 16px 50px;
  }

  .store-carousel-info {
    padding: 24px;
  }

  .store-carousel-info h1 {
    font-size: 25px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
    gap: 12px;
  }

  .product-card {
    grid-template-rows: 148px 132px 40px;
    min-height: 344px;
    padding: 10px;
  }

  .product-image img {
    max-height: 124px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .product-card strong {
    font-size: 18px;
  }

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

/* Product page: final two-column layout override */
.store-product-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px;
}

.store-product-shell.without-sidebar {
  grid-template-columns: 1fr;
}

.store-product-shell .product-category-menu {
  position: sticky;
  top: 132px;
  align-self: start;
  min-width: 0;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 18px;
}

.store-product-shell .product-category-chips {
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.store-product-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.store-product-content .product-detail,
.store-product-content .store-section {
  max-width: none;
  margin: 0;
}

.store-product-content .product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1fr);
  gap: 26px;
}

.store-product-content .product-description-section,
.store-product-content > .store-section:not(.product-description-section) {
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--store-shadow);
  padding: 22px;
}

@media (max-width: 1080px) {
  .store-product-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .store-product-content .product-detail {
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .store-product-shell,
  .store-product-shell.without-sidebar {
    display: block;
    padding: 22px 16px;
  }

  .store-product-shell .product-category-menu {
    position: static;
    margin-bottom: 20px;
  }

  .store-product-content .product-detail {
    grid-template-columns: 1fr;
  }
}
