[hidden] { display: none !important; }

.store-page {
  background: var(--bg);
  color: var(--ink);
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: min(720px, calc(100dvh - 96px));
  padding-block: clamp(3.5rem, 8vh, 6rem);
  border-bottom: 1px solid var(--line);
}

.store-hero__copy { padding-inline-start: clamp(0rem, 4vw, 4rem); }
.store-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.045em;
}
.store-hero p { max-width: 38rem; margin: 1.75rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--muted); }
.store-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 2rem; }
.store-cart-button {
  min-height: 48px;
  padding: .75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.store-cart-button span { font-variant-numeric: tabular-nums; color: var(--accent); }
.store-cart-button:hover, .store-cart-button:focus-visible { border-color: var(--ink); }
.store-cart-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.store-cart-button:active { transform: translateY(1px); }

.store-hero__visual { position: relative; min-width: 0; margin: 0; padding: clamp(1rem, 3vw, 2.5rem); }
.store-hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% 4% 6% 12%;
  background: radial-gradient(ellipse at center, rgb(240 77 33 / 18%), rgb(240 77 33 / 0%) 67%);
  pointer-events: none;
}
.store-hero__visual img { position: relative; display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }

.store-catalog { padding-block: clamp(4rem, 8vw, 7rem); }
.store-catalog > h2 { max-width: 13ch; margin: 0 0 2.5rem; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1; letter-spacing: -.035em; }
.store-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); grid-template-rows: repeat(2, minmax(270px, auto)); border-top: 1px solid var(--line); }
.store-product { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(220px, 1.1fr); min-width: 0; padding: clamp(1.5rem, 3vw, 3rem); border-bottom: 1px solid var(--line); transition: background 160ms cubic-bezier(.2, 0, 0, 1); }
.store-product:first-child { grid-row: 1 / 3; border-right: 1px solid var(--line); align-content: space-between; }
.store-product:not(:first-child) { grid-template-columns: 1fr 150px; gap: 1rem; }
.store-product:hover, .store-product:focus-within { background: var(--surface); }
.store-product__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.store-product h3 { max-width: 12ch; margin: 0; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.store-product p { max-width: 32rem; margin: 1rem 0 0; color: var(--muted); line-height: 1.55; }
.store-product__price { display: block; margin-top: auto; padding-top: 2rem; font-size: clamp(1.75rem, 3vw, 3.25rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.store-product__price small { display: block; margin-top: .4rem; font-size: .78rem; line-height: 1.4; letter-spacing: 0; color: var(--muted); }
.store-product__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1.5rem; }
.store-product__actions a { color: var(--ink); text-underline-offset: .25em; }
.store-product__image { min-width: 0; align-self: end; margin: 0; }
.store-product__image img { display: block; width: 100%; height: 100%; max-height: 340px; object-fit: contain; transition: transform 160ms cubic-bezier(.2, 0, 0, 1); }
.store-product:hover .store-product__image img, .store-product:focus-within .store-product__image img { transform: translateY(-3px); }

.product-cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.product-cart-actions .button, .product-cart-actions .btn { white-space: nowrap; }
.product-cart-actions .product-text-link, .pg button.tlink, .pg button.btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.product-cart-actions .product-text-link, .pg button.tlink { padding: 0; background: transparent; }
.product-cart-actions .product-text-link:focus-visible, .pg button.tlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.telecom-cart-ui dialog { color: var(--ink); }
.cart-live-region { position: fixed; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.cart-dialog { width: min(760px, calc(100vw - 2rem)); max-height: min(840px, calc(100dvh - 2rem)); margin: auto; padding: 0; border: 0; border-radius: 8px; background: var(--bg); box-shadow: 0 24px 64px rgb(11 17 19 / 20%); }
.cart-dialog::backdrop { background: rgb(11 17 19 / 55%); }
.cart-dialog__frame { max-height: inherit; overflow: auto; padding: clamp(1.5rem, 5vw, 3rem); }
.cart-dialog__frame > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.cart-dialog__frame > header h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1; letter-spacing: -.03em; }
.cart-dialog__frame > header button, .cart-line-actions button, .cart-dialog__actions > button:not(.button) { min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.cart-dialog__frame > header button:focus-visible, .cart-line-actions button:focus-visible, .cart-dialog__actions > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-dialog__frame > p { color: var(--muted); line-height: 1.55; }
.cart-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.cart-form-grid label, .cart-code-field { display: grid; gap: .5rem; }
.cart-form-grid .is-wide { grid-column: 1 / -1; }
.cart-form-grid input, .cart-code-field input { min-height: 48px; padding: .75rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; }
.cart-form-grid input::placeholder { color: rgb(11 17 19 / 62%); }
.cart-form-grid input:focus, .cart-code-field input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-code-field { margin-top: 2rem; }
.cart-code-field input { max-width: 14rem; font-size: 1.5rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.cart-dialog__primary { margin-top: 1.5rem; white-space: nowrap; }
.cart-dialog__status { min-height: 1.5em; margin: 1rem 0 0; color: var(--muted); }
.cart-dialog__status.is-error { color: var(--accent); }
.cart-dialog fieldset { margin: 2rem 0 0; padding: 0; border: 0; }
.cart-dialog legend { margin-bottom: .75rem; font-size: 1.125rem; font-weight: 650; }
.cart-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.cart-choice-grid label { position: relative; display: block; min-width: 0; cursor: pointer; }
.cart-choice-grid input { position: absolute; inset: .75rem .75rem auto auto; inline-size: 1.25rem; block-size: 1.25rem; accent-color: var(--accent); }
.cart-choice-grid label > span { display: block; min-height: 56px; padding: 1rem 2.5rem 1rem 1rem; border: 1px solid var(--line); background: var(--surface); font-weight: 650; }
.cart-choice-grid input:checked + span { border-color: var(--accent); background: rgb(240 77 33 / 8%); }
.cart-choice-grid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-choice-grid small { display: block; margin-top: .35rem; color: var(--muted); font-weight: 400; }
.cart-choice-empty { grid-column: 1 / -1; padding: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.cart-lines h3, .cart-lines p { margin: 0; }
.cart-lines p { margin-top: .35rem; color: var(--muted); }
.cart-lines > li > strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line-actions { grid-column: 1 / -1; display: flex; gap: 1rem; }
.cart-reservation strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-reservation.is-expired, .cart-lines .is-warning { color: var(--accent); }
.cart-totals { margin: 1.5rem 0 0; }
.cart-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.cart-totals dt, .cart-totals dd { margin: 0; }
.cart-totals dd { font-variant-numeric: tabular-nums; }
.cart-totals .is-grand { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.3rem; font-weight: 700; }
.cart-dialog__actions { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.cart-empty { padding-block: 3rem; text-align: center; }
.cart-empty h3 { margin: 0; font-size: 1.75rem; }
.cart-empty p { color: var(--muted); }
.cart-empty a { color: var(--ink); text-underline-offset: .25em; }
.cart-skeleton { display: grid; gap: .75rem; padding-block: 2rem; }
.cart-skeleton span { display: block; height: 72px; background: linear-gradient(90deg, var(--surface), rgb(240 77 33 / 8%), var(--surface)); background-size: 200% 100%; }

@media (max-width: 900px) {
  .store-hero { grid-template-columns: 1fr; min-height: auto; padding-block: 3rem; }
  .store-hero__copy { padding-inline: 0; }
  .store-hero h1 { max-width: 12ch; font-size: clamp(2.75rem, 11vw, 4.5rem); }
  .store-hero__visual { max-width: 560px; justify-self: center; }
  .store-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .store-product, .store-product:first-child, .store-product:not(:first-child) { grid-row: auto; grid-template-columns: minmax(0, 1fr) minmax(150px, .6fr); border-right: 0; }
}

@media (max-width: 620px) {
  .store-hero { gap: 1rem; }
  .store-hero__visual { padding: 0; }
  .store-product, .store-product:first-child, .store-product:not(:first-child) { grid-template-columns: 1fr; }
  .store-product__image { grid-row: 1; max-height: 230px; }
  .store-product__copy { grid-row: 2; }
  .cart-form-grid, .cart-choice-grid { grid-template-columns: 1fr; }
  .cart-dialog { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .cart-dialog__frame { min-height: 100%; }
  .cart-dialog__actions { align-items: stretch; flex-direction: column-reverse; }
  .cart-dialog__actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .store-product, .store-product__image img { transition: none; }
}
