/* Shared store theme for all pages (matches index/detail) */

body.h5-theme-store {
  background: #f3f4f6;
}

body.h5-theme-store::before {
  display: none;
}

body.h5-theme-store .h5-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: none;
}

body.h5-theme-store .h5-header-inner {
  max-width: 1160px;
}



body.h5-theme-store .h5-search {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

body.h5-theme-store .h5-search input::placeholder {
  color: #94a3b8;
}

body.h5-theme-store .h5-link-text {
  color: #64748b;
}

body.h5-theme-store .h5-link-text:hover {
  color: #2563eb;
}

/* Simple “surface” utility */
body.h5-theme-store .h5-surface {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Breadcrumb */
.h5-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  font-size: 13px;
  color: #64748b;
}

.h5-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.h5-breadcrumb a:hover {
  color: #2563eb;
}

.h5-breadcrumb-sep {
  color: #cbd5e1;
  user-select: none;
}

.h5-breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

/* Store footer skin (works with both simple and column footers) */
.h5-footer--store {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}

.h5-footer--store .h5-footer-inner {
  max-width: 1160px;
}

.h5-footer--store .h5-footer-links a {
  color: #64748b;
}

.h5-footer--store .h5-footer-links a:hover {
  color: #2563eb;
}

.h5-footer--store .h5-footer-meta {
  color: #94a3b8;
}

.h5-footer--store .h5-footer-meta a {
  color: #94a3b8;
}

/* Form controls default polish */
body.h5-theme-store input,
body.h5-theme-store select,
body.h5-theme-store textarea {
  border-color: #e2e8f0;
}

body.h5-theme-store input:focus,
body.h5-theme-store select:focus,
body.h5-theme-store textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Cart modal (index header cart) */
.h5-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.h5-cart-modal[hidden] {
  display: none !important;
}

.h5-cart-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  margin: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
}

.h5-cart-box {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
}

.h5-cart-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.h5-cart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  padding: 16px;
}

.h5-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'left right'
    'price price';
  gap: 10px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 12px;
}

.h5-cart-item-left {
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.h5-cart-brand {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16a34a 0%, #0f766e 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
}

.h5-cart-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.h5-cart-name {
  font-size: 14px;
  font-weight: 1000;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h5-cart-sub {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.h5-cart-item-right {
  grid-area: right;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.h5-cart-qty {
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 12px;
  font-weight: 900;
  color: #0f172a;
}

.h5-cart-trash {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
}

.h5-cart-trash:hover {
  background: #f8fafc;
  color: #0f172a;
}

.h5-cart-price {
  grid-area: price;
  justify-self: end;
  font-size: 14px;
  font-weight: 1000;
  color: #0f172a;
}

.h5-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  padding: 2px 0 12px;
  color: #0f172a;
  font-weight: 900;
}

.h5-cart-total strong {
  font-size: 16px;
  font-weight: 1000;
}

.h5-cart-actions {
  display: grid;
  gap: 12px;
}

.h5-cart-btn {
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 1000;
  text-decoration: none;
  border: none;
}

.h5-cart-btn--ghost {
  background: #eef2f7;
  color: #0f172a;
}

.h5-cart-btn--ghost:hover {
  background: #e5e7eb;
}

.h5-cart-btn--primary {
  background: #e4393c;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(228, 57, 60, 0.22);
}

.h5-cart-btn--primary:hover {
  filter: brightness(1.03);
}

/* Footer brand bar (crypto + locale + store badges) */
.h5-footer-brandbar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.h5-footer-crypto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h5-foot-coin {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 1000;
  color: #fff;
}

.h5-foot-coin--btc {
  background: #f59e0b;
}

.h5-foot-coin--ltc {
  background: #f97316;
}

.h5-foot-coin--eth {
  background: #6366f1;
}

.h5-foot-coin--usdc {
  background: #2563eb;
}

.h5-foot-coin--usdt {
  background: #10b981;
}

.h5-foot-coin--sol {
  background: #0b1220;
}

.h5-foot-coin--xmr {
  background: #a855f7;
}

.h5-foot-coin--more {
  background: #e5e7eb;
  color: #0f172a;
}

.h5-footer-brand {
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.h5-footer-locale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.h5-footer-flag {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 55%), #ef4444;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.h5-footer-storebtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.h5-footer-storebtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0b1220;
  color: #fff;
  text-decoration: none;
}

.h5-footer-storebtn:hover {
  filter: brightness(1.04);
}

.h5-footer-storebtn-ic {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.h5-footer-storebtn-txt {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.h5-footer-storebtn-txt small {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.h5-footer-storebtn-txt strong {
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .h5-footer-brandbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Header: mobile visibility rules */
@media (max-width: 767px) {
  .h5-header-cart {
    display: none !important;
  }

  .h5-header-userbar .h5-icon-btn {
    display: inline-flex !important;
  }
}
