/* Product Single 2 - Reference-style Modern Theme */
@import url('swiper-bundle.min.css');

/* Theme variables (Modern) */
body.theme-modern { --accent: #029b40; --accent-soft: rgba(2,155,64,0.08); --text-muted: #6c757d; --card-border: #e5e7eb; --banner-overlay: rgba(2,155,64,0.12); }

.accent-text { color: var(--accent); }
.accent-bg { background: var(--accent); color: #fff; }
.muted-text { color: var(--text-muted); }
.btn-accent { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, black); }

/* Hero banner */
.hero-banner {
  position: relative;
  background: url('../images/product-industrial.jpg') center/cover no-repeat;
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #fff;
}
.hero-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35)), var(--banner-overlay); }
.hero-banner .content { position: relative; z-index: 1; }

/* Cards */
.card-ref {
  border: 1px solid var(--card-border);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.card-ref .card-header { border-bottom: 1px solid var(--card-border); background: #fff; }
.card-ref .card-body { padding: 1.25rem; }

/* Specs table */
.table-ref { font-size: .95rem; }
.table-ref th { width: 40%; color: #495057; }
.table-ref td { color: #212529; }
.table-ref caption { caption-side: bottom; color: var(--text-muted); }

/* Highlight specs grid */
.specs-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.specs-highlight .item { background: var(--accent-soft); border: 1px dashed var(--card-border); border-radius: .75rem; padding: .75rem; text-align: center; }
.specs-highlight .value { font-weight: 700; font-size: 1.1rem; }
.specs-highlight .label { font-size: .9rem; color: var(--text-muted); }

/* Sidebar widgets */
.widget { border: 1px solid var(--card-border); border-radius: .75rem; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.05); }
.widget .widget-body { padding: 1.0rem 1.25rem; }
.widget .widget-header { padding: .85rem 1.25rem; border-bottom: 1px solid var(--card-border); font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .specs-highlight { grid-template-columns: 1fr; }
}

/* Distinct main grid */
.product-main { display: grid; grid-template-columns: 420px 1fr; gap: 1.25rem; }
.image-stack { display: grid; grid-template-columns: 88px 1fr; gap: .75rem; }
.vertical-thumbs .btn { padding: .25rem; border-color: var(--card-border); margin-bottom: .5rem; }
.vertical-thumbs .btn.active { border-color: var(--accent); }
.vertical-thumbs img { object-fit: cover; width: 64px; height: 46px; }

/* Overview chips */
.overview-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--accent-soft); border: 1px dashed var(--card-border); border-radius: 999px; padding: .35rem .75rem; display: inline-flex; align-items: center; gap: .35rem; }
.chip .value { font-weight: 700; }
.chip .label { color: var(--text-muted); font-size: .9rem; }

/* Accordion spec styling */
.accordion-button { font-weight: 600; }
.accordion-item { border: 1px solid var(--card-border) !important; border-radius: .75rem; overflow: hidden; }
.accordion-button:not(.collapsed) { color: var(--accent); background-color: var(--accent-soft); }
.accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(2,155,64,.15); }

/* Sticky sidebar and CTA band */
.sticky-sidebar { position: sticky; top: 96px; }
.cta-band { background: var(--accent); color: #fff; border-radius: .75rem; box-shadow: 0 6px 24px rgba(2,155,64,.25); }
.cta-band .btn { background: #fff; color: var(--accent); border: none; }
.cta-band .btn:hover { background: color-mix(in srgb, #fff 85%, var(--accent)); }

/* Responsive add-ons */
@media (max-width: 768px) {
  .product-main { grid-template-columns: 1fr; }
  .image-stack { grid-template-columns: 1fr; }
}

/* Swiper product gallery */
.product-gallery { display: block; }
.product-gallery { overflow: hidden; }
.swiper, .productSwiper, .thumbsSwiper { width: 100%; max-width: 100%; box-sizing: border-box; }
.productSwiper .swiper-wrapper, .thumbsSwiper .swiper-wrapper { box-sizing: border-box; }
.productSwiper { border: 1px solid var(--card-border); border-radius: .75rem; overflow: hidden; background: #fff; }
.productSwiper .swiper-slide { display: grid; place-items: center; }
.productSwiper .swiper-slide img { width: 100%; height: auto; object-fit: contain; border-radius: .5rem; }
.productSwiper .swiper-button-next, .productSwiper .swiper-button-prev { color: var(--accent); }
.productSwiper .swiper-pagination-bullet { background: var(--accent-soft); opacity: 1; }
.productSwiper .swiper-pagination-bullet-active { background: var(--accent); }

.thumbsSwiper { margin-top: .75rem; }
.thumbsSwiper .swiper-slide { border: 1px solid var(--card-border); border-radius: .5rem; padding: .25rem; cursor: pointer; opacity: .75; transition: opacity .2s ease, border-color .2s ease; background: #fff; }
.thumbsSwiper .swiper-slide-thumb-active { opacity: 1; border-color: var(--accent); }
.thumbsSwiper .swiper-slide img { width: 100%; height: 56px; object-fit: cover; border-radius: .25rem; }

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .product-main { grid-template-columns: 380px 1fr; }
  .thumbsSwiper .swiper-slide img { height: 50px; }
}

@media (max-width: 992px) {
  .product-main { grid-template-columns: 1fr; gap: .75rem; }
  .product-gallery { margin-bottom: .75rem; }
  .sticky-sidebar { position: static; }
  .cta-band { flex-direction: column; gap: .75rem; text-align: center; }
  .chip { padding: .3rem .6rem; }
  .productSwiper .swiper-button-next, .productSwiper .swiper-button-prev { --swiper-navigation-size: 28px; }
  .productSwiper .swiper-pagination { bottom: 8px; }
}

@media (max-width: 576px) {
  .specs-highlight { grid-template-columns: 1fr; }
  .card-ref .card-body { padding: .75rem; }
  .widget .widget-body { padding: .75rem 1rem; }
  .chip .value { font-size: .95rem; }
  .chip .label { font-size: .8rem; }
  .thumbsSwiper .swiper-slide img { height: 42px; }
  .productSwiper .swiper-slide img { border-radius: .25rem; }
  .accordion-button { font-size: 1rem; }
  .table-ref { font-size: .9rem; }
  .cta-band .btn { width: 100%; }
  .productSwiper .swiper-button-next, .productSwiper .swiper-button-prev { display: none; }
}