/*
  Desktop/tablet responsive layer.
  This file is loaded only for min-width: 900px from index.html, so the approved
  mobile UI in styles.css remains untouched.
*/

:root {
  --desktop-shell: min(100%, 1480px);
  --desktop-page: min(100%, 1400px);
  --desktop-readable: min(100%, 1040px);
  --desktop-gutter: clamp(28px, 4vw, 72px);
  --desktop-card: 24px;
  --desktop-border: rgba(10, 116, 187, .13);
  --desktop-shadow: 0 22px 70px rgba(13, 27, 46, .11);
  --desktop-soft-shadow: 0 14px 40px rgba(13, 27, 46, .08);
}

@media (min-width: 900px) {
  html,
  body {
    min-width: 900px;
    min-height: 100%;
    background:
      radial-gradient(circle at top left, rgba(80, 194, 233, .2), transparent 34vw),
      linear-gradient(180deg, #F6FAFE 0%, #EEF5FB 42%, #F8FBFF 100%);
  }

  body {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    color: var(--ink);
  }

  .phone {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .screen {
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
    background: transparent;
  }

  .content {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 116, 187, .42) rgba(10, 116, 187, .08);
  }

  .content::-webkit-scrollbar {
    display: block;
    width: 10px;
  }

  .content::-webkit-scrollbar-track {
    background: rgba(10, 116, 187, .08);
  }

  .content::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(10, 116, 187, .42);
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: var(--desktop-shell);
    min-height: 82px;
    margin: 0 auto;
    padding: 12px var(--desktop-gutter);
    border-bottom: 1px solid rgba(10, 116, 187, .12);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 38px rgba(13, 27, 46, .07);
    backdrop-filter: blur(20px);
  }

  [data-screen-type="detail"] .app-header {
    display: flex;
  }

  .logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 16px;
  }

  .title {
    color: #06365A;
    font-size: 21px;
    letter-spacing: 0;
  }

  .subtitle {
    color: #58718B;
    font-size: 12.5px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid rgba(10, 116, 187, .12);
    border-radius: 999px;
    background: rgba(239, 247, 253, .86);
  }

  .desktop-nav .tab {
    min-width: 88px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    color: #526B82;
    font-size: 14px;
    font-weight: 850;
  }

  .desktop-nav .tab.is-active,
  .desktop-nav .tab[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, #0A74BB 0%, #50C2E9 100%);
    box-shadow: 0 10px 22px rgba(10, 116, 187, .28);
  }

  .bag-button,
  .header-icon-button,
  .home-round-action {
    min-width: 46px;
    min-height: 46px;
  }

  .tab-bar {
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(720px, calc(100vw - 72px));
    transform: translateX(-50%);
    border: 1px solid rgba(10, 116, 187, .16);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 55px rgba(13, 27, 46, .14);
    backdrop-filter: blur(18px);
  }

  .screen-view {
    width: var(--desktop-page);
    margin: 0 auto;
    padding: 34px var(--desktop-gutter) 122px;
    gap: 28px;
  }

  [data-screen-type="detail"] .content {
    padding: 0;
  }

  [data-screen-type="detail"] .screen-view.is-active {
    display: flex;
  }

  .panel,
  .bag-panel,
  .checkout-address-card,
  .checkout-payment-card,
  .checkout-review-card,
  .saved-address,
  .profile-form,
  .address-form-card,
  .policy-card,
  .settings-card,
  .menu,
  .account-reference-card {
    border: 1px solid var(--desktop-border);
    box-shadow: var(--desktop-soft-shadow);
  }

  .home-search {
    width: min(820px, 100%);
    min-height: 56px;
    margin: 0 auto;
    border-color: rgba(10, 116, 187, .16);
    box-shadow: 0 18px 42px rgba(10, 116, 187, .1);
  }

  .home-chip-grid {
    width: min(920px, 100%);
    margin: 0 auto;
    justify-content: center;
  }

  .home-chip {
    min-width: 144px;
    min-height: 58px;
  }

  .home-promo-slot,
  .home-customer-celebration,
  .home-section-head,
  .home-best-rail,
  .home-category-grid,
  .home-footer-tags,
  .home-footer-line,
  .home-footer-copy {
    width: 100%;
  }

  .home-customer-celebration {
    border-radius: 28px;
    box-shadow: var(--desktop-shadow);
  }

  .home-best-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    overflow: visible;
  }

  .home-best-card {
    min-width: 0;
    border-radius: 22px;
  }

  .home-best-image {
    height: clamp(190px, 18vw, 260px);
  }

  .home-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }

  .home-collection-card,
  .product-subcat {
    border-radius: 22px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  .home-collection-card:hover,
  .product-subcat:hover,
  .product-card:hover,
  .menu-row:hover,
  .saved-address:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(13, 27, 46, .13);
  }

  .home-footer-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  [data-screen="product"].screen-view.is-active {
    width: var(--desktop-page);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .product-heading {
    padding-top: 10px;
  }

  .product-heading h1,
  .product-heading strong {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.08;
  }

  .product-heading p,
  .product-heading span {
    font-size: 16px;
  }

  .product-search-wrap {
    width: min(860px, 100%);
    min-height: 56px;
    margin: 0 auto;
  }

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

  .product-filter-row {
    justify-content: flex-end;
    gap: 12px;
  }

  .product-filter-button,
  .product-sort-button {
    min-height: 48px;
    padding-inline: 18px;
    border-radius: 999px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
  }

  .product-card {
    min-height: 100%;
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(13, 27, 46, .08);
  }

  .product-image {
    height: clamp(220px, 20vw, 310px);
  }

  .product-card-body {
    min-height: 210px;
    padding: 14px 14px 16px;
  }

  .product-empty-state,
  .product-loading-state {
    grid-column: 1 / -1;
  }

  [data-screen="product-detail"].screen-view.is-active {
    width: 100%;
    max-width: none;
    height: calc(100vh - 82px);
    min-height: 720px;
    padding: 0;
    overflow: hidden;
  }

  .product-detail-scroll {
    width: var(--desktop-shell);
    max-width: none;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(460px, .96fr) minmax(440px, .84fr);
    gap: 0;
    overflow: hidden;
    border-right: 1px solid rgba(10, 116, 187, .1);
    border-left: 1px solid rgba(10, 116, 187, .1);
    background: #fff;
  }

  .pd-hero {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    background: #F5FAFE;
  }

  .pd-hero img {
    object-fit: contain;
    padding: 34px;
  }

  .pd-thumbs {
    right: 30px;
    bottom: 34px;
    left: 30px;
    justify-content: center;
  }

  .pd-sheet {
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 42px 44px 136px;
    overflow-y: auto;
    border-radius: 0;
    background: #fff;
  }

  .pd-title-block h1 {
    font-size: clamp(30px, 3.2vw, 50px);
    line-height: 1.02;
  }

  .pd-price strong {
    font-size: clamp(30px, 3vw, 44px);
  }

  .pd-footer {
    position: fixed;
    right: max(var(--desktop-gutter), calc((100vw - 1480px) / 2));
    bottom: 22px;
    left: auto;
    z-index: 70;
    width: min(520px, calc(50vw - 72px));
    padding: 14px;
    border: 1px solid rgba(10, 116, 187, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--desktop-shadow);
    backdrop-filter: blur(18px);
  }

  [data-screen="bag"].screen-view.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 26px;
    align-items: start;
  }

  [data-screen="bag"] #shippingProgress,
  [data-screen="bag"] #bagItemsPanel {
    grid-column: 1;
  }

  [data-screen="bag"] #orderSummary {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 110px;
  }

  [data-screen="bag"] .checkout-block {
    grid-column: 2;
    position: sticky;
    top: calc(110px + 320px);
    right: auto;
    bottom: auto;
    left: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(10, 116, 187, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--desktop-soft-shadow);
  }

  [data-screen="bag"] .checkout-button {
    width: 100%;
  }

  [data-screen="bag"] .checkout-note {
    text-align: center;
  }

  [data-screen="checkout"].screen-view.is-active {
    width: var(--desktop-page);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 26px;
    align-items: start;
    padding-bottom: 134px;
  }

  .checkout-head,
  .checkout-stepper {
    grid-column: 1 / -1;
  }

  .checkout-scroll {
    display: contents;
  }

  .checkout-scroll > :not(.checkout-review-card) {
    grid-column: 1;
  }

  .checkout-review-card {
    grid-column: 2;
    grid-row: 3 / span 4;
    position: sticky;
    top: 110px;
  }

  .checkout-footer {
    position: fixed;
    right: max(var(--desktop-gutter), calc((100vw - 1400px) / 2));
    bottom: 22px;
    left: auto;
    z-index: 75;
    width: min(430px, calc(100vw - 72px));
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(10, 116, 187, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--desktop-shadow);
    backdrop-filter: blur(18px);
  }

  [data-screen="account"].screen-view.is-active,
  [data-screen="settings"].screen-view.is-active {
    display: grid;
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }

  [data-screen="account"] .account-reference-card,
  [data-screen="settings"] .settings-card,
  .profile-card {
    position: sticky;
    top: 110px;
  }

  [data-screen="account"] .menu,
  [data-screen="settings"] .menu {
    margin-top: 0;
  }

  [data-screen="account"] .logout {
    grid-column: 2;
  }

  .menu-row {
    min-height: 76px;
    border-radius: 20px;
  }

  .detail-screen {
    width: var(--desktop-readable);
    max-width: var(--desktop-readable);
  }

  [data-screen="orders"].screen-view,
  [data-screen="wishlist"].screen-view,
  [data-screen="notify"].screen-view,
  [data-screen="wallet"].screen-view,
  [data-screen="address"].screen-view,
  [data-screen="profile"].screen-view,
  [data-screen="add-address"].screen-view,
  [data-screen="gift"].screen-view,
  [data-screen="refer"].screen-view,
  [data-screen="contact"].screen-view {
    width: min(100%, 1120px);
    max-width: 1120px;
  }

  [data-screen="orders"] .order-list,
  [data-screen="wishlist"] .wishlist-grid,
  [data-screen="notify"] .wishlist-grid,
  [data-screen="address"] .address-list,
  [data-screen="gift"] .gift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .simple-head {
    padding-top: 6px;
  }

  .mini-product-row {
    min-height: 84px;
  }

  .saved-address,
  .order-card,
  .wallet-card,
  .wishlist-card {
    border-radius: 24px;
  }

  .profile-form,
  .address-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .profile-form > .primary-action,
  .address-form > .primary-action,
  .profile-form > .full-row,
  .address-form > .full-row,
  .profile-form label:has(textarea),
  .address-form label:has(textarea) {
    grid-column: 1 / -1;
  }

  .login-screen {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin: 0 auto;
  }

  .login-scroll {
    width: 100%;
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: 28px;
    align-items: center;
    padding: 42px var(--desktop-gutter) 132px;
  }

  .achebe-login-scroll.login-scroll,
  .user-flow-screen .login-scroll {
    max-width: none;
  }

  .login-hero-panel,
  .user-flow-hero {
    min-height: 560px;
    border-radius: 32px;
    box-shadow: var(--desktop-shadow);
  }

  .login-card,
  .enter-user-form,
  .user-flow-screen .login-field,
  .user-flow-note,
  .user-flow-contact,
  .user-flow-message,
  .user-flow-screen .login-submit {
    width: 100%;
    max-width: 470px;
  }

  .policy-screen,
  .info-screen {
    width: min(100%, 980px);
    max-width: 980px;
  }

  .policy-hero,
  .contact-hero {
    border-radius: 28px;
  }

  .seo-category-links {
    max-width: 1400px;
    padding-inline: var(--desktop-gutter);
  }
}

@media (min-width: 1280px) {
  .home-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

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

@media (min-width: 1600px) {
  :root {
    --desktop-shell: min(100%, 1680px);
    --desktop-page: min(100%, 1560px);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  }

  .home-best-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Final desktop polish pass: desktop navigation and direct page grids. */
@media (min-width: 900px) {
  .tab-bar,
  .refer-float,
  .whatsapp-float,
  .install-app-nudge {
    display: none !important;
  }

  .screen-view {
    padding-bottom: clamp(42px, 4vw, 76px);
  }

  [data-screen="bag"].screen-view.is-active,
  [data-screen="checkout"].screen-view.is-active,
  [data-screen="product-detail"].screen-view.is-active {
    padding-bottom: 0;
  }

  .desktop-nav .tab-icon {
    display: none;
  }

  .desktop-nav .tab {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1;
  }

  .desktop-nav .badge {
    position: static;
    min-width: 18px;
    height: 18px;
    margin-left: 0;
    transform: none;
    border: 0;
    color: #0A74BB;
    background: #FFFFFF;
  }

  .home-promo-slot,
  .home-customer-celebration,
  .home-section-head,
  .home-best-rail,
  .home-category-grid,
  .home-footer-tags,
  .home-footer-line,
  .home-footer-copy,
  .product-heading,
  .product-subcats,
  .product-filter-row,
  .product-grid,
  .product-load-more {
    width: min(100%, 1400px);
    margin-inline: auto;
  }

  .home-customer-celebration {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .44fr);
    align-items: center;
    gap: 24px;
    padding: clamp(24px, 3vw, 38px);
  }

  .home-customer-celebration h2 {
    font-size: clamp(34px, 3.5vw, 54px);
    line-height: 1.02;
  }

  .home-celebration-points {
    grid-template-columns: 1fr;
    align-self: stretch;
  }

  .home-celebration-action {
    grid-column: 2;
    align-self: end;
  }

  .home-footer-copy {
    padding-bottom: 0;
  }

  .product-subcats {
    overflow: visible;
  }

  .product-grid {
    align-items: stretch;
  }

  .product-card {
    display: flex;
    flex-direction: column;
  }

  .product-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  .product-card-body > button,
  .product-actions {
    margin-top: auto;
  }

  [data-screen="orders"].screen-view.is-active,
  [data-screen="address"].screen-view.is-active,
  [data-screen="gift"].screen-view.is-active,
  [data-screen="track-order"].screen-view.is-active,
  [data-screen="order-details"].screen-view.is-active,
  [data-screen="add-address"].screen-view.is-active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  [data-screen="orders"] .simple-head,
  [data-screen="orders"] .filter-chips,
  [data-screen="orders"] .orders-empty-state,
  [data-screen="address"] .simple-head,
  [data-screen="address"] .detail-footer,
  [data-screen="gift"] .simple-head,
  [data-screen="track-order"] .simple-head,
  [data-screen="order-details"] .simple-head,
  [data-screen="order-details"] .share-actions,
  [data-screen="add-address"] .simple-head,
  [data-screen="add-address"] .detail-footer {
    grid-column: 1 / -1;
  }

  [data-screen="profile"].screen-view.is-active,
  [data-screen="wallet"].screen-view.is-active,
  [data-screen="wishlist"].screen-view.is-active,
  [data-screen="notify"].screen-view.is-active,
  [data-screen="refer"].screen-view.is-active,
  [data-screen="about"].screen-view.is-active,
  [data-screen="contact"].screen-view.is-active,
  [data-screen="privacy"].screen-view.is-active,
  [data-screen="terms"].screen-view.is-active,
  [data-screen="payment-policy"].screen-view.is-active,
  [data-screen="refund"].screen-view.is-active,
  [data-screen="shipping"].screen-view.is-active,
  [data-screen="install"].screen-view.is-active {
    align-items: stretch;
  }

  .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .wallet-scroll {
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: start;
    overflow: visible;
  }

  .wallet-head {
    padding-inline: 0;
  }

  [data-screen="refer"].screen-view.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  }

  [data-screen="refer"] .simple-head,
  [data-screen="refer"] .referral-hero,
  [data-screen="refer"] .share-actions {
    grid-column: 1 / -1;
  }

  .info-scroll {
    width: min(100%, 860px);
    margin-inline: auto;
  }

  .contact-grid,
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pd-hero img {
    object-fit: cover;
    padding: 0;
  }

  .pd-highlights,
  .pd-recommend > section {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .pd-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-highlights div {
    min-width: 0;
  }

  .pd-recommend > section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-recommend article {
    flex: 1 1 auto;
  }

  .achebe-checkout-screen .checkout-scroll {
    display: contents;
  }

  .achebe-checkout-screen .checkout-address-card,
  .achebe-checkout-screen .checkout-payment-card {
    grid-column: 1;
  }

  .achebe-checkout-screen .checkout-review-card {
    grid-column: 2;
    grid-row: 3 / span 4;
    position: sticky;
    top: 110px;
  }

  .achebe-checkout-screen .checkout-footer {
    left: auto;
    right: max(var(--desktop-gutter), calc((100vw - 1400px) / 2));
    bottom: 22px;
    width: min(430px, calc(100vw - 72px));
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-active-screen="login"] .phone,
  html[data-active-screen="user-congrats"] .phone,
  html[data-active-screen="welcome-back"] .phone,
  html[data-active-screen="referral-reward"] .phone,
  html[data-active-screen="referral-sorry"] .phone,
  html[data-active-screen="referral-switch"] .phone {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  html[data-active-screen="login"] .screen,
  html[data-active-screen="enter-user"] .screen,
  html[data-active-screen="user-congrats"] .screen,
  html[data-active-screen="welcome-back"] .screen,
  html[data-active-screen="referral-reward"] .screen,
  html[data-active-screen="referral-sorry"] .screen,
  html[data-active-screen="referral-switch"] .screen {
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  html[data-active-screen="login"] .content,
  html[data-active-screen="enter-user"] .content,
  html[data-active-screen="user-congrats"] .content,
  html[data-active-screen="welcome-back"] .content,
  html[data-active-screen="referral-reward"] .content,
  html[data-active-screen="referral-sorry"] .content,
  html[data-active-screen="referral-switch"] .content {
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (min-width: 1700px) {
  .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-best-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Settings and product-detail desktop finishing pass. */
@media (min-width: 900px) {
  [data-screen="settings"].screen-view.is-active {
    width: min(100%, 1160px);
    max-width: 1160px;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 30px;
    align-content: start;
  }

  [data-screen="settings"] .appearance {
    grid-column: 1;
    overflow: hidden;
    padding: 26px;
    border-radius: 28px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(236, 249, 255, .94)),
      radial-gradient(circle at 20% 0%, rgba(80, 194, 233, .24), transparent 42%);
  }

  [data-screen="settings"] .appearance::after {
    content: "ACHEBE";
    display: block;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(80, 194, 233, .2);
    border-radius: 22px;
    color: rgba(6, 54, 90, .72);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    background: linear-gradient(135deg, rgba(80, 194, 233, .14), rgba(58, 174, 217, .06));
  }

  [data-screen="settings"] > section:not(.appearance) {
    grid-column: 2;
    min-width: 0;
  }

  [data-screen="settings"] > section:nth-of-type(2) {
    grid-row: 1 / span 2;
  }

  [data-screen="settings"] > section:nth-of-type(3) {
    grid-row: 3;
  }

  [data-screen="settings"] .section-label {
    margin: 0 0 12px;
    color: #6D8298;
    letter-spacing: .12em;
  }

  [data-screen="settings"] .menu {
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
  }

  [data-screen="settings"] .menu-row {
    min-height: 82px;
    padding-inline: 20px;
    transition: transform .18s ease, background .18s ease;
  }

  [data-screen="settings"] .menu-row:hover,
  [data-screen="settings"] .settings-switch-account:hover {
    transform: translateX(4px);
    background: rgba(237, 249, 255, .88);
  }

  [data-screen="settings"] .settings-switch-account {
    width: 100%;
    margin: 0;
    border-radius: 24px;
  }

  [data-screen="product-detail"].screen-view.is-active {
    background:
      linear-gradient(90deg, rgba(241, 249, 253, .82), rgba(255, 255, 255, .98) 52%),
      radial-gradient(circle at 20% 18%, rgba(80, 194, 233, .2), transparent 34%);
  }

  .product-detail-scroll {
    border-inline: 1px solid rgba(10, 116, 187, .12);
    background: rgba(255, 255, 255, .94);
  }

  .pd-hero {
    isolation: isolate;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .95), rgba(232, 247, 252, .8) 46%, rgba(210, 238, 248, .74)),
      linear-gradient(135deg, #EFFAFF, #FFFFFF);
  }

  .pd-hero::before {
    content: "";
    position: absolute;
    inset: 34px;
    z-index: -1;
    border: 1px solid rgba(10, 116, 187, .12);
    border-radius: 34px;
    background: rgba(255, 255, 255, .42);
    box-shadow: inset 0 0 80px rgba(80, 194, 233, .12);
  }

  .pd-hero > img,
  .pd-hero img {
    object-fit: cover;
    object-position: center center;
    padding: 0;
    filter: none;
  }

  .pd-sheet {
    padding: clamp(30px, 3vw, 46px) clamp(30px, 3vw, 48px) 144px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 251, 254, .96));
  }

  .pd-title-block {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(10, 116, 187, .1);
  }

  .pd-title-block h2,
  .pd-title-block h1 {
    max-width: 780px;
    color: #071D35;
  }

  .pd-card,
  .pd-highlights div,
  .pd-recommend article {
    border-color: rgba(10, 116, 187, .12);
    box-shadow: 0 14px 34px rgba(13, 27, 46, .07);
  }

  .pd-footer {
    right: max(var(--desktop-gutter), calc((100vw - 1480px) / 2));
    bottom: 24px;
    width: min(560px, calc(48vw - 54px));
    border: 1px solid rgba(10, 116, 187, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .95);
  }
}

@media (min-width: 1280px) {
  [data-screen="settings"].screen-view.is-active {
    width: min(100%, 1220px);
    max-width: 1220px;
  }

  [data-screen="settings"] .menu-row {
    min-height: 86px;
  }
}

@media (min-width: 721px) and (max-width: 899px) {
  [data-screen="settings"].screen-view.is-active {
    max-width: 740px;
  }

  [data-screen="settings"] > section:not(.appearance),
  [data-screen="settings"] > section:nth-of-type(2),
  [data-screen="settings"] > section:nth-of-type(3) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (min-width: 900px) {
  html[data-theme="dark"] [data-screen="settings"] .appearance,
  html[data-theme="dark"] [data-screen="settings"] .menu,
  html[data-theme="dark"] [data-screen="settings"] .settings-switch-account,
  html[data-theme="dark"] .product-detail-scroll,
  html[data-theme="dark"] .pd-sheet,
  html[data-theme="dark"] .pd-card,
  html[data-theme="dark"] .pd-highlights div,
  html[data-theme="dark"] .pd-recommend article,
  html[data-theme="dark"] .pd-footer {
    border-color: rgba(148, 201, 235, .18);
    background: rgba(8, 28, 46, .9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
  }

  html[data-theme="dark"] [data-screen="settings"] .appearance::after {
    color: rgba(224, 244, 255, .74);
    border-color: rgba(148, 201, 235, .18);
    background: rgba(80, 194, 233, .08);
  }

  html[data-theme="dark"] [data-screen="product-detail"].screen-view.is-active,
  html[data-theme="dark"] .pd-hero,
  html[data-theme="dark"] .pd-sheet {
    background:
      radial-gradient(circle at 50% 20%, rgba(80, 194, 233, .12), transparent 38%),
      linear-gradient(180deg, #071C2F 0%, #071421 100%);
  }

  html[data-theme="dark"] .pd-title-block h2,
  html[data-theme="dark"] .pd-title-block h1 {
    color: #EAF8FF;
  }
}

/* Desktop storefront shell. Tablet and mobile layouts remain unchanged. */
@media (min-width: 1024px) {
  :root {
    --desktop-content-width: 1400px;
    --desktop-header-nav-width: clamp(480px, 47vw, 680px);
    --desktop-surface: #F6F8FA;
    --desktop-surface-strong: #FFFFFF;
    --desktop-divider: rgba(25, 54, 78, .11);
  }

  html,
  body {
    background: #E9EEF2;
  }

  .screen,
  .content {
    background: var(--desktop-surface);
  }

  .content {
    scrollbar-gutter: stable;
  }

  .app-header {
    position: sticky;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 82px;
    margin: 0;
    padding: 12px var(--desktop-gutter);
    border-bottom: 1px solid var(--desktop-divider);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(20, 42, 61, .06);
  }

  html[data-screen-type="main"] .app-header,
  html[data-active-screen="product"] .app-header {
    padding: 12px var(--desktop-gutter);
  }

  .app-header .logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0;
  }

  .app-header .title-block {
    width: clamp(140px, 14vw, 230px);
    min-width: 0;
    flex: 0 0 clamp(140px, 14vw, 230px);
  }

  .app-header .title,
  .app-header .subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-nav {
    position: absolute;
    left: 50%;
    width: var(--desktop-header-nav-width);
    max-width: var(--desktop-header-nav-width);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
    padding: 5px;
    transform: translateX(-50%);
    border: 1px solid rgba(25, 54, 78, .1);
    border-radius: 16px;
    background: #F1F5F8;
  }

  .desktop-nav .tab {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 11px;
    color: #53687A;
    background: transparent;
    box-shadow: none;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
  }

  .desktop-nav .tab.is-active,
  .desktop-nav .tab[aria-selected="true"] {
    color: #FFFFFF;
    background: #147EBB;
    box-shadow: 0 7px 17px rgba(20, 126, 187, .24);
  }

  .desktop-nav .tab:focus-visible {
    outline: 2px solid rgba(20, 126, 187, .42);
    outline-offset: 2px;
  }

  .header-actions {
    margin: 0 0 0 auto;
  }

  [data-screen="home"].screen-view.is-active,
  [data-screen="product"].screen-view.is-active,
  [data-screen="bag"].screen-view.is-active,
  [data-screen="account"].screen-view.is-active,
  [data-screen="settings"].screen-view.is-active {
    flex: 0 0 auto;
    width: min(100%, var(--desktop-content-width));
    max-width: var(--desktop-content-width);
    min-height: calc(100vh - 82px);
    margin-inline: auto;
    padding: 34px var(--desktop-gutter) 72px;
  }

  .home-search {
    width: min(100%, 980px);
    max-width: 980px;
    height: 62px;
    min-height: 62px;
    padding: 8px 8px 8px 20px;
    border-radius: 17px;
    box-shadow: 0 16px 38px rgba(20, 42, 61, .09);
  }

  .home-search input {
    font-size: 15px;
  }

  .home-search .home-round-action {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .home-search .home-round-action.is-primary {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .product-search-wrap {
    width: min(100%, 860px);
    max-width: 860px;
  }

  .home-chip-grid {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-height: 84px;
    margin-inline: auto;
    padding: 7px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20, 42, 61, .07);
  }

  .home-chip {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    display: grid;
    grid-template-rows: 22px 30px;
    place-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 12px;
    transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
  }

  .home-chip:first-child {
    background: #147EBB;
    box-shadow: 0 7px 17px rgba(20, 126, 187, .22);
  }

  .home-chip-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
  }

  .home-chip-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .home-chip > span:last-child {
    min-height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
  }

  .home-chip small {
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1;
  }

  .home-chip:not(:first-child):hover {
    transform: translateY(-1px);
    color: #0E668F;
    background: #EAF5FA;
  }

  .home-chip:focus-visible {
    outline: 2px solid rgba(20, 126, 187, .42);
    outline-offset: 2px;
  }

  .home-banner-carousel {
    border: 1px solid rgba(25, 54, 78, .1);
    border-radius: 18px;
    box-shadow: 0 20px 54px rgba(20, 42, 61, .12);
  }

  .home-customer-celebration {
    border: 1px solid rgba(255, 255, 255, .42);
    box-shadow: 0 20px 54px rgba(20, 42, 61, .12);
  }

  .home-section-head {
    min-height: 58px;
    padding: 8px 2px 13px;
    border-bottom: 1px solid var(--desktop-divider);
  }

  .home-section-title {
    color: #102A3E;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
  }

  .home-section-title svg {
    width: 34px !important;
    height: 34px !important;
    padding: 8px;
    border-radius: 10px;
    color: #147EBB;
    background: #E5F3F9;
    fill: none;
  }

  .home-section-action[hidden] {
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid rgba(20, 126, 187, .18);
    border-radius: 10px;
    color: #0E668F;
    background: #FFFFFF;
    box-shadow: 0 7px 18px rgba(20, 42, 61, .06);
    font-size: 12.5px;
    font-weight: 850;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
  }

  .home-section-action:hover {
    transform: translateY(-1px);
    color: #FFFFFF;
    border-color: #147EBB;
    background: #147EBB;
  }

  .home-section-action:focus-visible {
    outline: 2px solid rgba(20, 126, 187, .42);
    outline-offset: 3px;
  }

  .home-section-head + .home-best-rail,
  .home-section-head + .home-category-grid {
    margin-top: -12px;
  }

  .home-best-rail {
    align-items: stretch;
  }

  .home-best-card {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(25, 54, 78, .1);
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(20, 42, 61, .08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .home-best-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 126, 187, .22);
    box-shadow: 0 20px 44px rgba(20, 42, 61, .13);
  }

  .home-best-image {
    height: clamp(200px, 18vw, 270px);
    overflow: hidden;
    background: #EEF2F4;
  }

  .home-best-image img {
    transition: transform .32s ease;
  }

  .home-best-card:hover .home-best-image img {
    transform: scale(1.035);
  }

  .home-best-body {
    flex: 1 1 auto;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    padding: 14px 15px 15px;
  }

  .home-best-body small {
    overflow: hidden;
    color: #58718B;
    font-size: 10.5px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-best-body strong {
    height: auto;
    min-height: 42px;
    margin-top: 5px;
    color: #102A3E;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
  }

  .home-best-body > div {
    margin-top: auto;
    padding-top: 10px;
  }

  .home-best-body em {
    font-size: 17px;
    font-weight: 900;
  }

  .home-best-body del {
    font-size: 11.5px;
  }

  .home-best-body button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #147EBB;
    box-shadow: 0 7px 15px rgba(20, 126, 187, .24);
  }

  .home-category-grid {
    gap: 18px;
  }

  .home-collection-card {
    overflow: hidden;
    border: 1px solid rgba(25, 54, 78, .1);
    border-radius: 16px;
    background: #102737;
    box-shadow: 0 12px 28px rgba(20, 42, 61, .1);
  }

  .home-collection-card img {
    transition: transform .32s ease, filter .32s ease;
  }

  .home-collection-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
  }

  .home-collection-card .product-subcat-copy {
    bottom: 11px;
    font-size: 10.5px;
  }

  .home-collection-card .product-subcat-title {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(7, 25, 39, .7);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
    backdrop-filter: blur(8px);
  }

  .home-footer-tags span {
    min-height: 68px;
    padding: 14px 18px;
    border-color: rgba(25, 54, 78, .1);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(20, 42, 61, .07);
  }

  .home-footer-line,
  .home-footer-copy {
    display: none;
  }

  .home-footer-tags {
    width: min(100%, 980px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px auto 0;
  }

  .product-heading {
    min-height: 86px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--desktop-divider);
  }

  .product-heading strong {
    color: #102A3E;
    font-size: clamp(38px, 3vw, 48px);
    line-height: 1;
  }

  .product-heading span {
    color: #53687A;
    font-size: 15px;
    font-weight: 800;
  }

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

  .product-filter-row {
    min-height: 52px;
    padding-top: 2px;
    border-top: 1px solid rgba(25, 54, 78, .07);
  }

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

  [data-screen="account"].screen-view.is-active {
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 24px 28px;
    align-content: start;
  }

  [data-screen="account"] .account-reference-card {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }

  [data-screen="account"] .account-refer-banner {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  [data-screen="account"] > section:not(.account-refer-banner) {
    grid-column: 2;
    grid-row: 1 / span 4;
    min-width: 0;
  }

  [data-screen="account"] .logout {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin: 0;
  }

  [data-screen="account"] .menu {
    width: 100%;
  }

  [data-screen="account"] .menu-row {
    min-height: 78px;
    padding-inline: 20px;
  }

  [data-screen="settings"].screen-view.is-active {
    grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
    gap: 28px;
    align-content: start;
  }

  [data-screen="settings"] .appearance {
    position: sticky;
    top: 116px;
  }

  [data-screen="bag"].screen-view.is-active {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
    gap: 28px;
    align-content: start;
  }

  [data-screen="bag"] #shippingProgress {
    grid-column: 1;
    grid-row: 1;
  }

  [data-screen="bag"] #bagItemsPanel {
    grid-column: 1;
    grid-row: 2;
  }

  [data-screen="bag"] .shipping-nudge {
    grid-column: 1;
    grid-row: 3;
  }

  [data-screen="bag"] #orderSummary {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  [data-screen="bag"] .checkout-block {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }

  .seo-category-links {
    display: none;
  }

  .desktop-site-footer[hidden] {
    display: none !important;
  }

  html[data-screen-type="main"] .desktop-site-footer[hidden] {
    display: block !important;
  }

  .desktop-site-footer {
    flex: 0 0 auto;
    width: 100%;
    color: #DCE7EE;
    background: #102737;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .desktop-site-footer-inner {
    width: min(100%, var(--desktop-content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 1.7fr) repeat(3, minmax(140px, .72fr));
    gap: clamp(34px, 4vw, 68px);
    padding: 48px var(--desktop-gutter) 38px;
  }

  .desktop-site-footer-brand {
    max-width: 430px;
  }

  .desktop-site-footer-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .desktop-site-footer-lockup img {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: #FFFFFF;
    object-fit: contain;
  }

  .desktop-site-footer-lockup span,
  .desktop-site-footer-lockup strong,
  .desktop-site-footer-lockup small {
    display: block;
  }

  .desktop-site-footer-lockup strong {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 900;
  }

  .desktop-site-footer-lockup small {
    margin-top: 3px;
    color: #9FB3C0;
    font-size: 12px;
    font-weight: 700;
  }

  .desktop-site-footer-brand > p {
    max-width: 410px;
    margin: 18px 0;
    color: #AFC0CB;
    font-size: 13px;
    line-height: 1.65;
  }

  .desktop-site-footer-contact {
    display: grid;
    gap: 9px;
  }

  .desktop-site-footer-contact a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #EAF2F6;
    font-size: 12.5px;
    font-weight: 750;
    text-decoration: none;
  }

  .desktop-site-footer-contact svg {
    flex: 0 0 auto;
  }

  .desktop-site-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .desktop-site-footer-links > strong {
    margin-bottom: 3px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 900;
  }

  .desktop-site-footer-links button {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #AFC0CB;
    background: transparent;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
  }

  .desktop-site-footer-links button:hover,
  .desktop-site-footer-contact a:hover {
    color: #FFFFFF;
  }

  .desktop-site-footer-links button:focus-visible,
  .desktop-site-footer-contact a:focus-visible {
    outline: 2px solid #59BBDD;
    outline-offset: 4px;
  }

  .desktop-site-footer-base {
    width: min(100%, var(--desktop-content-width));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px var(--desktop-gutter);
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: #8FA5B2;
    font-size: 11.5px;
    font-weight: 700;
  }

  .desktop-site-footer-base span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .desktop-site-footer-base span:first-child {
    margin-right: auto;
  }
}

@media (min-width: 1280px) {
  .product-subcats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

@media (min-width: 1660px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
