/**
 * eSIM Shop Category Page Styles
 * Extracted from esim-shop.html design
 */

:root {
  --esim-font-body: 'Inter', 'Noto Sans JP', sans-serif;
  --esim-text-xs: 0.75rem;
  --esim-text-sm: 0.8125rem;
  --esim-text-base: 0.9375rem;
  --esim-space-1:.25rem;--esim-space-2:.5rem;--esim-space-3:.75rem;--esim-space-4:1rem;
  --esim-space-5:1.25rem;--esim-space-6:1.5rem;--esim-space-8:2rem;
  --esim-radius-sm:.375rem;--esim-radius-md:.5rem;--esim-radius-lg:.75rem;--esim-radius-xl:1rem;--esim-radius-full:9999px;
  --esim-ease:160ms cubic-bezier(.16,1,.3,1);
  --esim-bg:#f5f5f4;--esim-surface:#fff;--esim-surface-2:#fafaf9;
  --esim-border:rgba(0,0,0,.09);--esim-divider:rgba(0,0,0,.06);
  --esim-text:#1a1917;--esim-muted:#6b6966;--esim-faint:#b0aeaa;
  --esim-primary:#01878e;--esim-primary-hover:#016a70;
  --esim-primary-subtle:#eaf4f5;--esim-primary-text:#015f65;
  --esim-shadow-sm:0 1px 3px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.05);
  --esim-shadow-md:0 4px 12px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.05);
  --esim-shadow-card:0 2px 8px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
}

.esim-shop-page {
  font-family: var(--esim-font-body);
  color: var(--esim-text);
  background: var(--esim-bg);
  line-height: 1.5;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ── BREADCRUMB ── */
.esim-shop-page .esim-breadcrumb {
  padding: var(--esim-space-2) var(--esim-space-6);
  font-size: var(--esim-text-xs);
  color: var(--esim-faint);
  display: flex;
  align-items: center;
  gap: var(--esim-space-2);
  border-bottom: 1px solid var(--esim-border);
  background: var(--esim-surface);
}
.esim-shop-page .esim-breadcrumb a { color: var(--esim-muted); text-decoration: none; }
.esim-shop-page .esim-breadcrumb a:hover { color: var(--esim-primary); }
.esim-shop-page .esim-breadcrumb .sep { color: var(--esim-faint); }
.esim-shop-page .esim-breadcrumb .cur { color: var(--esim-text); font-weight: 500; }

/* ── REGION TABS ── */
.esim-shop-page .region-bar {
  background: var(--esim-surface);
  border-bottom: 1px solid var(--esim-border);
  padding: var(--esim-space-3) var(--esim-space-6);
  display: flex;
  align-items: center;
  gap: var(--esim-space-2);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.esim-shop-page .region-bar::-webkit-scrollbar { display: none; }
.esim-shop-page .rpill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: .35rem var(--esim-space-4);
  border-radius: var(--esim-radius-full);
  font-size: var(--esim-text-sm);
  font-weight: 500;
  color: var(--esim-muted);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--esim-ease);
}
.esim-shop-page .rpill:hover {
  color: var(--esim-text);
  background: var(--esim-surface-2);
  border-color: var(--esim-border);
}
.esim-shop-page .rpill.active {
  background: var(--esim-primary);
  color: #fff;
  font-weight: 600;
  border-color: transparent;
}

/* ── PAGE LAYOUT ── */
.esim-shop-page .esim-shop-content {
  flex: 1;
  padding: var(--esim-space-6);
  max-width: 1230px;
  margin: 0 auto;
  width: 100%;
}

/* ── COUNTRY BOX ── */
.esim-shop-page .country-box {
  background: var(--esim-surface);
  border: 1px solid var(--esim-border);
  border-radius: var(--esim-radius-xl);
  padding: var(--esim-space-5);
  margin-bottom: var(--esim-space-6);
  box-shadow: var(--esim-shadow-sm);
}
.esim-shop-page .country-box-title {
  font-size: var(--esim-text-base);
  font-weight: 700;
  margin-bottom: var(--esim-space-4);
  color: var(--esim-text);
}
.esim-shop-page .country-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--esim-space-2);
}
.esim-shop-page .country-row {
  display: flex;
  align-items: center;
  gap: var(--esim-space-3);
  padding: var(--esim-space-3);
  border: 1px solid var(--esim-border);
  border-radius: var(--esim-radius-md);
  cursor: pointer;
  background: var(--esim-surface);
  text-decoration: none;
  color: inherit;
  transition: all var(--esim-ease);
}
.esim-shop-page .country-row:hover {
  border-color: var(--esim-primary);
  background: var(--esim-primary-subtle);
}
.esim-shop-page .country-row.active {
  border-color: var(--esim-primary);
  background: var(--esim-primary-subtle);
}
.esim-shop-page .cflag { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.esim-shop-page .cname { font-size: var(--esim-text-sm); font-weight: 500; flex: 1; color: var(--esim-text); }
.esim-shop-page .carr {
  font-size: .7rem;
  color: var(--esim-faint);
  flex-shrink: 0;
  transition: transform var(--esim-ease), color var(--esim-ease);
}
.esim-shop-page .country-row:hover .carr { transform: translateX(2px); color: var(--esim-primary); }
.esim-shop-page .country-row.active .carr { color: var(--esim-primary); }

/* ── PRODUCTS HEADER ── */
.esim-shop-page .products-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--esim-space-4);
  flex-wrap: wrap;
  gap: var(--esim-space-3);
}
.esim-shop-page .products-title {
  font-size: var(--esim-text-sm);
  color: var(--esim-muted);
}

/* ── PRODUCT CARDS ── */
.esim-shop-page .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: var(--esim-space-4);
}
.esim-shop-page .prod-card {
  background: var(--esim-surface);
  border: 1px solid var(--esim-border);
  border-radius: var(--esim-radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--esim-shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--esim-ease);
}
.esim-shop-page .prod-card:hover {
  box-shadow: var(--esim-shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.13);
}
.prod-featured{
  border: 2px solid red !important;
}
.esim-shop-page .prod-img {
  aspect-ratio: 3/2;
  background: var(--esim-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.esim-shop-page .prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.esim-shop-page .prod-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.esim-shop-page .prod-body {
  padding: var(--esim-space-3) var(--esim-space-4) var(--esim-space-4);
}
.esim-shop-page .prod-name {
  font-size: var(--esim-text-sm);
  color: var(--esim-text);
  line-height: 1.4;
  margin-bottom: var(--esim-space-2);
}
.esim-shop-page .prod-price {
  font-size: var(--esim-text-sm);
  font-weight: 700;
  color: var(--esim-primary-text);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .esim-shop-page .country-grid { grid-template-columns: repeat(2, 1fr); }
  .esim-shop-page .esim-shop-content { padding: var(--esim-space-4); }
  .esim-shop-page .region-bar { padding: var(--esim-space-3) var(--esim-space-4); }
  .esim-shop-page .esim-breadcrumb { padding: var(--esim-space-2) var(--esim-space-4); }
}
@media (max-width: 480px) {
  .esim-shop-page .country-grid { grid-template-columns: 1fr; }
}
