/* ==============================================
   Product Detail Page — La Cucina
   Consistent with b-card / category design system
   Author: Bariklabs.com
   Link: https://bariklabs.com
   ============================================== */

/*
:root {
  --accent:         #8b1a1a;
  --accent-soft:    #a82020;
  --accent-bg:      #f9f2f2;
  --text:           #111111;
  --text-mid:       #444444;
  --text-muted:     #777777;
  --border:         #e5e5e5;
  --border-hover:   #8b1a1a;
  --bg:             #fafafa;
  --white:          #ffffff;
  --green:          #2e7d4f;
  --green-bg:       #edf5f0;
  --radius-sm:      4px;
  --radius:         6px;
  --transition:     all 0.15s ease;
  --font:           system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display:   'DM Sans', system-ui, sans-serif;
}
*/


/* ==============================================
   LAYOUT
   ============================================== */
.lc-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ==============================================
   BREADCRUMB
   ============================================== */
.lc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.lc-breadcrumb li { display: flex; align-items: center; gap: 6px; }

.lc-breadcrumb li + li::before {
  content: '/';
  color: #d0d0d0;
}

.lc-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.lc-breadcrumb a:hover { color: var(--accent); }

.lc-breadcrumb .breadcrumb-active {
  color: var(--text-mid);
  font-weight: 500;
}

/* ==============================================
   PRODUCT DETAIL — MAIN GRID
   ============================================== */
.lc-product-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0 0;
}

/* ==============================================
   LEFT COL — GALLERY
   ============================================== */
.lc-gallery {
  position: relative;
}

.lc-gallery__main {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.lc-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.3s ease;
}

.lc-gallery__main:hover img {
  transform: scale(1.04);
}

/* Zoom hint */
.lc-gallery__zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lc-gallery__main:hover .lc-gallery__zoom-hint {
  opacity: 1;
}

/* Thumbnails */
.lc-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  list-style: none;
  flex-wrap: wrap;
}

.lc-gallery__thumbs li {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.lc-gallery__thumbs a {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
  background: var(--white);
}

.lc-gallery__thumbs a.active,
.lc-gallery__thumbs a:hover {
  border-color: var(--accent);
}

.lc-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* ==============================================
   RIGHT COL — PRODUCT INFO
   ============================================== */
.lc-product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Brand + SKU row */
.lc-product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lc-product-brand {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 8px;
  border-radius: 3px;
}

.lc-product-brand a {
  color: var(--accent);
}

.lc-product-sku {
  font-size: 14px;
  color: var(--text-muted);
}

/* Title */
.lc-product-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
}

/* Stock */
.lc-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.lc-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.lc-stock--in { color: var(--green); }
.lc-stock--low { color: #c47a00; }
.lc-stock--low::before { background: #c47a00; }
.lc-stock--out { color: #b0b0b0; }
.lc-stock--out::before { background: #b0b0b0; }

/* Divider */
.lc-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Price */
.lc-product-price {
  margin-bottom: 20px;
}

.lc-product-price .price-main {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.lc-product-price .price-tax {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Cart form */
.lc-cart-form {
  margin-bottom: 20px;
}

.lc-cart-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}

.lc-cart-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* Quantity input */
.lc-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  height: 44px;
  flex-shrink: 0;
}

.lc-qty__btn {
  width: 34px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.lc-qty__btn:hover {
  color: var(--text);
  background: var(--bg);
}

.lc-qty__input {
  width: 100px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
}

.lc-qty__input::-webkit-outer-spin-button,
.lc-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Add to cart button */
.lc-btn-cart {
  flex: 1;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
  letter-spacing: 0.02em;
}

.lc-btn-cart:hover {
  background: var(--accent-soft);
}

.lc-btn-cart:active {
  transform: scale(0.98);
}

.lc-btn-cart.in-cart {
  background: var(--green);
}

.lc-btn-cart svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Wishlist + Compare */
.lc-secondary-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  display: none;
}

.lc-btn-secondary {
  flex: 1;
  height: 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.lc-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lc-btn-secondary svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Key specs (inline) */
.lc-quick-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
}

.lc-quick-spec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.lc-quick-spec:first-child {
  border-top: 1px solid var(--border);
}

.lc-quick-spec__key {
  color: var(--text-muted);
  min-width: 130px;
  flex-shrink: 0;
}

.lc-quick-spec__val {
  color: var(--text);
  font-weight: 500;
}

/* Tags */
.lc-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.lc-tags__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lc-tag {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  transition: var(--transition);
}

.lc-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==============================================
   TABS — DESCRIPTION / SPECS
   ============================================== */
.lc-tabs-section {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 0;
}

.lc-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  list-style: none;
}

.lc-tabs-nav li {}

.lc-tabs-nav a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  border-radius: 0;
}

.lc-tabs-nav a:hover {
  color: var(--text);
}

.lc-tabs-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lc-tab-pane { display: none; }
.lc-tab-pane.active { display: block; }

/* Description content */
.lc-description {
  max-width: 720px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.75;
}

.lc-description h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.lc-description h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.lc-description p {
  margin-bottom: 14px;
}

.lc-description ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lc-description ul li {
  padding-left: 18px;
  position: relative;
  color: var(--text-mid);
}

.lc-description ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 14px;
  top: 2px;
}

/* Specs table */
.lc-specs-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
}

.lc-specs-table thead td {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  background: none;
}

.lc-specs-table thead:first-child td {
  padding-top: 0;
}

.lc-specs-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.lc-specs-table tbody tr:last-child {
  border-bottom: none;
}

.lc-specs-table td {
  padding: 10px 0;
  font-size: 13px;
  vertical-align: top;
}

.lc-specs-table td:first-child {
  color: var(--text-muted);
  width: 200px;
  padding-right: 24px;
}

.lc-specs-table td:last-child {
  color: var(--text);
  font-weight: 500;
  background: transparent;
}

/* ==============================================
   RELATED PRODUCTS — CAROUSEL
   ============================================== */
#related-products,
.lc-related {
  margin-top: 56px;
}

.lc-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.lc-related__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

/* Nav: prev / dots / next */
.lc-related__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lc-related__nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.lc-related__nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.lc-related__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Dot indicators */
.lc-related__dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lc-related__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.lc-related__dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.lc-related__dot:hover:not(.active) {
  background: #c0c0c0;
}

/* Track wrapper — clips overflow on desktop */
.lc-related__track-wrap {
  overflow: hidden;
  position: relative;
}

/* Track — flex row, slides via translateX */
.lc-related__grid {
  display: flex;
  gap: 14px;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Cards fixed width inside carousel */
.lc-related .b-card {
  flex: 0 0 calc((100% - 14px * 4) / 5);
  min-width: 0;
}

/* ==============================================
   B-CARD — Unified product card
   (same as category.css / btabs_product_trade.css)
   ============================================== */
.b-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.b-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* Media */
.b-card__media {
  position: relative;
  background: var(--white);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.b-card__link {
  display: block;
  width: 100%;
  height: 100%;
}

.b-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.25s ease;
}

.b-card:hover .b-card__img {
  transform: scale(1.04);
}

/* In-cart badge */
.in-cart-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  display: none;
  z-index: 2;
}

.b-card.in-cart .in-cart-badge {
  display: none;
}

.lc-gallery__main .in-cart-badge {
  display: none;
}

/* Overlay top — wish + compare */
.b-card__overlay-top {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.wish-mini,
.compare-mini {
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.wish-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.compare-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wish-mini svg,
.compare-mini svg {
  width: 13px;
  height: 13px;
}

/* Body */
.b-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}

.b-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: auto;
  padding-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.b-card__name a {
  color: var(--text);
  transition: color 0.15s ease;
}

.b-card__name a:hover {
  color: var(--accent);
}

/* Footer */
.b-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.b-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.b-card__actions {}

/* btn-addtocart: base matches category.css (white bg, accent border) */
.btn-addtocart {
  height: 34px;
  width: auto;
  padding: 0 13px;
  gap: 7px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  white-space: nowrap;
  line-height: 1;
}

.btn-addtocart svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.btn-addtocart:hover { background: var(--accent); color: var(--white); }

.b-card.in-cart .btn-addtocart { border-color: var(--green); color: var(--green); }
.b-card.in-cart .btn-addtocart:hover { background: var(--green); color: var(--white); }

/* Related products: solid from the start — distinguishes from category grid */
/*
.lc-related .btn-addtocart {
  background: var(--accent);
  color: var(--white);
}

.lc-related .btn-addtocart:hover {
  background: var(--accent-soft);
}
*/

.lc-related .b-card.in-cart .btn-addtocart {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.lc-related .b-card.in-cart .btn-addtocart:hover {
  background: #236040; /* green darken */
}

/* Login prompt (non-logged state) */
.b-card__login-prompt {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 0;
}

.b-card__login-prompt a {
  color: var(--accent);
  font-weight: 500;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
/* 4 cards visible at md */
@media (max-width: 1199px) and (min-width: 768px) {
  .lc-related .b-card {
    flex: 0 0 calc((100% - 14px * 3) / 4);
  }
}

@media (max-width: 768px) {
   .lc-qty {
    width: 100px;
    justify-content: center;
  }
  .lc-product-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lc-product-title {
    font-size: 20px;
  }

  .lc-tabs-nav a {
    padding: 10px 14px;
    font-size: 14px;
  }

  .lc-page {
    padding: 0 16px 60px;
  }

  /* Mobile carousel: native scroll, hide nav buttons */
  .lc-related__nav-btn {
    display: none;
  }

  .lc-related__track-wrap {
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .lc-related__track-wrap::-webkit-scrollbar {
    display: none;
  }

  /* Reset JS transform on mobile */
  .lc-related__grid {
    transform: none !important;
    transition: none;
    padding-bottom: 2px;
  }

  .lc-related .b-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .lc-cart-row {
    flex-direction: column;
  }

  .lc-qty {
    width: 100px;
    justify-content: center;
  }

  .lc-btn-cart {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================================
   ANIMATION — page load stagger
   ============================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lc-gallery {
  animation: fadeUp 0.35s ease both;
  animation-delay: 0.05s;
}

.lc-product-info {
  animation: fadeUp 0.35s ease both;
  animation-delay: 0.12s;
}

.lc-tabs-section {
  animation: fadeUp 0.35s ease both;
  animation-delay: 0.2s;
}

.lc-related {
  animation: fadeUp 0.35s ease both;
  animation-delay: 0.25s;
}

/* ==============================================
   LIGHTBOX
   ============================================== */
.lc-lightbox {
  position: fixed;
  inset: 0;
/*
  z-index: 9000;
  display: flex;
*/
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lc-lightbox--open {
  pointer-events: auto;
  z-index: 9999;
}

.lc-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
}

.lc-lightbox--open .lc-lightbox__backdrop {
  animation: lb-fade-in 0.2s ease both;
  opacity: 1;
  pointer-events: auto;
}

.lc-lightbox--closing .lc-lightbox__backdrop {
  animation: lb-fade-out 0.22s ease both;
}

.lc-lightbox__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 920px;
  max-height: calc(100vh - 40px);
  width: 100%;
  padding: 48px 64px 32px;
  height: 100%;
  margin: 0 auto;
}

/* Stage — image area */
.lc-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.lc-lightbox__img {
  flex: 1 1 auto;
  min-width: 0;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.18s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Slide animation */
@keyframes lb-slide-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lb-slide-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lc-lightbox__img.slide-in-right { animation: lb-slide-right 0.22s ease both; }
.lc-lightbox__img.slide-in-left  { animation: lb-slide-left  0.22s ease both; }

/* Loading spinner */
.lc-lightbox__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.lc-lightbox__loader::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: lb-spin 0.6s linear infinite;
}

.lc-lightbox__loader[style*="display: block"] {
  display: flex !important; /* override inline display:block */
}

/* Close button — anchored to stage top-right corner */
.lc-lightbox__close {
  position: absolute;
  top: 40px;
  right: 0;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 2;
  pointer-events: auto;
}

.lc-lightbox__close:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* Prev / Next nav — anchored to stage edges */
.lc-lightbox__nav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: auto;
}

.lc-lightbox__nav--prev { left: 10px; }
.lc-lightbox__nav--next { right: 10px; }

.lc-lightbox__nav:hover:not(:disabled) {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.lc-lightbox__nav:disabled {
  opacity: 0.2;
  cursor: default;
}

/* Counter — anchored to stage bottom */
.lc-lightbox__counter {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Keyframes */
@keyframes lb-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lb-spin     { to   { transform: rotate(360deg); } }

/* Mobile lightbox */
@media (max-width: 768px) {
  .lc-lightbox__shell {
    padding: 16px;
  }

  .lc-lightbox__nav--prev { left: 6px; }
  .lc-lightbox__nav--next { right: 6px; }
}

/* ==============================================
   PRODUCT.TWIG — additions
   ============================================== */

/* Price: strikethrough original when special active */
.price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 4px;
}

/* Discount tiers */
.lc-discounts {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lc-discount-row {
  font-size: 14px;
  color: var(--text-muted);
}

/* Options wrapper — spacing above cart section */
.lc-options {
  margin-bottom: 16px;
}

.lc-options .form-group {
  margin-bottom: 12px;
}

/* Minimum order notice */
.info-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 10px;
  width: 100%;
  margin-top: 8px;
  line-height: 1.4;
}

/* Card footer login state */
.b-card__footer--login {
  padding: 8px 0 2px;
}

.b-card__login-prompt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}

.b-card__login-prompt:hover {
  color: var(--accent);
}

/* lc-grid — base flex track (shared with btabs carousel) */
.lc-grid {
  display: flex;
  gap: 14px;
}

/* Guest block — non-logged state */
.lc-guest-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lc-btn-stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s ease;
}

.lc-btn-stores:hover {
  background: var(--accent-soft);
  color: #fff;
}

.lc-guest-notice {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  user-select: none;
  margin: 0;
}


/*PRICE LABEL*/
.lc-product-price-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.lc-price-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.price-suggestion {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
}


/* ── Stock badges ─────────────────────────────────────────── */
.lc-product-info .green_stock,
.lc-product-info .orange_stock,
.lc-product-info .red_stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  height: auto;
  letter-spacing: normal;
  text-transform: none;
  user-select: none;
}

.lc-product-info .green_stock::before,
.lc-product-info .orange_stock::before,
.lc-product-info .red_stock::before {
  content: '';
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: none;
}

.lc-product-info .green_stock  { color: var(--green); }
.lc-product-info .green_stock::before  { background: var(--green); }

.lc-product-info .orange_stock { color: #b86e00; }
.lc-product-info .orange_stock::before { background: #e07b00; }

.lc-product-info .red_stock    { color: #a02020; }
.lc-product-info .red_stock::before    { background: #d42020; }


button.act-wishlist {
    height: 44px;
    border: 1px solid #ccc;
    background: transparent;
    width: 50px;
    line-height: 50px;
}


.main-actions {
  display: flex;
  gap: 10px;
  flex: 1;        /* occupy remaining space after .lc-qty */
  position: relative;
}

.main-actions .lc-btn-cart {
  flex: 1;        /* fill all available width */
}

.main-actions .act-wishlist {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.main-actions .act-wishlist:hover {
  border-color: var(--accent);
  color: var(--accent);
}


.btn-block+.btn-block { margin: 0; }


.main-actions #button-update[data-in-cart="1"] {
  background: #2e7d4f;
}
