/**
 * eSIM Product Page Styles
 * Extracted from esim-product-page.html design mockup
 */

/* ===== LAYOUT ===== */
.esim-product-page.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== TOP CARD: Image + Selectors ===== */
.esim-product-page .top-card {
  background: #f0f2f8;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
}
@media (max-width: 560px) {
  .esim-product-page .top-card { grid-template-columns: 1fr; }
}

/* Left: product image */
.esim-product-page .product-image-col {
  margin-right: 5px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  gap: 16px;
  background: white;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.esim-product-page .esim-icon-box {
  width: 120px; height: 120px;
  background: linear-gradient(135deg, #4f6ef7, #6b8afb);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
}
.esim-product-page .esim-icon-box svg { color: white; }
.esim-product-page .product-title { font-size: 18px; font-weight: 700; text-align: center; color: #111; }
.esim-product-page .product-subtitle { font-size: 13px; color: #888; text-align: center; }

/* Right: selectors */
.esim-product-page .selectors-col {
  background: white;
  padding: 20px;
  display: flex; flex-direction: column; gap: 20px;
  background: white; border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.esim-product-page .section-label {
  font-size: 13px; font-weight: 600; color: #111;
  margin-bottom: 10px;
}

/* Duration grid */
.esim-product-page .duration-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.esim-product-page .dur-btn {
  border: 1.5px solid #e0e2e8;
  border-radius: 8px;
  padding: 6px 2px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 150ms;
  font-family: inherit;
}
.esim-product-page .dur-btn .dur-num { font-size: 16px; font-weight: 700; color: #111; display: block; }
.esim-product-page .dur-btn .dur-label { font-size: 10px; color: #999; display: block; }
.esim-product-page .dur-btn:hover { border-color: #4f6ef7; }
.esim-product-page .dur-btn.selected {
  border-color: #4f6ef7;
  background: #4f6ef7;
}
.esim-product-page .dur-btn.selected .dur-num,
.esim-product-page .dur-btn.selected .dur-label { color: white; }

/* Data Amount rows */
.esim-product-page .data-list { display: flex; flex-direction: column; gap: 6px; }
.esim-product-page .data-row {
  border: 1.5px solid #e0e2e8;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; background: white;
  font-family: inherit; width: 100%;
  transition: all 150ms;
}
.esim-product-page .data-row:hover { border-color: #4f6ef7; }
.esim-product-page .data-row.selected { border-color: #4f6ef7; background: #f0f4ff; }
.esim-product-page .data-row-left .data-name { font-size: 13px; font-weight: 600; color: #111; }
.esim-product-page .data-row-left .data-desc { font-size: 11px; color: #888; }
.esim-product-page .data-row-price { font-size: 14px; font-weight: 700; color: #111; margin-left: 12px; }

/* Total Price box */
.esim-product-page .total-price-box {
  background: linear-gradient(135deg, #4f6ef7, #6b4fde);
  border-radius: 12px;
  padding: 16px;
  color: white;
}
.esim-product-page .total-label { font-size: 12px; opacity: 0.8; margin-bottom: 2px; }
.esim-product-page .total-amount { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.esim-product-page .total-details { font-size: 12px; opacity: 0.85; margin-bottom: 12px; }
.esim-product-page .btn-add-cart {
  width: 100%;
  background: white;
  color: #4f6ef7;
  border: none; border-radius: 8px;
  padding: 12px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 150ms;
}
.esim-product-page .btn-add-cart:hover { opacity: 0.9; }

/* ===== SECTIONS BELOW ===== */
.esim-product-page .section-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.esim-product-page .section-title {
  font-size: 16px; font-weight: 700; color: #111;
  margin-bottom: 16px;
}

/* What's Included */
.esim-product-page .included-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 480px) { .esim-product-page .included-grid { grid-template-columns: 1fr; } }

.esim-product-page .included-item {
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 12px;
  display: flex; gap: 10px; align-items: flex-start;
}
.esim-product-page .inc-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}
.esim-product-page .inc-icon.green { background: #22c55e; color: white; }
.esim-product-page .inc-icon.blue  { background: #3b82f6; color: white; }
.esim-product-page .inc-icon.red   { background: #ef4444; color: white; }
.esim-product-page .inc-icon.purple { background: #8b5cf6; color: white; }
.esim-product-page .inc-title { font-size: 13px; font-weight: 600; color: #111; margin-bottom: 2px; }
.esim-product-page .inc-desc  { font-size: 12px; color: #666; }

/* Coverage */
.esim-product-page .coverage-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
}
.esim-product-page .coverage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px 8px; margin-bottom: 14px;
}
@media (max-width: 480px) { .esim-product-page .coverage-grid { grid-template-columns: repeat(2, 1fr); } }

.esim-product-page .coverage-item {
  font-size: 12px; color: #333;
  display: flex; align-items: center; gap: 5px;
}
.esim-product-page .coverage-item::before { content: "\2713"; color: #22c55e; font-weight: 700; flex-shrink: 0; }

.esim-product-page .btn-show-all {
  width: 100%;
  background: #4f6ef7;
  color: white; border: none;
  border-radius: 8px; padding: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Points to Note */
.esim-product-page .note-list { display: flex; flex-direction: column; gap: 8px; }
.esim-product-page .note-item {
  background: #fffbeb;
  border-radius: 8px; padding: 10px 12px;
  display: flex; gap: 10px;
  font-size: 12px; color: #555;
  line-height: 1.5;
}
.esim-product-page .note-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: #f59e0b; color: white;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* How It Works */
.esim-product-page .steps-list { display: flex; flex-direction: column; gap: 10px; }
.esim-product-page .step-item { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: #444; }
.esim-product-page .step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #4f6ef7; color: white;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* How to Install eSIM */
.esim-product-page .install-section { margin-bottom: 20px; }
.esim-product-page .install-device-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 10px; color: #111;
}
.esim-product-page .device-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: #111; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.esim-product-page .device-icon.android { background: #3ddc84; color: #111; }

.esim-product-page .install-steps { padding-left: 16px; }
.esim-product-page .install-steps li {
  font-size: 12px; color: #444; margin-bottom: 5px; line-height: 1.5;
}
.esim-product-page .install-steps li strong { color: #111; }
.esim-product-page .install-note {
  font-size: 11px; color: #888; font-style: italic;
  margin-top: 6px; padding-left: 16px;
}

/* APN box */
.esim-product-page .apn-box {
  background: #f8fafb;
  border: 1px solid #e0e4ec;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.esim-product-page .apn-label { font-size: 13px; color: #555; margin-bottom: 2px; }
.esim-product-page .apn-value { font-size: 14px; font-weight: 700; color: #111; }
.esim-product-page .apn-note { font-size: 12px; color: #666; margin-top: 4px; }

/* Important Information */
.esim-product-page .info-list { display: flex; flex-direction: column; gap: 14px; }
.esim-product-page .info-item-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 3px; }
.esim-product-page .info-item-desc { font-size: 12px; color: #555; line-height: 1.6; }

/* Hidden countries list */
.esim-product-page .extra-countries { display: none; }
.esim-product-page .extra-countries.open { display: contents; }

/* Plan Type */
.esim-product-page .plan-type-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.esim-product-page .plan-type-btn {
  border: 1.5px solid #e0e2e8;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  background: white;
  font-family: inherit;
  transition: all 150ms;
}
.esim-product-page .plan-type-btn.selected { border-color: #4f6ef7; background: #f0f4ff; }
.esim-product-page .plan-type-icon { margin-bottom: 4px; color: #4f6ef7; }
.esim-product-page .plan-type-name { font-size: 13px; font-weight: 600; color: #111; }
.esim-product-page .plan-type-sub { font-size: 11px; color: #888; }
.esim-product-page .plan-type-check { color: #4f6ef7; font-size: 12px; margin-top: 2px; }
