/**
 * esim-single.css
 * --------------------------------------------------------------------------
 * Stiluri SUPLIMENTARE pentru pagina single-product eSIM.
 *
 * Acest fișier conține DOAR clasele NOI introduse de pagina de produs.
 * Toate componentele de bază (.nav, .selector, .package-pill, .pillar,
 * .step, .feature, .visual-stack, .faq-item, .sim-card, .cta-band, footer
 * etc.) sunt deja definite în CSS-ul temei (folosite pe homepage și pe
 * pagini), deci NU se redeclară aici — pagina le moștenește.
 *
 * Locație: yourtheme/assets/esim-single.css
 * Înrolat condiționat din functions.php DOAR pe single-product cu
 * categoria 'esim'.
 *
 * Folosește variabilele CSS deja existente în temă:
 *   --primary, --primary-deep, --accent, --accent-2, --accent-deep,
 *   --accent-glow, --bg-soft, --border-light, --text-on-light,
 *   --text-on-light-muted, --body, --max
 * --------------------------------------------------------------------------
 */


/* ============================================================
   PRODUCT HERO – split layout (info + selector) pe fundal navy
   ============================================================ */
.product-hero {
  position: relative;
  padding: 50px 24px 70px;
  background: var(--primary);
  color: white;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 90% 30%, rgba(26,140,255,0.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(26,140,255,0.12), transparent 60%);
  pointer-events: none;
}
.product-hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

/* Breadcrumb navigation
   ------------------------------------------------------------ */
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.crumbs a { cursor: pointer; transition: color 0.2s; }
.crumbs a:hover { color: white; }
.crumbs .sep { opacity: 0.4; }
.crumbs .current { color: var(--accent-2); }

/* Two-column layout (info | selector card)
   ------------------------------------------------------------ */
.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
/* Forțează culoare albă + Inter pe textele product-hero —
   Blocksy aplică color: var(--theme-text-color) și propriul font pe h1
   cu specificitate care bate moștenirea de la .product-hero */
.product-hero,
.product-hero h1,
.product-hero .product-info h1,
.product-info h1,
.product-hero p,
.product-hero .product-lede,
.product-hero span,
.product-hero .country-meta,
.product-hero .country-meta .name,
.product-hero .country-meta .iso {
  color: white !important;
}
.product-hero .product-lede {
  color: rgba(255,255,255,0.8) !important;
}
.product-hero h1 .accent,
.product-info h1 .accent {
  color: var(--accent-2) !important;
}

.product-info h1 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(36px, 5vw, 60px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
  margin: 14px 0 18px !important;
}
.product-info h1 .accent { color: var(--accent-2); }
.product-lede {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 400 !important;
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Country header (large flag + country name + ISO code)
   ------------------------------------------------------------ */
.country-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.country-flag-big {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.08),
    0 8px 22px -8px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
/* Variantele .flag-* (.flag-tr, .flag-eu etc.) sunt definite în tema globală.
   .country-flag-big preia aceeași clasă: <div class="country-flag-big flag-tr"></div> */

.country-meta .iso {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.country-meta .name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* Trust row (instant activation, hotspot, etc.)
   ------------------------------------------------------------ */
.product-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}
.product-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-trust span::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 700;
}

/* Spec strip (3-cell pricing + activation + validity)
   ------------------------------------------------------------ */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.spec-cell {
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.spec-cell:last-child { border-right: none; }
.spec-cell .lbl {
  font-size: 11px;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.55) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}
.spec-cell .val {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  margin-top: 6px;
  letter-spacing: -0.01em;
  color: white !important;
}
.spec-cell .val .accent {
  color: var(--accent-2) !important;
}


/* ============================================================
   SELECTOR – extensii (clasa .selector e definită în temă)
   ============================================================ */

/* Selectorul de pe pagina produs e în interiorul .product-hero (navy),
   deci textele din interior moștenesc color: white de la Blocksy.
   Forțează culorile design-system-ului. */
.product-hero .selector,
.product-hero .selector *,
.product-hero .selector h1,
.product-hero .selector h2,
.product-hero .selector h3,
.product-hero .selector h4,
.product-hero .selector p,
.product-hero .selector span,
.product-hero .selector div,
.product-hero .selector input,
.product-hero .selector label,
.product-hero .selector a {
  color: var(--primary);
}
.product-hero .selector .selector-head .title { color: var(--primary) !important; }
.product-hero .selector .selector-head .status { color: var(--accent) !important; background: transparent; }
.product-hero .selector .selector-label,
.product-hero .selector .selector-label span:not(.num) { color: var(--text-on-light-muted) !important; }
.product-hero .selector .selector-label .num { color: white !important; }
.product-hero .selector .selector-foot { color: var(--text-on-light-muted) !important; }
.product-hero .selector .package-pill .days { color: var(--text-on-light-muted) !important; }
.product-hero .selector .package-pill .data { color: var(--primary) !important; }
.product-hero .selector .package-pill .price { color: var(--accent) !important; }
.product-hero .selector .selector-cta,
.product-hero .selector .selector-cta span { color: white !important; }
.product-hero .selector .total-line { color: var(--text-on-light-muted) !important; }
.product-hero .selector .total-val,
.product-hero .selector .total-val span,
.product-hero .selector .total-val #totalPrice,
.product-hero .selector div.total-val {
    color: var(--primary) !important;
}
.product-hero .selector .qty button,
.product-hero .selector .qty input { color: var(--primary) !important; }
.product-hero .selector .pay-icons span { color: var(--text-on-light-muted) !important; }

/* Country locked-in card (înlocuiește dropdown-ul de țări de pe homepage) */
.country-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
}
.country-locked .flag-mini {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
/* .flag-mini moștenește pattern-urile .flag-* din temă pentru fundal */
.product-hero .country-locked .name,
.country-locked .name {
  font-weight: 700 !important;
  color: var(--primary) !important;
  font-size: 15px;
}
.product-hero .country-locked .check,
.country-locked .check {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent) !important;
  font-weight: 600;
}

/* Package pill — extensie pentru badge "Popular"
   (.package-pill există deja în temă, doar adăugăm .badge) */
.package-pill .badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* În tema de bază .package-grid este pe 3 coloane (homepage). 
   Pe pagina de produs avem 4 pachete, deci suprascriem la 2 coloane. */
.product-hero .package-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Quantity selector
   ------------------------------------------------------------ */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-soft);
  overflow: hidden;
}
.qty button {
  width: 38px;
  height: 42px;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.qty button:hover {
  background: rgba(26,140,255,0.08);
  color: var(--accent);
}
.qty input[type="number"],
.qty input[type="text"] {
  width: 44px;
  height: 42px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--body);
  font-weight: 800;
  color: var(--primary);
  font-size: 15px;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty input:focus { outline: none; }

.qty-row .total-line {
  font-size: 11px;
  color: var(--text-on-light-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.qty-row .total-val {
  font-weight: 800;
  color: var(--primary);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Payment icons strip
   ------------------------------------------------------------ */
.pay-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.pay-icons span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  background: var(--bg-soft);
  border-radius: 4px;
}


/* ============================================================
   COVERAGE CARD – glob + lista de operatori suprapuse
   (folosit în interiorul .feature-visual.dark, deja existent)
   ============================================================ */
.coverage-card {
  position: relative;
  padding: 44px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Lista de operatori (peste glob) */
.ops-list {
  position: relative;
  z-index: 2;
  background: rgba(8,26,51,0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 22px 24px;
}
.ops-list h5 {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}
.op-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.op-row:last-child { border-bottom: none; }
.op-row b {
  font-weight: 700;
  color: white;
}
.op-speed {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.op-speed::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}


/* ============================================================
   VISUAL ROW – extensie pentru afișarea pachetelor cu meta
   (.visual-stack și .visual-row există deja, adăugăm doar
   sub-elementele specifice paginii de produs)
   ============================================================ */
.visual-row .pkg-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.visual-row .meta-days {
  font-size: 11px;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.visual-row .meta-data {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}


/* ============================================================
   COMPATIBILITY – grid cu carduri iPhone / Android
   ============================================================ */
.compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compat-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 30px;
}
.compat-card h4 {
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compat-card h4::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.compat-card p {
  color: var(--text-on-light-muted);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.65;
}
.device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.device-chips span {
  background: var(--bg-soft);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-light);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .product-hero { padding: 40px 20px 50px; }
  .product-split { grid-template-columns: 1fr; gap: 40px; }
  .compat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .compat-grid { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .spec-cell:last-child { border-bottom: none; }
  .country-header { gap: 14px; }
  .country-flag-big { width: 48px; height: 48px; }
}


/* ====================================================================
 * RECHARGE BADGE — afișat sub breadcrumbs pe pagina produsului
 * Hero-ul are fundal navy întunecat, deci text trebuie deschis
 * ==================================================================== */
.datasim-recharge-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin: 0 0 22px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.datasim-recharge-badge-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.datasim-recharge-badge-text {
    flex: 1 1 auto;
    min-width: 0;
}
.datasim-recharge-badge-text strong {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.datasim-recharge-badge-text span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}
.datasim-recharge-badge-text code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary);
    border: none;
    font-weight: 600;
}
.datasim-recharge-badge-clear {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.15s;
    font-weight: 400;
}
.datasim-recharge-badge-clear:hover {
    background: rgba(220, 38, 38, 0.2);
    color: white;
}

/* Mobile — badge mai compact */
@media (max-width: 640px) {
    .datasim-recharge-badge {
        padding: 12px 14px;
        gap: 10px;
        margin-bottom: 18px;
    }
    .datasim-recharge-badge-icon {
        width: 38px;
        height: 38px;
    }
    .datasim-recharge-badge-text strong {
        font-size: 13px;
    }
    .datasim-recharge-badge-text span {
        font-size: 12px;
    }
}

/* Cart/checkout — afișare ICCID atașat la item */
.woocommerce-cart-form .product-name dl.variation dt,
.woocommerce-checkout-review-order-table dl.variation dt,
.cart_item dl dt {
    font-weight: 600 !important;
}
.cart_item dl.variation dd code,
.woocommerce-cart-form code {
    background: rgba(26, 140, 255, 0.06) !important;
    color: var(--accent) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
}
