/*
 * PhoneHub premium storefront shell.
 * The visual system is intentionally namespaced with .ph- so the preserved
 * admin interface and current storefront templates remain isolated.
 */

:root {
  --ph-canvas: #f7f7f5;
  --ph-surface: #ffffff;
  --ph-ink: #111111;
  --ph-muted: #656563;
  --ph-line: #dededb;
  --ph-accent: #287ab7;
  --ph-focus: #005fcc;
  --ph-space-1: 4px;
  --ph-space-2: 8px;
  --ph-space-3: 12px;
  --ph-space-4: 16px;
  --ph-space-5: 24px;
  --ph-space-6: 32px;
  --ph-space-7: 48px;
  --ph-radius: 10px;
  --ph-shadow: 0 12px 30px rgb(17 17 17 / 7%);
}

.ph-page {
  min-height: 100%;
  background: var(--ph-canvas);
  color: var(--ph-ink);
  font-family: Manrope, Inter, Arial, sans-serif;
}

.ph-page * {
  box-sizing: border-box;
}

.ph-page a {
  color: inherit;
}

.ph-page h1,
.ph-page h2,
.ph-page h3 {
  font-family: Manrope, Inter, Arial, sans-serif;
}

.ph-page button,
.ph-page input {
  font: inherit;
}

.ph-page :focus-visible {
  outline: 3px solid var(--ph-focus);
  outline-offset: 3px;
}

/* 12-column desktop shell; tablet and mobile switch to 8 / 4 columns below. */
.ph-shell,
.ph-grid {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--ph-space-3);
}

.ph-site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--ph-line);
  backdrop-filter: blur(14px);
}

.ph-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
  gap: var(--ph-space-4);
}

.phonehub-brand,
.ph-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  overflow: visible;
  color: var(--ph-ink);
  text-decoration: none;
  white-space: nowrap;
}

.phonehub-brand-horizontal {
  display: block;
  width: 156px;
  min-width: 156px;
  height: 32px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.phonehub-brand-mark {
  display: none;
  width: 32px;
  height: 32px;
  max-width: none;
  object-fit: contain;
}

.ph-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  min-width: 0;
}

.ph-desktop-nav a,
.ph-header-service,
.ph-text-link {
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.ph-desktop-nav a {
  padding: var(--ph-space-2) 0;
  border-bottom: 1px solid transparent;
}

.ph-desktop-nav a:hover,
.ph-desktop-nav a[aria-current="page"] {
  border-color: var(--ph-ink);
}

.ph-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ph-space-1);
}

.ph-icon-button,
.ph-mobile-menu-toggle,
.ph-search-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--ph-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ph-radius);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ph-icon-button:hover,
.ph-mobile-menu-toggle:hover,
.ph-search-close:hover {
  background: #ececea;
}

.ph-icon-button.is-selected {
  color: var(--ph-surface);
  background: var(--ph-ink);
  border-color: var(--ph-ink);
}

.ph-icon-button i,
.ph-mobile-menu-toggle i,
.ph-search-close i {
  font-size: 17px;
}

.ph-header-service {
  margin-inline: var(--ph-space-2);
  white-space: nowrap;
}

.ph-cart-link,
.ph-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: var(--ph-space-2);
  padding: 0 14px;
  border: 1px solid var(--ph-ink);
  border-radius: var(--ph-radius);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ph-cart-link,
.ph-button-dark {
  color: var(--ph-surface);
  background: var(--ph-ink);
}

.ph-page a.ph-button-dark,
.ph-page a.ph-cart-link {
  color: var(--ph-surface);
}

.ph-cart-link:hover,
.ph-button-dark:hover {
  background: #30302f;
}

.ph-cart-count {
  min-width: 1ch;
}

.ph-mobile-menu-toggle,
.ph-mobile-nav {
  display: none;
}

.ph-search-dialog {
  width: min(calc(100% - 32px), 640px);
  padding: var(--ph-space-5);
  color: var(--ph-ink);
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow);
}

.ph-search-dialog::backdrop {
  background: rgb(17 17 17 / 42%);
}

.ph-search-dialog[hidden] {
  display: none;
}

.ph-search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-3);
  margin-bottom: var(--ph-space-5);
}

.ph-search-dialog h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.ph-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--ph-space-2);
}

.ph-search-form input {
  min-height: 48px;
  padding: 0 var(--ph-space-3);
  color: var(--ph-ink);
  background: var(--ph-canvas);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
}

.ph-search-form .ph-button {
  min-height: 48px;
}

.ph-search-suggestions {
  margin-top: var(--ph-space-5);
  border-top: 1px solid var(--ph-line);
}

.ph-search-suggestions > p {
  margin: var(--ph-space-4) 0 var(--ph-space-2);
  color: var(--ph-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-search-suggestions ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph-search-suggestions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-3);
  min-height: 42px;
  padding: 0 var(--ph-space-2);
  color: var(--ph-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--ph-radius);
}

.ph-search-suggestions a:hover {
  background: var(--ph-canvas);
}

.ph-search-suggestion-price {
  display: block;
  text-align: right;
}

.ph-search-suggestion-price .ph-price-czk {
  font-size: 13px;
}

.ph-search-suggestion-price .ph-price-eur {
  display: none;
}

.ph-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
}

.ph-product-card-actions {
  position: absolute;
  z-index: 1;
  top: var(--ph-space-2);
  right: var(--ph-space-2);
  display: flex;
  gap: var(--ph-space-1);
}

.ph-product-card-actions .ph-icon-button {
  background: rgb(255 255 255 / 90%);
  border-color: var(--ph-line);
}

.ph-product-card-media {
  display: block;
  aspect-ratio: 4 / 5;
  background: #f1f1ef;
}

.ph-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ph-product-card-body {
  display: grid;
  gap: var(--ph-space-3);
  padding: var(--ph-space-4);
}

.ph-product-card h3,
.ph-product-card p {
  margin: 0;
}

.ph-product-card h3 {
  font-size: 18px;
  letter-spacing: -0.035em;
}

.ph-product-card h3 a {
  text-decoration: none;
}

.ph-product-card p,
.ph-price-eur {
  color: var(--ph-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ph-price {
  display: grid;
  gap: var(--ph-space-1);
}

.ph-price-czk {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.ph-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-3);
}

.ph-button {
  cursor: pointer;
}

.ph-button:not(.ph-button-dark) {
  color: var(--ph-ink);
  background: var(--ph-surface);
}

.ph-button:disabled {
  color: var(--ph-muted);
  border-color: var(--ph-line);
  cursor: not-allowed;
}

.ph-text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ph-service-strip {
  background: var(--ph-surface);
  border-block: 1px solid var(--ph-line);
}

.ph-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ph-service-item {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: var(--ph-space-3);
  padding: var(--ph-space-4) var(--ph-space-5);
  color: var(--ph-ink);
  text-decoration: none;
}

.ph-service-item + .ph-service-item {
  border-left: 1px solid var(--ph-line);
}

.ph-service-item i {
  font-size: 22px;
}

.ph-service-item div {
  display: grid;
  gap: var(--ph-space-1);
}

.ph-service-item strong {
  font-size: 14px;
}

.ph-service-item span {
  color: var(--ph-muted);
  font-size: 12px;
}

.ph-faq {
  border-top: 1px solid var(--ph-line);
}

.ph-faq-item {
  border-bottom: 1px solid var(--ph-line);
}

.ph-faq-item h3 {
  margin: 0;
}

.ph-faq-trigger {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-4);
  padding: var(--ph-space-3) 0;
  color: var(--ph-ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ph-faq-trigger i {
  flex: 0 0 auto;
}

.ph-faq-panel {
  max-width: 72ch;
  padding: 0 0 var(--ph-space-4);
  color: var(--ph-muted);
  line-height: 1.6;
}

.ph-faq-panel p {
  margin: 0;
}

.ph-specs {
  margin: 0;
  border-top: 1px solid var(--ph-line);
}

.ph-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ph-space-4);
  padding: var(--ph-space-3) 0;
  border-bottom: 1px solid var(--ph-line);
}

.ph-spec-row dt {
  color: var(--ph-muted);
}

.ph-spec-row dd {
  margin: 0;
  font-weight: 700;
}

.ph-site-footer {
  margin-top: var(--ph-space-7);
  color: var(--ph-ink);
  background: var(--ph-surface);
  border-top: 1px solid var(--ph-line);
}

.ph-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--ph-space-5);
  padding-block: var(--ph-space-7);
}

.ph-footer-brand p {
  max-width: 32ch;
  margin: var(--ph-space-3) 0 0;
  color: var(--ph-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ph-footer-column {
  display: grid;
  align-content: start;
  gap: var(--ph-space-2);
}

.ph-footer-column h2 {
  margin: 0 0 var(--ph-space-1);
  font-size: 13px;
}

.ph-footer-column a {
  color: var(--ph-muted);
  font-size: 13px;
  text-decoration: none;
}

.ph-footer-column a:hover {
  color: var(--ph-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ph-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--ph-space-3);
  padding-block: var(--ph-space-4);
  color: var(--ph-muted);
  border-top: 1px solid var(--ph-line);
  font-size: 12px;
}

.ph-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contacts page: a dedicated PhoneHub support surface, separate from legacy panels. */
.ph-contact-page {
  padding-block: clamp(32px, 5vw, 76px) clamp(56px, 8vw, 112px);
  background:
    radial-gradient(circle at 84% 7%, rgb(196 202 207 / 34%), transparent 23rem),
    var(--ph-canvas);
}

.ph-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  overflow: hidden;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  box-shadow: var(--ph-shadow);
}

.ph-contact-copy {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 580px;
  padding: clamp(32px, 5vw, 76px);
  background:
    linear-gradient(120deg, rgb(255 255 255 / 96%), rgb(247 247 245 / 70%)),
    radial-gradient(circle at 84% 22%, rgb(214 218 220 / 70%), transparent 34%);
}

.ph-contact-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: .98;
}

.ph-contact-copy > p:not(.ph-kicker) {
  max-width: 52ch;
  margin: 0;
  color: var(--ph-muted);
  font-size: 16px;
  line-height: 1.7;
}

.ph-contact-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ph-space-3);
  margin: auto 0 0;
  padding: var(--ph-space-5) 0 0;
  border-top: 1px solid var(--ph-line);
}

.ph-contact-signals div {
  display: grid;
  gap: 6px;
}

.ph-contact-signals dt {
  color: var(--ph-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ph-contact-signals dd {
  margin: 0;
  color: var(--ph-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.ph-contact-signals a {
  text-decoration: none;
}

.ph-contact-signals a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ph-contact-form {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
  background: #efefed;
  border-left: 1px solid var(--ph-line);
}

.ph-contact-form-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.ph-contact-form-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.ph-contact-field {
  display: grid;
  gap: 8px;
}

.ph-contact-field > span {
  font-size: 12px;
  font-weight: 750;
}

.ph-contact-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ph-ink);
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ph-contact-input::placeholder {
  color: #8a8a88;
}

.ph-contact-input:focus {
  border-color: var(--ph-ink);
  box-shadow: 0 0 0 3px rgb(17 17 17 / 8%);
}

.ph-contact-textarea {
  min-height: 136px;
  padding-block: 14px;
  resize: vertical;
}

.ph-contact-form .ph-button {
  width: fit-content;
  min-height: 50px;
  margin-top: 6px;
  padding-inline: 20px;
}

@media (max-width: 1100px) {
  .ph-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .ph-desktop-nav {
    gap: var(--ph-space-3);
  }

}

@media (max-width: 900px) {
  .ph-site-header .phonehub-brand-horizontal {
    display: none;
  }

  .ph-site-header .phonehub-brand-mark {
    display: block;
  }

  .ph-site-footer .phonehub-brand-horizontal {
    display: block;
  }

  .ph-site-footer .phonehub-brand-mark {
    display: none;
  }
}

@media (max-width: 760px) {
  .ph-shell,
  .ph-grid {
    width: min(100% - 32px, 1440px);
  }

  .ph-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ph-space-2);
  }

  .ph-header-main {
    grid-template-columns: auto 1fr auto;
    min-height: 60px;
  }

  .ph-mobile-menu-toggle {
    display: inline-grid;
  }

  .ph-desktop-nav,
  .ph-header-actions .ph-header-service {
    display: none;
  }

  .ph-mobile-nav {
    padding: 0 16px 16px;
    background: var(--ph-surface);
    border-top: 1px solid var(--ph-line);
  }

  .ph-mobile-nav:not([hidden]) {
    display: grid;
    gap: var(--ph-space-1);
  }

  .ph-mobile-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-inline: var(--ph-space-2);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--ph-radius);
  }

  .ph-mobile-nav a:hover {
    background: #ececea;
  }

  .ph-icon-button,
  .ph-mobile-menu-toggle,
  .ph-search-close,
  .ph-cart-link,
  .ph-button {
    min-width: 44px;
    min-height: 44px;
  }

  .ph-cart-link {
    padding-inline: var(--ph-space-3);
  }

  .ph-search-dialog {
    padding: var(--ph-space-4);
  }

  .ph-search-form {
    grid-template-columns: 1fr;
  }

  .ph-service-grid,
  .ph-footer-grid {
    grid-template-columns: 1fr;
  }

  .ph-service-item + .ph-service-item {
    border-top: 1px solid var(--ph-line);
    border-left: 0;
  }

  .ph-service-item {
    min-height: 76px;
    padding: var(--ph-space-3) 0;
  }

  .ph-footer-grid {
    padding-block: var(--ph-space-6);
  }

  .ph-contact-page {
    padding-block: 24px 56px;
  }

  .ph-contact-grid {
    grid-template-columns: 1fr;
  }

  .ph-contact-copy {
    min-height: 0;
    padding: 32px 24px;
  }

  .ph-contact-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .ph-contact-signals {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ph-contact-form {
    padding: 32px 24px;
    border-top: 1px solid var(--ph-line);
    border-left: 0;
  }

  .ph-footer-bottom {
    display: grid;
  }

  .ph-spec-row {
    grid-template-columns: 1fr;
    gap: var(--ph-space-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-page *,
  .ph-page *::before,
  .ph-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .ph-page {
    --ph-line: #777774;
    --ph-muted: #363634;
  }

  .ph-site-header,
  .ph-product-card,
  .ph-search-dialog {
    border-width: 2px;
  }
}

/* Home, catalogue and search: selected platinum studio direction. */
.ph-home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100svh - 68px));
  background: #f3f3f1;
  border-bottom: 1px solid var(--ph-line);
}

.ph-home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 62%));
}

.ph-home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: min(720px, calc(100svh - 68px));
  align-items: center;
}

.ph-home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
  padding: clamp(56px, 8vw, 136px) 0;
}

.ph-kicker {
  margin: 0 0 12px;
  color: var(--ph-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ph-home-hero h1,
.ph-home-section h2,
.ph-catalog-heading h1,
.ph-comparison-cta h2 {
  margin: 0;
  color: var(--ph-ink);
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.ph-home-hero-copy > p:not(.ph-kicker):not(.ph-home-from) {
  max-width: 35ch;
  margin: 26px 0 0;
  color: var(--ph-muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.6;
}

.ph-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.ph-home-hero-actions .ph-button {
  min-height: 48px;
  padding-inline: 20px;
}

.ph-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ph-ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.ph-inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ph-home-from {
  display: grid;
  gap: 4px;
  margin: 64px 0 0;
  font-size: 13px;
}

.ph-home-hero-price .ph-price-czk {
  font-size: clamp(27px, 3vw, 40px);
}

.ph-home-hero-price .ph-price-eur {
  font-size: 13px;
}

.ph-home-hero-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
}

.ph-home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.ph-home-categories {
  padding: 28px 0;
  background: var(--ph-surface);
  border-bottom: 1px solid var(--ph-line);
}

.ph-category-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ph-category-card {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 12px;
  padding: 4px 18px 0;
  color: var(--ph-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-left: 1px solid var(--ph-line);
}

.ph-category-card:first-child {
  border-left: 0;
}

.ph-category-card img {
  width: min(100%, 104px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 220ms ease;
}

.ph-category-card:hover img {
  transform: translateY(-4px) scale(1.03);
}

.ph-home-section {
  padding: clamp(64px, 8vw, 128px) 0;
}

.ph-home-section-muted {
  background: #f1f1ef;
  border-block: 1px solid var(--ph-line);
}

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

.ph-section-heading h2,
.ph-faq-layout h2 {
  font-size: clamp(29px, 3.25vw, 48px);
  line-height: 1.02;
}

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

.ph-product-card {
  border-radius: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ph-product-card:hover {
  z-index: 1;
  border-color: #c4c4c0;
  box-shadow: 0 18px 35px rgb(17 17 17 / 8%);
  transform: translateY(-4px);
}

.ph-product-card-media {
  aspect-ratio: 1 / 1.12;
  background: #f4f4f2;
}

.ph-product-card-body {
  align-content: start;
  min-height: 206px;
  padding: 22px;
}

.ph-product-card-footer {
  margin-top: auto;
}

.ph-service-strip {
  background: var(--ph-surface);
}

.ph-comparison-cta,
.ph-newsletter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 8vw, 136px);
  padding: clamp(32px, 5vw, 72px);
  background: linear-gradient(130deg, #101010, #272725 64%, #4c4c47);
  color: #fff;
}

.ph-comparison-cta h2,
.ph-newsletter-panel h2 {
  color: #fff;
  font-size: clamp(29px, 3.5vw, 52px);
}

.ph-comparison-cta p:not(.ph-kicker),
.ph-newsletter-panel p:not(.ph-kicker) {
  max-width: 58ch;
  margin: 16px 0 0;
  color: rgb(255 255 255 / 70%);
  line-height: 1.6;
}

.ph-comparison-cta .ph-kicker,
.ph-newsletter-panel .ph-kicker {
  color: #a9d5f8;
}

.ph-comparison-cta .ph-button,
.ph-newsletter-panel .ph-button {
  flex: 0 0 auto;
  color: var(--ph-ink);
  background: #fff;
  border-color: #fff;
}

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

.ph-review-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 220px;
  padding: 28px;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
}

.ph-review-card p {
  margin: 0;
  color: var(--ph-muted);
  line-height: 1.7;
}

.ph-review-card .ph-review-stars {
  color: var(--ph-ink);
  font-size: 13px;
  letter-spacing: 2px;
}

.ph-faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 8vw, 128px);
}

.ph-faq-layout > div > p:last-child {
  max-width: 38ch;
  color: var(--ph-muted);
  line-height: 1.65;
}

.ph-home-newsletter {
  padding-top: 0;
}

.ph-newsletter-form {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  min-width: min(100%, 460px);
  gap: 8px;
}

.ph-newsletter-form input,
.ph-filter-field input {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ph-ink);
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: 0;
}

.ph-catalog-heading {
  padding: clamp(56px, 8vw, 112px) 0 42px;
  background: #f1f1ef;
  border-bottom: 1px solid var(--ph-line);
}

.ph-catalog-heading h1 {
  max-width: 850px;
  font-size: clamp(42px, 5.5vw, 72px);
}

.ph-catalog-heading > .ph-shell > p:last-child {
  max-width: 60ch;
  margin: 22px 0 0;
  color: var(--ph-muted);
  line-height: 1.65;
}

.ph-catalog-category-nav {
  position: sticky;
  z-index: 15;
  top: 68px;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--ph-line);
  backdrop-filter: blur(12px);
}

.ph-category-links {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ph-category-links::-webkit-scrollbar {
  display: none;
}

.ph-category-links a {
  flex: 0 0 auto;
  padding: 16px 0 14px;
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.ph-category-links a:hover,
.ph-category-links a.is-active {
  color: var(--ph-ink);
  border-color: var(--ph-ink);
}

.ph-catalog-section {
  padding: 32px 0 96px;
}

.ph-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ph-catalog-toolbar p {
  margin: 0;
  color: var(--ph-muted);
  font-size: 14px;
}

.ph-catalog-toolbar strong {
  color: var(--ph-ink);
}

.ph-catalog-toolbar [data-ph-filter-toggle] {
  display: none;
}

.ph-catalog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 254px) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.ph-catalog-filter-rail {
  position: sticky;
  top: 136px;
  padding-right: 28px;
  border-right: 1px solid var(--ph-line);
}

.ph-catalog-filter-rail form,
.ph-filter-sheet form {
  display: grid;
  gap: 24px;
}

.ph-filter-field {
  display: grid;
  gap: 10px;
}

.ph-filter-field label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.ph-filter-field output {
  color: var(--ph-muted);
  font-weight: 650;
}

.ph-filter-field input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--ph-ink);
}

.ph-filter-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}

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

.ph-empty-state {
  display: grid;
  justify-items: start;
  max-width: 580px;
  gap: 12px;
  margin-top: 32px;
  padding: 36px;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
}

.ph-empty-state h2,
.ph-empty-state p {
  margin: 0;
}

.ph-empty-state p:not(.ph-kicker) {
  color: var(--ph-muted);
  line-height: 1.6;
}

.ph-filter-sheet {
  display: none;
}

@media (max-width: 760px) {
  .ph-home-hero,
  .ph-home-hero-grid {
    min-height: 720px;
  }

  .ph-home-hero-grid {
    display: block;
  }

  .ph-home-hero-copy {
    max-width: 100%;
    padding-top: 56px;
  }

  .ph-home-hero h1,
  .ph-catalog-heading h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .ph-home-hero-media {
    inset: auto -96px -18px 8%;
    height: 54%;
  }

  .ph-home-hero-media img {
    width: 100%;
    object-position: center bottom;
  }

  .ph-home-from {
    margin-top: 42px;
  }

  .ph-category-rail {
    grid-template-columns: repeat(6, minmax(98px, 1fr));
    width: max-content;
  }

  .ph-home-categories {
    overflow-x: auto;
  }

  .ph-category-rail {
    width: max-content;
    margin-inline: 0;
    padding-inline: 16px;
  }

  .ph-category-card {
    width: 104px;
    padding-inline: 8px;
  }

  .ph-home-section {
    padding: 64px 0;
  }

  .ph-section-heading,
  .ph-comparison-cta,
  .ph-newsletter-panel {
    align-items: start;
    flex-direction: column;
  }

  .ph-section-heading {
    margin-bottom: 24px;
  }

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

  .ph-product-card-body {
    min-height: auto;
  }

  .ph-comparison-cta,
  .ph-newsletter-panel {
    padding: 28px;
  }

  .ph-faq-layout,
  .ph-catalog-layout {
    grid-template-columns: 1fr;
  }

  .ph-catalog-category-nav {
    top: 60px;
  }

  .ph-catalog-section {
    padding: 24px 0 64px;
  }

  .ph-catalog-toolbar [data-ph-filter-toggle] {
    display: inline-flex;
  }

  .ph-catalog-filter-rail {
    display: none;
  }

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

  .ph-catalog-grid .ph-product-card-body {
    padding: 14px;
  }

  .ph-catalog-grid .ph-product-card h3,
  .ph-catalog-grid .ph-price-czk {
    font-size: 15px;
  }

  .ph-catalog-grid .ph-product-card p,
  .ph-catalog-grid .ph-price-eur,
  .ph-catalog-grid .ph-text-link {
    display: none;
  }

  .ph-catalog-grid .ph-product-card-footer {
    justify-content: start;
  }

  .ph-filter-sheet:not([hidden]) {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: grid;
    align-items: end;
  }

  .ph-filter-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(17 17 17 / 46%);
  }

  .ph-filter-sheet-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    max-height: min(90svh, 640px);
    padding: 24px 16px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--ph-surface);
    border-radius: 18px 18px 0 0;
  }

  .ph-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .ph-filter-sheet-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.04em;
  }

  .ph-newsletter-form {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* Device detail and comparison: premium, factual product decisions. */
.ph-device-detail {
  padding: clamp(32px, 6vw, 88px) 0 clamp(64px, 9vw, 128px);
  background: var(--ph-canvas);
}

.ph-device-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: start;
  gap: clamp(32px, 7vw, 112px);
}

.ph-device-gallery {
  min-width: 0;
}

.ph-device-gallery-stage {
  min-height: min(66vw, 720px);
  overflow: hidden;
  background: #f0f0ee;
  border: 1px solid var(--ph-line);
}

.ph-device-media {
  display: grid;
  min-height: inherit;
  margin: 0;
  place-items: center;
}

.ph-device-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
}

.ph-device-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}

.ph-device-thumb {
  display: grid;
  flex: 0 0 92px;
  gap: 5px;
  padding: 6px;
  color: var(--ph-muted);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  text-align: left;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  cursor: pointer;
}

.ph-device-thumb.is-active {
  color: var(--ph-ink);
  border-color: var(--ph-ink);
}

.ph-device-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f2f2f0;
}

.ph-device-purchase {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
  padding-top: clamp(8px, 2vw, 32px);
}

.ph-device-purchase h1,
.ph-device-section h2,
.ph-compare-heading h1,
.ph-compare-empty h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.ph-device-summary {
  max-width: 48ch;
  margin: -6px 0 0;
  color: var(--ph-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ph-device-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-block: 1px solid var(--ph-line);
}

.ph-device-money .ph-price-czk {
  font-size: clamp(28px, 3.2vw, 42px);
}

.ph-device-stock {
  margin: 0;
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.ph-device-field {
  display: grid;
  gap: 10px;
  color: var(--ph-ink);
  font-size: 13px;
  font-weight: 800;
}

.ph-device-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ph-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  border-radius: 0;
}

.ph-device-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.ph-device-actions .ph-button {
  min-height: 52px;
}

.ph-device-qty {
  display: grid;
  grid-template-columns: 40px minmax(28px, auto) 40px;
  min-height: 52px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--ph-line);
}

.ph-device-qty button {
  display: grid;
  width: 40px;
  height: 50px;
  place-items: center;
  padding: 0;
  color: var(--ph-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ph-device-qty output {
  font-size: 14px;
  font-weight: 800;
}

.ph-device-compare-link {
  justify-self: start;
}

.ph-device-section {
  padding: clamp(64px, 9vw, 128px) 0;
  background: var(--ph-surface);
  border-top: 1px solid var(--ph-line);
}

.ph-device-section-muted {
  background: #f0f0ee;
}

.ph-device-section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 8vw, 128px);
}

.ph-device-section h2 {
  max-width: 10ch;
  font-size: clamp(30px, 3.2vw, 48px);
}

.ph-device-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ph-device-reviews article {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  background: var(--ph-canvas);
  border: 1px solid var(--ph-line);
}

.ph-device-reviews article > div {
  color: var(--ph-ink);
  font-size: 12px;
  letter-spacing: 2px;
}

.ph-device-reviews p {
  margin: 0;
  color: var(--ph-muted);
  line-height: 1.65;
}

.ph-device-reviews strong {
  font-size: 13px;
}

.ph-device-related {
  background: var(--ph-canvas);
}

.ph-compare-heading {
  padding: clamp(56px, 9vw, 132px) 0 48px;
  background: #f0f0ee;
  border-bottom: 1px solid var(--ph-line);
}

.ph-compare-heading h1 {
  max-width: 12ch;
}

.ph-compare-heading > .ph-shell > p:last-child {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--ph-muted);
  line-height: 1.65;
}

.ph-compare-section {
  padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 9vw, 128px);
}

.ph-compare-empty {
  display: grid;
  justify-items: start;
  max-width: 680px;
  gap: 20px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
}

.ph-compare-empty h2 {
  max-width: 13ch;
  font-size: clamp(28px, 3.4vw, 46px);
}

.ph-compare-empty p:not(.ph-kicker) {
  max-width: 46ch;
  margin: 0;
  color: var(--ph-muted);
  line-height: 1.65;
}

.ph-compare-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 48px;
}

.ph-compare-product-card .ph-product-card-media {
  aspect-ratio: 1 / 0.86;
}

.ph-compare-table-wrap {
  overflow-x: auto;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
}

.ph-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.ph-compare-table th,
.ph-compare-table td {
  padding: 18px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--ph-line);
}

.ph-compare-table thead th {
  color: var(--ph-ink);
  font-size: 13px;
}

.ph-compare-table thead th:first-child,
.ph-compare-table tbody th {
  width: 24%;
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 700;
}

.ph-compare-table a {
  color: var(--ph-ink);
  text-decoration: none;
}

.ph-compare-table a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ph-compare-table td {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .ph-device-detail-grid,
  .ph-device-section-grid {
    grid-template-columns: 1fr;
  }

  .ph-device-purchase {
    position: static;
    max-width: 720px;
  }

  .ph-device-section h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .ph-device-detail {
    padding-top: 24px;
  }

  .ph-device-gallery-stage {
    min-height: 100vw;
  }

  .ph-device-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ph-device-actions [data-ph-compare-toggle] {
    grid-column: 3;
  }

  .ph-device-actions .ph-button {
    grid-column: span 2;
    grid-row: 2;
  }

  .ph-device-reviews,
  .ph-compare-products {
    grid-template-columns: 1fr;
  }

  .ph-device-section-grid {
    gap: 28px;
  }

  .ph-compare-section {
    padding-top: 24px;
  }

  .ph-compare-table th,
  .ph-compare-table td {
    padding: 15px 16px;
  }
}

/* Cart and checkout: a scoped premium surface over the preserved order flow. */
.ph-cart-page,
.ph-checkout-page {
  padding-bottom: clamp(64px, 9vw, 132px);
}

.ph-cart-heading,
.ph-checkout-heading {
  padding: clamp(48px, 8vw, 112px) 0 clamp(28px, 5vw, 64px);
  background: linear-gradient(114deg, #f0f0ee 0%, #fff 48%, #ececea 100%);
  border-bottom: 1px solid var(--ph-line);
}

.ph-cart-heading h1,
.ph-checkout-heading h1,
.ph-checkout-success h1 {
  max-width: 11ch;
  margin: 10px 0 18px;
  font-size: clamp(40px, 5vw, 76px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.ph-cart-heading > .ph-shell > p:last-child,
.ph-checkout-heading > p:not(.ph-kicker),
.ph-checkout-success-lead {
  max-width: 56ch;
  margin: 0;
  color: var(--ph-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ph-cart-section {
  padding: clamp(28px, 5vw, 72px) 0 0;
}

.ph-cart-layout,
.ph-checkout-layout,
.ph-receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.68fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}

.ph-cart-items,
.ph-order-summary,
.ph-checkout-form,
.ph-checkout-summary,
.ph-checkout-empty,
.ph-checkout-success,
.ph-receipt-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
}

.ph-cart-items {
  min-width: 0;
  padding: clamp(16px, 2.3vw, 28px);
}

.ph-cart-items > .grid {
  display: grid;
  gap: 0;
}

.ph-cart-items .empty-state {
  padding: clamp(20px, 4vw, 52px) 0;
  color: var(--ph-muted);
}

.ph-cart-items .empty-state h3 {
  margin: 0 0 10px;
  color: var(--ph-ink);
  font-size: 26px;
  letter-spacing: -0.045em;
}

.ph-cart-items .checkout-item,
.ph-checkout-summary .checkout-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--ph-line);
}

.ph-cart-items .checkout-item:first-child,
.ph-checkout-summary .checkout-item:first-child {
  padding-top: 0;
}

.ph-cart-items .checkout-item:last-child,
.ph-checkout-summary .checkout-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ph-cart-items .checkout-thumb,
.ph-checkout-summary .checkout-thumb {
  width: 104px;
  height: 112px;
  overflow: hidden;
  background: #f0f0ee;
  border-radius: 8px;
}

.ph-cart-items .checkout-thumb img,
.ph-checkout-summary .checkout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ph-cart-items .checkout-item > div:nth-child(2),
.ph-checkout-summary .checkout-item > div:nth-child(2) {
  min-width: 0;
}

.ph-cart-items .checkout-item b,
.ph-checkout-summary .checkout-item b {
  color: var(--ph-ink);
  font-size: 15px;
  letter-spacing: -0.025em;
}

.ph-cart-items .checkout-item p,
.ph-checkout-summary .checkout-item p {
  margin: 5px 0 0;
  color: var(--ph-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ph-cart-items .checkout-item > b,
.ph-checkout-summary .checkout-item > b {
  padding-top: 2px;
  white-space: nowrap;
  font-size: 14px;
  text-align: right;
}

.ph-cart-items .mini-qty {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 14px;
}

.ph-cart-items .mini-qty button {
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  color: var(--ph-ink);
  background: transparent;
  border: 1px solid var(--ph-line);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ph-cart-items .mini-qty button:hover {
  background: #efefed;
  border-color: #b9b9b5;
}

.ph-cart-items .mini-qty span {
  display: grid;
  min-width: 28px;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.ph-cart-items .mini-qty button[data-cart-remove] {
  margin-left: 8px;
  color: var(--ph-muted);
  border-color: transparent;
}

.ph-order-summary,
.ph-checkout-summary {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 20px;
  padding: clamp(20px, 2.5vw, 32px);
}

.ph-order-summary-head {
  display: grid;
  gap: 6px;
}

.ph-order-summary-head h2,
.ph-checkout-form h2,
.ph-receipt-card h2,
.ph-checkout-empty h2 {
  margin: 0;
  color: var(--ph-ink);
  font-size: 24px;
  letter-spacing: -0.05em;
}

.ph-summary-lines {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--ph-line);
}

.ph-summary-lines p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--ph-muted);
  font-size: 13px;
}

.ph-summary-lines p b {
  color: var(--ph-ink);
  font-weight: 750;
  text-align: right;
}

.ph-summary-lines .summary-total {
  margin-top: 6px;
  padding-top: 16px;
  color: var(--ph-ink);
  font-size: 15px;
  border-top: 1px solid var(--ph-line);
}

.ph-summary-lines .summary-total b {
  font-size: 19px;
  letter-spacing: -0.04em;
}

.ph-summary-lines .quote-status,
.ph-summary-lines .repricing-notice {
  display: block;
  color: var(--ph-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ph-order-summary-cta,
.ph-checkout-submit {
  width: 100%;
  min-height: 50px;
}

.ph-order-summary > .ph-text-link {
  justify-self: start;
  font-size: 13px;
}

.ph-order-summary-note,
.ph-checkout-help,
.ph-receipt-note {
  margin: 0;
  color: var(--ph-muted);
  font-size: 12px;
  line-height: 1.55;
}

.ph-cart-cross-sell {
  padding-top: clamp(64px, 9vw, 132px);
}

.ph-cart-cross-sell-grid .ph-product-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ph-cart-cross-sell-grid .ph-product-card:hover {
  border-color: #bababa;
  box-shadow: var(--ph-shadow);
  transform: translateY(-3px);
}

.ph-checkout-page > .ph-shell {
  padding-top: clamp(34px, 5vw, 72px);
}

.ph-checkout-heading {
  margin: calc(clamp(34px, 5vw, 72px) * -1) 0 0;
  padding-inline: clamp(20px, 3vw, 48px);
}

.ph-checkout-heading h1 {
  margin-top: 8px;
}

.ph-checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ph-muted);
  font-size: 12px;
  font-weight: 700;
}

.ph-checkout-steps li {
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
}

.ph-checkout-steps .is-active {
  color: var(--ph-ink);
  border-color: var(--ph-ink);
}

.ph-checkout-layout {
  margin-top: clamp(28px, 5vw, 64px);
}

.cart-is-empty .ph-checkout-layout {
  display: none;
}

.ph-checkout-form {
  overflow: hidden;
}

.ph-checkout-form[hidden],
.ph-checkout-empty[hidden] {
  display: none;
}

.ph-checkout-form-section {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 36px);
}

.ph-checkout-form-section + .ph-checkout-form-section {
  border-top: 1px solid var(--ph-line);
}

.ph-checkout-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.ph-checkout-section-head .ph-kicker {
  min-width: 22px;
}

.ph-checkout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ph-checkout-form .field,
.ph-checkout-summary .field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: var(--ph-ink);
  font-size: 12px;
  font-weight: 750;
}

.ph-checkout-form .input,
.ph-checkout-form .select,
.ph-checkout-summary .input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ph-ink);
  background: #fbfbfa;
  border: 1px solid var(--ph-line);
  border-radius: 6px;
  box-shadow: none;
}

.ph-checkout-form .input:focus,
.ph-checkout-form .select:focus,
.ph-checkout-summary .input:focus {
  border-color: var(--ph-ink);
  outline: none;
}

.ph-field-pair,
.ph-promo-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ph-promo-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ph-promo-line .ph-button {
  min-height: 46px;
}

.ph-checkout-form .checkbox-line {
  align-items: flex-start;
  margin: 0;
  color: var(--ph-muted);
  font-size: 12px;
  line-height: 1.55;
}

.ph-checkout-form .checkbox-line input {
  margin-top: 3px;
}

.ph-checkout-form .checkbox-line a {
  color: var(--ph-ink);
  text-underline-offset: 3px;
}

.ph-mobile-confirm-summary {
  display: none;
}

.ph-checkout-summary [data-cart-view] > .grid {
  display: grid;
  gap: 0;
}

.ph-checkout-summary .checkout-item {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
}

.ph-checkout-summary .checkout-thumb {
  width: 64px;
  height: 68px;
}

.ph-checkout-summary .checkout-item > b {
  font-size: 12px;
}

.ph-checkout-summary .checkout-item p {
  font-size: 12px;
}

.ph-checkout-empty {
  max-width: 680px;
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
}

.ph-checkout-empty p {
  max-width: 48ch;
  margin: 0;
  color: var(--ph-muted);
  line-height: 1.6;
}

.ph-checkout-success {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 64px);
}

.ph-checkout-success h1 {
  margin: 0;
}

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

.ph-receipt-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
}

.ph-receipt-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.ph-receipt-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ph-line);
}

.ph-receipt-list dt,
.ph-receipt-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.ph-receipt-list dt {
  color: var(--ph-muted);
}

.ph-receipt-list dt small {
  display: block;
  margin-top: 3px;
}

.ph-receipt-list dd {
  color: var(--ph-ink);
  font-weight: 750;
  text-align: right;
}

@media (max-width: 900px) {
  .ph-cart-layout,
  .ph-checkout-layout,
  .ph-receipt-layout {
    grid-template-columns: 1fr;
  }

  .ph-order-summary,
  .ph-checkout-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .ph-cart-heading,
  .ph-checkout-heading {
    padding-top: 48px;
  }

  .ph-cart-heading h1,
  .ph-checkout-heading h1,
  .ph-checkout-success h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .ph-cart-items,
  .ph-order-summary,
  .ph-checkout-form-section,
  .ph-checkout-summary,
  .ph-checkout-success,
  .ph-receipt-card {
    padding: 20px;
  }

  .ph-cart-items .checkout-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .ph-cart-items .checkout-thumb {
    width: 72px;
    height: 82px;
  }

  .ph-cart-items .checkout-item > b {
    grid-column: 2;
    padding-top: 0;
    text-align: left;
  }

  .ph-cart-items .mini-qty button[data-cart-remove] {
    margin-left: auto;
  }

  .ph-checkout-heading {
    margin-inline: 0;
    padding-inline: 20px;
  }

  .ph-checkout-field-grid {
    grid-template-columns: 1fr;
  }

  .ph-field-pair {
    grid-template-columns: 1fr 1fr;
  }

  .ph-checkout-summary {
    display: grid;
  }

  .ph-mobile-confirm-summary {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--ph-line);
  }

  .ph-mobile-confirm-summary .summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--ph-line);
  }

  .ph-mobile-confirm-summary .summary-total b {
    font-size: 18px;
  }

  .ph-checkout-summary .checkout-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .ph-checkout-summary .checkout-thumb {
    width: 58px;
    height: 62px;
  }

  .ph-checkout-steps {
    gap: 8px 12px;
  }
}
