/* Lizy's Kitchen cart */

.lk-cart-open {
  position: relative;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #111;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.lk-cart-open:hover {
  background: #111;
  color: #fff;
}

.lk-cart-open svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.lk-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c45c3a;
  color: #fff;
  font-family: Outfit, Helvetica Neue, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.lk-cart-count.is-empty {
  display: none;
}

/* Sit beside Book a table without breaking navbar spacing */
.lk-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 5;
}

.lk-header-actions .navbar-button-block {
  flex: 0 0 auto;
  width: auto;
  position: relative;
}

/* Primary buttons are width:100% in main.css; that stretches under the cart */
.lk-header-actions .button.is-primary {
  width: auto !important;
  white-space: nowrap;
}

.lk-header-actions .lk-cart-open {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: transparent;
  color: #fff;
}

.lk-header-actions .lk-cart-open:hover {
  background: #fff;
  color: #111;
}

@media screen and (max-width: 991px) {
  .lk-header-actions .navbar-button-block.is-none {
    display: none !important;
  }
}

.lk-cart-overlay {
  position: fixed;
  inset: 0;
  /* Above header (10050) so the panel close control is clickable */
  z-index: 10060;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lk-cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lk-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10061;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  color: #111;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.lk-cart-panel.is-open {
  transform: translateX(0);
}

.lk-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lk-cart-header h2 {
  margin: 0;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
}

.lk-cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #111;
  transition: background 0.15s ease, color 0.15s ease;
}

.lk-cart-close:hover {
  background: #111;
  color: #fff;
}

.lk-cart-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.35rem 1.5rem;
}

.lk-cart-empty {
  padding: 2rem 0;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

.lk-cart-empty[hidden],
.lk-cart-footer[hidden] {
  display: none !important;
}

.lk-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lk-cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #eee;
}

.lk-cart-item-name {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.lk-cart-item-note {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #666;
  white-space: pre-line;
}
.lk-cart-item-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.lk-cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.lk-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.lk-qty {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.lk-cart-item-price {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.lk-cart-remove {
  display: block;
  margin-top: 0.45rem;
  border: none;
  background: none;
  color: #c45c3a;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.lk-cart-footer {
  padding: 1.1rem 1.35rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.lk-cart-delivery {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #444;
}

.lk-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.lk-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  border: none;
  border-radius: 999px;
  background: #dc1425;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lk-cart-checkout:hover {
  background: #b8101f;
}

.lk-cart-checkout-view {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lk-cart-checkout-view[hidden] {
  display: none !important;
}

.lk-cart-back {
  align-self: flex-start;
  border: none;
  background: none;
  color: #444;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.15rem;
}

.lk-cart-back:hover {
  color: #111;
  text-decoration: underline;
}

.lk-cart-checkout-lead {
  margin: 0 0 0.35rem;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
}

.lk-cart-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lk-cart-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}

.lk-cart-field em {
  font-style: normal;
  font-weight: 500;
  color: #888;
}

.lk-cart-field input,
.lk-cart-field select,
.lk-cart-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
}

.lk-cart-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.lk-cart-field input:focus,
.lk-cart-field select:focus,
.lk-cart-field textarea:focus {
  outline: 2px solid rgba(220, 20, 37, 0.25);
  border-color: #dc1425;
}

.lk-cart-checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  padding: 0.75rem 0 0.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1rem;
}

.lk-cart-checkout-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fde8ea;
  color: #9b1020;
  font-size: 0.85rem;
  font-weight: 500;
}

.lk-cart-checkout-error[hidden] {
  display: none !important;
}

.lk-cart-whatsapp-submit {
  margin-top: 0.25rem;
}

.lk-add-cart {
  cursor: pointer;
}

/* Floating cart that stays on screen while scrolling */
.lk-cart-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 4.85rem;
  z-index: 10041;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.8rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: #dc1425;
  color: #fff;
  font-family: Nunito, Helvetica Neue, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(28, 20, 16, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease;
}

.lk-cart-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.lk-cart-fab:hover {
  background: #b8101f;
}

.lk-cart-fab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.lk-cart-fab-label {
  line-height: 1;
}

.lk-cart-fab .lk-cart-count {
  position: static;
  top: auto;
  right: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.1rem;
  padding: 0 0.35rem;
  background: #fff;
  color: #dc1425;
  font-size: 0.75rem;
  line-height: 1.35rem;
}

.lk-cart-fab .lk-cart-count.is-empty {
  display: none;
}

@media (max-width: 767px) {
  .lk-cart-open {
    width: 42px;
    height: 42px;
  }

  .lk-cart-fab {
    right: 0.85rem;
    bottom: 4.55rem;
    padding: 0.72rem 0.95rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-cart-fab {
    transition: none;
  }
}
