/* ===== COSMOD Product Page Skin — FULL CSS ===== */
:root{
  --cosmod-accent:#1788C8;
  --cosmod-dark:#111;
  --cosmod-muted:#6b7280;
  --cosmod-hero:#f2eee9;
  --gap: clamp(16px, 3vw, 36px);
}

/* ===== WRAPPER ===== */
.cosmod-pps{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--cosmod-dark);
}

/* ===== HERO ===== */
.pps-hero{
  background:
    radial-gradient(160% 100% at 100% 0%, rgba(171,148,120,0.16), rgba(171,148,120,0) 60%),
    linear-gradient(180deg, var(--cosmod-hero), #fff);
  padding: clamp(12px, 3vw, 28px) 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.pps-hero__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(12px,3vw,24px);
  display: grid;
  gap: var(--gap);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 981px){
  .pps-hero__inner{
    grid-template-columns: 1fr 1.1fr;
  }
  .pps-hero__visual{ grid-column: 1; }
  .pps-hero__copy  { grid-column: 2; }
}

/* ===== COPY (TITLE/PRICE/CTA) ===== */
.pps-hero__copy .kicker{
  letter-spacing:.12em; font-weight:700; font-size:12px;
  color:var(--cosmod-muted); text-transform:uppercase; margin-bottom:6px;
}
.pps-hero__copy .title{
  margin:0 0 10px; font-weight:800; font-size:44px; line-height:1.1;
}
.pps-hero__copy .desc{
  font-size:16px; line-height:1.6; color:#222; margin:8px 0 16px;
}
.pps-hero__copy .meta{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 16px;
}
.pps-hero__copy .chip{
  display:inline-flex; align-items:center; border:1px solid rgba(0,0,0,.08);
  background:#fff; border-radius:999px; padding:6px 10px; font-size:12px; line-height:1;
}
.pps-hero__copy .buyline{
  display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:center;
}
.pps-hero__copy .pricewrap .price{
  font-size:32px; font-weight:800; color:var(--cosmod-dark);
}
.pps-hero__copy .cta .single_add_to_cart_button,
.pps-hero__copy .cta button[type="submit"]{
  background:var(--cosmod-accent)!important;
  border-color:var(--cosmod-accent)!important;
  padding:12px 18px!important; border-radius:12px!important; font-weight:700!important;
}

/* ===== VISUAL / SLIDER ===== */
.pps-hero__visual{ position: relative; display:flex; flex-direction:column; gap:12px; }

/* Фиксированная высота галереи */
.pps-slider{
  position: relative; width: 100%;
  height: 400px; /* ← основная высота */
  overflow: hidden; background:#fff; border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
@media (max-width: 768px){ .pps-slider{ height: 320px; } }
@media (max-width: 480px){ .pps-slider{ height: 260px; } }

/* Трек/слайды */
.pps-slider__track{
  display:flex; width:100%; height:100%; transition:transform .5s ease; will-change:transform;
}
.pps-slider .slide{
  min-width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg,#fff,#f9fafb);
}

/* Картинка заполняет высоту контейнера и центрируется */
.pps-slider .slide img.fit{
  height: 100% !important;     /* вместо конкретных 400px — всегда высота слайдера */
  width: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
}

/* Навигация */
.pps-slider .nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:999px;
  background:rgba(255,255,255,.9);
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  border:none; cursor:pointer; z-index: 5;
}
.pps-slider .nav.prev{ left:8px; }
.pps-slider .nav.next{ right:8px; }

/* Миниатюры */
.pps-thumbs{
  display:flex; gap:8px; overflow:auto; padding:2px; justify-content:flex-start; padding-left:16px;
}
.pps-thumbs .thumb{
  border:1px solid rgba(0,0,0,.06); border-radius:10px; background:#fff; padding:4px; cursor:pointer; flex:0 0 auto;
}
.pps-thumbs .thumb-img{ width:70px; height:70px; object-fit:contain; display:block; }

/* ===== LIGHTBOX (fullscreen) ===== */
.pps-lightbox{
  position:fixed; inset:0; background:rgba(0,0,0,.85);
  display:none; align-items:center; justify-content:center; z-index:999999;
}
.pps-lightbox.open{ display:flex; }
.pps-lightbox__img{
  max-width:96vw; max-height:92vh; object-fit:contain; box-shadow:0 10px 40px rgba(0,0,0,.4);
}
.pps-lightbox__btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border-radius:50%;
  display:grid; place-items:center; background:rgba(255,255,255,.95);
  border:0; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.24);
}
.pps-lightbox__prev{ left:18px; } .pps-lightbox__next{ right:18px; }
.pps-lightbox__close{
  position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.95); border:0; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.24);
}
.pps-lightbox__close:before{ content:"✕"; font-size:20px; }
.pps-lightbox__prev:before { content:"←"; font-size:18px; }
.pps-lightbox__next:before { content:"→"; font-size:18px; }

/* ===== WISHLIST HEART (слева-сверху) ===== */
.pps-wishlist-overlay{
  position:absolute; top:8px; left:8px; right:auto; bottom:auto;
  transform:none; z-index:10000; display:block !important;
}

/* Универсальный круглый контейнер (fallback) */
.pps-heart-fallback{
  width:46px; height:46px; display:grid; place-items:center;
  background:#fff; border-radius:50%;
  box-shadow:0 8px 24px rgba(0,0,0,.16); border:1px solid rgba(0,0,0,.06);
  font-size:18px; color:#e11d48; text-decoration:none;
}

/* = TI WooCommerce Wishlist = */
.pps-wishlist .tinvwl_add_to_wishlist_button{
  width:46px; height:46px; display:grid; place-items:center;
  background:#fff; border-radius:50%; box-shadow:0 8px 24px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.06); text-indent:-9999px; overflow:hidden; position:relative;
}
.pps-wishlist .tinvwl_add_to_wishlist_button:before{
  content:"\2665"; /* ♥ */
  text-indent:0; position:absolute; inset:0; display:grid; place-items:center;
  font-size:18px; color:#e11d48;
}
.pps-wishlist .tinvwl-tooltip, .pps-wishlist .tinvwl_add_to_wishlist-text{
  display:none !important;
}

/* = YITH Wishlist = */
.pps-wishlist .yith-wcwl-add-button a{
  width:46px; height:46px; display:grid; place-items:center;
  background:#fff; border-radius:50%; box-shadow:0 8px 24px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.06); font-size:0; position:relative;
}
.pps-wishlist .yith-wcwl-add-button a:before{
  content:"\2665"; font-size:18px; color:#e11d48;
}

/* = MoreConvert Wishlist (MC) = */
.pps-wishlist .wlfmc-add-to-wishlist,
.pps-wishlist .wlfmc-add-to-wishlist form,
.pps-wishlist .wlfmc-add-to-wishlist .wlfmc_add_to_wishlist_button,
.pps-wishlist .wlfmc-add-to-wishlist a.button,
.pps-wishlist .wlfmc-add-to-wishlist button.button{
  width:46px; height:46px; display:grid; place-items:center;
  background:#fff; border-radius:50%; box-shadow:0 8px 24px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.06); padding:0 !important;
  line-height:1 !important; min-width:46px; min-height:46px;
}
.pps-wishlist .wlfmc-add-to-wishlist .wlfmc-button-text{
  display:none !important; /* только иконка */
}
.pps-wishlist .wlfmc-add-to-wishlist .wlfmc-icon:before{
  font-size:18px;
}

/* Состояние «в списке»: делаем серым */
.pps-wishlist .tinvwl-product-in-list .tinvwl_add_to_wishlist_button:before,
.pps-wishlist .yith-wcwl-wishlistaddedbrowse a:before,
.pps-wishlist .wlfmc-add-to-wishlist.added .wlfmc-icon{
  color:#111827 !important;
}

/* На мобилках чуть ближе к краю */
@media (max-width: 480px){
  .pps-wishlist-overlay{ top:6px; left:6px; }
}
