:root {
  --bg: #0d0e10;
  --surface: #17181a;
  --soft: #202123;
  --line: #303134;
  --text: #f5f5f3;
  --muted: #9d9ea0;
  --yellow: #ffdc00;
  --radius: 18px;
  --font-main: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
}

.header-inner {
  max-width: 1288px;
  height: 84px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  user-select: none;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo svg {
  width: 30px;
  height: 36px;
  color: var(--yellow);
  flex-shrink: 0;
  transform: rotate(180deg);
}

.logo-dot {
  color: var(--yellow);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  color: #b3b5b9;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.desktop-nav a:hover {
  color: #ffffff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: transparent;
  border: none;
  padding: 4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b3b5b9;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  color: #ffffff;
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--yellow);
  color: #0d0e10;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  border-radius: 9px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  user-select: none;
}

.button.primary {
  background: var(--yellow);
  color: #151500;
  box-shadow: 0 2px 10px rgba(255, 220, 0, 0.15);
}

.button.primary:hover {
  background: #ffe733;
  transform: translateY(-1px);
}

.button.primary:active {
  transform: translateY(0);
}

/* Eyebrow */
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 16px;
}

#main-content {
  background: var(--bg);
}

/* Hero Section */
.hero {
  position: relative;
  max-width: 1440px;
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-pic {
  display: contents;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.15) contrast(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}

.hero-shade {
  display: none;
}

.hero-content {
  width: 100%;
  max-width: 1288px;
  margin: auto;
  position: relative;
  z-index: 2;
  padding: 60px 32px;
}

.hero .eyebrow,
.hero-subtitle {
  display: none;
}

.hero h1 {
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 760;
  letter-spacing: -2px;
  line-height: 1.06;
  margin: 0 0 28px;
  max-width: 580px;
  color: var(--text);
}

.hero h1 span {
  color: var(--yellow);
  display: block;
}

.hero-button {
  min-width: 208px;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 70px;
  }
  
  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 0;
    height: calc(100vw * 0.72);
    max-height: 380px;
    align-items: center;
    background: var(--bg);
  }

  .hero-pic {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center top;
    filter: brightness(1.18) contrast(1.05);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(13, 14, 16, 0.44), transparent 30%);
  }

  .hero-content {
    padding: 0 16px;
    margin: 0;
  }

  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: clamp(22px, 6.5vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.9px;
  }

  .hero-subtitle {
    font-size: 11.5px;
    margin: 8px 0 14px;
  }

  .hero-button {
    min-height: 38px;
    min-width: 160px;
    padding: 8px 14px;
    font-size: 12.5px;
    gap: 12px;
  }
}

/* Service Bar */
.service-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  border-top: 1px solid #ffffff0c;
  border-bottom: 1px solid #ffffff10;
  padding: 18px 24px;
  color: #c7c8c9;
  font-size: 13px;
  background: var(--bg);
  user-select: none;
}

.service-bar > span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 50px;
}

.service-bar > span + span {
  border-left: 1px solid #ffffff20;
}

.service-bar svg {
  width: 25px;
  height: 25px;
  color: #d6d7d8;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .service-bar {
    padding: 15px 8px;
    font-size: 11px;
  }

  .service-bar > span {
    gap: 9px;
    padding: 0 18px;
  }

  .service-bar svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 400px) {
  .service-bar > span {
    padding: 0 10px;
    gap: 7px;
  }
}

/* Container */
.container {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Catalog Section */
.catalog-section {
  padding-top: 48px;
  padding-bottom: 54px;
}

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

.section-heading h2, h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

#result-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-bottom: 4px;
}

/* Search and Sort */
.search-row {
  display: flex;
  gap: 12px;
}

.search {
  display: flex;
  align-items: center;
  background: #1b1c1e;
  border: 1px solid #343538;
  border-radius: 12px;
  flex: 1;
  padding: 0 17px;
  gap: 12px;
  transition: border-color 0.18s;
}

.search svg {
  width: 21px;
  height: 21px;
  color: #7e8084;
  flex-shrink: 0;
}

.search input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 15px 0;
  outline: none;
  min-width: 0;
  font: inherit;
}

.search:focus-within {
  border-color: var(--yellow);
}

#product-sort {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1b1c1e;
  color: #b8b9bc;
  padding: 0 14px;
  font-size: 12px;
  max-width: 190px;
  outline: none;
  cursor: pointer;
}

#product-sort:focus-visible {
  border-color: var(--yellow);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 0;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 550;
  border-radius: 8px;
  background: #1c1d1f;
  border: 1px solid #242527;
  color: #c3c4c5;
  cursor: pointer;
  transition: all 0.18s;
}

.category-tabs button:hover:not(.active) {
  border-color: #3b3c3e;
  color: #fff;
}

.category-tabs button.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #131400;
  font-weight: 700;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  background: linear-gradient(160deg, #1c1d1f, #151617);
  border: 1px solid #2b2c2e;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.18s;
}

.product-card:hover {
  border-color: #5a5b50;
}

.card-photo {
  aspect-ratio: 1.1;
  background: #151618;
  overflow: hidden;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.card-copy {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-copy h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.25px;
  margin: 0 0 8px;
  min-height: 40px;
}

.card-specs {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 15px;
  min-height: 32px;
}

.card-price {
  font-size: 23px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin-top: auto;
  margin-bottom: 16px;
}

.card-copy .button {
  position: relative;
  z-index: 2;
  width: 100%;
  font-size: 12px;
  padding: 11px 6px;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 700;
}

.card-copy .button.added {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

.detail-link {
  display: block;
  text-align: center;
  margin: 13px 0 0;
  font-size: 11px;
  color: #b5b6b8;
  text-underline-offset: 3px;
  position: relative;
  z-index: 2;
}

.detail-link:hover {
  color: #fff;
  text-decoration: underline;
}

.detail-link span {
  display: inline-block;
  margin-left: 7px;
}

/* Gas cylinder quantity selection */
.gas-packs {
  display: flex;
  gap: 6px;
  margin: 14px 0 8px;
  max-width: 330px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.gas-pack {
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.gas-pack.selected {
  background: var(--yellow, #ffe500);
  color: #111;
}

.gas-saving {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #aaa);
  margin: 0 0 14px;
  min-height: 18px;
}

#empty-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 15px;
}

#empty-results:not([hidden]) {
  display: block;
}

/* Responsive catalog */
@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .catalog-section {
    padding-top: 29px;
    padding-bottom: 32px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 19px;
  }

  .section-heading h2, h2 {
    font-size: 25px;
    letter-spacing: -0.6px;
  }

  .section-heading .eyebrow {
    display: none;
  }

  #result-count {
    font-size: 10px;
  }

  .search-row {
    gap: 8px;
  }

  .search {
    padding: 0 12px;
    gap: 8px;
  }

  .search input {
    font-size: 13px;
    padding: 13px 0;
  }

  #product-sort {
    font-size: 10px;
    padding: 0 8px;
    width: 118px;
  }

  .category-tabs {
    margin: 13px 0 18px;
    gap: 7px;
  }

  .category-tabs button {
    font-size: 11px;
    padding: 9px 15px;
  }

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

  .product-card {
    border-radius: 12px;
  }

  .card-photo {
    padding: 6px;
    aspect-ratio: 1;
  }

  .card-photo img {
    border-radius: 7px;
  }

  .card-copy {
    padding: 11px;
  }

  .card-copy h3 {
    font-size: 13px;
    letter-spacing: -0.15px;
    min-height: 33px;
    margin-bottom: 6px;
  }

  .card-specs {
    font-size: 10px;
    min-height: 29px;
    margin-bottom: 10px;
  }

  .card-price {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .card-copy .button {
    font-size: 10px;
    letter-spacing: -0.1px;
    padding: 10px 3px;
    min-height: 36px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .detail-link {
    font-size: 10px;
    margin-top: 11px;
  }
}

/* Purchase Section (Accordion) */
.purchase-section {
  padding-bottom: 45px;
}

.purchase-section details {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary > span {
  font-size: 24px;
  font-weight: 300;
  color: #9c9da0;
  transition: transform 0.2s ease;
  line-height: 1;
}

details[open] > summary > span {
  transform: rotate(45deg);
}

.purchase-content {
  color: var(--muted);
  font-size: 14px;
  max-width: 840px;
  padding: 0 0 20px;
  line-height: 1.6;
}

.purchase-content p {
  margin-bottom: 12px;
}

.purchase-content p:last-child {
  margin-bottom: 0;
}

.purchase-content b {
  color: #d6d7da;
  font-weight: 500;
}

@media (max-width: 768px) {
  .purchase-section {
    padding-bottom: 28px;
  }

  summary {
    font-size: 14px;
    padding: 19px 0;
  }

  .purchase-content {
    font-size: 12px;
  }
}

/* Store Footer */
.store-footer {
  max-width: 1288px;
  padding: 32px;
  margin: auto;
  border-top: 1px solid #26272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg);
  box-sizing: border-box;
}

.footer-logo {
  font-size: 22px;
}

.footer-logo > svg {
  width: 23px;
  height: 29px;
  color: var(--yellow);
  transform: rotate(180deg);
}

.store-footer > p {
  font-size: 11px;
  color: #727477;
  letter-spacing: 1px;
  margin: 0;
}

.store-footer > a:last-child {
  font-size: 12px;
  color: #b2b3b5;
  text-decoration: none;
  transition: color 0.18s;
}

.store-footer > a:last-child:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .store-footer {
    padding: 25px 16px;
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-logo {
    font-size: 21px;
  }

  .store-footer > p {
    display: none;
  }

  .store-footer > a:last-child {
    font-size: 11px;
  }
}

/* Product Page & Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8c8e91;
  font-size: 11px;
  margin: 28px 0;
}

.breadcrumb a {
  text-decoration: none;
  color: #d4d5d8;
  transition: color 0.18s;
}

.breadcrumb a:hover {
  color: #fff;
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 9px;
  margin-right: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s;
}

.back-arrow:hover {
  border-color: var(--yellow);
}

.back-arrow svg {
  width: 18px;
  height: 18px;
}

/* Product Overview */
.product-overview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 66px;
  align-items: center;
  padding-bottom: 45px;
}

.main-photo {
  background: #191a1c;
  border: 1px solid #292a2c;
  border-radius: 20px;
  padding: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-photo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumbnails button {
  padding: 4px;
  width: 66px;
  height: 66px;
  border-radius: 10px;
  border: 1px solid #353638;
  background: #1b1c1e;
  cursor: pointer;
  transition: border-color 0.18s;
}

.thumbnails button.selected {
  border-color: var(--yellow);
}

.thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.product-info h1 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -1.3px;
  margin: 0 0 21px;
  font-weight: 720;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags span {
  font-size: 11px;
  background: #242526;
  color: #c9cacc;
  padding: 7px 10px;
  border-radius: 6px;
}

.product-lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 22px 0;
}

.product-price {
  font-size: 36px;
  font-weight: 740;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.product-order {
  width: 100%;
  justify-content: space-between;
  min-height: 52px;
}

.under-button {
  font-size: 11px;
  color: #8a8c90;
  text-align: center;
  margin: 10px 0 26px;
}

.small-benefits {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #b4b6b8;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

/* Product Details (Accordion Specs, Features, etc.) */
.product-details {
  max-width: 930px;
  margin: 0 auto 55px;
}

.product-details details {
  border-bottom: 1px solid var(--line);
}

.product-details p,
.product-details li {
  color: #aeb0b2;
  font-size: 14px;
  line-height: 1.7;
}

.product-details ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.spec-table {
  margin: 0 0 24px;
}

.spec-table > div {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid #262729;
  font-size: 13px;
}

.spec-table dt {
  color: #8d8f92;
}

.spec-table dd {
  margin: 0;
  color: #d5d6d8;
}

/* Related section */
.related-section {
  padding-bottom: 55px;
}

.quiet-link {
  font-size: 12px;
  color: #b7b8bb;
  text-underline-offset: 4px;
  text-decoration: underline;
}

.related-grid .product-card:nth-child(n+5) {
  display: none;
}

.related-grid.expanded .product-card {
  display: flex !important;
}

.show-related {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  color: #b9bbbd;
  border: 1px solid #37383b;
  border-radius: 9px;
  padding: 10px 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
}

.show-related:hover {
  border-color: #55575b;
  color: #fff;
}

@media (max-width: 1050px) {
  .product-overview {
    gap: 35px;
  }

  .related-grid .product-card:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 768px) {
  .product-overview {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 25px;
  }

  .product-info h1 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .product-lead {
    font-size: 13px;
    margin: 16px 0;
  }

  .product-price {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .product-details {
    margin-bottom: 30px;
  }

  .spec-table > div {
    font-size: 12px;
    gap: 14px;
  }

  .product-details p,
  .product-details li {
    font-size: 12px;
  }

  .related-section {
    padding-bottom: 35px;
  }

  .related-section .section-heading h2 {
    font-size: 22px;
  }

  .quiet-link {
    font-size: 10px;
  }

  .related-grid .product-card:nth-child(n+3) {
    display: none;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--yellow);
  color: #151515;
  font-size: 13px;
  font-weight: 550;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.22s ease-out;
  user-select: none;
}

.toast[hidden] {
  display: none !important;
}

.toast span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast button {
  flex: none;
  border: 0;
  background: #151515;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
}

.toast button:hover {
  opacity: 0.9;
}

.toast button:active {
  transform: scale(0.96);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

/* Dialogs & Checkout Modal */
dialog {
  position: fixed;
  inset: 0 !important;
  margin: auto !important;
  color: var(--text);
  border: 1px solid #343538;
  background: #141517;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.7);
  padding: 0;
  border-radius: 20px;
  width: 890px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  height: fit-content;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

dialog:not([open]) {
  display: none !important;
}

dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.checkout-dialog {
  width: 890px;
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid #2b2c2f;
  background: #141517;
  z-index: 5;
  flex-shrink: 0;
}

.dialog-top h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.dialog-top .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: var(--muted);
}

.dialog-top .close {
  font-size: 24px;
  color: #9d9ea0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.dialog-top .close:hover {
  color: #fff;
}

.checkout-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 28px;
  overflow-y: auto;
  max-height: calc(100dvh - 120px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.checkout-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#basket-lines {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#basket-lines::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.basket-row {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #2b2c2f;
  align-items: start;
}

.basket-row:first-child {
  padding-top: 0;
}

.basket-row > img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background: #242528;
  border-radius: 8px;
}

.basket-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.basket-price {
  font-size: 12px;
  color: #a4a6aa;
  margin: 4px 0 9px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #393a3d;
  border-radius: 6px;
  overflow: hidden;
  background: #232426;
}

.quantity button {
  width: 28px;
  height: 27px;
  padding: 0;
  border: 0;
  background: #232426;
  color: #ddd;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.quantity button:hover {
  background: #323337;
}

.quantity output {
  width: 30px;
  text-align: center;
  font-size: 11px;
  display: block;
  line-height: 27px;
  color: #fff;
}

.remove-item {
  background: none;
  border: 0;
  color: #888a8e;
  font-size: 21px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.15s;
}

.remove-item:hover {
  color: #fff;
}

.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
}

.basket-total > span {
  color: #a6a8ab;
  font-size: 13px;
}

.basket-total strong {
  font-size: 25px;
  letter-spacing: -0.6px;
  color: var(--text);
}

.more-products {
  font-size: 12px;
  padding: 0;
  color: #d5d6d7;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.15s;
}

.more-products:hover {
  color: #fff;
}

#checkout-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

#checkout-form label {
  display: block;
  font-size: 12px;
  color: #d1d2d4;
  margin-bottom: 16px;
}

#checkout-form input:not([type=hidden]) {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #353639;
  border-radius: 8px;
  background: #202123;
  color: #eee;
  font-size: 13px;
  margin-top: 7px;
  user-select: text;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}

#checkout-form input:focus {
  outline: none;
  border-color: var(--yellow);
}

#checkout-form input::placeholder {
  color: #74767a;
}

.phone-control {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #353639;
  border-radius: 8px;
  margin-top: 7px;
  background: #202123;
  transition: border-color 0.15s;
}

.phone-control:focus-within {
  border-color: var(--yellow);
}

.phone-prefix {
  padding-left: 13px;
  color: #e2e3e5;
  font-size: 13px;
  user-select: none;
}

#checkout-form .phone-control input {
  margin: 0;
  border: 0;
  flex: 1;
  width: 0;
  background: transparent;
}

.submit-order {
  width: 100%;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.privacy-note {
  font-size: 10px;
  line-height: 1.55;
  color: #727478;
  margin: 0;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

.basket-empty-msg {
  text-align: center;
  color: var(--muted);
  padding: 30px 10px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .checkout-dialog {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }
  .dialog-top {
    padding: 18px;
  }
  .dialog-top h2 {
    font-size: 23px;
  }
  .checkout-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 18px;
  }
  .basket-row {
    grid-template-columns: 55px 1fr auto;
    gap: 12px;
  }
  .basket-row > img {
    width: 55px;
    height: 55px;
  }
  .basket-total {
    margin: 18px 0;
  }
  .basket-total strong {
    font-size: 23px;
  }
  #checkout-form {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
}

