/**
 * Aqua PDP — Skatinger.com layout
 */

body.kaveh-single-layout-aqua {
  background: #fff;
}

@media (max-width: 991px) {
  body.kaveh-single-layout-aqua {
    padding-bottom: 72px;
  }
}

body.kaveh-single-layout-aqua .detail-product.kaveh-aqua-layout {
  margin: 0 !important;
  padding: 0 !important;
}

body.kaveh-single-layout-aqua .detail-product.kaveh-aqua-layout > .container,
body.kaveh-single-layout-aqua .detail-product.kaveh-aqua-layout > .container-fluid {
  max-width: none;
  padding: 0;
  margin: 0;
}

body.kaveh-single-layout-aqua .woocommerce-breadcrumb,
body.kaveh-single-layout-aqua .detail-product .woocommerce-breadcrumb {
  display: none;
}

/* هیرو زیر هدر — هدر شفاف روی تصویر (فقط تفریحات آبی / دسکتاپ) */
body.kaveh-single-layout-aqua .detail-product.kaveh-aqua-layout {
  margin-top: 0 !important;
}

body.kaveh-single-layout-aqua .kaveh-aqua-pdp {
  display: block;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
}

body.kaveh-single-layout-aqua .kaveh-aqua-pdp *,
body.kaveh-single-layout-aqua .kaveh-aqua-pdp *::before,
body.kaveh-single-layout-aqua .kaveh-aqua-pdp *::after {
  box-sizing: border-box;
}

@media (min-width: 992px) {
  body.kaveh-single-layout-aqua .app > .nav-header,
  body.kaveh-single-layout-aqua .app > .boostify-header,
  body.kaveh-single-layout-aqua .app > .bhfb-header,
  body.kaveh-single-layout-aqua .app > #masthead,
  body.kaveh-single-layout-aqua .app > header.site-header,
  body.kaveh-single-layout-aqua .elementor-location-header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none !important;
  }

  body.kaveh-single-layout-aqua.admin-bar .app > .nav-header,
  body.kaveh-single-layout-aqua.admin-bar .app > .boostify-header,
  body.kaveh-single-layout-aqua.admin-bar .app > .bhfb-header,
  body.kaveh-single-layout-aqua.admin-bar .app > #masthead,
  body.kaveh-single-layout-aqua.admin-bar .app > header.site-header,
  body.kaveh-single-layout-aqua.admin-bar .elementor-location-header {
    top: 32px;
  }
}

@media (max-width: 991px) {
  body.kaveh-single-layout-aqua .nav-header,
  body.kaveh-single-layout-aqua .boostify-header,
  body.kaveh-single-layout-aqua .bhfb-header,
  body.kaveh-single-layout-aqua #masthead,
  body.kaveh-single-layout-aqua header.site-header,
  body.kaveh-single-layout-aqua .elementor-location-header {
    position: relative !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 782px) {
  body.kaveh-single-layout-aqua.admin-bar .app > .nav-header,
  body.kaveh-single-layout-aqua.admin-bar .app > .boostify-header,
  body.kaveh-single-layout-aqua.admin-bar .app > .bhfb-header,
  body.kaveh-single-layout-aqua.admin-bar .app > #masthead,
  body.kaveh-single-layout-aqua.admin-bar .app > header.site-header,
  body.kaveh-single-layout-aqua.admin-bar .elementor-location-header {
    top: 46px;
  }
}

/* WooCommerce extras داخل aqua — reset تداخل layout عمومی */
body.kaveh-single-layout-aqua .kaq-sk-extras .related.products,
body.kaveh-single-layout-aqua .kaq-sk-extras .upsells.products,
body.kaveh-single-layout-aqua .kaq-sk-extras #reviews {
  margin-top: 0;
  padding-top: 0;
}

body.kaveh-single-layout-aqua .kaq-sk-extras__compare .kdk-compare-btn {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 0.8125rem;
  padding: 10px 18px;
}

body.kaveh-single-layout-aqua .kaq-sk-extras__compare .kdk-compare-link {
  color: #333;
  font-size: 0.8125rem;
}

.kaveh-aqua-pdp {
  color: #111;
  font-family: inherit;
  background: #fff;
}

.kaveh-aqua-pdp .kaq-mobile-only { display: block; }
.kaveh-aqua-pdp .kaq-desktop-only { display: none; }

@media (min-width: 992px) {
  .kaveh-aqua-pdp .kaq-mobile-only { display: none; }
  .kaveh-aqua-pdp .kaq-desktop-only { display: block; }
}

/* ── Hero (Skatinger split) ── */
.kaq-sk-hero {
  position: relative;
  min-height: min(85vh, 720px);
  background: #fff;
  overflow: hidden;
}

.kaq-sk-hero--has-bg .kaq-sk-hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--kaq-hero-bg);
  background-size: cover;
  background-position: center right;
}

.kaq-sk-hero--has-bg .kaq-sk-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    #fff 0%,
    rgba(255, 255, 255, 0.97) 30%,
    rgba(255, 255, 255, 0.82) 46%,
    rgba(255, 255, 255, 0.35) 58%,
    rgba(255, 255, 255, 0.08) 72%,
    transparent 88%
  );
}

.kaq-sk-hero--has-bg .kaq-sk-hero__bg {
  filter: none;
}

body.kaveh-single-layout-aqua .kaq-sk-hero__inner {
  padding-top: calc(var(--kaq-header-offset, 72px) + 28px);
}

.kaq-sk-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid;
  gap: 32px;
  align-items: center;
  min-height: inherit;
}

@media (min-width: 992px) {
  .kaq-sk-hero__inner {
    grid-template-columns: 1fr 1fr;
    padding: 72px 40px 80px;
  }

  body.kaveh-single-layout-aqua .kaq-sk-hero__inner {
    padding-top: calc(var(--kaq-header-offset, 72px) + 48px);
  }
}

@media (max-width: 991px) {
  body.kaveh-single-layout-aqua .kaq-sk-hero__inner {
    padding-top: calc(var(--kaq-header-offset-mobile, 56px) + 20px);
  }
}

.kaq-sk-hero__cat {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #333;
  line-height: 1.5;
}

.kaq-sk-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  color: #000;
  letter-spacing: -0.02em;
}

.kaq-sk-hero__dims {
  margin: 16px 0 0;
  font-size: 1.125rem;
  color: #333;
  font-weight: 400;
}

/* یک تصویر cutout (PNG بدون پس‌زمینه) — مثل Skatinger */
.kaq-sk-hero__product {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 240px;
}

@media (min-width: 992px) {
  .kaq-sk-hero__product {
    justify-content: flex-end;
    align-items: center;
    min-height: 420px;
  }
}

.kaq-sk-hero__product-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(52vh, 480px);
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

@media (min-width: 992px) {
  .kaq-sk-hero__product-img {
    max-height: min(68vh, 560px);
    max-width: 92%;
    object-position: right center;
  }
}

/* ── Body sections ── */
.kaq-sk-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.kaq-sk-block {
  margin-bottom: 56px;
}

.kaq-sk-block__title {
  margin: 0 0 28px;
  font-size: 1.375rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
}

.kaq-sk-block__title--center {
  text-align: center;
}

/* Parameters — 3 columns like Skatinger */
.kaq-sk-params {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 32px;
}

@media (min-width: 640px) {
  .kaq-sk-params {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .kaq-sk-params {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 40px;
  }
}

.kaq-sk-param {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.kaq-sk-param__label {
  color: #111;
  font-weight: 400;
}

.kaq-sk-param__value {
  color: #111;
  font-weight: 600;
}

/* Specificities */
.kaq-sk-spec-text {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.85;
  color: #222;
}

.kaq-sk-spec-text p {
  margin: 0 0 1em;
}

/* Accessories (متای aqua_accessories) */
.kaq-sk-accessories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 28px 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0 16px;
}

@media (min-width: 640px) {
  .kaq-sk-accessories__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 32px 40px;
  }
}

.kaq-sk-accessory {
  margin: 0;
  text-align: center;
}

.kaq-sk-accessory__img-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100px;
}

.kaq-sk-accessory img {
  max-height: 128px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.kaq-sk-accessory__label {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: #333;
  line-height: 1.4;
}

/* Info band */
.kaq-sk-band {
  background: #f3f3f3;
  padding: 56px 24px;
}

.kaq-sk-band__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .kaq-sk-band__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.kaq-sk-band__card {
  text-align: center;
  padding: 8px 16px;
}

.kaq-sk-band__card h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
}

.kaq-sk-band__card p {
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #444;
  min-height: 3em;
}

.kaq-sk-band__btn {
  display: inline-block;
  padding: 10px 28px;
  background: #000;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.kaq-sk-band__btn:hover {
  opacity: 0.85;
  color: #fff;
}

.kaq-sk-band__btn--static {
  opacity: 0.5;
  cursor: default;
}

/* WooCommerce extras (reviews, related) */
.kaq-sk-extras {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.kaq-sk-extras__compare {
  margin-bottom: 32px;
}

.kaq-sk-extras .related.products,
.kaq-sk-extras .upsells.products {
  margin-top: 48px;
}

.kaq-sk-extras #reviews {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

/* CTA desktop */
.kaq-sk-cta {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 90;
}

.kaq-sk-cta__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.kaq-sk-cta__price {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

.kaq-sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.kaq-sk-btn:hover {
  opacity: 0.88;
  color: #fff;
}

.kaq-sk-btn--sm {
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.8125rem;
}

/* Mobile bar */
.kaq-sk-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.kaq-sk-mobile-bar__price {
  font-size: 0.9375rem;
  font-weight: 700;
}

body.kaveh-single-layout-aqua .kaq-cart-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Category archive — only when body has kaveh-aqua-category */
body.kaveh-aqua-category .kaq-archive {
  background: #fff;
}

.kaq-archive-hero {
  position: relative;
  min-height: 40vh;
  background: #111 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.kaq-archive-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
}

.kaq-archive-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.kaq-archive-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #ccc;
  font-weight: 600;
}

.kaq-archive-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  font-weight: 700;
}

.kaq-archive-hero__tagline {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.9);
}

.kaq-archive__body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.kaq-archive__intro {
  margin: 0 0 32px;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  max-width: 640px;
}

.kaq-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .kaq-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.kaq-product-card {
  background: #fff;
  transition: transform 0.25s;
}

.kaq-product-card:hover {
  transform: translateY(-4px);
}

.kaq-product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.kaq-product-card__media {
  display: block;
  aspect-ratio: 1;
  background: #f5f5f5;
  overflow: hidden;
}

.kaq-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.kaq-product-card:hover .kaq-product-card__media img {
  transform: scale(1.03);
}

.kaq-product-card__body {
  padding: 14px 0;
}

.kaq-product-card__title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.kaq-product-card__price {
  font-size: 0.875rem;
  font-weight: 700;
}
