:root {
  --blue: #0d47a1;
  --blue-bright: #1765d8;
  --blue-soft: #edf4ff;
  --ink: #111827;
  --muted: #64748b;
  --line: #dce5f1;
  --surface: #f5f8fc;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(15, 42, 83, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 229, 241, 0.9);
  backdrop-filter: blur(18px);
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 9px 24px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.announcement span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.announcement ion-icon {
  color: #70a7ff;
  font-size: 16px;
}

.nav-shell {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  max-width: 1240px;
  min-height: 82px;
  margin: 0 auto;
  padding: 10px 28px;
}

.brand {
  display: inline-flex;
  width: 150px;
  height: 62px;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
}

.main-nav a {
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.main-nav a:hover {
  color: var(--blue);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.cart-link ion-icon {
  color: var(--blue);
  font-size: 24px;
}

.cart-link strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--blue);
  color: white;
  border-radius: 999px;
  font-size: 12px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 54px;
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 64px 28px 74px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(50px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.24);
}

.button-primary:hover,
.add-button:hover {
  background: #083b89;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.hero-proof {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-proof div {
  display: grid;
  gap: 3px;
}

.hero-proof strong {
  font-size: 23px;
}

.hero-proof span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: radial-gradient(circle at 42% 38%, #fff 0, #eef5ff 54%, #d9e7fb 100%);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -100px;
  right: -70px;
  border: 70px solid rgba(23, 101, 216, 0.08);
  border-radius: 50%;
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.hero-visual > img.hero-package-image {
  object-fit: contain;
  padding: 34px 28px 26px;
  mix-blend-mode: normal;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 28px;
  padding: 9px 14px;
  background: var(--blue);
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-note {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 42, 83, 0.13);
  backdrop-filter: blur(12px);
}

.floating-note ion-icon {
  color: var(--blue);
  font-size: 25px;
}

.floating-note span {
  display: grid;
  color: var(--muted);
  font-size: 11px;
}

.floating-note strong {
  color: var(--ink);
  font-size: 13px;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1184px;
  margin: 0 auto 110px;
  padding: 24px 30px;
  background: #111827;
  color: white;
  border-radius: 18px;
}

.benefit-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px;
  border-right: 1px solid #334155;
}

.benefit-strip > div:last-child {
  border-right: 0;
}

.benefit-strip ion-icon {
  flex: 0 0 auto;
  color: #78aaff;
  font-size: 28px;
}

.benefit-strip span {
  display: grid;
  gap: 4px;
  color: #9eabc0;
  font-size: 11px;
}

.benefit-strip strong {
  color: white;
  font-size: 13px;
}

.products-section,
.why-us {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2,
.spotlight h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.filter-row {
  display: flex;
  gap: 9px;
  margin: 34px 0 26px;
  overflow-x: auto;
}

.filter-row button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: white;
  color: #475569;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.filter-row button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}

.product-image-trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image-contain img {
  object-fit: contain;
  padding: 12px;
  background: white;
}

.product-image-contain .product-image-trigger {
  background: white;
}

.product-card:hover .product-image img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.favorite {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(15, 42, 83, 0.11);
  cursor: pointer;
}

.favorite.selected {
  color: var(--blue);
}

.product-content {
  padding: 22px;
}

.product-category {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-content h3 {
  margin: 8px 0;
  font-size: 20px;
}

.product-content > p {
  min-height: 63px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 16px 0;
  font-size: 12px;
}

.rating ion-icon {
  color: #f5aa1c;
}

.rating span {
  color: #94a3b8;
}

.product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf1f7;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--blue);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.detail-button:hover {
  background: var(--blue-soft);
}

.price {
  display: grid;
  gap: 2px;
}

.price del {
  color: #94a3b8;
  font-size: 11px;
}

.price strong {
  font-size: 21px;
}

.add-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  background: var(--blue);
  color: white;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.add-button ion-icon {
  font-size: 19px;
}

.only-in-bundle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

.only-in-bundle ion-icon {
  font-size: 15px;
}

.empty-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1184px;
  margin: 0 auto 120px;
  overflow: hidden;
  background: #111827;
  color: white;
  border-radius: 30px;
}

.spotlight-image {
  min-height: 510px;
  background: radial-gradient(circle, #edf5ff 0, #cbdcf4 100%);
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.spotlight-copy {
  align-self: center;
  padding: 58px;
}

.spotlight-copy .eyebrow {
  color: #76a8ff;
}

.spotlight-copy p {
  margin: 20px 0 24px;
  color: #aab6c8;
  line-height: 1.7;
}

.spotlight-copy ul {
  display: grid;
  gap: 13px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.spotlight-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7dfeb;
  font-size: 14px;
}

.spotlight-copy li ion-icon {
  color: #76a8ff;
}

.button-dark {
  background: white;
  color: #111827;
}

.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.centered > p {
  margin-top: 16px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.value-grid article {
  position: relative;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.value-grid article > span {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #bdc9d8;
  font-size: 12px;
  font-weight: 850;
}

.value-grid ion-icon {
  color: var(--blue);
  font-size: 34px;
}

.value-grid h3 {
  margin: 22px 0 8px;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

footer {
  padding: 70px 28px 28px;
  background: #0d1420;
  color: white;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 70px;
  max-width: 1184px;
  margin: 0 auto 60px;
}

.footer-brand img {
  width: 155px;
  height: 72px;
  padding: 5px;
  background: white;
  border-radius: 10px;
}

.footer-brand p {
  color: #9da9ba;
}

.footer-main h3 {
  margin: 0 0 18px;
  font-size: 14px;
}

.footer-main > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-main a {
  margin-bottom: 11px;
  color: #9da9ba;
  font-size: 13px;
}

.footer-main a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1184px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #263143;
  color: #738096;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 14px 18px;
  background: #111827;
  color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .announcement span:nth-child(2),
  .announcement span:nth-child(3) {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }

  .menu-button {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 22px;
    background: white;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
    margin-left: 28px;
    margin-right: 28px;
  }

  .benefit-strip > div {
    border-right: 0;
    border-bottom: 1px solid #334155;
  }

  .benefit-strip > div:last-child {
    border-bottom: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight {
    grid-template-columns: 1fr;
    margin-left: 28px;
    margin-right: 28px;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    min-height: 70px;
    padding: 6px 18px;
  }

  .brand {
    width: 120px;
    height: 54px;
  }

  .cart-link span {
    display: none;
  }

  .hero {
    gap: 35px;
    min-height: auto;
    padding: 42px 18px 50px;
  }

  .hero h1 {
    font-size: 49px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-proof {
    gap: 18px;
  }

  .hero-visual {
    min-height: 370px;
    border-radius: 24px;
  }

  .floating-note {
    right: 14px;
    bottom: 14px;
  }

  .benefit-strip {
    margin: 0 18px 80px;
    padding: 18px;
  }

  .products-section,
  .why-us {
    padding: 0 18px 85px;
  }

  .section-heading {
    display: grid;
  }

  .product-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .spotlight {
    margin: 0 18px 90px;
  }

  .spotlight-image {
    min-height: 340px;
  }

  .spotlight-copy {
    padding: 34px 26px 40px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* Cart drawer */
.cart-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.cart-items[hidden],
.cart-empty[hidden],
.cart-checkout[hidden] {
  display: none;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: cart-fade 0.25s ease forwards;
}

@keyframes cart-fade {
  to {
    opacity: 1;
  }
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  max-height: 100dvh;
  background: var(--white);
  box-shadow: -22px 0 60px rgba(15, 42, 83, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer.open {
  transform: translateX(0);
}

body.cart-open {
  overflow-x: hidden;
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.cart-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.cart-close ion-icon {
  font-size: 20px;
}

.cart-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 26px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: center;
}

.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface);
}

.cart-item-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-item-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.cart-item-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.cart-item-controls span {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.cart-item-remove {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.cart-item-remove:hover {
  color: #d64545;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 26px;
  text-align: center;
}

.cart-empty ion-icon {
  font-size: 46px;
  color: var(--blue);
}

.cart-empty h3 {
  margin: 6px 0 0;
}

.cart-empty p {
  margin: 0 0 8px;
  color: var(--muted);
}

.cart-checkout {
  flex: 0 0 auto;
  padding: 20px 26px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cart-total-row.grand-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
}

.payment-heading > div {
  display: inline-flex;
  gap: 8px;
  color: var(--blue);
  font-size: 20px;
}

.payment-status {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stock-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.stock-note ion-icon {
  flex: 0 0 auto;
  font-size: 17px;
}

#paypal-button-container {
  min-height: 46px;
}

.checkout-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Product detail */
body.modal-open {
  overflow: hidden;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 20, 35, 0.62);
  backdrop-filter: blur(5px);
}

.product-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  width: min(1080px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: white;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(8, 25, 50, 0.28);
  opacity: 0;
  transform: translate(-50%, -47%) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-detail-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 50%;
  font-size: 23px;
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.15fr);
  min-height: 640px;
}

.detail-image {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: min(680px, calc(100dvh - 40px));
  background: var(--surface);
}

.detail-image img {
  width: 100%;
  height: 100%;
  padding: 24px;
  object-fit: contain;
}

.detail-content {
  padding: 58px 56px 44px;
}

.detail-content h2 {
  margin: 10px 48px 8px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-subtitle {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 750;
}

.detail-copy > p {
  margin: 0 0 16px;
  color: #526176;
  font-size: 14px;
  line-height: 1.75;
}

.detail-section {
  margin-top: 27px;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-section li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #526176;
  font-size: 14px;
  line-height: 1.5;
}

.detail-section li ion-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--blue);
  font-size: 18px;
}

.detail-note {
  display: flex;
  gap: 9px;
  margin-top: 24px !important;
  padding: 13px 15px;
  background: #f5f8fc;
  border-radius: 10px;
  font-size: 12px !important;
}

.detail-note ion-icon {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 18px;
}

.detail-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-purchase > strong {
  font-size: 28px;
}

.detail-purchase .button {
  gap: 8px;
  border: 0;
  cursor: pointer;
}

/* Checkout success */
.checkout-success-body {
  background: var(--surface);
}

.success-nav {
  grid-template-columns: 190px 1fr auto;
}

.success-shop-link {
  min-width: 132px;
}

.success-main {
  background:
    linear-gradient(180deg, rgba(237, 244, 255, 0.82), rgba(255, 255, 255, 0) 38%),
    var(--surface);
}

.success-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.success-hero-panel,
.success-summary,
.success-next article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 42, 83, 0.08);
}

.success-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 54px;
}

.success-hero-panel::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(23, 101, 216, 0.16), rgba(23, 101, 216, 0) 68%);
  pointer-events: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 30px;
  background: #e8f8ef;
  color: #128044;
  border: 1px solid #bce8cc;
  border-radius: 50%;
  font-size: 44px;
}

.success-hero-panel h1 {
  max-width: 520px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.success-hero-panel p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button-light {
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.button-light:hover {
  border-color: rgba(13, 71, 161, 0.35);
  color: var(--blue);
}

.success-summary {
  align-self: start;
  padding: 30px;
}

.success-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.success-summary-head h2 {
  margin: 7px 0 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.success-summary-head > ion-icon {
  color: var(--blue);
  font-size: 34px;
}

.success-meta {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.success-meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}

.success-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.success-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.success-items {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.success-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
}

.success-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}

.success-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.success-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.success-item strong {
  font-size: 14px;
  white-space: nowrap;
}

.success-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.success-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  font-size: 16px;
  font-weight: 850;
}

.success-total-row strong {
  color: var(--blue);
  font-size: 26px;
}

.success-next {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.success-next article {
  padding: 26px;
}

.success-next ion-icon {
  color: var(--blue);
  font-size: 30px;
}

.success-next h2 {
  margin: 15px 0 9px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.success-next p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.success-next a {
  color: var(--blue);
  font-weight: 800;
}

/* Orders admin */
.admin-body {
  min-height: 100vh;
  background: var(--surface);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-actions .button {
  min-height: 44px;
}

.admin-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 28px 90px;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.admin-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.admin-heading p[data-type="success"] {
  color: #128044;
}

.admin-heading p[data-type="error"] {
  color: #c33b3b;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-panel,
.admin-order,
.admin-empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(15, 42, 83, 0.07);
}

.admin-stats article {
  padding: 22px;
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -0.035em;
}

.admin-panel {
  padding: 20px;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-filters label {
  display: grid;
  gap: 8px;
}

.admin-filters span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.admin-filters input {
  padding: 0 14px;
}

.admin-filters select {
  padding: 0 12px;
}

.admin-orders-list {
  display: grid;
  gap: 14px;
}

.admin-order {
  padding: 22px;
}

.admin-order-main {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.admin-order-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-order h2 {
  margin: 6px 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.admin-order a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-order-price {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  min-width: 110px;
}

.admin-order-price strong {
  color: var(--blue);
  font-size: 24px;
}

.admin-order-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-order-meta span {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-order-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-order-items {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.admin-order-item strong {
  color: var(--ink);
  white-space: nowrap;
}

.admin-order-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.admin-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
}

.admin-empty-state ion-icon {
  color: var(--blue);
  font-size: 38px;
}

.admin-empty-state h2 {
  margin: 0;
  font-size: 22px;
}

.admin-empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .success-nav {
    grid-template-columns: 1fr auto;
  }

  .success-main-nav {
    display: none;
  }

  .success-shell {
    grid-template-columns: 1fr;
    padding: 46px 18px 78px;
  }

  .success-hero-panel {
    min-height: auto;
    padding: 36px 26px;
  }

  .success-next {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-image {
    position: relative;
    height: min(480px, 55vw);
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading p {
    text-align: left;
  }

  .admin-stats,
  .admin-order-meta {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .admin-topbar-actions,
  .admin-topbar-actions .button {
    width: 100%;
  }

  .admin-main {
    padding: 34px 18px 70px;
  }

  .admin-order-main,
  .admin-order-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-order-price {
    justify-items: start;
  }

  .product-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .detail-button,
  .add-button {
    justify-content: center;
  }

  .product-detail-modal {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .detail-image {
    height: 370px;
  }

  .detail-content {
    padding: 34px 22px 36px;
  }

  .detail-content h2 {
    margin-right: 35px;
    font-size: 34px;
  }

  .detail-purchase {
    align-items: stretch;
    flex-direction: column;
  }

  .success-shop-link {
    display: none;
  }

  .success-hero-panel h1 {
    font-size: 44px;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .button {
    width: 100%;
  }

  .success-summary {
    padding: 24px 18px;
  }

  .success-meta div,
  .success-item {
    grid-template-columns: 1fr;
  }

  .success-item img {
    width: 76px;
    height: 76px;
  }

  .success-item strong {
    white-space: normal;
  }
}

@media print {
  .site-header,
  .success-hero-panel,
  .success-next,
  footer {
    display: none;
  }

  .success-main,
  .checkout-success-body {
    background: white;
  }

  .success-shell {
    display: block;
    padding: 0;
  }

  .success-summary {
    border: 0;
    box-shadow: none;
  }
}
