:root {
  --bg: #ffffff;
  --bg2: #f6f7fb;
  --card: #ffffff;
  --text: #111111;
  --muted: #667085;
  --line: #e6e8ee;

  --primary: #2563eb;
  --primary2: #1d4ed8;

  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  --shadow2: 0 10px 26px rgba(16, 24, 40, 0.06);

  --radius: 20px;
  --radius2: 26px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text b {
  letter-spacing: 0.2px;
  font-weight: 900;
}
.brand-text small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

/* Search top */
.nav-center {
  display: flex;
  justify-content: center;
}
.search-top {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: #fff;
  box-shadow: var(--shadow2);
}
.search-ico {
  color: #98a2b3;
  font-weight: 900;
}
.search-top input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
}
.search-top input::placeholder {
  color: #98a2b3;
}

/* Menu */
.menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.menu a {
  color: #344054;
  font-weight: 850;
}
.menu a:hover {
  color: var(--text);
}

/* Actions */
.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.icon-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow2);
}
.mobile-menu {
  display: none;
  padding: 0.7rem 0 1.1rem;
}
.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: #344054;
  font-weight: 900;
}
.mobile-menu a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.28);
}
.btn:active {
  transform: translateY(0);
}
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
.btn.soft {
  background: #f2f4f7;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.wide {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
}

/* Hero banner only */
.hero {
  padding: 1.1rem 0 0;
}
.hero-banner-only {
  width: 100%;
  border-radius: var(--radius2);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-banner-only img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* General sections */
.section {
  padding: 1.6rem 0 2.3rem;
}
.h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}

.breadcrumb {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: #667085;
  font-weight: 850;
  font-size: 0.92rem;
  margin: 0.55rem 0 1.1rem;
}
.breadcrumb a {
  color: #667085;
}
.breadcrumb a:hover {
  color: var(--text);
}

/* Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
}

/* Pills + KPI */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  background: #f9fafb;
  color: #344054;
  font-weight: 900;
}
.kpis {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.kpi {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 950;
  font-size: 0.85rem;
  color: #344054;
}
.kpi.ok {
  border-color: #d1fadf;
  background: #ecfdf3;
  color: #027a48;
}

/* Product list */
.list-head {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 1.2rem 0 1rem;
}
.filters {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  font-size: 0.9rem;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
  user-select: none;
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.chip.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--primary2);
}

.product-card {
  grid-column: span 4;
}
.product-card .pbody {
  padding: 1.05rem 1.05rem 1.1rem;
}

/* NEW: header in product card with logo */
.phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.picon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow2);
  flex: 0 0 auto;
}
.picon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pname {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 999;
}
.pmeta {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
  font-weight: 650;
}
.pprice {
  margin-top: 0.85rem;
  font-weight: 900;
  color: #101828;
}

/* Detail page */
.detail {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1rem;
  align-items: start;
}
.detail-left {
  padding: 1rem;
}
.detail-right {
  padding: 1rem;
}

.product-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow2);
}
.product-image img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #fff;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.product-title {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 999;
}
.start-price {
  margin: 0.35rem 0 0;
  color: #101828;
  font-weight: 900;
}

.desc-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.desc-box h3 {
  margin: 0.1rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 950;
}
.desc-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}

.share-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
}
.hr {
  height: 1px;
  background: var(--line);
  margin: 1.25rem 0;
}

/* Variants */
.variant-title {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  font-weight: 999;
}
.variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.variant {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.variant:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.variant .vname {
  font-weight: 999;
  margin: 0;
}
.variant .vstatus {
  margin: 0.35rem 0 0;
  color: #027a48;
  font-weight: 950;
  font-size: 0.9rem;
}
.variant .vprice {
  margin: 0.95rem 0 0;
  font-size: 1.08rem;
  font-weight: 999;
}
.variant.active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.1);
}
.checkout-bar {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
}
.checkout-bar .btn {
  min-width: 260px;
  border-radius: 18px;
}

/* Checkout */
.checkout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1rem;
}
.checkout .box {
  padding: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.field label {
  font-weight: 950;
  color: #101828;
}
.field input,
.field select,
.field textarea {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  outline: none;
  background: #fff;
  color: var(--text);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}

.summary {
  padding: 1rem;
}
.summary h3 {
  margin: 0.15rem 0 0.7rem;
  font-weight: 999;
}
.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0;
  color: #101828;
  font-weight: 900;
}
.summary .row .muted {
  color: var(--muted);
  font-weight: 850;
}
.summary .total {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-weight: 999;
}

/* Footer */
.footer {
  padding: 2rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
}
.footer-title {
  color: #101828;
  font-weight: 999;
  margin: 0 0 0.55rem;
}
.footer p {
  margin: 0;
  line-height: 1.7;
  font-weight: 650;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.list a {
  color: #344054;
  font-weight: 900;
}
.list a:hover {
  color: var(--text);
}
.copyright {
  margin-top: 1.4rem;
  color: #98a2b3;
  font-size: 0.92rem;
  font-weight: 750;
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }
  .menu {
    display: none;
  }
  .icon-btn {
    display: inline-flex;
  }
  .product-card {
    grid-column: span 6;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .checkout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .product-card {
    grid-column: span 12;
  }
  .variant-grid {
    grid-template-columns: 1fr;
  }
  .mobile-menu.show {
    display: block;
  }
}
