.cart-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink, #1b1b1f);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.cart-nav-button:hover { background: var(--coral, #ff5a46); }
.cart-count {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding-inline: 6px;
  border-radius: 999px;
  color: var(--ink, #1b1b1f);
  background: var(--butter, #ffe39a);
  font-size: 12px;
  font-weight: 900;
}
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(27, 27, 31, .46);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(460px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--ink, #1b1b1f);
  background: var(--paper, #fffdf9);
  box-shadow: -24px 0 60px rgba(27, 27, 31, .2);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s;
}
.cart-drawer.is-open { transform: translateX(0); visibility: visible; }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(27, 27, 31, .11);
}
.cart-drawer-header h2 { margin: 0; font-size: 24px; }
.cart-close-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(27, 27, 31, .12);
  border-radius: 50%;
  background: #fff;
  font: inherit;
  font-size: 23px;
  cursor: pointer;
}
.cart-drawer-body { overflow-y: auto; padding: 20px 24px; }
.cart-drawer-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(27, 27, 31, .11);
  background: #fff;
}
.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.cart-subtotal-row strong { font-size: 22px; }
.cart-primary-link,
.cart-secondary-button,
.cart-checkout-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}
.cart-primary-link { color: #fff; background: var(--coral, #ff5a46); }
.cart-primary-link:hover { background: var(--coral-deep, #e8442f); }
.cart-secondary-button {
  margin-top: 9px;
  border: 1px solid rgba(27, 27, 31, .14);
  color: var(--ink, #1b1b1f);
  background: #fff;
  cursor: pointer;
}
.cart-checkout-button {
  border: 0;
  color: #6e6b63;
  background: #ece9e2;
  cursor: not-allowed;
}
.cart-items { display: grid; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(27, 27, 31, .11);
  border-radius: 18px;
  background: #fff;
}
.cart-item-image {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--mint, #cff3dc);
}
.cart-item-main { min-width: 0; }
.cart-item-title {
  display: block;
  color: inherit;
  font-weight: 850;
  text-decoration: none;
}
.cart-item-title:hover { text-decoration: underline; }
.cart-item-price { margin-top: 4px; color: #6e6b63; font-size: 13px; }
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cart-quantity {
  display: inline-grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  border: 1px solid rgba(27, 27, 31, .14);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.cart-quantity button {
  height: 34px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.cart-quantity span { text-align: center; font-weight: 850; }
.cart-remove-button {
  border: 0;
  padding: 7px;
  color: #8b2c20;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.cart-empty {
  padding: 36px 18px;
  border: 1px dashed rgba(27, 27, 31, .16);
  border-radius: 20px;
  color: #6e6b63;
  text-align: center;
  background: #fff;
}
.cart-notice {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #604c16;
  background: #fff4d8;
  font-size: 13px;
}
.cart-notice.is-visible { display: block; }
.cart-loading { opacity: .58; pointer-events: none; }
.cart-lock { overflow: hidden; }
.product-actions { display: flex; align-items: center; gap: 8px; }
.product-cart {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #fff;
  background: var(--coral, #ff5a46);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.product-cart:hover { background: var(--coral-deep, #e8442f); }
.product-purchase { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; }
.product-quantity-picker {
  display: grid;
  grid-template-columns: 40px minmax(40px, 1fr) 40px;
  min-height: 54px;
  border: 1px solid rgba(27, 27, 31, .14);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.product-quantity-picker button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.product-quantity-picker input {
  width: 100%;
  border: 0;
  outline: 0;
  text-align: center;
  font: inherit;
  font-weight: 900;
  -moz-appearance: textfield;
}
.product-quantity-picker input::-webkit-inner-spin-button,
.product-quantity-picker input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-add-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--coral, #ff5a46);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.cart-add-button:hover { background: var(--coral-deep, #e8442f); }
.sticky-cart-button {
  min-width: 210px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--coral, #ff5a46);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.cart-page {
  min-height: 65vh;
  padding: 56px 0 90px;
}
.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 30px;
  align-items: start;
}
.cart-page-panel,
.cart-summary-card {
  padding: 24px;
  border: 1px solid rgba(27, 27, 31, .11);
  border-radius: 24px;
  background: #fff;
}
.cart-page-panel h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 52px); }
.cart-page-intro { margin: 0 0 24px; color: #6e6b63; }
.cart-summary-card { position: sticky; top: 96px; }
.cart-summary-card h2 { margin-top: 0; }
.cart-summary-note { margin-top: 12px; color: #6e6b63; font-size: 13px; }
@media (max-width: 760px) {
  .cart-page-grid { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .product-purchase { grid-template-columns: 1fr; }
  .cart-nav-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-overlay, .cart-drawer { transition: none; }
}

/* ===== v1.1.1 UI/UX polish ===== */
.cart-nav-button {
  position: relative;
  overflow: visible;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(27, 27, 31, .10);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.cart-nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(27, 27, 31, .14);
}
.cart-nav-button:focus-visible,
.product-detail-link:focus-visible,
.product-cart:focus-visible,
.cart-add-button:focus-visible {
  outline: 3px solid rgba(255, 90, 70, .28);
  outline-offset: 3px;
}
.cart-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.cart-nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(27, 27, 31, .12);
}

/* Home product CTAs: no more clipped circular “Kosárba” button. */
.product-actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 9px;
}
.product-detail-link,
.product-cart {
  width: auto;
  height: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.product-detail-link {
  border: 1px solid var(--ink, #1b1b1f);
  color: #fff;
  background: var(--ink, #1b1b1f);
  box-shadow: 0 6px 14px rgba(27, 27, 31, .12);
}
.product-detail-link:hover {
  color: #fff;
  background: #303036;
  transform: translateY(-1px);
}
.product-cart {
  min-width: 92px;
  border: 1px solid var(--coral, #ff5a46);
  color: #fff;
  background: var(--coral, #ff5a46);
  box-shadow: 0 7px 16px rgba(255, 90, 70, .22);
}
.product-cart:hover {
  background: var(--coral-deep, #e8442f);
  border-color: var(--coral-deep, #e8442f);
  transform: translateY(-1px);
}
.product-coming {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 11px 14px;
}
/* v1.5.3: keep homepage CTA group inside the card padding on medium desktop widths. */
.product-foot { gap: 12px; flex-wrap: wrap; }
.product-actions { max-width: 100%; margin-left: auto; }

/* Product page purchase button follows the same CTA language. */
.cart-add-button,
.sticky-cart-button {
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(255, 90, 70, .20);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.cart-add-button:hover,
.sticky-cart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(255, 90, 70, .27);
}

@media (max-width: 760px) {
  /* v1.5.3: compact, balanced product-page sticky purchase bar on phones. */
  .sticky-inner {
    min-height: 68px;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .sticky-product {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }
  .sticky-product img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .sticky-product strong { font-size: 14px; }
  .sticky-cart-button,
  .sticky-cta {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 170px;
    min-height: 48px;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .cart-nav-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 16px;
  }
  .cart-nav-icon,
  .cart-nav-icon svg {
    width: 23px;
    height: 23px;
  }
  .cart-nav-label { display: none; }
  .cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding-inline: 5px;
    border: 2px solid var(--paper, #fffdf9);
    font-size: 10.5px;
  }
  .cart-drawer {
    width: min(410px, calc(100% - 14px));
    border-radius: 22px 0 0 22px;
  }
  .cart-drawer-header { padding: 18px 18px 16px; }
  .cart-drawer-header h2 { font-size: 21px; }
  .cart-drawer-body { padding: 16px 16px 20px; }
  .cart-drawer-footer { padding: 16px 16px 20px; }
}

/* Mobile product shelf: compact cards, horizontal swipe, visible next card. */
@media (max-width: 680px) {
  .products .section-head { margin-bottom: 28px; }
  .product-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 72vw);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: -20px;
    padding: 2px 20px 16px;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-radius: 23px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .product-media-link { min-height: 174px; }
  .product-media {
    width: 100%;
    min-height: 174px;
    padding: 20px 20px 16px;
  }
  .product-num {
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
  }
  .product-image {
    width: 100%;
    max-height: 155px;
    object-fit: contain;
  }
  .product-body {
    flex: 1;
    padding: 16px 16px 18px;
    gap: 8px;
  }
  .product-meta { gap: 7px; }
  .product-cat { font-size: 10.5px; }
  .product-badge { padding: 4px 8px; font-size: 10px; }
  .product-body h3 {
    font-size: 16.5px;
    line-height: 1.18;
  }
  .product-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: 0;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .product-chips {
    max-height: 28px;
    overflow: hidden;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .chip {
    flex: 0 0 auto;
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .product-foot {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
  }
  .product-price { font-size: 18px; }
  .product-actions {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .product-actions .product-detail-link:only-child {
    grid-column: 1 / -1;
  }
  .product-detail-link,
  .product-cart {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 10px;
    border-radius: 13px;
    font-size: 11.5px;
  }
  .product-note { margin-top: 18px; }
}

@media (max-width: 380px) {
  .sticky-cart-button,
  .sticky-cta {
    max-width: 150px;
    padding-inline: 13px;
    font-size: 12.5px;
  }
  .product-grid { grid-auto-columns: minmax(220px, 78vw); }
  .product-actions { grid-template-columns: 1fr; }
}

.cart-checkout-button:not(.is-disabled){color:#fff;background:var(--coral,#ff5a46);cursor:pointer;box-shadow:0 10px 24px rgba(255,90,70,.18)}.cart-checkout-button:not(.is-disabled):hover{background:var(--coral-deep,#e8442f);transform:translateY(-1px)}.cart-checkout-button.is-disabled{pointer-events:none}
