/* ============================================
   BOMBA EDITORIAL — Component styles
   Genre grid, product cards, product page
   ============================================ */

/* ─── Genre grid cards ─── */
.bomba-genre-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.bomba-genre-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-2px);
}
.bomba-genre-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.bomba-genre-count {
  font-size: 0.78rem;
  color: var(--gold);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.05em;
}
.bomba-genre-card-accent .bomba-genre-name { color: var(--red); }

/* ─── Product card ─── */
.bomba-product-wrap {
  margin-bottom: 28px;
}
.bomba-product-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
}
.bomba-product-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px var(--shadow);
}
.bomba-product-cover {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg3);
  overflow: hidden;
}
.bomba-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bomba-product-card:hover .bomba-product-cover img {
  transform: scale(1.04);
}
.bomba-product-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.bomba-product-info {
  padding: 14px 16px 18px;
}
.bomba-product-artist {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.bomba-product-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 12px;
  min-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.bomba-product-title a {
  color: inherit;
  text-decoration: none;
}
.bomba-product-title a:hover { color: var(--gold); }
.bomba-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bomba-product-price {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.bomba-product-old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: 8px;
}
.bomba-product-current-price { color: var(--text); }
.bomba-product-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: #0a0a0a;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.bomba-product-add:hover {
  background: var(--gold2);
  transform: scale(1.08);
}

/* ─── Product page detail ─── */
.bomba-product-page { color: var(--text); }
.bomba-product-page h1 { color: var(--text); }
.bomba-breadcrumb a:hover { color: var(--gold); }
.bomba-info-row:last-child { border-bottom: none !important; }

/* qty input — hide spinner arrows */
.bomba-qty input[type=number]::-webkit-inner-spin-button,
.bomba-qty input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bomba-add-to-cart:hover { background: var(--gold2) !important; }

/* ─── Hide "Su mokesčiais" / tax labels ─── */
.product-tax-label,
.tax-shipping-delivery-label,
.product-prices .price-additional,
.product-prices small,
.tax-incl-label {
  display: none !important;
}

/* ─── Override PS classic blue buttons ─── */
.btn-primary,
.btn-secondary,
button.btn.btn-primary,
.product-add-to-cart button,
.add-to-cart {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #0a0a0a !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}
.btn-primary:hover,
.btn-secondary:hover {
  background: var(--gold2) !important;
  border-color: var(--gold2) !important;
  color: #0a0a0a !important;
}

/* ─── Hide redundant section titles ─── */
.products-section-title { display: none; }

/* ─── Layout container ─── */
#wrapper, .page-wrapper {
  background: var(--bg);
}
main {
  background: var(--bg);
  min-height: 100vh;
}

/* ─── PS image slider — give caption gold accent ─── */
.homeslider .item .caption .caption-description h2 { color: var(--text); }
.homeslider .item .caption .caption-description h3 { color: var(--gold); }
.homeslider .item .caption .btn { background: var(--gold) !important; color: #0a0a0a !important; }

/* ─── Footer hooks (modules) ─── */
.bomba-footer .col-md-3,
.bomba-footer .links { color: var(--text); }
.bomba-footer .links a { color: var(--muted); text-decoration: none; }
.bomba-footer .links a:hover { color: var(--gold); }

/* ─── Mobile responsive ─── */
@media (max-width: 768px) {
  .bomba-product-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .bomba-mainnav {
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 16px !important;
    -webkit-overflow-scrolling: touch;
  }
  .bomba-mainnav > div {
    gap: 20px !important;
    justify-content: flex-start !important;
  }
  .bomba-hero {
    padding: 40px 16px 32px !important;
  }
  .bomba-hero h1 {
    font-size: 2.5rem !important;
  }
  .bomba-genre-grid > div {
    grid-template-columns: 1fr 1fr !important;
  }
  .bomba-product-title {
    font-size: 0.85rem;
  }
  .bomba-product-price {
    font-size: 1rem;
  }
  .bomba-product-page .bomba-product-grid {
    grid-template-columns: 1fr !important;
  }
  .bomba-info-table { font-size: 12px; }
}
@media (max-width: 480px) {
  .bomba-genre-grid > div {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Hide some PS default elements that clash ─── */
.header-top-right .blockcart, /* mobile duplicates */
.header-banner .header-banner-content { display: none; }

/* ─── Search button — kill old icons ─── */
#search_widget .material-icons { display: none; }

/* ─── Ensure links don't inherit blue ─── */
.bomba-product-title a,
.bomba-info-row a,
.bomba-breadcrumb a { color: inherit; }
.bomba-breadcrumb a { color: var(--muted) !important; }
.bomba-breadcrumb a:hover { color: var(--gold) !important; }

/* ─── Hide PS default breadcrumb (we have our own) ─── */
nav.breadcrumb,
.breadcrumb[data-depth],
#wrapper > .breadcrumb,
.page-header > .breadcrumb { display: none !important; }

/* ─── Hide empty "Puslapis nerastas" — keep but style ─── */
#js-product-list .alert {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  color: var(--text);
}
#js-product-list .alert .h6,
#js-product-list .alert h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
}

/* ─── Category page header ─── */
.page-category #js-product-list-header,
.page-category h1.h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 2.25rem !important;
  color: var(--text) !important;
  margin-bottom: 24px;
}

/* ─── Pagination ─── */
.pagination .page-list li a {
  color: var(--text);
}
.pagination .page-list li.current a,
.pagination .page-list li a:hover {
  color: var(--gold) !important;
  font-weight: 700;
}

/* ── Hide TouchSpin qty wrapper on product page (added 2026-05-12) ── */
.bomba-product-page .input-group.bootstrap-touchspin,
.bomba-product-page .bootstrap-touchspin {
  display: none !important;
}

/* TouchSpin paslepimas (universalus selektorius - 2026-05-12) */
.bomba-product-page [class*="touchspin"],
.bomba-product-page [class*="TouchSpin"],
.bomba-product-page .input-group-btn-vertical,
.bomba-product-page button.btn-touchspin-up,
.bomba-product-page button.btn-touchspin-down,
.bomba-product-page span.input-group-btn-vertical,
.bomba-product-page .product-quantity .input-group,
.bomba-product-page .qty {
  display: none !important;
}

/* Slepia VISKĄ qty UI .product-add-to-cart viduje, paliekam tik bomba-add-to-cart + hidden input */
.bomba-product-page .product-add-to-cart > *:not(input):not(.bomba-add-to-cart):not(button.bomba-add-to-cart) {
  display: none !important;
}
.bomba-product-page .product-quantity {
  display: none !important;
}

/* Premium kainos formatas (superscript cents) - 2026-05-12 */
.bomba-cents {
  font-size: 0.45em;
  vertical-align: super;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 2px;
  line-height: 0;
  position: relative;
  top: -0.15em;
}


/* ===== Apple-style font unification -- Inter (variant B) 2026-05-19 ===== */
[style*="Playfair"],[style*="monospace"],[style*="font-mono"],
.font-mono,.font-serif,code,kbd,samp,pre{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif !important;
}
