/* =========================================================
   WE CARE PHARMACY V21.7 — PRODUCT DETAIL UX
   Bigger colorful product info + zoom gallery + contact choices
   ========================================================= */

/* ---- Product info cards ---- */
.wc204-detail-info{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin:22px 0!important;
}
.wc204-detail-info .wc217-info-card{
  position:relative;
  min-height:82px;
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid #e3edf2!important;
  border-radius:16px!important;
  padding:14px!important;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(31,72,98,.05);
}
.wc217-info-icon{
  width:42px;height:42px;border-radius:13px;
  display:grid;place-items:center;
  font-size:20px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);
}
.wc217-info-card small{
  font-size:11px!important;
  line-height:1.25!important;
  margin:0 0 5px!important;
  color:#6f8391!important;
  font-weight:500!important;
}
.wc217-info-card b{
  display:block;
  font-size:14px!important;
  line-height:1.4!important;
  color:#263f54!important;
  font-weight:600!important;
  overflow-wrap:anywhere;
}
.wc217-info-card.brand{background:linear-gradient(135deg,#f2f8ff,#fbfdff)!important}
.wc217-info-card.brand .wc217-info-icon{background:#e3f1ff;color:#1673bd}
.wc217-info-card.pack{background:linear-gradient(135deg,#effbf9,#fbfffe)!important}
.wc217-info-card.pack .wc217-info-icon{background:#dcf7f0;color:#148b72}
.wc217-info-card.sku{background:linear-gradient(135deg,#f7f3ff,#fdfcff)!important}
.wc217-info-card.sku .wc217-info-icon{background:#eee5ff;color:#7756c6}
.wc217-info-card.barcode{background:linear-gradient(135deg,#fff8ed,#fffdf9)!important}
.wc217-info-card.barcode .wc217-info-icon{background:#fff0d5;color:#bc7819}

/* ---- Product image interaction ---- */
.wc204-detail-main{
  position:relative;
  cursor:zoom-in;
  background:#f7f9fb!important;
}
.wc204-detail-main img{
  transition:transform .22s ease;
}
.wc204-detail-main:hover img{
  transform:scale(1.025);
}
.wc217-gallery-hint{
  position:absolute;
  right:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid rgba(224,234,239,.9);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-radius:999px;
  padding:8px 11px;
  color:#496478;
  font-size:10px;
  font-weight:600;
  box-shadow:0 7px 20px rgba(25,62,84,.08);
  pointer-events:none;
}
.wc217-gallery-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;height:42px;
  border-radius:50%;
  border:1px solid #dce8ee;
  background:rgba(255,255,255,.94);
  color:#174f70;
  display:grid;place-items:center;
  cursor:pointer;
  font-size:22px;
  box-shadow:0 8px 20px rgba(20,66,92,.10);
  z-index:3;
}
.wc217-gallery-arrow:hover{background:#12849d;color:#fff;border-color:#12849d}
.wc217-gallery-arrow.prev{left:12px}
.wc217-gallery-arrow.next{right:12px}
.wc217-image-count{
  position:absolute;
  top:14px;right:14px;
  background:rgba(17,57,84,.82);
  color:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-size:10px;
  font-weight:600;
  pointer-events:none;
}

/* ---- Better main actions ---- */
.wc204-detail-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:11px!important;
}
.wc204-detail-actions button{
  min-height:50px;
  font-size:13px!important;
  font-weight:600!important;
  border-radius:14px!important;
}
.wc204-detail-buy{
  background:linear-gradient(135deg,#0f7897,#159eae)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(15,120,151,.15);
}
.wc204-detail-ask{
  background:linear-gradient(135deg,#eff8ff,#edfdf8)!important;
  color:#1a6581!important;
  border:1px solid #d5e9ef!important;
}

/* ---- Contact choice modal ---- */
.wc217-contact-overlay{
  position:fixed;inset:0;z-index:4000;
  display:none;
  align-items:center;justify-content:center;
  padding:20px;
  background:rgba(7,26,39,.58);
  backdrop-filter:blur(7px);
}
.wc217-contact-overlay.show{display:flex}
.wc217-contact-modal{
  width:min(560px,96vw);
  background:#fff;
  border-radius:24px;
  box-shadow:0 30px 100px rgba(0,0,0,.28);
  overflow:hidden;
}
.wc217-contact-head{
  padding:24px 24px 18px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  border-bottom:1px solid #eaf0f3;
}
.wc217-contact-head h3{
  margin:0 0 4px;
  color:#173e5d!important;
  font-size:20px!important;
  font-weight:700!important;
}
.wc217-contact-head p{
  margin:0;color:#738796;font-size:12px;line-height:1.6;
}
.wc217-contact-close{
  flex:0 0 auto;
  width:40px;height:40px;border-radius:12px;
  border:1px solid #dde8ed;background:#fff;color:#38566b;
  cursor:pointer;font-size:20px;
}
.wc217-contact-body{padding:20px 24px 24px}
.wc217-contact-product{
  display:flex;align-items:center;gap:11px;
  margin-bottom:16px;
  padding:11px 12px;
  background:#f7fafc;border:1px solid #e7eef2;border-radius:14px;
}
.wc217-contact-product img{
  width:50px;height:50px;object-fit:contain;background:#fff;border-radius:10px;
}
.wc217-contact-product span{
  color:#536b7c;font-size:11px;
}
.wc217-contact-product b{
  display:block;color:#24445f;font-size:13px;margin-top:2px;
}
.wc217-contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.wc217-contact-card{
  min-height:148px;
  border-radius:20px;
  padding:20px;
  text-decoration:none!important;
  color:#fff!important;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
  border:0;
  cursor:pointer;
  transition:.2s ease;
}
.wc217-contact-card:hover{transform:translateY(-3px)}
.wc217-contact-card:after{
  content:"";
  position:absolute;
  width:110px;height:110px;border-radius:50%;
  right:-28px;top:-35px;
  background:rgba(255,255,255,.13);
}
.wc217-contact-card.line{background:linear-gradient(135deg,#04b94e,#06c755)}
.wc217-contact-card.whatsapp{background:linear-gradient(135deg,#159d57,#25d366)}
.wc217-contact-card.disabled{
  filter:grayscale(.65);
  opacity:.55;
  cursor:not-allowed;
}
.wc217-contact-icon{
  position:relative;z-index:2;
  width:52px;height:52px;border-radius:16px;
  display:grid;place-items:center;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.13);
}
.wc217-contact-icon svg{width:34px;height:34px;display:block}
.wc217-contact-card strong{
  position:relative;z-index:2;
  color:#fff!important;
  font-size:18px!important;
  font-weight:700!important;
}
.wc217-contact-card small{
  position:relative;z-index:2;
  color:rgba(255,255,255,.9)!important;
  font-size:10.5px!important;
  line-height:1.5;
}
.wc217-contact-note{
  margin:14px 0 0;
  padding:10px 12px;
  border-radius:12px;
  background:#f5f9fb;
  color:#748795;
  font-size:10px;
  line-height:1.55;
}

/* ---- Full-screen image viewer ---- */
.wc217-lightbox{
  position:fixed;inset:0;z-index:5000;
  display:none;
  background:rgba(3,16,25,.94);
  color:#fff;
  user-select:none;
  touch-action:none;
}
.wc217-lightbox.show{display:block}
.wc217-lightbox-stage{
  position:absolute;inset:70px 60px 90px;
  overflow:hidden;
  display:grid;place-items:center;
  cursor:grab;
}
.wc217-lightbox-stage.dragging{cursor:grabbing}
.wc217-lightbox-img{
  max-width:88vw;
  max-height:78vh;
  object-fit:contain;
  transform-origin:center center;
  will-change:transform;
  pointer-events:none;
}
.wc217-lightbox-top{
  position:absolute;left:0;right:0;top:0;
  height:64px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:0 18px;
  background:linear-gradient(180deg,rgba(0,0,0,.45),transparent);
}
.wc217-lightbox-title{font-size:13px;font-weight:500;color:#fff}
.wc217-lightbox-close{
  width:42px;height:42px;border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);color:#fff;
  cursor:pointer;font-size:22px;
}
.wc217-lightbox-controls{
  position:absolute;left:50%;bottom:22px;transform:translateX(-50%);
  display:flex;align-items:center;gap:8px;
  padding:8px;
  border-radius:16px;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(12px);
}
.wc217-lightbox-controls button{
  min-width:42px;height:40px;
  padding:0 12px;
  border:0;border-radius:11px;
  background:rgba(255,255,255,.11);
  color:#fff;cursor:pointer;
  font-size:16px;font-weight:600;
}
.wc217-lightbox-controls button:hover{background:rgba(255,255,255,.22)}
.wc217-lightbox-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:50px;height:50px;border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);color:#fff;
  display:grid;place-items:center;cursor:pointer;font-size:28px;
}
.wc217-lightbox-nav.prev{left:16px}
.wc217-lightbox-nav.next{right:16px}
.wc217-lightbox-help{
  position:absolute;right:18px;bottom:28px;
  color:rgba(255,255,255,.65);
  font-size:10px;
}

/* ---- Footer social icons: larger and vivid ---- */
.v16-socials{gap:10px!important}
.v16-social{
  width:48px!important;height:48px!important;
  border-radius:15px!important;
  font-size:12px!important;
  box-shadow:0 9px 22px rgba(0,0,0,.16)!important;
}
.v16-social.line{background:#06c755!important}
.v16-social.whatsapp{background:#25d366!important}

@media(max-width:720px){
  .wc204-detail-info{grid-template-columns:1fr 1fr!important}
  .wc217-info-card{grid-template-columns:36px 1fr!important;padding:11px!important;min-height:70px!important}
  .wc217-info-icon{width:36px;height:36px;border-radius:11px;font-size:17px}
  .wc217-info-card small{font-size:10px!important}
  .wc217-info-card b{font-size:12px!important}
  .wc204-detail-actions{grid-template-columns:1fr!important}
  .wc217-contact-grid{grid-template-columns:1fr!important}
  .wc217-contact-card{min-height:118px}
  .wc217-lightbox-stage{inset:64px 12px 92px}
  .wc217-lightbox-nav{width:42px;height:42px;font-size:23px}
  .wc217-lightbox-nav.prev{left:8px}.wc217-lightbox-nav.next{right:8px}
  .wc217-lightbox-help{display:none}
  .wc217-gallery-hint{font-size:9px;padding:7px 9px}
}
