:root {
  --cream: #f8f3e8;
  --paper: #fffdf7;
  --ink: #1d2433;
  --accent: #ff7a00;
  --accent-dark: #db5f00;
  --green: #1d8f6a;
  --line: rgba(29, 36, 51, 0.1);
  --shadow: 0 24px 60px rgba(20, 30, 50, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(29, 143, 106, 0.16), transparent 22%),
    linear-gradient(180deg, #f7ecd7 0%, #f6f4ee 100%);
}

body.drawer-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
}

button,
input,
select {
  font: inherit;
}

.page-shell,
.employee-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.hero {
  display: block;
  margin-bottom: 28px;
}

.hero-copy,
.catalog-section,
.employee-card,
.cart-drawer,
.promo-modal,
.product-modal,
.payment-modal {
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.hero-content {
  min-width: 0;
}

.hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-contact {
  display: flex;
  justify-content: flex-end;
}

.employee-card,
.cart-drawer,
.promo-modal,
.product-modal,
.payment-modal {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.92;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-text {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 16px 0 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.whatsapp-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  padding: 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #2bc866 0%, #169c4a 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(22, 156, 74, 0.24);
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
}

.share-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.share-copy {
  margin: 0;
  max-width: 34ch;
  line-height: 1.5;
}

.share-qr-image {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  padding: 8px;
  object-fit: contain;
}

.layout {
  display: block;
}

.catalog-section {
  padding: 28px;
}

.family-list {
  display: grid;
  gap: 24px;
}

.family-section {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.family-header {
  margin-bottom: 18px;
}

.family-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.family-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.family-icon-large {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1.15rem;
}

.accent-warm {
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.12), rgba(255, 255, 255, 0.62));
}

.accent-coffee {
  background: linear-gradient(180deg, rgba(100, 60, 28, 0.14), rgba(255, 255, 255, 0.62));
}

.accent-fresh {
  background: linear-gradient(180deg, rgba(29, 143, 106, 0.12), rgba(255, 255, 255, 0.62));
}

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

.filter-row {
  margin-bottom: 24px;
}

.filter-btn {
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

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

.product-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.product-card-promo {
  border-color: rgba(255, 122, 0, 0.35);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.14), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.08);
}

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

.product-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 36, 51, 0.06);
  font-size: 0.85rem;
  font-weight: 700;
}

.product-badge-promo {
  background: var(--accent);
  color: white;
}

.product-note {
  margin: 0;
  color: rgba(29, 36, 51, 0.72);
  line-height: 1.5;
}

.product-price-promo {
  color: var(--accent-dark);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(29, 36, 51, 0.08);
}

.product-category {
  margin: 0;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.empty-cart,
.employee-metadata,
.employee-order-list,
.employee-total,
.empty-state {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 22px;
}

.empty-cart,
.employee-order-list,
.employee-total,
.empty-state {
  padding: 18px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.cart-item p,
.empty-cart p,
.empty-state p,
.empty-state span {
  margin: 0;
}

.cart-item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.cart-item-copy {
  min-width: 0;
  flex: 1;
}

.cart-item-detail {
  color: rgba(29, 36, 51, 0.66);
  font-size: 0.84rem;
  line-height: 1.4;
}

.cart-item-price {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.92rem;
}

.qty-controls,
.cart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn,
.cart-step-btn,
.icon-btn,
.primary-btn {
  border: none;
  cursor: pointer;
}

.qty-btn,
.cart-step-btn,
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  touch-action: manipulation;
}

.qty-count {
  min-width: 20px;
  text-align: center;
}

.cart-actions span {
  min-width: 18px;
  text-align: center;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.12), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(255, 122, 0, 0.18);
}

.summary-line span {
  font-weight: 700;
}

.summary-line strong {
  font-size: 1.25rem;
  color: var(--accent-dark);
}

.floating-cart-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 16px 40px rgba(29, 36, 51, 0.25);
  cursor: pointer;
}

body.drawer-open .floating-cart-btn {
  opacity: 0;
  pointer-events: none;
}

.floating-cart-icon {
  font-size: 1.1rem;
}

.overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 50, 0.36);
  z-index: 20;
}

#paymentModal {
  z-index: 40;
}

#orderQrModal {
  z-index: 45;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 25;
  width: min(420px, 100%);
  height: 100dvh;
  border-radius: 28px 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.drawer-items {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 4px;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 247, 0.96);
  position: relative;
  z-index: 2;
}

.drawer-footer-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.promo-modal {
  width: min(520px, calc(100% - 24px));
  margin: 8vh auto 0;
}

.product-modal {
  width: min(520px, calc(100% - 24px));
  margin: 10vh auto 0;
}

.payment-modal {
  width: min(460px, calc(100% - 24px));
  margin: 14vh auto 0;
}

.payment-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.payment-option-btn {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 122, 0, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.08), rgba(255, 255, 255, 0.96));
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.order-qr-block {
  display: grid;
  place-items: center;
  gap: 14px;
  margin-top: 18px;
}

.order-qr-image {
  width: min(260px, 100%);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
}

.order-qr-text {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.product-modal-copy {
  margin: 0 0 16px;
  line-height: 1.6;
}

.product-modal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.product-modal-summary strong {
  font-size: 1.5rem;
}

.product-modal-summary span {
  color: rgba(29, 36, 51, 0.7);
  text-align: right;
}

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

.detail-qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.detail-qty-btn,
.secondary-btn {
  border: none;
  cursor: pointer;
}

.detail-qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 1rem;
  touch-action: manipulation;
}

.secondary-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(29, 36, 51, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.promo-copy {
  margin: 0 0 16px;
}

.promo-selectors {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.promo-select {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.promo-select select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  background: white;
}

.primary-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.hidden {
  display: none;
}

.print-ticket {
  display: none;
}

.print-ticket-inner {
  width: 72mm;
  padding: 6mm 4mm 8mm;
  color: #000;
  background: #fff;
  font-family: "Space Grotesk", sans-serif;
}

.print-ticket-brand,
.print-ticket-title {
  margin: 0;
  text-align: center;
}

.print-ticket-brand {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.print-ticket-title {
  margin-top: 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.print-ticket-meta,
.print-ticket-items,
.print-ticket-total {
  margin-top: 12px;
}

.print-ticket-meta {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
}

.print-ticket-meta span,
.print-ticket-total span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.print-ticket-item,
.print-ticket-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.print-ticket-item {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
}

.print-ticket-item p {
  margin: 4px 0 0;
  font-size: 0.78rem;
}

.print-ticket-item-copy {
  min-width: 0;
  flex: 1;
}

.print-ticket-barcode-block {
  margin-top: 8px;
  padding-top: 6px;
  display: grid;
  gap: 4px;
}

.print-ticket-barcode {
  display: block;
  width: 100%;
  height: 58px;
}

.print-ticket-barcode-block small {
  font-size: 0.7rem;
}

.print-ticket-item strong,
.print-ticket-total strong {
  font-size: 0.95rem;
}

.print-ticket-total {
  padding-top: 10px;
}

.qr-image {
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
}

.order-code {
  font-weight: 700;
}

.secondary-link {
  color: var(--green);
  font-weight: 700;
}

.employee-body {
  display: grid;
  place-items: center;
}

.employee-shell {
  width: min(860px, calc(100% - 24px));
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.employee-card {
  width: 100%;
}

.employee-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px;
}

.payment-highlight {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.12), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(255, 122, 0, 0.18);
}

.payment-effective {
  background: linear-gradient(180deg, rgba(32, 170, 95, 0.18), rgba(255, 255, 255, 0.98));
  border-color: rgba(32, 170, 95, 0.24);
}

.payment-transfer {
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.18), rgba(255, 255, 255, 0.98));
  border-color: rgba(255, 122, 0, 0.24);
}

.payment-qr {
  background: linear-gradient(180deg, rgba(120, 82, 255, 0.18), rgba(255, 255, 255, 0.98));
  border-color: rgba(120, 82, 255, 0.26);
}

.employee-metadata span,
.employee-total span {
  display: block;
  color: rgba(29, 36, 51, 0.7);
  margin-bottom: 4px;
}

.employee-order-list {
  margin-top: 16px;
}

.employee-order-list ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.employee-order-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.employee-order-list li p {
  margin: 4px 0 0;
  color: rgba(29, 36, 51, 0.65);
  font-size: 0.9rem;
}

.employee-barcode-block {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  width: 100%;
  gap: 4px;
}

.employee-barcode {
  display: block;
  width: 100%;
  height: 72px;
}

.employee-barcode-block small,
.employee-barcode-missing {
  color: rgba(29, 36, 51, 0.75);
  font-weight: 700;
}

.employee-total {
  margin-top: 16px;
}

.employee-total strong {
  font-size: 1.8rem;
}

.employee-finish-box {
  margin-top: 16px;
}

.employee-history {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.employee-history ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.employee-history li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.employee-history li p,
.employee-history li strong,
.employee-history li span {
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .layout {
    display: block;
  }

  .catalog-section {
    padding: 16px;
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .whatsapp-link {
    min-width: 96px;
    padding: 12px 14px;
    border-radius: 18px;
    gap: 8px;
    font-size: 0.9rem;
  }

  .whatsapp-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .hero-contact {
    justify-content: flex-start;
  }

  .share-box {
    align-items: flex-start;
    gap: 12px;
  }

  .share-qr-image {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    padding: 6px;
  }

  .share-copy {
    font-size: 0.88rem;
  }

  .product-modal {
    margin-top: 8vh;
    padding: 20px;
  }

  .payment-modal {
    margin-top: 10vh;
    padding: 20px;
  }

  .payment-option-btn {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .order-qr-image {
    width: min(220px, 100%);
    border-radius: 18px;
  }

  .product-modal-summary strong {
    font-size: 1.15rem;
  }

  .product-modal-summary span {
    font-size: 0.8rem;
  }

  .detail-qty-controls {
    gap: 12px;
    padding: 10px;
  }

  .detail-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .family-section {
    padding: 12px;
    border-radius: 20px;
  }

  .family-header {
    margin-bottom: 12px;
  }

  .product-card {
    padding: 10px;
    gap: 8px;
    border-radius: 16px;
  }

  .family-title {
    gap: 8px;
  }

  .family-title .eyebrow {
    margin-bottom: 2px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .family-title h2 {
    font-size: 1.8rem;
  }

  .family-icon {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    font-size: 0.5rem;
  }

  .family-icon-large {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.68rem;
  }

  .product-badge {
    padding: 4px 6px;
    font-size: 0.55rem;
  }

  .product-card-promo {
    border-width: 1px;
  }

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

  .product-topline {
    gap: 6px;
    align-items: flex-start;
  }

  .product-card h3 {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .product-note {
    display: none;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .product-footer strong {
    font-size: 0.72rem;
  }

  .qty-controls {
    justify-content: space-between;
    gap: 4px;
  }

  .qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0;
  }

  .qty-count {
    min-width: 12px;
    font-size: 0.72rem;
  }

  .floating-cart-btn {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }

  .cart-drawer {
    width: 100%;
    border-radius: 24px 24px 0 0;
  }

  .summary-line {
    padding: 12px 14px;
  }

  .summary-line strong {
    font-size: 1.05rem;
  }

  .employee-barcode-block {
    padding: 10px;
  }

  .employee-barcode {
    height: 84px;
  }

  .cart-item {
    padding: 14px 2px;
    gap: 10px;
  }

  .cart-item h3 {
    font-size: 0.92rem;
  }

  .cart-item-detail,
  .cart-item-price {
    font-size: 0.78rem;
  }

}

@media print {
  body {
    background: #fff;
  }

  .page-shell,
  .floating-cart-btn,
  .overlay,
  .modal-overlay,
  .cart-drawer,
  .hero,
  .catalog-section {
    display: none !important;
  }

  .print-ticket {
    display: block !important;
  }

  .print-ticket-inner {
    width: 72mm;
    margin: 0 auto;
    padding: 0;
  }
}
