/* =====================================================
   TIIDON AD PAGE — BALANCED FONTS + PRO BUTTONS
   (matches the Profile page look)
===================================================== */
:root{
  --bg:#eaf2ff;
  --card:#ffffff;

  --text:#1f2937;
  --muted:#6b7280;
  --hint:#94a3b8;

  --line:rgba(15,23,42,.08);
  --line2:rgba(15,23,42,.05);

  --brand:#0b5ea8;

  --r12:12px;
  --r14:14px;
  --r16:16px;
  --r20:20px;

  --shadow-sm: 0 6px 14px rgba(15,23,42,.05);
  --shadow: 0 10px 24px rgba(15,23,42,.08);

  --btn-shadow: 0 10px 22px rgba(2,6,23,.12), 0 2px 6px rgba(2,6,23,.06);
  --btn-shadow-hover: 0 18px 36px rgba(2,6,23,.18), 0 6px 14px rgba(2,6,23,.10);
}

html, body{
  background:var(--bg) !important;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ? IMPORTANT FIX: global .content is flex on your site, break it only for this page */
.content.adp-wrap{ display:block !important; width:100%; }
.adp-wrap{ padding: 12px 0 34px; }

/* Breadcrumb */
.adp-bc{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin: 0 0 14px;
  padding: 10px 14px;
  background:#fff;
  border: 1px solid var(--line2);
  border-radius: var(--r16);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.adp-bc a{ color: var(--text); text-decoration:none; }
.adp-bc a:hover{ text-decoration:underline; }

/* Layout */
.adp-grid{
  display:grid;
  grid-template-columns: 320px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items:start;
}
@media (max-width: 1200px){
  .adp-grid{ grid-template-columns: 1fr 360px; }
  .adp-left{ display:none; }
}
@media (max-width: 980px){
  .adp-grid{ grid-template-columns: 1fr; }
  .adp-right{ position: static; }
}

/* Cards */
.adp-card{
  background:var(--card);
  border:1px solid var(--line2);
  border-radius:var(--r20);
  box-shadow:0 1px 0 rgba(15,23,42,.03);
  overflow:hidden;
}
.adp-pad{ padding:16px; }

/* Left rail */
.adp-left{ position: sticky; top: 14px; align-self:start; }
.adp-rail-title{
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--text);
}
.adp-adslot{ width:100%; display:flex; justify-content:center; }
.adp-adplaceholder{
  height: 250px; width: 300px; max-width: 100%;
  border-radius: var(--r16);
  border: 1px dashed rgba(15,23,42,.18);
  background: rgba(241,245,249,.7);
  display:flex; align-items:center; justify-content:center;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-align:center;
  padding: 10px;
}
.adp-rail-item{
  display:flex; gap:10px; align-items:center;
  padding: 10px;
  border-radius: var(--r16);
  border: 1px solid rgba(15,23,42,.08);
  text-decoration:none;
  color: inherit;
  background:#fff;
  margin-top: 10px;
  transition: border-color .12s ease, transform .12s ease;
}
.adp-rail-item:hover{ border-color: rgba(15,23,42,.18); transform: translateY(-1px); }
.adp-rail-item img{
  width:54px; height:54px;
  border-radius: 12px;
  object-fit: cover;
  background:#f1f5f9;
  border: 1px solid rgba(15,23,42,.08);
}
.adp-rail-item-title{ font-weight: 700; font-size: 12px; line-height: 1.15; color: var(--text); }
.adp-rail-item-sub{ font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Gallery */
.adp-galleryTop{ position:relative; border-bottom:1px solid var(--line2); }
.adp-galleryTop img{
  width:100%;
  height: 420px;
  object-fit: cover;
  display:block;
  background:#f1f5f9;
}
@media (max-width: 980px){ .adp-galleryTop img{ height: 320px; } }

/* Verified chip */
.adp-vchip{
  position:absolute;
  top:12px; left:12px;
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.adp-vchip img{ width:16px; height:16px; object-fit:contain; }

.adp-thumbs{
  display:flex; gap:10px;
  padding: 12px;
  overflow:auto;
}
.adp-thumb{
  position:relative;
  flex: 0 0 auto;
  width: 92px; height: 64px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  background:#f1f5f9;
  cursor:pointer;
  opacity: .92;
  transition: opacity .12s ease, transform .12s ease;
}
.adp-thumb:hover{ transform: translateY(-1px); opacity: 1; }
.adp-thumb.active{ outline: 3px solid rgba(11,94,168,.20); opacity: 1; }
.adp-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Clickable main image */
#adpMainImage{ cursor: zoom-in; }

/* Title/meta */
.adp-title{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0 10px;
  color: var(--text);
}
.adp-meta{
  display:flex; flex-wrap:wrap; gap:10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.adp-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}
.adp-badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px; }
.adp-badge{
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
  color: var(--text);
}
.adp-desc{
  color: rgba(31,41,55,.92);
  line-height: 1.7;
  font-size: 14px;
  font-weight: 500;
  white-space: pre-line;
}

/* Right sticky */
.adp-right{ position: sticky; top: 14px; align-self:start; }

/* =========================
   ? PRO BUTTONS (REAL LOOK)
========================= */
.adp-btn,
.adp-miniBtn{
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Main buttons */
.adp-btn{
  width:100%;
  border:1px solid rgba(15,23,42,.14);
  border-radius: var(--r16);
  padding: 13px 14px;
  font-weight: 700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  box-shadow: var(--btn-shadow);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, border-color .14s ease;
}

/* Subtle glossy highlight */
.adp-btn::before{
  content:"";
  position:absolute;
  inset:-60%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.65), rgba(255,255,255,0) 55%);
  opacity:.45;
  pointer-events:none;
}

.adp-btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  border-color: rgba(15,23,42,.18);
}
.adp-btn:active{
  transform: translateY(0);
  box-shadow: var(--btn-shadow);
}
.adp-btn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 4px rgba(11, 94, 168, .18),
    var(--btn-shadow-hover);
}

/* Button icons */
.adp-ico{
  width:20px;
  height:20px;
  object-fit:contain;
  display:inline-block;
  transition: transform .14s ease;
}
.adp-btn:hover .adp-ico{ transform: translateY(-1px); }

/* Variants */
.adp-btn-green{
  background: linear-gradient(180deg, rgba(22,163,74,.16), rgba(22,163,74,.08));
  color:#166534;
}
.adp-btn-blue{
  background: linear-gradient(180deg, rgba(11,94,168,.16), rgba(11,94,168,.08));
  color: var(--brand);
}
.adp-btn-red{
  background: linear-gradient(180deg, rgba(239,68,68,.16), rgba(239,68,68,.08));
  color:#991b1b;
}
.adp-btn-soft{
  background: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.04));
}

/* Mini buttons */
.adp-shareRow{ display:flex; gap:10px; margin-top:10px; }
.adp-miniBtn{
  flex:1;
  border-radius: var(--r14);
  border: 1px solid rgba(15,23,42,.14);
  background:#fff;
  padding: 11px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor:pointer;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(2,6,23,.10), 0 2px 6px rgba(2,6,23,.06);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.adp-miniBtn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2,6,23,.16), 0 6px 14px rgba(2,6,23,.10);
  border-color: rgba(15,23,42,.18);
}
.adp-miniBtn:active{ transform: translateY(0); }

/* Toast */
.adp-toast{
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(22,163,74,.95);
  display:none;
}

/* Seller card */
.adp-sCardTopRow{ display:flex; gap:12px; align-items:center; }
.adp-sLogo{
  width:44px; height:44px;
  border-radius:14px;
  overflow:hidden;
  background:#f1f5f9;
  border:1px solid rgba(15,23,42,.10);
  flex:0 0 auto;
}
.adp-sLogo img{ width:100%; height:100%; object-fit:cover; display:block; }

.adp-sTitle{
  font-weight:700;
  letter-spacing:-0.02em;
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
}
.adp-sBadgesLine{
  margin-top:4px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.adp-sBadgeInline{ display:inline-flex; gap:6px; align-items:center; }
.adp-sBadgeInline img{ width:16px; height:16px; object-fit:contain; }

.adp-sMidRow{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.adp-sSectionTitle{ font-weight:700; color: var(--text); }
.adp-sStarsRow{ margin-top:6px; display:flex; gap:10px; align-items:center; }
.adp-sStarsText{ color: var(--muted); font-weight:600; font-size: 12px; }

.adp-sMember{ text-align:right; color: var(--muted); font-weight:600; font-size: 12px; }
.adp-sMember strong{ display:block; margin-top:2px; color: var(--text); font-weight:700; }

.adp-sProfileBtn{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  border-radius: var(--r16);
  border: 1px solid rgba(15,23,42,.14);
  background:#fff;
  padding: 12px 12px;
  font-weight:700;
  text-decoration:none;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(2,6,23,.08), 0 2px 6px rgba(2,6,23,.05);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.adp-sProfileBtn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2,6,23,.14), 0 6px 14px rgba(2,6,23,.08);
  border-color: rgba(15,23,42,.18);
}

/* Stars */
.adp-star{
  display:inline-block;
  width:14px; height:14px;
  background:#f59e0b;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.adp-dim{ opacity:.25; }

/* Similar grid */
.adp-simGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){ .adp-simGrid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .adp-simGrid{ grid-template-columns: 1fr; } }

.adp-simItem img{ width:100%; height: 150px; object-fit:cover; display:block; background:#f1f5f9; }
.adp-simBody{ padding: 12px; }
.adp-simPrice{ font-weight:700; color: var(--text); }
.adp-simPrice small{ color: var(--muted); font-weight:600; margin-right: 6px; }
.adp-simTitle{
  margin: 6px 0 0;
  font-weight:700;
  font-size: 13px;
  line-height:1.2;
  color: var(--text);
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 34px;
}
.adp-simSub{ margin-top: 6px; color: var(--muted); font-weight:600; font-size: 12px; }
.adp-simLink{ text-decoration:none; color:inherit; display:block; }

/* Feedback */
.adp-fbItem{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--r16);
  padding: 12px;
  background:#fff;
}
.adp-fbTop{ display:flex; gap:10px; align-items:center; }
.adp-fbAvatar{
  width:38px;height:38px;border-radius:12px;overflow:hidden;background:#f1f5f9;border:1px solid rgba(15,23,42,.10);
  flex:0 0 auto;
}
.adp-fbAvatar img{ width:100%;height:100%;object-fit:cover;display:block; }
.adp-fbName{ font-weight:700; font-size:13px; letter-spacing:-0.01em; color: var(--text); }
.adp-fbDate{ color:var(--muted); font-weight:600; font-size:12px; margin-top:2px; }
.adp-fbComment{ margin-top:10px; color:rgba(31,41,55,.92); font-weight:500; font-size:13px; line-height:1.55; white-space:pre-line; }

/* Lightbox */
.adp-lightbox{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.72);
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.adp-lightbox.show{ display:flex; }
.adp-lbPanel{
  width:min(980px, 100%);
  background:#fff;
  border-radius: var(--r20);
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 30px 80px rgba(2,6,23,.35);
  overflow:hidden;
}
.adp-lbTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(15,23,42,.10);
  font-weight:700;
  color: var(--text);
}
.adp-lbClose{
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.06);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:700;
  color: var(--text);
}
.adp-lbStage{ position:relative; background:#0b1220; }
.adp-lbStage img{
  width:100%;
  height: 520px;
  object-fit:contain;
  display:block;
  background:#0b1220;
}
@media (max-width: 700px){ .adp-lbStage img{ height: 360px; } }

.adp-lbNav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.12);
  color:#fff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.adp-lbPrev{ left:12px; }
.adp-lbNext{ right:12px; }

.adp-lbThumbs{
  display:flex;
  gap:10px;
  padding:12px;
  overflow:auto;
  border-top:1px solid rgba(15,23,42,.10);
  background:#fff;
}
.adp-lbThumb{
  flex:0 0 auto;
  width:92px;
  height:64px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background:#f1f5f9;
  cursor:pointer;
  opacity:.85;
}
.adp-lbThumb.active{ outline: 3px solid rgba(11,94,168,.20); opacity:1; }
.adp-lbThumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Modal */
.adp-modal{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.55);
  z-index: 9998;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.adp-modal.show{ display:flex; }

.adp-modalCard{
  width:min(520px, 100%);
  background:#fff;
  border-radius: var(--r20);
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 30px 80px rgba(2,6,23,.25);
  overflow:hidden;
}
.adp-modalHead{
  padding:12px 14px;
  border-bottom:1px solid rgba(15,23,42,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:700;
  color:var(--text);
}
.adp-modalBody{ padding:14px; }

.adp-modalClose{
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.06);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:700;
  color: var(--text);
}

/* Inputs */
.adp-input{
  width:100%;
  border:1px solid rgba(15,23,42,.12);
  border-radius:var(--r16);
  padding:12px 12px;
  font-weight:600;
  outline:none;
}
.adp-input::placeholder{ color: var(--hint); }
.adp-input:focus{
  border-color: rgba(11,94,168,.55);
  box-shadow: 0 0 0 4px rgba(11,94,168,.14);
}

/* Modal actions */
.adp-modalActions{ display:flex; gap:10px; margin-top:12px; }
.adp-btnSolid{
  flex:1;
  border:1px solid rgba(15,23,42,.12);
  border-radius:var(--r16);
  padding:12px 12px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow: 0 8px 18px rgba(2,6,23,.10), 0 2px 6px rgba(2,6,23,.06);
  transition: transform .14s ease, box-shadow .14s ease;
}
.adp-btnSolid:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(2,6,23,.16), 0 6px 14px rgba(2,6,23,.10); }
.adp-btnSolid:active{ transform: translateY(0); }

.adp-btnPrimary{
  background: linear-gradient(180deg, rgba(11,94,168,.16), rgba(11,94,168,.08));
  color: var(--brand);
}
.adp-btnGhost{
  background:#fff;
  color: var(--text);
}

.adp-helpText{ color:var(--muted); font-weight:500; font-size:13px; line-height:1.5; margin-top:10px; }

/* =====================================================
   ? CLICK FIX: ensure "View all (xx)" is actually clickable
   (prevents invisible overlays / sticky panels from blocking taps)
===================================================== */

/* create a safe stacking context on main/center content */
.adp-main,
.adp-card{
  position: relative;
  z-index: 2;
}

/* keep grid above anything odd */
.adp-grid{
  position: relative;
  z-index: 2;
}

/* the actual feedback link should be top-most */
.adp-miniBtn{
  position: relative;
  z-index: 50;
  pointer-events: auto !important;
}

/* if inner elements block clicks, disable pointer events for them */
.adp-miniBtn *{
  pointer-events: none;
}

/* if a sticky/right panel overlaps, keep it behind center */
.adp-right{
  z-index: 1;
}

/* =========================================================
   ? ECOMMERCE CTA — PROFESSIONAL HIERARCHY
   Buy now = green primary
   Add to cart = neutral secondary
   (Use classes: .adp-btn-ecom-primary / .adp-btn-ecom-secondary)
========================================================= */

.adp-ecomCard .adp-pad{
  background:#fff;
}

/* Primary CTA: Buy now (Green) */
.adp-btn-ecom-primary{
  background: #16a34a;             /* emerald */
  border: 1px solid #15803d;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(22,163,74,.18), 0 2px 6px rgba(2,6,23,.06);
}

.adp-btn-ecom-primary::before{
  opacity: .28; /* keep glossy highlight subtle on green */
}

.adp-btn-ecom-primary:hover{
  background:#15803d;
  border-color:#166534;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(22,163,74,.22), 0 6px 14px rgba(2,6,23,.10);
}

.adp-btn-ecom-primary:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(22,163,74,.18), 0 2px 6px rgba(2,6,23,.06);
}

/* Make icons readable on green */
.adp-btn-ecom-primary .adp-ico{
  filter: brightness(0) invert(1);
}

/* Secondary CTA: Add to cart (Neutral) */
.adp-btn-ecom-secondary{
  background:#fff;
  border:1px solid rgba(15,23,42,.14);
  color: rgba(15,23,42,.92);
}

.adp-btn-ecom-secondary:hover{
  background: rgba(15,23,42,.03);
  border-color: rgba(15,23,42,.20);
}

/* Optional: stock status helpers (if you use these classes) */
.adp-ecom-stock{
  font-weight:800;
  font-size:12px;
}
.adp-ecom-stock--in{ color: rgba(34,197,94,.95); }
.adp-ecom-stock--out{ color: rgba(239,68,68,.95); }
