:root {
  --ink: #050505;
  --muted: #6f6f73;
  --line: #e7decf;
  --surface: #ffffff;
  --soft: #fffaf0;
  --accent: #d7b35a;
  --accent-dark: #8a681e;
  --sun: #f3d98a;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 160px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid rgba(215, 179, 90, 0.35);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.cart-link,
.product-meta,
.cart-actions,
.summary-row,
.summary-total {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--sun);
  font-weight: 800;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(215, 179, 90, 0.5);
}

.nav {
  gap: 18px;
  color: #f7f0df;
  font-weight: 700;
}

.cart-link {
  gap: 8px;
}

.cart-link span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
}

.promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  min-height: clamp(360px, 56vw, 560px);
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 64px);
  color: #fff8e6;
  background:
    linear-gradient(120deg, rgba(5, 5, 5, 0.94), rgba(41, 31, 11, 0.82)),
    url("brand/pabwlla-logo.jpg") center/cover;
}

.promo-copy {
  display: grid;
  gap: 14px;
}

.promo-kicker {
  width: max-content;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(243, 217, 138, 0.6);
  border-radius: 999px;
  color: var(--sun);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1;
}

.promo-copy p {
  max-width: 620px;
  margin: 0;
  color: #efe5ca;
  font-size: 1.05rem;
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.promo-secondary {
  color: #f3d98a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.promo-card {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(243, 217, 138, 0.45);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.64);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.promo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.promo-card-head span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--sun);
  font-weight: 900;
  text-transform: uppercase;
}

.promo-card-head strong {
  font-size: 1.5rem;
}

.promo-card p {
  margin: 0;
  color: #f7f0df;
}

.promo-products {
  display: grid;
  gap: 10px;
}

.promo-products a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(243, 217, 138, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.promo-products a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.promo-products img {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.promo-products span {
  min-width: 0;
  color: #fff8e6;
  font-weight: 800;
}

.promo-products strong {
  justify-self: start;
  color: var(--sun);
  font-size: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 64px) 42px;
  background: white;
}

.hero h1,
.page-heading h1,
.success h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--ink);
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-panel {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(215, 179, 90, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  background: #000;
}

.hero-panel img {
  width: 100%;
  height: min(56vw, 520px);
  object-fit: cover;
}

.hero-video-wrap {
  position: relative;
  display: grid;
  background: #000;
}

.hero-video {
  width: 100%;
  height: min(70vw, 620px);
  min-height: 420px;
  border: 0;
  background: #000;
}

.hero-instagram {
  display: grid;
  place-items: center;
  min-height: min(56vw, 520px);
  padding: 14px;
  background: #fff;
}

.hero-instagram .instagram-media {
  width: min(100%, 540px) !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.button-dark {
  background: var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: var(--soft);
}

.button-danger {
  min-height: 38px;
  color: #9f1239;
  background: #fff1f2;
}

.whatsapp-button {
  background: #128c7e;
}

.mercado-pago-button {
  background: #009ee3;
}

.toolbar,
.page-heading,
.product-grid,
.cart-layout,
.checkout-layout,
.success,
.empty-state {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 46px 0 22px;
}

.toolbar h2,
.page-heading h1 {
  margin: 0;
}

.search,
.checkout-form label,
.quantity {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  font: inherit;
}

label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.search input {
  width: min(320px, 72vw);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 26px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

.product-image img,
.cart-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.product-info {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.category-label {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-info h3,
.product-info p {
  margin: 0;
}

.product-info p {
  color: var(--muted);
}

.product-meta,
.summary-row,
.summary-total {
  justify-content: space-between;
  gap: 18px;
}

.product-meta strong {
  font-size: 1.25rem;
}

.product-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-info .button,
.summary .button {
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 64px;
}

.pagination a,
.pagination span,
.pagination strong {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font-weight: 800;
}

.pagination a {
  color: var(--accent-dark);
}

.pagination strong {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.pagination span {
  color: var(--muted);
  background: var(--soft);
}

.product-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
}

.product-actions form {
  display: grid;
}

.page-heading {
  padding: 44px 0 20px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  padding-bottom: 64px;
}

.cart-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 64px;
}

.cart-table-wrap {
  overflow-x: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.cart-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.cart-table th {
  padding: 14px 16px;
  color: white;
  background: #d9007f;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.cart-table td {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.cart-table td:first-child {
  text-align: left;
}

.cart-product {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center;
}

.cart-product img {
  width: 78px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-product h2 {
  margin: 0;
  font-size: 0.98rem;
}

.cart-product span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.quantity-cell {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.remove-link {
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart-coupon {
  display: flex;
  align-items: end;
  gap: 0;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
}

.cart-coupon label {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
  gap: 12px;
}

.cart-coupon span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-coupon input {
  border-radius: var(--radius) 0 0 var(--radius);
}

.cart-coupon .button {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.cart-footer {
  display: grid;
  grid-template-columns: 260px minmax(320px, 1fr);
  gap: 22px;
  align-items: end;
  margin-top: 8px;
}

.cart-footer > .button {
  min-height: 58px;
  color: var(--ink);
  text-transform: uppercase;
}

.cart-summary-table {
  display: grid;
  justify-self: end;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  background: white;
}

.cart-summary-table div {
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.cart-summary-table span {
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-summary-table strong,
.cart-summary-table a {
  padding: 0 18px;
  color: var(--ink);
  text-align: right;
}

.cart-grand-total strong {
  font-size: 1.08rem;
}

.cart-summary-table .button {
  width: calc(100% - 18px);
  margin: 8px 9px 0;
}

.checkout-button {
  width: calc(100% - 18px);
  margin: 8px 9px 9px;
  background: #0ca63a;
  text-transform: uppercase;
}

.ml-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 64px;
  align-items: start;
}

.ml-cart-items,
.ml-cart-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ml-cart-tabs {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.ml-cart-tabs strong {
  color: #1675f2;
  font-size: 1.05rem;
}

.ml-cart-tabs span,
.ml-unit-price,
.ml-item-info span,
.ml-item-info p {
  color: var(--muted);
}

.ml-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 180px;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.ml-cart-item:last-child {
  border-bottom: 0;
}

.ml-item-image img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.ml-item-info {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ml-item-info h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.ml-item-info p {
  max-width: 560px;
  margin: 0;
  font-size: 0.92rem;
}

.ml-item-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.ml-item-actions button,
.ml-item-actions a,
.ml-keep-buying,
.ml-summary-row a {
  border: 0;
  color: #1675f2;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ml-item-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
}

.ml-price {
  font-size: 1.34rem;
}

.ml-cart-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.ml-cart-summary h2 {
  margin: 0;
  font-size: 1.2rem;
}

.ml-summary-row,
.ml-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.ml-summary-row {
  color: var(--muted);
}

.ml-summary-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.16rem;
}

.shipping-box,
.payment-methods {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.shipping-box h3,
.shipping-box p,
.payment-methods h3,
.payment-methods p {
  margin: 0;
}

.shipping-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.shipping-error {
  color: #9f1239;
  font-weight: 800;
}

.payment-methods {
  margin-top: 6px;
}

.payment-methods p {
  color: var(--muted);
  font-size: 0.92rem;
}

.ml-cart-summary .button {
  width: 100%;
}

.ml-cart-summary .checkout-button {
  margin: 0;
  background: #1675f2;
  text-transform: none;
}

.ml-keep-buying {
  justify-self: center;
}

.banner-admin {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 64px;
}

.banner-admin-head,
.banner-product-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.banner-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.banner-admin-head h2,
.banner-admin-head p {
  margin: 0;
}

.banner-admin-head p {
  color: var(--muted);
}

.banner-product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.banner-product-option {
  display: grid;
  grid-template-columns: 22px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}

.banner-product-option input {
  width: 18px;
  height: 18px;
}

.banner-product-option img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

.banner-product-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(24px, 4vw, 52px);
  width: min(1180px, calc(100% - 36px));
  margin: 44px auto 70px;
}

.product-gallery,
.product-detail-info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.product-gallery {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--soft);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 10px;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

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

.product-detail-info {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.product-detail-info h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.product-detail-info p {
  margin: 0;
  color: var(--muted);
}

.detail-price {
  font-size: 2rem;
}

.detail-stock {
  color: var(--muted);
  font-weight: 800;
}

.detail-buy {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.detail-buy label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.product-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.image-preview {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.image-preview img {
  width: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-list,
.checkout-form,
.summary,
.empty-state,
.success,
.alert {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.summary h2,
.empty-state h2 {
  margin: 0;
  font-size: 1.08rem;
}

.summary p,
.empty-state p,
.success p {
  color: var(--muted);
}

.quantity input {
  padding-inline: 8px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 38px 58px 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.quantity-stepper button {
  width: 38px;
  height: 42px;
  border: 0;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.quantity-stepper input {
  height: 42px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
}

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

.cart-actions {
  justify-content: end;
  gap: 10px;
  flex-wrap: wrap;
}

.summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.summary-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-total {
  font-size: 1.18rem;
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.alert {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 18px;
  padding: 14px 18px;
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.alert p {
  margin: 0;
}

.notice {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 18px;
  padding: 14px 18px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}

.notice p {
  margin: 0;
}

.auth-panel {
  width: min(520px, calc(100% - 36px));
  margin: 0 auto 64px;
}

.inline-check {
  display: flex !important;
  align-items: center;
  grid-template-columns: none;
  gap: 10px;
}

.inline-check input {
  width: 18px;
  height: 18px;
}

.inline-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-section {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.form-section h2,
.form-section p {
  margin: 0;
}

.form-section h2 {
  font-size: 1.05rem;
}

.form-section p {
  color: var(--muted);
}

.payment-choice {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.payment-choice h2,
.payment-choice p {
  margin: 0;
}

.payment-choice h2 {
  font-size: 1.05rem;
}

.payment-choice p {
  color: var(--muted);
}

.payment-choice .button {
  width: 100%;
}

.inline-notice {
  width: 100%;
  margin: 0;
}

.empty-state,
.success {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 5vw, 44px);
  margin-bottom: 64px;
}

.order-report {
  display: grid;
  width: 100%;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.store-contact-box {
  display: grid;
  width: 100%;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.store-contact-box h2,
.store-contact-box p {
  margin: 0;
}

.store-contact-box p {
  color: var(--muted);
}

.store-contact-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
}

.store-contact-grid span {
  color: var(--muted);
  font-weight: 800;
}

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

.confirmation-actions .button {
  width: auto;
}

.order-report h2 {
  margin: 0;
  font-size: 1.12rem;
}

.report-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
}

.report-grid span {
  color: var(--muted);
  font-weight: 700;
}

.report-items {
  display: grid;
  gap: 10px;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 64px);
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.docs-layout,
.admin-actions,
.orders-table-wrap {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.docs-layout {
  display: grid;
  gap: 18px;
  padding-bottom: 64px;
}

.docs-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.docs-card h2,
.docs-card p {
  margin: 0;
}

.docs-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  color: #fff8fb;
  background: var(--ink);
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.admin-search-panel {
  display: grid;
  gap: 10px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.admin-search-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.admin-search label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 64px;
}

.settings-panel,
.settings-help {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.settings-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.settings-panel-head h2,
.settings-panel-head p,
.settings-help h2,
.settings-help p {
  margin: 0;
}

.settings-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.settings-help {
  background: var(--soft);
}

.settings-help p {
  color: var(--muted);
  line-height: 1.55;
}

.label-admin,
.label-sheet {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.label-admin {
  margin-bottom: 24px;
}

.label-settings {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.label-settings-head,
.label-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.label-settings-head h2,
.label-settings-head p,
.label-product-picker h2 {
  margin: 0;
}

.label-settings-head p {
  color: var(--muted);
}

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

.paper-options label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

.paper-options label.is-active {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.paper-options input {
  width: 18px;
  height: 18px;
}

.paper-options span {
  display: grid;
  gap: 3px;
}

.paper-options small {
  color: var(--muted);
}

.label-toggles {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.label-product-picker {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.label-product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.label-product-list label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.label-product-list input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.label-product-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.label-product-list small {
  color: var(--muted);
}

.label-sheet {
  display: grid;
  grid-template-columns: repeat(var(--label-columns), var(--label-width));
  gap: var(--label-gap);
  align-items: start;
  justify-content: start;
  padding: 18px 0 64px;
}

.label-sheet-zebra {
  grid-template-columns: var(--label-width);
  justify-content: center;
}

.label-sheet-zebra-multi {
  grid-template-columns: repeat(var(--label-columns), var(--label-width));
  justify-content: start;
}

.product-label {
  display: grid;
  align-content: center;
  justify-items: center;
  width: var(--label-width);
  height: var(--label-height);
  overflow: hidden;
  padding: 3mm;
  border: 1px dashed #b9ad98;
  border-radius: 3px;
  background: white;
  color: var(--ink);
  text-align: center;
  font-size: var(--label-font-size);
  line-height: 1.18;
  page-break-inside: avoid;
}

.product-label img {
  width: min(26mm, 70%);
  max-height: 10mm;
  object-fit: contain;
  margin-bottom: 1mm;
}

.product-label strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1em;
}

.product-label span {
  font-size: 1.2em;
  font-weight: 900;
}

.product-label small {
  color: var(--muted);
  font-size: 0.72em;
}

.orders-table-wrap {
  overflow-x: auto;
  padding-bottom: 64px;
}

.customer-orders {
  display: grid;
  gap: 18px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 64px;
}

.customer-order {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.customer-order-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.customer-order-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.customer-order-items {
  display: grid;
}

.customer-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.customer-order-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-order-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-order-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  font-size: 1.12rem;
}

.customer-order-total span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.orders-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.orders-table th,
.orders-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.orders-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.orders-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.table-actions form {
  margin: 0;
}

.table-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-dark);
  background: white;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.table-link-danger {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.table-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.status-pill {
  display: inline-flex !important;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-dark) !important;
  background: #fff1f2;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-admin-layout {
    grid-template-columns: 1fr;
  }

  .promo-banner {
    grid-template-columns: 1fr;
  }

  .promo-card {
    width: min(100%, 620px);
  }

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

  .settings-layout {
    grid-template-columns: 1fr;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

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

  .cart-summary-table {
    justify-self: stretch;
    width: 100%;
  }

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

  .ml-cart-summary {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    justify-content: space-between;
  }

  .hero {
    padding-top: 32px;
  }

  .promo-banner {
    padding: 30px 18px;
    min-height: auto;
  }

  .promo-copy h1 {
    font-size: 2.35rem;
  }

  .promo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .promo-products a {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .promo-products img {
    width: 58px;
    height: 58px;
  }

  .promo-card-head {
    align-items: start;
    flex-direction: column;
  }

  .banner-admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .banner-product-list {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-heading h1,
  .success h1 {
    font-size: 2.3rem;
    line-height: 1.02;
  }

  .hero-panel img {
    height: 280px;
  }

  .hero-video {
    height: 520px;
    min-height: 420px;
  }

  .hero-instagram {
    min-height: 280px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .product-detail {
    width: min(100% - 20px, 1180px);
    margin-top: 24px;
  }

  .product-gallery,
  .product-detail-info {
    padding: 14px;
  }

  .cart-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 14px;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }

  .cart-table td {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    text-align: left;
  }

  .cart-table td:last-child {
    border-bottom: 0;
  }

  .cart-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .cart-product {
    grid-template-columns: 68px 1fr;
    min-width: 0;
  }

  .cart-product img {
    width: 68px;
    height: 58px;
  }

  .quantity-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .quantity-stepper {
    flex: 0 0 168px;
    grid-template-columns: 50px 68px 50px;
    width: 168px;
  }

  .quantity-stepper button {
    width: 50px;
    height: 52px;
    font-size: 1.35rem;
  }

  .quantity-stepper input {
    height: 52px;
    font-size: 1.05rem;
  }

  .cart-coupon {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

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

  .cart-coupon input,
  .cart-coupon .button {
    border-radius: var(--radius);
  }

  .cart-summary-table div {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-block: 10px;
  }

  .cart-summary-table strong,
  .cart-summary-table a {
    text-align: right;
  }

  .ml-cart {
    width: min(100% - 20px, 1180px);
  }

  .ml-cart-tabs {
    padding: 16px;
  }

  .ml-cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .ml-item-image img {
    width: 88px;
    height: 88px;
  }

  .ml-item-info h2 {
    font-size: 0.98rem;
  }

  .ml-item-info p {
    display: none;
  }

  .ml-item-side {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    justify-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .ml-price {
    font-size: 1.18rem;
  }

  .ml-unit-price {
    display: none;
  }

  .ml-item-actions {
    flex-wrap: wrap;
  }

  .ml-cart-summary {
    padding: 16px;
  }

  .customer-orders {
    width: min(100% - 20px, 980px);
  }

  .customer-order-head {
    align-items: start;
    flex-direction: column;
  }

  .customer-order-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .customer-order-item > strong {
    justify-self: start;
  }

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

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

  .label-product-list {
    grid-template-columns: 1fr;
  }

  .paper-options {
    grid-template-columns: 1fr;
  }

  .label-settings-head,
  .label-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .confirmation-actions {
    display: grid;
    width: 100%;
  }

  .confirmation-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .cart-page,
  .page-heading,
  .empty-state {
    width: min(100% - 20px, 1180px);
  }

  .cart-table td {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cart-table td::before {
    font-size: 0.7rem;
  }

  .quantity-cell {
    align-items: stretch;
    flex-direction: column;
  }

  .quantity-stepper {
    flex-basis: auto;
    grid-template-columns: 1fr 1.2fr 1fr;
    width: 100%;
  }

  .quantity-stepper button,
  .quantity-stepper input {
    width: 100%;
  }

  .remove-link {
    width: 100%;
    min-height: 38px;
    text-align: left;
  }

  .cart-summary-table div {
    grid-template-columns: 1fr;
  }

  .cart-summary-table strong,
  .cart-summary-table a {
    text-align: left;
  }

  .ml-cart-item {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .ml-item-image img {
    width: 74px;
    height: 74px;
  }

  .ml-item-side {
    align-items: stretch;
    flex-direction: column;
  }

  .ml-item-side .quantity-stepper {
    flex-basis: auto;
    width: 100%;
  }

  .ml-summary-row,
  .ml-summary-total {
    flex-direction: column;
    gap: 6px;
  }

  .promo-copy h1 {
    font-size: 2rem;
  }

  .promo-card {
    padding: 14px;
  }

  .promo-products a {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .promo-products img {
    width: 52px;
    height: 52px;
  }
}

@media print {
  @page {
    margin: 8mm;
  }

  body {
    background: white;
  }

  .no-print,
  .site-header,
  .site-footer {
    display: none !important;
  }

  main {
    min-height: 0;
  }

  .label-sheet {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .product-label {
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .label-sheet-zebra {
    display: grid;
    width: var(--label-width);
    grid-template-columns: var(--label-width);
    gap: var(--label-gap);
  }

  .label-sheet-zebra .product-label {
    margin: 0;
  }

  .label-sheet-zebra-multi {
    display: grid;
    grid-template-columns: repeat(var(--label-columns), var(--label-width));
    width: auto;
  }

  .label-sheet-zebra-multi .product-label {
    margin: 0;
  }
}
