/* ===== PRODUCT PAGE ===== */
.product-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 16px 50px;
  }
  
  .breadcrumbs{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #666;
    margin: 10px 0 16px;
  }
  .breadcrumbs a{
    text-decoration: none;
    color: #1A1A1A;
  }
  .bc-sep{ opacity: .6; }
  .bc-current{ opacity: .85; }
  
  .product-shell{
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 16px;
  }
  
  .product-layout{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 18px;
    align-items: start;
  }
  .product-layout > *{ min-width: 0; }
  
  .product-gallery{
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  
  

  /* ===== THUMBS PANEL (DESKTOP) ===== */
  .thumbs-panel{
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr) 34px;
    gap: 8px;
    position: sticky;
    top: 92px; /* висота шапки + відступ */
    align-self: start;
  }

  .thumbs-arrow{
    width: 100%;
    height: 34px;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: transform .12s ease, box-shadow .2s ease;
  }
  .thumbs-arrow:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,0.08); }
  .thumbs-arrow:active{ transform: translateY(0px) scale(0.98); }
  .thumbs-arrow i{ font-size: 14px; opacity: 0.85; }
  .thumbs-arrow .ui-icon{ width: 16px; height: 16px; opacity: 0.85; }

.product-thumbs{
    display: grid;
    gap: 10px;
    overflow-y: auto;
    max-height: 520px;
    padding-right: 4px;
    scroll-behavior: smooth;
  }
  
  .thumb{
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: transform .15s ease, border-color .2s ease;
  }
  .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
/* ===== DESKTOP HARDENING (PC ONLY): prevent thumbnails from stretching/overlapping ===== */
@media (min-width: 681px){
  /* allow the middle grid row to shrink properly */
  .thumbs-panel{ min-height: 0; }

  /* stable column flow (prevents grid row collapse bugs in some setups) */
  .product-thumbs{
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 520px;
    padding-right: 4px;
    min-height: 0;
  }

  /* fixed thumb height inside the 82px column */
  .thumb{
    width: 100%;
    height: 82px;
    aspect-ratio: auto;
    flex: 0 0 auto;
    display: block;
  }

  .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.thumb:hover{ transform: translateY(-1px); }
  .thumb.active{
    border-color: #ff6a88;
    outline: 2px solid #ff6a88;
    outline-offset: 2px;
  }
  
  .product-main{
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
  }
  .product-main img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  
  .product-info{
    display: grid;
    gap: 12px;
  }
  
  .product-title{
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.25;
  }
  
  .product-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    font-weight: 700;
    color: #666;
    font-size: 13px;
  }
  .stock{
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
  }
  .stock.in{ background: #eafff1; color: #147a3d; }
  .stock.out{ background: #f2f2f2; color: #777; }
  
  .price-row{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
  }
  .price-now{
    font-size: 30px;
    font-weight: 700;
    color: #1A1A1A;
  }
  .price-old{
    font-size: 16px;
    font-weight: 700;
    color: #888;
    text-decoration: line-through;
  }
  
  .product-short{
    margin: 0;
    color: #444;
    font-weight: 600;
    line-height: 1.6;
  }
  
  .product-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  
  /* ===== ВАЖЛИВО: перевизначаємо .fav-btn, бо в тебе він absolute для карточок ===== */
  .product-buy.fav-btn{
    position: relative !important;
    top: auto !important;
    right: auto !important;
  
    width: auto !important;
    height: auto !important;
  
    border-radius: 14px !important;
    padding: 12px 14px !important;
  
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  
    background: #ff6a88 !important;
    color: #fff !important;
  
    border: 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
  
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700!important;
    font-size: 14px !important;
    cursor: pointer;
  }
  .product-buy.fav-btn .ui-icon{
    width:24px;
    height:24px;
  }
  .product-buy.fav-btn:hover{ transform: none !important; }
  .product-buy.fav-btn .ui-icon-cart4{
    width: 24px;
    height: 24px;
  }
  .product-buy.fav-btn.active{
    background: #111114 !important;
    color: #fff !important;
  }
  
    .product-oneclick{
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    background: #111114;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  }
  .product-oneclick:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 42px rgba(0,0,0,0.14);
    filter: brightness(1.05);
  }
  .product-oneclick:active{ transform: translateY(0); }

  
  .product-mini{
    background: #fff1f5;
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: #1A1A1A;
  }
  .product-mini i{ margin-right: 6px; }
  
  .product-accordion{
    display: grid;
    gap: 10px;
    margin-top: 6px;
  }
  .product-accordion details{
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
  }
  .product-accordion summary{
    cursor: pointer;
    font-weight: 700;
    color: #1A1A1A;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px;

  }
  .product-accordion summary::-webkit-details-marker{ display:none; }

  .product-accordion summary::after{
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0,0,0,0.35);
    border-bottom: 2px solid rgba(0,0,0,0.35);
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex: 0 0 auto;
  }
  .product-accordion details[open] summary::after{
    transform: rotate(-135deg);
  }

  .acc-body{
    padding-top: 10px;
    color: #444;
    font-weight: 600;
    line-height: 1.6;
  }
  
  /* ===== RELATED ===== */
  .related{
    margin-top: 18px;
  }
  .related-top{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 12px;
    flex-wrap: wrap;
  }
  .related-title{
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
  }
  .related-link{
    text-decoration: none;
    font-weight: 700;
    color: #1A1A1A;
    border: 1px solid rgba(0,0,0,0.10);
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
  }
  .related-link:hover{ background: #fff1f5; }
  
  .related-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  
  

  /* ===== LIGHTBOX (VIEW IMAGE) ===== */
  .product-main img{
    cursor: zoom-in;
  }

  .lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 6000;
    padding: 18px;
  }
  .lightbox.open{ display: flex; }

  .lightbox__inner{
    position: relative;
    max-width: min(980px, 96vw);
    max-height: 86vh;
    width: 100%;
    display: grid;
    place-items: center;
  }

  .lightbox__img{
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  }

  .lightbox__close{
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  }

  .lightbox__nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  }
  .lightbox__prev{ left: -14px; }
  .lightbox__next{ right: -14px; }

  .lightbox__nav:active, .lightbox__close:active{
    transform: translateY(-50%) scale(0.97);
  }
  .lightbox__close:active{
    transform: scale(0.97);
  }

/* ===== RESPONSIVE ===== */
  @media (max-width: 980px){
    .product-layout{ grid-template-columns: 1fr; }
  }
  
  @media (max-width: 680px){
    .product-gallery{
      grid-template-columns: 1fr;
    }

    .thumbs-panel{
      position: static;
      grid-template-rows: 1fr;
      gap: 10px;
    }
    .thumbs-arrow{ display: none; }
.product-thumbs{
      grid-auto-flow: column;
      grid-auto-columns: 78px;
      overflow: auto;
      padding-bottom: 6px;
      max-height: none;
      padding-right: 0;
    }
  
    .related-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 420px){
    .related-grid{ grid-template-columns: 1fr; }
    .product-buy.fav-btn, .product-oneclick{ width: 100%; }
  }
  

/* ===== VARIANTS (ML) ===== */
.variant-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin: 12px 0 6px;
}
.variant-label{
  font-weight: 700;
  color: #1A1A1A;
}
.variant-options{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.variant-btn{
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #1A1A1A;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.variant-btn:hover{ transform: translateY(-1px); background: #fff1f5; }
.variant-btn.active{
  background: #ff6a88;
  color: #fff;
  border-color: transparent;
}

/* single volume (no choice) */
.variant-btn.single,
.variant-btn[disabled]{
  opacity: 1;
  cursor: default;
}
.variant-btn.single:hover,
.variant-btn[disabled]:hover{
  transform: none;
}


/* shade note under shade selector */
.shade-note{
  width: 100%;
  margin: 8px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  line-height: 1.35;
  font-size: 14px;
}
.shade-note strong{
  display:block;
  font-weight: 700;
  margin-bottom: 6px;
}
.shade-note__text{
  color: #3a3a3a;
}

/* ===== QTY STEPPER (product page) ===== */
.qty-row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.qty-label{
  font-weight: 700;
  color:#1A1A1A;
}
.qty-stepper{
  display:inline-flex;
  align-items:center;
  height: 40px;
  border-radius: 999px;
  overflow:hidden;

  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.qty-stepper .qty-btn{
  width: 44px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;

  font-size: 20px;
  font-weight: 700;
  color: #111114;

  display:flex;
  align-items:center;
  justify-content:center;
  transition: background 0.15s ease, transform 0.12s ease;
}
.qty-stepper .qty-btn:hover{
  background: rgba(0,0,0,0.06);
}
.qty-stepper .qty-btn:active{
  transform: scale(0.95);
}
.qty-stepper .qty-input{
  width: 56px;
  height: 40px;
  border: 0;
  outline: none;
  background: transparent;
  text-align:center;

  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #111114;
}


.lightbox__nav .ui-icon,
.lightbox__close .ui-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.lightbox__close .ui-icon{ width: 16px; height: 16px; }
.product-mini .ui-icon{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}


.thumbs-arrow .ui-icon{
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}
.product-oneclick{
  gap: 0;
}

/* ===== PATCH 2026-05-06-7: product actions + product wishlist button ===== */
.product-actions{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 54px;
  gap:10px !important;
  align-items:stretch;
  width:min(100%, 500px);
  margin-top:8px !important;
}
.product-buy.fav-btn,
.product-oneclick,
.product-wishlist-btn.fav-btn{
  min-height:52px;
  border-radius:18px !important;
  font-family:'Montserrat', sans-serif !important;
  font-size:15px !important;
  font-weight:800 !important;
}
.product-buy.fav-btn{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  transform:none !important;
  width:100% !important;
  height:auto !important;
  padding:0 18px !important;
  box-shadow:0 14px 28px rgba(255,106,136,.22) !important;
}
.product-buy.fav-btn:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 18px 34px rgba(255,106,136,.28) !important;
}
.product-oneclick{
  width:100% !important;
  padding:0 18px !important;
  justify-content:center;
  background:#161115;
  box-shadow:0 14px 28px rgba(22,17,21,.16);
}
.product-wishlist-btn.fav-btn{
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  width:54px !important;
  height:52px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(196,91,116,.20) !important;
  background:#fff1f5 !important;
  color:#ff6a88 !important;
  box-shadow:0 14px 26px rgba(196,91,116,.12) !important;
}
.product-wishlist-btn.fav-btn:hover{
  transform:translateY(-1px) scale(1.02) !important;
  background:#ffe8ef !important;
}
.product-wishlist-btn.fav-btn.active{
  background:#ff6a88 !important;
  color:#fff !important;
}
.product-wishlist-btn .ui-icon-heart{
  width:21px;
  height:21px;
}
.product-mini{
  margin-top:4px;
}
@media (max-width: 560px){
  .product-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 50px;
    gap:8px !important;
    width:100%;
  }
  .product-buy.fav-btn,
  .product-oneclick,
  .product-wishlist-btn.fav-btn{
    min-height:48px;
    border-radius:16px !important;
    font-size:14px !important;
  }
  .product-buy.fav-btn,
  .product-oneclick{
    padding:0 10px !important;
  }
  .product-buy.fav-btn .ui-icon,
  .product-buy.fav-btn .ui-icon-cart4{
    width:20px;
    height:20px;
  }
  .product-wishlist-btn.fav-btn{
    width:50px !important;
    height:48px !important;
  }
}
@media (max-width: 380px){
  .product-actions{
    grid-template-columns:1fr 1fr;
  }
  .product-wishlist-btn.fav-btn{
    grid-column:1 / -1;
    width:100% !important;
  }
  .product-wishlist-btn.fav-btn::after{
    content:"Додати в улюблені";
    margin-left:8px;
    font-size:13px;
    font-weight:800;
  }
}

/* ===== PATCH 2026-05-06: PDP accordion icons ===== */
.product-accordion summary{
  min-height: 46px;
  padding: 4px 2px;
}
.product-accordion .acc-title{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.product-accordion .acc-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  flex:0 0 34px;
  background:linear-gradient(180deg, #fff7fa, #fff0f4);
  color:#c45b74;
  border:1px solid rgba(196,91,116,.18);
  box-shadow:0 8px 18px rgba(196,91,116,.08);
}
.product-accordion .acc-icon i{
  font-size:14px;
  line-height:1;
}
.product-accordion details[open] .acc-icon{
  background:linear-gradient(135deg, #ff6a88, #ff99ac);
  color:#fff;
  border-color:transparent;
}
@media (max-width:680px){
  .product-accordion .acc-title{ gap:10px; }
  .product-accordion .acc-icon{
    width:32px;
    height:32px;
    flex-basis:32px;
  }
}

/* ===== PATCH 2026-05-07: PDP out-of-stock action states ===== */
.product-buy.fav-btn.is-out-of-stock,
.product-oneclick.is-out-of-stock,
.product-wishlist-btn.fav-btn.is-out-of-stock,
.product-buy.fav-btn:disabled,
.product-oneclick:disabled,
.product-wishlist-btn.fav-btn:disabled{
  opacity:.62 !important;
  cursor:not-allowed !important;
  background:#f3edf1 !important;
  color:#9a8992 !important;
  box-shadow:none !important;
  transform:none !important;
}
.product-buy.fav-btn.is-out-of-stock:hover,
.product-oneclick.is-out-of-stock:hover,
.product-wishlist-btn.fav-btn.is-out-of-stock:hover{
  transform:none !important;
  box-shadow:none !important;
}
.qty-btn.is-out-of-stock,
.qty-input.is-out-of-stock{
  opacity:.55;
  cursor:not-allowed;
}

/* ===== PATCH 2026-05-08: unavailable PDP variants ===== */
.variant-btn.is-out-of-stock,
.variant-btn.is-out-of-stock:hover{
  opacity:.48;
  background:#f7f2f4;
  color:#9a8c92;
  border-color:#eadde2;
  cursor:not-allowed;
  transform:none;
}
.variant-btn.is-out-of-stock.active{
  background:#f7f2f4;
  color:#9a8c92;
  border-color:#eadde2;
}


/* ===== PATCH 2026-05-16: product reviews ===== */
.product-reviews{
  max-width:1180px;
  margin:28px auto 22px;
  padding:28px;
  border-radius:30px;
  background:linear-gradient(135deg,#fff 0%,#fff8fa 64%,#fff0f5 100%);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 18px 45px rgba(32,25,30,.07);
}
.product-reviews__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.product-reviews__head h2{
  margin:4px 0 0;
  color:#211a1f;
  font-size:30px;
  line-height:1.16;
}
.product-reviews__layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:18px;
  align-items:start;
}
.product-reviews-list{
  display:grid;
  gap:14px;
}
.product-review-card,
.product-review-form-panel{
  border:1px solid #f2e1e8;
  background:rgba(255,255,255,.92);
  border-radius:24px;
  box-shadow:0 10px 26px rgba(32,25,30,.05);
}
.product-review-card{
  padding:18px;
}
.product-review-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.product-review-card strong{
  display:block;
  color:#211a1f;
  font-size:15px;
}
.product-review-card span:not(.is-filled){
  color:#8c7f86;
  font-size:12px;
}
.product-review-card p{
  margin:0;
  color:#4c4148;
  line-height:1.68;
  font-size:14px;
}
.product-review-stars{
  white-space:nowrap;
  font-size:15px;
  letter-spacing:.04em;
}
.product-review-stars span{color:#ead7de;}
.product-review-stars .is-filled{color:#d77d92;}
.product-reviews-summary{min-width:190px;}
.product-reviews-score{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:11px;
  padding:12px 14px;
  border-radius:20px;
  background:#fff;
  border:1px solid #f5dfe7;
}
.product-reviews-score strong{
  color:#211a1f;
  font-size:30px;
  line-height:1;
}
.product-reviews-score span{
  display:block;
  margin-top:3px;
  color:#7c6e76;
  font-size:12px;
  font-weight:800;
}
.product-reviews-score--empty{
  justify-content:flex-start;
  display:grid;
  gap:4px;
  min-width:220px;
}
.product-reviews-score--empty strong{
  font-size:15px;
}
.product-reviews-score--empty span{
  margin:0;
  line-height:1.45;
}
.product-reviews-empty{
  padding:20px;
  border-radius:20px;
  background:#fff;
  border:1px dashed #efd5dd;
  color:#8b6974;
  font-weight:800;
  text-align:center;
}
.product-review-form-panel{
  padding:20px;
  position:sticky;
  top:18px;
}
.product-review-preview{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-bottom:16px;
  padding:10px;
  border-radius:18px;
  background:#fff8fa;
  border:1px solid #f4dbe3;
}
.product-review-preview img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:14px;
  background:#fff;
}
.product-review-preview span{
  color:#9b7080;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.product-review-preview strong{
  display:block;
  margin-top:4px;
  color:#211a1f;
  font-size:13px;
  line-height:1.35;
}
.product-review-form-panel h3{
  margin:0;
  color:#211a1f;
  font-size:22px;
}
.product-review-form-panel p{
  color:#6d6068;
  line-height:1.65;
  font-size:14px;
}
.product-review-auth-box{
  display:grid;
  gap:12px;
  margin-top:14px;
  padding:16px;
  border-radius:20px;
  background:#fff8fa;
  border:1px solid #f4d5de;
}
.product-review-auth-box strong{color:#211a1f;}
.product-review-auth-btn,
.product-review-submit-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:999px;
  padding:0 18px;
  border:1px solid #f5cfd9;
  background:#fff;
  color:#c45b74;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  font-family:'Montserrat',Arial,sans-serif;
}
.product-review-auth-btn:hover{background:#fff0f4;}
.product-review-form{
  display:grid;
  gap:14px;
  margin-top:16px;
}
.product-review-form label{display:grid;gap:8px;}
.product-review-form label span{
  font-size:13px;
  font-weight:900;
  color:#3a3036;
}
.product-review-form input,
.product-review-form select,
.product-review-form textarea{
  width:100%;
  border:1px solid #ead7de;
  border-radius:16px;
  background:#fff;
  color:#211a1f;
  font:600 14px 'Montserrat',Arial,sans-serif;
  outline:none;
}
.product-review-form input,
.product-review-form select{min-height:48px;padding:0 14px;}
.product-review-form textarea{min-height:132px;padding:13px 14px;resize:vertical;line-height:1.6;}
.product-review-form input:focus,
.product-review-form select:focus,
.product-review-form textarea:focus{
  border-color:#d47f97;
  box-shadow:0 0 0 4px rgba(212,127,151,.12);
}
.product-review-submit-btn{
  background:linear-gradient(135deg,#ff6a88,#ff99ac);
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 24px rgba(255,106,136,.18);
}
.product-review-submit-btn:disabled{opacity:.65;cursor:not-allowed;}
.product-review-form-status{
  min-height:20px;
  font-size:13px;
  font-weight:800;
  color:#80656e;
}
.product-review-form-status.is-success{color:#248149;}
.product-review-form-status.is-error{color:#b42336;}
@media (max-width: 980px){
  .product-reviews__head{align-items:flex-start;flex-direction:column;}
  .product-reviews__layout{grid-template-columns:1fr;}
  .product-review-form-panel{position:static;}
  .product-reviews-score{justify-content:flex-start;}
}
@media (max-width: 640px){
  .product-reviews{margin:22px 12px;padding:18px;border-radius:24px;}
  .product-reviews__head h2{font-size:24px;}
  .product-review-card__top{flex-direction:column;gap:7px;}
  .product-review-preview{grid-template-columns:54px minmax(0,1fr);}
  .product-review-preview img{width:54px;height:54px;}
}

/* ===== PATCH 2026-05-16: improved product review UI and rating summary ===== */
.product-page-rating{
  margin:8px 0 12px;
}
.product-page-rating[hidden]{display:none!important;}
.product-page-rating__btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid #f1d6df;
  background:#fff8fa;
  color:#6f4c58;
  font:800 13px 'Montserrat',Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(32,25,30,.04);
}
.product-page-rating__btn strong{
  color:#211a1f;
  font-size:14px;
}
.product-page-rating__btn span:last-child{
  color:#8b727c;
  font-size:12px;
}
.product-page-rating__btn:hover{
  background:#fff0f4;
  border-color:#ecc5d1;
}
.product-reviews{
  background:linear-gradient(135deg,#fff 0%,#fff9fb 60%,#fff4f7 100%);
}
.product-reviews__head{
  padding-bottom:16px;
  border-bottom:1px solid #f3dfe6;
}
.product-review-form-panel{
  overflow:hidden;
  border-color:#efd7df;
  background:linear-gradient(180deg,#fff 0%,#fff8fa 100%);
}
.product-review-form-panel::before{
  content:"";
  display:block;
  height:4px;
  margin:-20px -20px 18px;
  background:linear-gradient(90deg,#ff9aae,#f4cad5,#fff1f5);
}
.product-review-form-panel h3{
  display:flex;
  align-items:center;
  gap:10px;
}
.product-review-form-panel h3::before{
  content:"★";
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:12px;
  background:#fff0f4;
  color:#d77d92;
  font-size:17px;
  box-shadow:inset 0 0 0 1px #f5d1db;
}
.product-review-form-panel > p{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid #f3dce4;
  color:#7a6670;
  font-size:13px;
  line-height:1.55;
}
.product-review-auth-box{
  background:#fff;
  border-color:#efd7df;
  box-shadow:0 10px 24px rgba(32,25,30,.04);
}
.product-review-rating-field{
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  border:0;
}
.product-review-rating-field legend{
  padding:0;
  font-size:13px;
  font-weight:900;
  color:#3a3036;
}
.product-review-rating-picker{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.product-review-rating-picker input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.product-review-rating-picker label{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:5px!important;
  min-height:44px;
  border-radius:15px;
  border:1px solid #ead7de;
  background:#fff;
  color:#c9a7b1;
  font-size:18px!important;
  font-weight:900;
  cursor:pointer;
  transition:.18s ease;
}
.product-review-rating-picker label span{
  color:inherit!important;
  font-size:12px!important;
  font-weight:900!important;
}
.product-review-rating-picker input:checked + label,
.product-review-rating-picker label:hover{
  border-color:#f0b6c6;
  background:#fff0f4;
  color:#d77d92;
  box-shadow:0 8px 18px rgba(215,125,146,.12);
}
.product-review-form textarea{
  background:linear-gradient(180deg,#fff 0%,#fffbfc 100%);
}
.product-review-submit-btn{
  margin-top:2px;
}
@media (max-width: 640px){
  .product-page-rating{margin:6px 0 10px;}
  .product-page-rating__btn{width:100%;justify-content:center;}
  .product-review-form-panel::before{margin:-18px -18px 16px;}
  .product-review-rating-picker{gap:6px;}
  .product-review-rating-picker label{min-height:42px;font-size:16px!important;}
}

/* ===== PATCH 2026-05-16: fractional review stars ===== */
.product-review-stars{
  position:relative;
  display:inline-block;
  width:max-content;
  min-width:5.25em;
  white-space:nowrap;
  letter-spacing:.04em;
  color:#ead7de;
  line-height:1;
}
.product-review-stars__base,
.product-review-card span.product-review-stars__base{
  display:block;
  color:#ead7de;
  font-size:inherit;
}
.product-review-stars__fill,
.product-review-card span.product-review-stars__fill{
  position:absolute;
  inset:0 auto 0 0;
  display:block;
  overflow:hidden;
  white-space:nowrap;
  color:#d77d92;
  font-size:inherit;
  max-width:100%;
}
