/* Product-first storefront pass. Display rules only: cart, checkout and form logic remain unchanged. */

.catalogue-hero {
  width: min(calc(100% - 32px), 1480px);
  margin: 18px auto 0;
  padding: clamp(26px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(540px, 1.25fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  background: linear-gradient(120deg, #ffffff 0%, #faf5fd 58%, #f3f0ed 100%);
  border: 1px solid var(--mv-line, #ded9e1);
  border-radius: 18px;
}

.catalogue-hero-copy h1 {
  margin: 0;
  max-width: 700px;
  color: var(--mv-ink, #14121a);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.catalogue-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--mv-muted, #6c6670);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}

.catalogue-hero .hero-actions {
  margin-top: 24px;
}

.brand-jump-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-jump-links a {
  min-height: 38px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  color: var(--mv-plum, #54236f);
  background: #ffffff;
  border: 1px solid rgba(84, 35, 111, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.catalogue-hero-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalogue-hero-picks a {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
  gap: 10px;
  color: var(--mv-ink, #14121a);
  background: #ffffff;
  border: 1px solid rgba(20, 18, 26, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.catalogue-hero-picks a:hover {
  transform: translateY(-3px);
  border-color: rgba(84, 35, 111, 0.38);
  box-shadow: 0 16px 35px rgba(20, 18, 26, 0.09);
}

.catalogue-hero-picks img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(20, 18, 26, 0.13));
}

.catalogue-hero-picks a:nth-child(1) img {
  transform: scale(1.55);
}

.catalogue-hero-picks a:nth-child(2) img,
.catalogue-hero-picks a:nth-child(3) img {
  transform: scale(1.14);
}

.catalogue-hero-picks span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.catalogue-hero-picks small {
  color: var(--mv-plum, #54236f);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.catalogue-hero-picks strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.home-page .compact-deals-section {
  padding-top: clamp(36px, 4vw, 58px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

.home-page .compact-section-heading {
  margin-bottom: 20px;
  align-items: end;
}

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

.home-page .compact-section-heading h2 {
  font-size: clamp(38px, 5vw, 62px);
}

.view-all-link {
  padding-bottom: 5px;
  color: var(--mv-plum, #54236f);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

.home-page .compact-deals-section .filters {
  margin-bottom: 18px;
}

.home-page .compact-deals-section .deal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-page .compact-deals-section .deal-card {
  border-radius: 14px !important;
}

.home-page .compact-deals-section .deal-visual {
  min-height: 220px;
  padding: 18px;
  background: linear-gradient(145deg, #f8f4f6, #f0eeeb);
  border-radius: 13px 13px 0 0 !important;
}

.home-page .compact-deals-section .deal-visual::after {
  display: none;
}

.home-page .compact-deals-section .phone-product-image {
  position: static;
  padding: 6px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 16px 20px rgba(20, 18, 26, 0.14));
}

.home-page .compact-deals-section .deal-card[data-family="apple"] .phone-product-image {
  transform: scale(1.48);
}

.home-page .compact-deals-section .deal-card[data-family="samsung"] .phone-product-image,
.home-page .compact-deals-section .deal-card[data-family="google"] .phone-product-image {
  transform: scale(1.14);
}

.home-page .compact-deals-section .deal-body {
  padding: 18px;
}

.home-page .compact-deals-section .deal-body h3 {
  font-size: 22px;
}

.home-page .compact-deals-section .deal-data {
  margin: 7px 0 16px;
}

.home-utility-strip {
  width: min(calc(100% - 32px), 1480px);
  margin: 0 auto 50px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: center;
  color: #ffffff;
  background: var(--mv-ink, #14121a);
  border-radius: 14px;
}

.home-utility-strip div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-utility-strip strong {
  font-size: 14px;
}

.home-utility-strip span {
  color: #c9c4cb;
  font-size: 12px;
}

/* Shop: products and controls appear before decorative content. */
.shop-page .premium-shop-hero {
  width: min(calc(100% - 32px), 1480px) !important;
  min-height: 0 !important;
  margin: 18px auto 20px !important;
  padding: clamp(24px, 3vw, 38px) !important;
  display: block !important;
  background: linear-gradient(120deg, #ffffff, #faf5fd) !important;
}

.shop-page .shop-hero-copy {
  max-width: 980px;
}

.shop-page .shop-hero-copy h1 {
  max-width: 880px !important;
  margin-bottom: 12px !important;
  font-size: clamp(38px, 4.5vw, 58px) !important;
}

.shop-page .shop-hero-copy > p:not(.eyebrow) {
  max-width: 760px !important;
  margin: 0 !important;
  font-size: 16px !important;
}

.shop-page .shop-trust-row {
  margin: 18px 0 0 !important;
}

.shop-page .shop-hero-visual,
.shop-page .service-trust-grid {
  display: none !important;
}

.shop-page .premium-shop-layout {
  margin-top: 0 !important;
}

.shop-page .filter-quality-card {
  display: none;
}

.shop-page .premium-product-card {
  display: flex !important;
  flex-direction: column;
  gap: 9px !important;
  min-height: 0 !important;
  padding: 13px !important;
  overflow: visible !important;
}

.shop-page .premium-product-card > * {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
}

.shop-page .premium-product-card .premium-product-art {
  height: 220px !important;
  min-height: 220px !important;
  padding: 18px !important;
  border-radius: 12px !important;
}

.shop-page .premium-product-card .premium-product-art img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 16px 20px rgba(20, 18, 26, 0.14));
}

.shop-page .premium-product-card .premium-product-art img.brand-apple.category-phone {
  transform: scale(1.48);
}

.shop-page .premium-product-card .premium-product-art img.brand-samsung.category-phone,
.shop-page .premium-product-card .premium-product-art img.brand-google.category-phone {
  transform: scale(1.14);
}

.shop-page .premium-product-card .card-commerce-meta,
.shop-page .premium-product-card .card-blurb,
.shop-page .premium-product-card .spec-list {
  display: none !important;
}

.shop-page .premium-product-card .product-card-top {
  margin-top: 2px !important;
  margin-bottom: -3px !important;
}

.shop-page .premium-product-card h3 {
  min-height: 44px !important;
  margin: 0 !important;
  font-size: 21px !important;
  line-height: 1.08 !important;
}

.shop-page .premium-product-card .price-block {
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
}

.shop-page .premium-product-card .price-block > span,
.shop-page .premium-product-card .price-block > strong,
.shop-page .premium-product-card .price-block > small {
  display: none !important;
}

.shop-page .premium-product-card .card-config {
  min-height: 0;
  margin: 0 !important;
  overflow: hidden;
  color: #f0edf2 !important;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-page .premium-product-card .card-color-field {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 0 2px;
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 6px !important;
  overflow: visible !important;
}

.shop-page .premium-product-card .card-color-field legend {
  height: auto !important;
  line-height: 1.2 !important;
}

.shop-page .premium-product-card .color-swatch-row {
  min-height: 38px;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}

.shop-page .premium-product-card .color-swatch-row::-webkit-scrollbar {
  display: none;
}

.shop-page .premium-product-card .product-config-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 78px !important;
  grid-template-areas:
    "storage quantity"
    "network network" !important;
  gap: 7px !important;
  padding: 0 !important;
}

.shop-page .premium-product-card .product-config-grid.no-network-grid {
  grid-template-areas: "storage quantity" !important;
}

.shop-page .premium-product-card .plan-preference-grid,
.shop-page .premium-product-card .plan-preference-grid.no-data-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 0 !important;
}

.shop-page .premium-product-card .compact-select {
  gap: 4px !important;
  margin: 0 !important;
  font-size: 10px !important;
}

.shop-page .premium-product-card .compact-select select {
  min-height: 44px !important;
  padding: 9px 38px 9px 10px !important;
  font-size: 13px !important;
}

.shop-page .premium-product-card .product-actions {
  min-height: 44px !important;
  margin-top: 2px !important;
}

.shop-page .premium-product-card .product-actions button {
  min-height: 44px !important;
}

@media (min-width: 1180px) {
  .shop-page .premium-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }
}

@media (max-width: 1040px) {
  .catalogue-hero {
    grid-template-columns: 1fr;
  }

  .catalogue-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: end;
  }

  .catalogue-hero-copy .eyebrow,
  .catalogue-hero-copy h1,
  .catalogue-hero-copy > p {
    grid-column: 1;
  }

  .catalogue-hero-copy .hero-actions,
  .catalogue-hero-copy .brand-jump-links {
    grid-column: 2;
  }

  .catalogue-hero-copy .hero-actions {
    grid-row: 1 / span 3;
    align-self: center;
    display: grid;
  }

  .catalogue-hero-copy .brand-jump-links {
    grid-row: 4;
  }

  .home-utility-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-utility-strip .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .catalogue-hero {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 22px 18px;
    border-radius: 12px;
  }

  .catalogue-hero-copy {
    display: block;
  }

  .catalogue-hero-copy h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .catalogue-hero-copy .hero-actions {
    display: grid;
  }

  .catalogue-hero-picks {
    grid-template-columns: repeat(3, 72vw);
    margin-inline: -18px;
    padding: 0 18px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .catalogue-hero-picks a {
    scroll-snap-align: start;
  }

  .home-page .compact-deals-section {
    padding-top: 34px;
  }

  .home-page .compact-deals-section .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-page .compact-deals-section .deal-visual {
    min-height: 180px;
    padding: 12px;
  }

  .home-page .compact-deals-section .deal-body {
    padding: 14px;
  }

  .home-page .compact-deals-section .deal-body h3 {
    font-size: 18px;
  }

  .home-page .compact-deals-section .deal-label {
    left: 10px;
    top: 10px;
    font-size: 8px;
  }

  .home-page .compact-deals-section .button {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .home-utility-strip {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .shop-page .premium-shop-hero {
    width: calc(100% - 24px) !important;
    margin-top: 12px !important;
    padding: 22px 18px !important;
  }

  .shop-page .shop-trust-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .shop-page .shop-trust-row span:nth-child(n+2) {
    display: none;
  }

  .shop-page .premium-product-card .premium-product-art {
    height: 230px !important;
    min-height: 230px !important;
  }
}

@media (max-width: 460px) {
  .home-page .compact-deals-section .deal-grid {
    grid-template-columns: 1fr;
  }

  .home-page .compact-deals-section .deal-visual {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalogue-hero-picks a {
    transition: none;
  }
}

/* Phase two: shorter catalogue cards, option drawer and quicker filtering. */
.shop-brand-shortcuts {
  width: min(calc(100% - 32px), 1480px);
  margin: 0 auto 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-brand-shortcuts::-webkit-scrollbar {
  display: none;
}

.shop-brand-shortcuts a {
  min-height: 40px;
  padding: 9px 15px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--mv-plum, #54236f);
  background: #ffffff;
  border: 1px solid rgba(84, 35, 111, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.shop-brand-shortcuts a:first-child {
  color: #ffffff;
  background: var(--mv-plum, #54236f);
  border-color: var(--mv-plum, #54236f);
}

.shop-page .premium-shop-toolbar {
  position: sticky;
  top: 0;
  z-index: 18;
  padding: 10px 12px !important;
  background: rgba(246, 244, 241, 0.96) !important;
  border: 1px solid var(--mv-line, #ded9e1) !important;
  border-radius: 11px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.shop-page .premium-product-card {
  gap: 8px !important;
}

.shop-page .premium-product-card .premium-product-art {
  height: 210px !important;
  min-height: 210px !important;
}

.shop-page .premium-product-card h3 {
  min-height: 0 !important;
}

.card-key-specs {
  min-height: 37px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
  list-style: none;
}

.card-key-specs li {
  padding: 5px 8px;
  color: var(--mv-muted, #6c6670);
  background: #f7f4f5;
  border: 1px solid rgba(20, 18, 26, 0.08);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.compact-card-summary {
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  gap: 4px;
  background: var(--mv-ink, #14121a);
  border-radius: 9px;
}

.compact-card-summary > span {
  color: #bcb6bf;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shop-page .premium-product-card .compact-card-summary .card-config {
  display: block !important;
  color: #ffffff !important;
  font-size: 11px;
}

.compact-card-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7px;
}

.compact-card-actions button,
.card-options-panel > .add-cart {
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.compact-card-actions .quick-view {
  color: var(--mv-plum, #54236f);
  background: #ffffff;
  border: 1px solid rgba(84, 35, 111, 0.3);
}

.configure-product,
.card-options-panel > .add-cart {
  color: #ffffff;
  background: var(--mv-plum, #54236f);
  border: 1px solid var(--mv-plum, #54236f);
}

.card-options-panel[hidden] {
  display: none !important;
}

.shop-options-open {
  overflow: hidden;
}

.shop-page .premium-product-card.is-configuring {
  transform: none !important;
}

.shop-page .premium-product-card.is-configuring::before {
  content: "";
  position: fixed;
  z-index: 998;
  inset: 0;
  background: rgba(20, 18, 26, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.shop-page .premium-product-card .card-options-panel {
  position: fixed;
  z-index: 999;
  top: 0;
  right: 0;
  width: min(500px, 100vw) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 22px !important;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  color: var(--mv-ink, #14121a);
  background: #ffffff;
  border-left: 1px solid var(--mv-line, #ded9e1);
  box-shadow: -24px 0 70px rgba(20, 18, 26, 0.22);
}

.card-options-heading {
  padding-bottom: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--mv-line, #ded9e1);
}

.card-options-heading > div {
  display: grid;
  gap: 3px;
}

.card-options-heading span {
  color: var(--mv-plum, #54236f);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-options-heading strong {
  font-size: 24px;
  line-height: 1.1;
}

.close-product-options {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  color: var(--mv-ink, #14121a);
  background: #f5f2f4;
  border: 1px solid var(--mv-line, #ded9e1);
  border-radius: 50%;
  font-size: 24px;
}

.shop-page .premium-product-card .card-options-panel .card-color-field {
  height: 74px !important;
  min-height: 74px !important;
  padding: 0 !important;
  grid-template-rows: 24px 42px !important;
}

.shop-page .card-options-panel .color-swatch-row {
  flex-wrap: wrap !important;
  overflow: visible !important;
}

.shop-page .card-options-panel .product-config-grid,
.shop-page .card-options-panel .plan-preference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-areas: none !important;
  gap: 10px !important;
}

.shop-page .card-options-panel :is(.product-config-grid, .plan-preference-grid) > * {
  grid-area: auto !important;
}

.shop-page .card-options-panel .compact-select {
  font-size: 11px !important;
}

.shop-page .card-options-panel .compact-select select {
  min-height: 48px !important;
}

.card-options-panel > .add-cart {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
}

/* Product detail window: larger imagery, clearer route into configuration. */
.shop-product-dialog {
  width: min(1040px, calc(100vw - 36px)) !important;
  max-height: min(820px, calc(100dvh - 36px)) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 18px !important;
}

.shop-product-dialog .shop-dialog-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr) !important;
  min-height: 620px;
}

.shop-product-dialog .shop-dialog-media {
  padding: 30px;
  background: linear-gradient(145deg, #faf7f8, #efedeb);
}

.shop-product-dialog .dialog-art {
  min-height: 430px !important;
  background: transparent !important;
}

.shop-product-dialog .dialog-art img {
  object-fit: contain !important;
  filter: drop-shadow(0 22px 24px rgba(20, 18, 26, 0.16));
}

.shop-product-dialog[data-brand="Apple"] .dialog-art img {
  transform: scale(1.45);
}

.shop-product-dialog[data-brand="Samsung"] .dialog-art img,
.shop-product-dialog[data-brand="Google"] .dialog-art img {
  transform: scale(1.12);
}

.shop-product-dialog .shop-dialog-copy {
  padding: 54px 34px 34px;
  align-content: center;
}

.shop-product-dialog .shop-dialog-copy .button {
  width: 100%;
  min-height: 50px;
}

/* Checkout presentation only. Field names, validation and step logic stay unchanged. */
.checkout-page .checkout-v2 {
  padding-top: 24px !important;
}

.checkout-page .checkout-head {
  max-width: 900px;
  margin-bottom: 18px !important;
}

.checkout-page .checkout-head h1 {
  margin-bottom: 10px !important;
  font-size: clamp(38px, 5vw, 62px) !important;
}

.checkout-page .checkout-head > p:last-child {
  max-width: 760px;
  font-size: 15px;
}

.checkout-page .checkout-steps {
  position: sticky;
  z-index: 24;
  top: 0;
  margin-bottom: 18px !important;
  padding: 8px !important;
  background: rgba(246, 244, 241, 0.97) !important;
  border: 1px solid var(--mv-line, #ded9e1);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.checkout-page .checkout-steps button {
  min-height: 50px;
  border-radius: 8px !important;
}

.checkout-page .checkout-grid-v2 {
  align-items: start;
  gap: 18px !important;
}

.checkout-page .checkout-aside {
  position: sticky;
  top: 78px;
}

.checkout-page .checkout-aside .dark-card {
  display: none;
}

.checkout-page .checkout-form-v2 .form-card {
  padding: clamp(18px, 2.5vw, 28px) !important;
  border-radius: 12px !important;
}

.checkout-page .checkout-form-v2 label {
  gap: 7px;
  font-weight: 780;
}

.checkout-page .checkout-form-v2 :is(input, select, textarea) {
  min-height: 48px;
  border-radius: 8px !important;
}

.checkout-page .checkout-form-v2 .checkout-step-actions {
  position: sticky !important;
  z-index: 20;
  bottom: 12px;
  display: grid !important;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(120px, 1fr) !important;
  flex-wrap: nowrap !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid var(--mv-line, #ded9e1) !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 45px rgba(20, 18, 26, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.checkout-page .checkout-form-v2 .checkout-step-actions .button {
  min-height: 48px !important;
  min-width: 0 !important;
}

/* Shortlist: clearer device rows and an obvious route to checkout. */
.cart-page .shop-hero {
  width: min(calc(100% - 32px), 1180px) !important;
  margin: 18px auto !important;
  padding: clamp(24px, 3vw, 38px) !important;
  min-height: 0 !important;
}

.cart-page .shop-hero h1 {
  max-width: 760px;
  margin-bottom: 10px !important;
  font-size: clamp(40px, 5vw, 62px) !important;
}

.cart-page .cart-page-grid {
  padding-top: 0 !important;
}

.cart-page .cart-page-items {
  padding: 14px !important;
}

.cart-page .cart-page-line {
  grid-template-columns: 126px minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 150px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--mv-line, #ded9e1);
  border-radius: 11px;
}

.cart-page .cart-page-line img {
  width: 126px;
  height: 126px;
  padding: 8px;
  object-fit: contain;
  background: linear-gradient(145deg, #faf7f8, #efedeb);
  border-radius: 10px;
  transform: scale(1.18);
}

.cart-page .cart-page-line > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.cart-page .cart-page-line strong {
  font-size: 21px;
  line-height: 1.1;
}

.cart-page .cart-page-line span {
  color: var(--mv-muted, #6c6670);
  font-size: 13px;
  line-height: 1.55;
}

.cart-page .cart-page-line small {
  display: none;
}

.cart-page .cart-page-line .line-remove {
  min-height: 42px;
  padding: 8px 12px;
  color: #7a271a;
  background: #fff6f4;
  border: 1px solid rgba(122, 39, 26, 0.2);
  border-radius: 8px;
}

.cart-page .cart-page-summary {
  border-radius: 12px !important;
}

.cart-page .cart-checkout-link {
  min-height: 50px;
}

@media (max-width: 760px) {
  .shop-brand-shortcuts {
    width: calc(100% - 24px);
    margin-bottom: 10px;
    padding-bottom: 2px;
  }

  .shop-page .mobile-shop-controls {
    position: sticky;
    z-index: 22;
    top: 0;
    margin-bottom: 10px;
    background: rgba(246, 244, 241, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .shop-page .premium-shop-filters {
    position: fixed !important;
    z-index: 1001 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(340px, calc(100vw - 34px)) !important;
    max-width: none !important;
    padding: 18px !important;
    overflow-y: auto !important;
    visibility: hidden;
    background: #ffffff !important;
    box-shadow: 24px 0 70px rgba(20, 18, 26, 0.24);
    transform: translateX(-105%);
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .shop-filter-open .premium-shop-filters {
    visibility: visible;
    transform: translateX(0);
  }

  .shop-page .filter-backdrop:not([hidden]) {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: block;
    background: rgba(20, 18, 26, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .shop-page .premium-product-card .premium-product-art {
    height: 205px !important;
    min-height: 205px !important;
  }

  .shop-page .premium-product-card .card-options-panel {
    top: auto;
    bottom: 0;
    width: 100vw !important;
    height: min(82dvh, 760px) !important;
    max-height: 82dvh !important;
    padding: 18px !important;
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -24px 70px rgba(20, 18, 26, 0.24);
  }

  .shop-product-dialog {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
  }

  .shop-product-dialog .shop-dialog-grid {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  .shop-product-dialog .shop-dialog-media {
    padding: 16px;
  }

  .shop-product-dialog .dialog-art {
    min-height: 300px !important;
  }

  .shop-product-dialog .shop-dialog-copy {
    padding: 22px 18px 20px;
  }

  .checkout-page .checkout-v2 {
    padding-top: 16px !important;
  }

  .checkout-page .checkout-head h1 {
    font-size: clamp(38px, 12vw, 52px) !important;
  }

  .checkout-page .checkout-steps {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px !important;
    overflow: visible !important;
  }

  .checkout-page .checkout-steps button {
    min-width: 0 !important;
    padding: 7px 3px !important;
  }

  .checkout-page .checkout-steps button strong {
    overflow: hidden;
    font-size: 9px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .checkout-page .checkout-aside {
    position: static;
  }

  .checkout-page .checkout-form-v2 .checkout-step-actions {
    bottom: 8px;
    grid-template-columns: 0.8fr 1fr 1.15fr !important;
    gap: 7px !important;
  }

  .checkout-page .checkout-draft-status {
    font-size: 9px !important;
    line-height: 1.25;
  }

  .cart-page {
    padding-bottom: 76px;
  }

  .cart-page .page-actions {
    padding-inline: 12px;
  }

  .cart-page .shop-hero {
    width: calc(100% - 24px) !important;
    margin-top: 12px !important;
    padding: 22px 18px !important;
  }

  .cart-page .shop-hero h1 {
    font-size: clamp(38px, 12vw, 52px) !important;
  }

  .cart-page .cart-page-grid {
    width: calc(100% - 20px) !important;
    padding-inline: 0 !important;
  }

  .cart-page .cart-page-items {
    padding: 10px !important;
  }

  .cart-page .cart-page-line {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    min-height: 132px;
    padding: 11px;
  }

  .cart-page .cart-page-line img {
    width: 104px;
    height: 112px;
    padding: 5px;
  }

  .cart-page .cart-page-line strong {
    font-size: 18px;
  }

  .cart-page .cart-page-line span {
    font-size: 12px;
    line-height: 1.45;
  }

  .cart-page .cart-page-line .line-remove {
    grid-column: 2;
    width: fit-content;
    min-height: 38px;
  }

  .cart-page .cart-page-summary .cart-checkout-link {
    position: fixed;
    z-index: 997;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    min-height: 54px;
    box-shadow: 0 16px 45px rgba(20, 18, 26, 0.22);
  }

  .cart-page .mobileverity-chat {
    bottom: 76px !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .shop-page .mobile-shop-controls {
    position: sticky;
    z-index: 22;
    top: 0;
    display: grid !important;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(246, 244, 241, 0.97);
    border: 1px solid var(--mv-line, #ded9e1);
    border-radius: 11px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .shop-page .mobile-filter-summary {
    grid-column: 1 / -1;
  }

  .shop-page .premium-shop-toolbar {
    display: none !important;
  }

  .shop-page .premium-shop-layout {
    display: block !important;
  }

  .shop-page .premium-shop-filters {
    position: fixed !important;
    z-index: 1001 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(360px, calc(100vw - 60px)) !important;
    max-width: none !important;
    padding: 20px !important;
    overflow-y: auto !important;
    visibility: hidden;
    background: #ffffff !important;
    box-shadow: 24px 0 70px rgba(20, 18, 26, 0.24);
    transform: translateX(-105%);
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .shop-filter-open .premium-shop-filters {
    visibility: visible;
    transform: translateX(0);
  }

  .shop-page .filter-backdrop:not([hidden]) {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: block;
    background: rgba(20, 18, 26, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .shop-page .premium-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 420px) {
  .shop-page .card-options-panel .product-config-grid,
  .shop-page .card-options-panel .plan-preference-grid {
    grid-template-columns: 1fr !important;
  }

  .compact-card-actions {
    grid-template-columns: 1fr 1.2fr;
  }
}
