/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--r-md); font-family: var(--font-sans); font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--t-2); border: none; text-decoration: none; white-space: nowrap; letter-spacing: 0.02em; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand-600); color: white; border: 1px solid var(--brand-500); }
.btn-primary:hover { background: var(--brand-500); transform: translateY(-2px); box-shadow: var(--shadow-brand); color: white; }
.btn-secondary { background: transparent; color: var(--text-200); border: 1px solid var(--border-300); }
.btn-secondary:hover { background: var(--bg-elevated); color: var(--text-100); transform: translateY(-1px); border-color: var(--border-300); }
.btn-danger { background: transparent; color: var(--red-500); border: 1px solid var(--red-500); }
.btn-danger:hover { background: var(--red-faint); transform: translateY(-1px); }
.btn-success { background: var(--green-500); color: white; border: none; }
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { background: none; border: none; color: var(--text-300); padding: 8px; }
.btn-ghost:hover { color: var(--text-100); background: var(--bg-elevated); border-radius: var(--r-md); }
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 12px 24px; font-size: 15px; }
.btn-icon{ padding: 8px; border-radius: var(--r-md); }
.btn-whatsapp  { background: #25D366; color: white; }
.btn-whatsapp:hover  { background: #20bb5a; transform: translateY(-1px); color: white; }
.btn-telegram  { background: #0088CC; color: white; }
.btn-telegram:hover  { background: #0077BB; transform: translateY(-1px); color: white; }
.btn-brown { background: var(--brand-600); color: white; border: 1px solid var(--brand-500); }
.btn-brown:hover { background: var(--brand-500); transform: translateY(-2px); box-shadow: var(--shadow-brand); color: white; }

/* ── FORM INPUTS ── */
.form-input, .form-textarea, .form-select { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-200); border-radius: var(--r-md); color: var(--text-100); font-family: var(--font-sans); font-size: 14px; padding: 10px 14px; transition: var(--t-1); outline: none; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(212,35,94,0.10); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-400); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-300); margin-bottom: var(--sp-2); letter-spacing: 0.03em; text-transform: uppercase; }
.form-group { margin-bottom: var(--sp-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── STATUS BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-sm); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-instock  { background: var(--green-faint); color: var(--green-500); border: 1px solid rgba(34,197,94,.25); }
.badge-preorder { background: var(--gold-faint);  color: var(--gold-500);  border: 1px solid rgba(245,158,11,.25); }
.badge-soldout  { background: var(--red-faint);   color: var(--red-500);   border: 1px solid rgba(239,68,68,.25); }
.badge-info     { background: var(--brand-faint);  color: var(--brand-400); border: 1px solid var(--brand-border); }
.badge-pokemon  { background: rgba(255,203,5,.08);  color: #FFCB05; border: 1px solid rgba(255,203,5,.25); }
.badge-onepiece { background: rgba(220,38,38,.08);  color: #F87171; border: 1px solid rgba(220,38,38,.25); }
.badge-yugioh   { background: rgba(124,58,237,.08); color: #A78BFA; border: 1px solid rgba(124,58,237,.25); }

/* ── PRODUCT CARD (category page) ── */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-2);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: rgba(212,35,94,0.40);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.70);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s ease; padding: 8px; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img .img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-400); background: var(--bg-elevated); }
.product-card-status { position: absolute; top: 8px; left: 8px; z-index: 2; }
.product-card-body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); position: relative; z-index: 1; }
.product-card-name { font-size: 13px; font-weight: 700; color: var(--text-100); line-height: 1.4; }
.product-card-sku { font-family: var(--font-mono); font-size: 11px; color: var(--text-400); }
.product-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.product-card-tag { font-size: 10px; padding: 2px 7px; border-radius: var(--r-xs); background: var(--brand-faint); color: var(--brand-300); border: 1px solid var(--brand-border); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.product-card-price { margin-top: auto; display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.product-card-price-main { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--text-100); }
.product-card-price-note { font-size: 12px; color: var(--text-400); }
.product-card-footer { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border-100); }
.add-btn {
  width: 100%;
  background: var(--brand-600);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-btn:hover { background: var(--brand-500); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.add-btn.added { background: var(--green-faint); color: var(--green-500); border: 1px solid rgba(34,197,94,0.35); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-5); }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }

/* ── SECTION HEADERS ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); flex-wrap: wrap; gap: var(--sp-4); }
.section-title { display: flex; align-items: center; gap: var(--sp-3); font-size: 22px; font-weight: 800; color: var(--text-100); }
.section-title-accent { width: 4px; height: 24px; background: var(--brand-400); border-radius: 2px; }

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.filter-tab { background: none; border: 1px solid var(--border-200); color: var(--text-400); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 16px; border-radius: var(--r-2xl); cursor: pointer; transition: var(--t-2); }
.filter-tab:hover { border-color: var(--brand-border); color: var(--brand-300); background: var(--brand-faint); }
.filter-tab.active { background: var(--brand-faint); border-color: var(--brand-400); color: var(--brand-300); }

/* ── CHECKOUT ── */
.checkout-item { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-100); }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: 14px; font-weight: 600; color: var(--text-200); line-height: 1.3; }
.checkout-item-qty  { font-size: 13px; color: var(--text-400); margin-top: 2px; }
.checkout-item-price{ font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text-100); white-space: nowrap; }
.checkout-total-row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--border-200); }
.checkout-total-label{ font-size: 14px; font-weight: 700; color: var(--text-300); }
.checkout-total-val  { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text-100); }
.payment-methods-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-4); }
@media (max-width: 480px) { .payment-methods-grid { grid-template-columns: repeat(3, 1fr); } }
.payment-method-card { background: var(--bg-elevated); border: 2px solid var(--border-200); border-radius: var(--r-md); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; transition: var(--t-2); text-align: center; font-size: 11px; font-weight: 700; color: var(--text-300); }
.payment-method-card:hover { border-color: var(--brand-border); color: var(--brand-300); background: var(--brand-faint); transform: translateY(-2px); }
.payment-method-card.selected { border-color: var(--brand-400); background: var(--brand-faint); color: var(--brand-300); }
.payment-details-box { background: var(--bg-elevated); border: 1px solid var(--border-200); border-radius: var(--r-md); padding: var(--sp-4); margin-top: var(--sp-3); }
.payment-details-title { font-size: 13px; font-weight: 700; color: var(--text-100); margin-bottom: var(--sp-3); }
.payment-details-text { font-family: var(--font-mono); font-size: 12px; color: var(--text-200); white-space: pre-line; line-height: 1.7; }
.payment-ref { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--brand-300); background: var(--brand-faint); border: 1px solid var(--brand-border); padding: 6px 12px; border-radius: var(--r-sm); margin: var(--sp-3) 0; display: inline-block; }
.payment-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }

/* ── ORDER CONFIRMATION ── */
.order-confirmation { text-align: center; padding: var(--sp-4) 0; }
.order-ref-badge { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--brand-300); background: var(--brand-faint); border: 2px solid var(--brand-border); padding: 10px 20px; border-radius: var(--r-md); display: inline-block; margin: var(--sp-4) 0; }

/* CONTACT POPUP */
.contact-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); backdrop-filter: blur(6px); animation: fadeIn 0.2s ease; }
.contact-popup { background: var(--bg-surface); border: 1px solid var(--border-200); border-radius: var(--r-xl); max-width: 500px; width: 100%; padding: var(--sp-8); text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,0.90); animation: slideUp 0.35s ease; position: relative; }
.contact-popup-icon { font-size: 56px; margin-bottom: var(--sp-5); line-height: 1; }
.contact-popup-title { font-size: 22px; font-weight: 800; color: var(--text-100); margin-bottom: var(--sp-3); }
.contact-popup-text { font-size: 15px; color: var(--text-300); line-height: 1.7; margin-bottom: var(--sp-6); }
.contact-popup-ref { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--brand-300); background: var(--brand-faint); border: 1px solid var(--brand-border); padding: 8px 16px; border-radius: var(--r-md); display: inline-block; margin-bottom: var(--sp-5); }
.contact-popup-btns { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.contact-popup-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--r-md); font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: var(--t-2); text-decoration: none; color: white; }
.contact-popup-btn-wa { background: #25D366; }
.contact-popup-btn-wa:hover { background: #20bb5a; transform: translateY(-2px); color: white; }
.contact-popup-btn-tg { background: #0088CC; }
.contact-popup-btn-tg:hover { background: #0077BB; transform: translateY(-2px); color: white; }
.contact-popup-note { font-size: 12px; color: var(--text-400); line-height: 1.6; }
.contact-popup-close { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--border-300); color: var(--text-400); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: var(--t-1); }
.contact-popup-close:hover { color: var(--text-100); background: var(--bg-elevated); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--bg-surface); border-top: 1px solid var(--border-200); border-bottom: 1px solid var(--border-200); padding: var(--sp-4) var(--sp-6); }
.trust-bar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--sp-8); }
.trust-item { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; font-weight: 600; color: var(--text-300); letter-spacing: 0.03em; text-transform: uppercase; }
.trust-item svg { color: var(--brand-400); flex-shrink: 0; }

/* ── NEWS CARDS ── */
.news-card { background: var(--bg-surface); border: 1px solid var(--border-200); border-radius: var(--r-lg); overflow: hidden; transition: var(--t-2); }
.news-card:hover { border-color: rgba(212,35,94,0.35); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img { aspect-ratio: 16/9; background: var(--bg-elevated); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: var(--sp-5); }
.news-card-cat { font-size: 11px; font-weight: 700; color: var(--brand-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-2); }
.news-card-title { font-size: 16px; font-weight: 700; color: var(--text-100); line-height: 1.4; margin-bottom: var(--sp-2); }
.news-card-meta { font-size: 12px; color: var(--text-400); }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--bg-surface); border: 1px solid var(--border-200); border-radius: var(--r-lg); padding: var(--sp-6); }
.contact-card-icon { color: var(--brand-400); margin-bottom: var(--sp-4); }
.contact-card-title { font-size: 18px; font-weight: 700; color: var(--text-100); margin-bottom: var(--sp-3); }

/* ── ABOUT PAGE ── */
.about-section { padding: var(--sp-10) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; }

/* ── PRODUCT CARD — BODY EXTRAS ──────────────────────────────────── */
.product-card-seller {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-500);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.product-card-seller svg {
  color: var(--green-500);
  flex-shrink: 0;
}

.product-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.45;
  margin-bottom: 4px;
}

.product-card-stock {
  font-size: 12px;
  color: var(--text-400);
  margin-top: 2px;
}

/* ── PRICE BOXES ─────────────────────────────────────────────────── */
.product-card-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-100);
  border-radius: var(--r-md);
}

.price-box.featured {
  border-color: var(--brand-border);
  background: var(--brand-faint);
}

.price-box-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-500);
  min-width: 62px;
  flex-shrink: 0;
}

.price-box.featured .price-box-label {
  color: var(--brand-400);
}

.price-box-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-100);
  flex: 1;
}

.price-box.featured .price-box-val {
  color: var(--brand-300);
  font-size: 17px;
}

/* ── PRODUCT CARD FOOTER (qty + add) ─────────────────────────────── */
.product-card-footer {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-200);
  border-radius: var(--r-md);
  padding: 4px 8px;
  flex-shrink: 0;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-200);
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--t-1);
  padding: 0;
  line-height: 1;
}

.qty-btn:hover:not(:disabled) {
  background: var(--brand-faint);
  color: var(--brand-300);
}

.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-100);
  min-width: 24px;
  text-align: center;
}

.add-btn {
  flex: 1;
  background: var(--brand-600);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.add-btn:hover { background: var(--brand-500); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.add-btn.added { background: var(--green-faint); color: var(--green-500); border: 1px solid rgba(34,197,94,0.35); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; background: var(--bg-elevated); color: var(--text-400); }

/* ── PRODUCT GRID — wider min column so cards breathe ────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-5);
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .price-box-label { min-width: 54px; }
  .price-box-val { font-size: 14px; }
  .price-box.featured .price-box-val { font-size: 15px; }
  .product-card-name { font-size: 13px; }
}