/* ============================================================
   RADEX — Premium Product Detail (PDP)
   Скоуп: .rx-pdp  | зарежда се последен, презаписва шаблона
   Палитра: #1583C2 azure, #0093D4 accent, #0C3E5E deep navy
   ============================================================ */
.rx-pdp{
  --rx-azure:#1583C2; --rx-accent:#0093D4; --rx-navy:#0C3E5E;
  --rx-ink:#1f2d38; --rx-muted:#6b7c89; --rx-line:#eef2f6;
  --rx-soft:#f6fafe; --rx-soft-line:#e6f1fa;
  font-feature-settings:"kern";
}
.rx-pdp .container{max-width:1240px;}

/* ---------- ГАЛЕРИЯ ---------- */
.rx-main-frame{
  position:relative; border-radius:22px; padding:26px;
  background:radial-gradient(120% 95% at 50% 0%, #eef7ff 0%, #ffffff 58%);
  border:1px solid var(--rx-line);
  box-shadow:0 26px 60px -30px rgba(12,62,94,.34), 0 4px 16px -10px rgba(12,62,94,.14);
}
.rx-pdp #productImageWrapper{border:none!important;background:transparent!important;min-height:320px;border-radius:14px;}
.rx-pdp #productMainImage{max-height:460px;width:auto;filter:drop-shadow(0 18px 28px rgba(12,62,94,.16));}
.rx-zoom-hint{
  position:absolute; right:18px; bottom:18px; width:38px;height:38px;border-radius:11px;
  background:rgba(255,255,255,.92); color:var(--rx-azure); display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px -4px rgba(12,62,94,.3); font-size:15px; pointer-events:none; backdrop-filter:blur(3px);
}
/* thumbnails */
.rx-thumbs{margin-top:18px!important;}
.rx-pdp .rx-thumbs .product-thumb{
  width:66px!important;height:66px!important;border-radius:13px!important;
  border:2px solid #e9eef3!important;opacity:1!important;padding:5px!important;background:#fff!important;
  box-shadow:0 2px 8px -4px rgba(12,62,94,.18);transition:transform .18s, border-color .18s, box-shadow .18s;
}
.rx-pdp .rx-thumbs .product-thumb:hover{border-color:var(--rx-accent)!important;transform:translateY(-2px);}
.rx-pdp .rx-thumbs .product-thumb.active{border-color:var(--rx-azure)!important;box-shadow:0 0 0 3px rgba(21,131,194,.16);transform:translateY(-2px);}

/* ---------- BUY BOX (sticky) ---------- */
.rx-buybox{
  position:relative;background:#fff;border:1px solid var(--rx-line);border-radius:22px;
  padding:30px 30px 26px;
  box-shadow:0 26px 60px -34px rgba(12,62,94,.32), 0 2px 12px -8px rgba(12,62,94,.10);
  overflow:hidden;
}
.rx-buybox::before{content:"";position:absolute;left:0;top:0;height:5px;width:100%;
  background:linear-gradient(90deg,var(--rx-azure),var(--rx-accent));}
@media(min-width:992px){.rx-buybox{position:sticky;top:104px;}}

/* типография в buy box */
.rx-pdp .pd-title{font-size:27px!important;line-height:1.18;font-weight:800!important;color:var(--rx-navy)!important;letter-spacing:-.01em;margin-bottom:6px!important;}
.rx-pdp .pd-category{text-transform:uppercase;letter-spacing:1.6px;font-size:11px;font-weight:700;color:#9bb0c0!important;margin-bottom:14px!important;}
.rx-pdp .pd-sku{font-size:12px;color:#9bb0c0;letter-spacing:.3px;}
.rx-pdp .pd-price{font-size:31px!important;font-weight:800!important;color:var(--rx-azure)!important;margin:6px 0 8px!important;}
.rx-pdp .pd-price .pd-promo-price{color:var(--rx-azure)!important;}
.rx-pdp .pd-old-price{font-size:17px!important;color:#a9bac6!important;font-weight:500!important;margin-right:8px;}
.rx-pdp .pd-badge{display:inline-block;background:linear-gradient(135deg,#ef4444,#f97316)!important;color:#fff;border:none;
  border-radius:999px;padding:5px 13px;font-size:11px;font-weight:700;letter-spacing:.6px;}

/* tags */
.rx-pdp .pd-tags{margin-bottom:14px!important;display:flex;flex-wrap:wrap;gap:7px;}
.rx-pdp .pd-tag{border-radius:999px!important;padding:5px 12px!important;font-size:11px!important;font-weight:700!important;letter-spacing:.4px;color:#fff;box-shadow:0 4px 10px -5px rgba(12,62,94,.4);}

/* rating */
.rx-pdp .pd-rating{display:flex;align-items:center;gap:7px;margin-bottom:14px!important;}
.rx-pdp .pd-star{color:#f59e0b;font-size:15px;}
.rx-pdp .pd-rating-value{font-weight:700;color:var(--rx-ink);font-size:14px;}
.rx-pdp .pd-rating-count{color:#9bb0c0;font-size:13px;}

/* stock */
.rx-pdp .pd-stock{display:inline-flex;align-items:center;gap:8px;background:var(--rx-soft);border:1px solid var(--rx-soft-line);
  border-radius:999px;padding:6px 13px;}
.rx-pdp .pd-stock-dot{width:9px;height:9px;border-radius:50%;}

/* description */
.rx-pdp .pd-description{color:#546571!important;line-height:1.72;font-size:15px;margin:16px 0!important;}

/* delivery box */
.rx-pdp .pd-delivery{background:var(--rx-soft);border:1px solid var(--rx-soft-line);border-radius:14px;padding:13px 16px;font-size:14px;color:var(--rx-navy);}
.rx-pdp .pd-delivery-icon{color:var(--rx-azure)!important;}

/* варианти */
.rx-pdp .variant-select-detail{border-radius:12px;border:1.5px solid #dbe6ee;padding:11px 14px;font-weight:600;color:var(--rx-navy);}

/* quantity */
.rx-pdp .quantity{width:130px!important;background:#fff;border:1.5px solid #e1eaf1;border-radius:14px;overflow:hidden;}
.rx-pdp .quantity .btn-minus,.rx-pdp .quantity .btn-plus{width:40px;height:44px;border:none!important;background:#f4f9fd!important;color:var(--rx-azure)!important;border-radius:0!important;}
.rx-pdp .quantity .btn-minus:hover,.rx-pdp .quantity .btn-plus:hover{background:#e7f3fb!important;}
.rx-pdp #productQty{font-weight:800;font-size:16px;color:var(--rx-navy);background:#fff;}

/* основни бутони */
.rx-pdp .pd-add-btn{
  flex:1 1 220px;min-width:200px;background:linear-gradient(135deg,var(--rx-azure),var(--rx-accent))!important;
  color:#fff!important;border:none!important;border-radius:14px!important;padding:15px 22px!important;
  font-weight:700!important;font-size:15px!important;letter-spacing:.2px;
  box-shadow:0 14px 28px -12px rgba(21,131,194,.65);transition:transform .22s, box-shadow .22s;
}
.rx-pdp .pd-add-btn i{color:#fff!important;}
.rx-pdp .pd-add-btn:hover{transform:translateY(-2px);box-shadow:0 20px 36px -14px rgba(21,131,194,.75);}
.rx-pdp .quick-order-btn{background:#fff!important;color:var(--rx-navy)!important;border:1.5px solid #d8e4ec!important;
  border-radius:14px!important;padding:14px 18px!important;font-weight:700!important;font-size:14px!important;transition:border-color .2s,color .2s;}
.rx-pdp .quick-order-btn:hover{border-color:var(--rx-azure)!important;color:var(--rx-azure)!important;}
.rx-pdp .pd-wishlist{width:50px;height:50px;border-radius:14px!important;border:1.5px solid #e6eef4!important;padding:0!important;margin-left:0!important;
  display:inline-flex;align-items:center;justify-content:center;transition:border-color .2s, background .2s;}
.rx-pdp .pd-wishlist:hover{border-color:var(--rx-azure)!important;background:var(--rx-soft)!important;}
.rx-pdp .pd-wishlist i{font-size:18px;}

/* trust + share */
.rx-pdp .pd-trust{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px!important;padding-top:18px;border-top:1px solid var(--rx-line);}
.rx-pdp .pd-trust-badge{background:var(--rx-soft)!important;border:1px solid var(--rx-soft-line)!important;color:#51616d!important;border-radius:10px!important;padding:7px 12px!important;font-size:11px!important;font-weight:600;}
.rx-pdp .pd-share{display:flex;align-items:center;gap:10px;margin-top:16px;}
.rx-pdp .pd-share-label{font-size:13px;color:var(--rx-muted);font-weight:600;}
.rx-pdp .pd-share-link{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;border:1px solid var(--rx-line);color:var(--rx-navy);background:#fff;transition:all .2s;}
.rx-pdp .pd-share-link:hover{background:var(--rx-azure);color:#fff;border-color:var(--rx-azure);}

/* ---------- FEATURE STRIP ---------- */
.rx-feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e7f1f9;border:1px solid #e7f1f9;border-radius:18px;overflow:hidden;margin:30px 0 6px;}
.rx-feature{background:#fff;padding:18px 20px;display:flex;align-items:center;gap:14px;}
.rx-feature-ic{width:46px;height:46px;border-radius:13px;background:linear-gradient(135deg,var(--rx-azure),var(--rx-accent));color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;flex:none;box-shadow:0 8px 18px -8px rgba(21,131,194,.6);}
.rx-feature strong{display:block;font-size:14px;color:var(--rx-navy);font-weight:700;line-height:1.2;}
.rx-feature small{color:#7c8b97;font-size:12px;}
@media(max-width:991px){.rx-feature-strip{grid-template-columns:repeat(2,1fr);}}
@media(max-width:479px){.rx-feature-strip{grid-template-columns:1fr;}}

/* ---------- TABS ---------- */
.rx-tabs .nav-tabs{border-bottom:2px solid var(--rx-line)!important;gap:4px;flex-wrap:wrap;}
.rx-pdp .nav-tabs .nav-link{border:none!important;background:transparent!important;color:#6b7c89!important;font-weight:600;font-size:15px;padding:12px 20px!important;border-radius:0!important;position:relative;margin-bottom:-2px;}
.rx-pdp .nav-tabs .nav-link:hover{color:var(--rx-azure)!important;}
.rx-pdp .nav-tabs .nav-link.active{color:var(--rx-navy)!important;}
.rx-pdp .nav-tabs .nav-link.active::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--rx-azure),var(--rx-accent));}
.rx-tabs .tab-content{font-size:15px;color:#48586a;line-height:1.75;padding-top:6px;}

/* specs table */
.rx-pdp .rx-spec-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--rx-line);border-radius:14px;overflow:hidden;font-size:14.5px;margin-top:4px;}
.rx-pdp .rx-spec-table td{padding:13px 18px;border-bottom:1px solid var(--rx-line);vertical-align:top;}
.rx-pdp .rx-spec-table tr:last-child td{border-bottom:none;}
.rx-pdp .rx-spec-table tr:nth-child(even) td{background:#fafcfe;}
.rx-pdp .rx-spec-label{width:46%;color:var(--rx-muted);font-weight:600;}
.rx-pdp .rx-spec-val{color:var(--rx-ink);font-weight:700;}

/* ---------- SIDEBAR ---------- */
.rx-side h4{font-size:16px!important;font-weight:700;color:var(--rx-navy)!important;}
.rx-side .recommended-title{color:var(--rx-navy)!important;}
.rx-side .input-group .form-control{border-radius:12px 0 0 12px;border:1.5px solid #e1eaf1;}
.rx-side .input-group-text{border-radius:0 12px 12px 0;background:var(--rx-azure);color:#fff;border:1.5px solid var(--rx-azure);}
.rx-side .fruite-categorie li{border-bottom:1px solid var(--rx-line);}

/* section titles под описанието */
.rx-pdp #inlineRelatedSection h4,.rx-pdp #recentlyViewedSection h4{color:var(--rx-navy)!important;font-weight:700;}

/* responsive */
@media(max-width:575px){
  .rx-main-frame{padding:16px;border-radius:18px;}
  .rx-buybox{padding:22px 20px;border-radius:18px;}
  .rx-pdp .pd-title{font-size:22px!important;}
  .rx-pdp .pd-price{font-size:25px!important;}
}

/* ============================================================
   v2 — блед фон + повече дълбочина/премиум
   ============================================================ */
/* блед тониран фон (файлът се зарежда само на PDP) */
body{background:#f4f8fc !important;}
.breadcrumb-wrap{background:#f4f8fc;}
.rx-pdp{position:relative;background:#f4f8fc;}
.rx-pdp::before{
  content:"";position:absolute;left:0;right:0;top:0;height:560px;pointer-events:none;z-index:0;
  background:
    radial-gradient(840px 440px at 85% -70px, rgba(0,147,212,.14), transparent 62%),
    radial-gradient(660px 380px at 5% -20px, rgba(21,131,194,.085), transparent 58%);
}
.rx-pdp > .container{position:relative;z-index:1;}

/* галерийна рамка — повече дълбочина */
.rx-main-frame{
  background:radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #ffffff 62%, #fbfdff 100%);
  box-shadow:0 32px 74px -36px rgba(12,62,94,.42), 0 6px 20px -12px rgba(12,62,94,.16);
}
/* buy box — фин градиент + по-богата сянка */
.rx-buybox{
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  box-shadow:0 32px 76px -40px rgba(12,62,94,.42), 0 4px 16px -10px rgba(12,62,94,.14);
}

/* лента предимства — повдигната + hover */
.rx-feature-strip{box-shadow:0 18px 46px -28px rgba(12,62,94,.34);}
.rx-feature{transition:background .2s;}
.rx-feature:hover{background:#fafdff;}

/* табове — съдържание в премиум карта */
.rx-tabs .tab-content{
  background:#fff;border:1px solid #eef2f6;border-radius:16px;padding:24px 26px;
  box-shadow:0 14px 40px -30px rgba(12,62,94,.30);
}
.rx-pdp .rx-tabs .tab-content .rx-spec-table{border:none;border-radius:0;}
.rx-pdp .rx-tabs .tab-content .rx-spec-table td:first-child{padding-left:2px;}

/* sidebar — в чиста карта за консистентност */
.rx-side{
  background:#fff;border:1px solid #eef2f6;border-radius:18px;padding:22px 20px;
  box-shadow:0 14px 40px -30px rgba(12,62,94,.26);
}
@media(min-width:992px){.rx-side{position:sticky;top:104px;}}

/* CTA бутон — фин „shine" при hover */
.rx-pdp .pd-add-btn{position:relative;overflow:hidden;}
.rx-pdp .pd-add-btn::after{
  content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.38), transparent);
  transform:skewX(-20deg);transition:left .6s ease;
}
.rx-pdp .pd-add-btn:hover::after{left:140%;}

/* ============================================================
   v2.1 — секции под описанието: отстояния + премиум заглавия
   ============================================================ */
.rx-pdp #inlineRelatedSection,
.rx-pdp #recentlyViewedSection{ margin-top:48px !important; }
.rx-pdp #bundleSection{ margin-top:40px !important; }

.rx-pdp #inlineRelatedSection > h4,
.rx-pdp #recentlyViewedSection > h4{
  font-size:1.25rem !important; font-weight:700 !important; color:var(--rx-navy) !important;
  margin:0 0 22px !important; padding-bottom:14px; line-height:1.25; position:relative;
  border-bottom:2px solid #e9eef3;
}
.rx-pdp #inlineRelatedSection > h4::after,
.rx-pdp #recentlyViewedSection > h4::after{
  content:""; position:absolute; left:0; bottom:-2px; width:56px; height:2px;
  background:linear-gradient(90deg,var(--rx-azure),var(--rx-accent));
}
/* малко въздух между картите вертикално на мобилен */
@media(max-width:575px){
  .rx-pdp #inlineRelatedProducts.row{ row-gap:18px !important; }
  .rx-pdp #inlineRelatedSection,.rx-pdp #recentlyViewedSection{ margin-top:40px !important; }
}

/* ============================================================
   v2.2 — ключови характеристики в buy box (.pd-keyspecs)
   цветни икони в чипове + стойност/етикет с въздух
   ============================================================ */
.rx-pdp .pd-keyspecs{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:18px 0 20px;
}
.rx-pdp .pd-keyspec{
  display:grid; grid-template-columns:auto 1fr; column-gap:11px; align-items:center;
  background:var(--rx-soft); border:1px solid var(--rx-soft-line); border-radius:13px; padding:11px 13px;
}
.rx-pdp .pd-keyspec > i{
  grid-row:1 / span 2; width:38px; height:38px; border-radius:11px;
  background:linear-gradient(135deg,var(--rx-azure),var(--rx-accent)); color:#fff !important;
  display:flex; align-items:center; justify-content:center; font-size:16px; flex:none;
}
.rx-pdp .pd-keyspec > .v{
  grid-column:2; grid-row:1; font-weight:700; color:var(--rx-navy); font-size:15px; line-height:1.15;
}
.rx-pdp .pd-keyspec > .l{
  grid-column:2; grid-row:2; color:#90a3b3; font-size:10.5px; font-weight:600;
  text-transform:uppercase; letter-spacing:.5px; line-height:1.15; margin-top:3px;
}
/* цвят на чипа според типа характеристика */
.rx-pdp .pd-keyspec > .fa-bolt{ background:linear-gradient(135deg,#22c55e,#16a34a); }          /* енергиен клас - зелено */
.rx-pdp .pd-keyspec > .fa-snowflake{ background:linear-gradient(135deg,#0093D4,#1583C2); }      /* мощност/BTU - студено синьо */
.rx-pdp .pd-keyspec > .fa-vector-square{ background:linear-gradient(135deg,#1583C2,#0C3E5E); }  /* площ - navy */
.rx-pdp .pd-keyspec > .fa-volume-down{ background:linear-gradient(135deg,#06b6d4,#0891b2); }    /* шум - тюркоаз */
@media(max-width:360px){ .rx-pdp .pd-keyspecs{ grid-template-columns:1fr; } }
