/*
 * Desktop layout (screens 1024 px and wider). Phones and tablets keep the app design of theme.css untouched:
 * everything here sits inside @media (min-width: 1024px). The desktop header is views/desktop-header.php.
 */
.dk-header, .dk-title, .dk-bar, .dk-place, .dk-trust, .dk-filters { display: none; }

@media (min-width: 1024px) {
  /* --app-w is the width of the phone sheets / pop-ups (login, address, size …): a dialog width on desktops */
  :root { --app-w: 520px; --gut: 0px; --dk-w: 1440px; } /* one width for the header and every page below it */
  html { background: #fff; }
  body { max-width: none; box-shadow: none; font-size: 15px; }
  .container { max-width: var(--dk-w); margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
  main { min-height: 50vh; }

  /* ---------- phone-only parts off ---------- */
  .site-header, .mbnav, .sticky-buy, .m-pdp-bar, .lsbar, .m-gallery, .announce-x { display: none !important; }
  body:has(.mbnav), body:has(.lsbar), body.is-pdp { padding-bottom: 0 !important; }
  .wa-float { bottom: 24px !important; right: 24px !important; }

  /* ---------- header: one row — logo · menu · search · account / wishlist / bag ---------- */
  .dk-header { display: block; position: sticky; top: 0; z-index: 300; background: #fff; box-shadow: 0 1px 0 var(--line); }
  .dk-top { display: flex; align-items: center; gap: 28px; height: 80px; max-width: var(--dk-w); }
  .dk-logo { flex-shrink: 0; }
  .dk-logo img { display: block; height: 36px; width: auto; }
  .dk-menu { display: flex; align-items: stretch; height: 100%; gap: 2px; flex-shrink: 0; }
  .dk-nav-item { position: relative; display: flex; align-items: center; }
  .dk-nav-top { display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 16.5px; font-weight: 600; color: #282c3f; white-space: nowrap; cursor: pointer; }
  .dk-nav-item:hover > .dk-nav-top, .dk-nav-item.current > .dk-nav-top { color: var(--primary); border-bottom-color: var(--primary); }
  .dk-drop { position: absolute; top: 100%; left: 0; min-width: 220px; display: flex; flex-direction: column; padding: 10px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(20, 20, 40, .14); border: 1px solid var(--line); border-top: 0; opacity: 0; visibility: hidden; transition: .15s; z-index: 10; }
  .dk-nav-item:hover .dk-drop, .dk-nav-item:focus-within .dk-drop { opacity: 1; visibility: visible; }
  .dk-drop a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: #3e4152; white-space: nowrap; }
  .dk-drop a:hover { background: var(--bg-soft); color: var(--primary); }
  .dk-drop .dk-sub { padding-left: 24px; font-size: 13.5px; color: var(--muted); }
  .dk-drop .dk-m-offer { color: var(--primary); font-weight: 700; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 11px; border-radius: 0 0 8px 8px; }
  .dk-mega { flex-direction: row; gap: 28px; padding: 18px 22px; }
  .dk-col { display: flex; flex-direction: column; min-width: 160px; }
  .dk-col strong { padding: 0 12px 6px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
  /* laptops: 3 menu items in the row, the 4th and 5th move into "More" */
  .dk-n3, .dk-n4 { display: none; }
  .dk-search { flex: 1; min-width: 200px; max-width: 420px; height: 44px; display: flex !important; margin: 0 0 0 auto; padding: 0 14px; gap: 10px; border-radius: 8px !important; background: var(--bg-soft) !important; border: 1px solid transparent !important; border-bottom: 2px solid #d4d5d9 !important; order: 0 !important; }
  .dk-search:focus-within { background: #fff !important; border-color: var(--primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent) !important; }
  .dk-search input { font-size: 15px; min-width: 0; }
  .dk-search .suggest { top: calc(100% + 6px); left: 0; right: auto; width: max(100%, 420px); max-height: 70vh; border-radius: 12px; box-shadow: 0 18px 40px rgba(20, 20, 40, .14); }
  .dk-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
  .dk-act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 66px; padding: 6px 8px; border-radius: 10px; color: #282c3f; font-size: 14.5px; font-weight: 600; }
  .dk-act:hover { color: var(--primary); }
  .dk-ico { position: relative; display: inline-flex; }
  .dk-ico .cart-count { position: absolute; top: -7px; right: -11px; }
  .dk-acct { position: relative; }
  .dk-acct-menu { position: absolute; top: calc(100% + 8px); right: -40px; width: 260px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(20, 20, 40, .16); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 10; }
  .dk-acct:hover .dk-acct-menu, .dk-acct:focus-within .dk-acct-menu { opacity: 1; visibility: visible; transform: none; }
  .dk-acct-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .dk-acct-head small { color: var(--muted); font-size: 12.5px; }
  .dk-acct-head b { font-size: 15px; }
  .dk-acct-login { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: var(--primary); color: #fff; text-align: center; font-weight: 700; font-size: 14px; }
  .dk-acct-menu > a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #3e4152; }
  .dk-acct-menu > a:hover { background: var(--bg-soft); color: var(--primary); }
  .dk-acct-out { color: #b42318 !important; }
  /* ---------- page title (listing) ---------- */
  /* listing: filters sidebar left, products right */
  .listing-page:has(.dk-filters) { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .listing-page > * { grid-column: 2; min-width: 0; }
  .listing-page > .dk-title, .listing-page > .dk-bar { grid-column: 1 / -1; }
  /* top of the listing: "Title · N items", breadcrumb, then Filters | chips + Sort on one line */
  .lchips { display: none !important; } /* desktops show the sub-categories in the bar below */
  .dk-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 26px 0 0; }
  .dk-title h1, .dk-title .dk-h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: #282c3f; }
  .dk-count { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: #696e79; }
  .dk-count::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #c4c6cc; }
  .dk-crumbs { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; color: #7e818c; }
  .dk-crumbs a { font-weight: 600; color: #3e4152; }
  .dk-crumbs a:hover { color: var(--primary); }
  .dk-crumbs .ico { color: #94969f; }
  .dk-bar { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 36px; align-items: center; margin: 20px 0 22px; }
  .dk-bar-f { display: flex; align-items: center; justify-content: space-between; height: 46px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
  .dk-bar-f b { font-size: 19px; font-weight: 700; color: #282c3f; }
  .dk-reset { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #d4d5d9; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: #94969f; }
  .dk-reset:hover { color: var(--text); border-color: var(--text); }
  .dk-reset.on { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, #fff); }
  .dk-bar-r { display: flex; align-items: center; gap: 16px; min-width: 0; }
  .dk-chips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .dk-chips::-webkit-scrollbar { display: none; }
  .dk-chips .lchip { flex-shrink: 0; }
  .dk-bar-r .dk-sort { margin-left: auto; flex-shrink: 0; }
  /* scrolls with the page until its last group is on screen, then stays (top set by the script in listing.php); no scrollbar of its own */
  .listing-page > .dk-filters { display: block; grid-column: 1; grid-row: 3 / span 30; position: sticky; top: var(--dkf-top, 96px); align-self: start; }
  .listing-page:has(.dk-filters) .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 34px 20px !important; }
  .dk-f-group { border-bottom: 1px solid var(--line); }
  .dk-f-group summary { display: flex; align-items: center; gap: 8px; padding: 16px 2px; font-size: 15.5px; font-weight: 600; color: #282c3f; cursor: pointer; list-style: none; }
  .dk-f-group summary::-webkit-details-marker { display: none; }
  .dk-f-group summary em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--primary); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; }
  .dk-f-chev { margin-left: auto; color: #6b6e7a; transition: transform .2s; }
  .dk-f-group[open] .dk-f-chev { transform: rotate(180deg); }
  .dk-f-body { padding: 0 2px 14px; }
  .dk-f-body .fopt { padding: 8px 2px; border: 0; font-size: 14.5px; }
  .dk-f-body .fopt small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
  .dk-f-body .fopt:hover span { color: var(--primary); }
  .dk-f-body .fopt-tick { width: 18px; height: 18px; padding: 1px; border: 1.5px solid #b8b9c2; border-radius: 4px; color: transparent; background: #fff; }
  .dk-f-body input[type=radio] ~ .fopt-tick { border-radius: 50%; }
  .dk-f-body input:checked ~ .fopt-tick { border-color: var(--primary); background: var(--primary); color: #fff; }
  .dk-f-price { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
  .dk-f-price input { width: 0; flex: 1; height: 36px; padding: 0 8px; border: 1px solid #d4d5d9; border-radius: 6px; font: inherit; font-size: 13.5px; }
  .dk-f-price button { height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--text); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

  /* ---------- side cart, toasts, pop-ups ---------- */
  .cd-panel { right: 0 !important; width: 440px !important; max-width: 92vw !important; }
  .toast-card { left: auto !important; right: 24px !important; top: auto !important; bottom: 24px !important; width: 360px !important; }
  .offer-modal { align-items: center !important; padding: 16px !important; }
  .offer-modal-box { max-width: 520px; border-radius: 18px !important; }
  .co2-addsheet .co2-sheetx { top: 14px; right: 14px; box-shadow: none; background: var(--bg-soft); z-index: 2; }

  /* ---------- every phone bottom-sheet becomes a centred dialog ---------- */
  .sheet, .ab-drawer, .auth-modal, .offer-modal { align-items: center !important; justify-content: center !important; padding: 24px !important; }
  .sheet-box, .bp-box, .sp-box, .co2-codbox, .co2-addsheet .sheet-box { width: min(560px, 92vw) !important; max-height: 86vh !important; border-radius: 20px !important; animation: dk-pop .18s ease-out; }
  .co2-addsheet .sheet-box { overflow: hidden !important; }
  .co2-addsheet .co2-addbody { overflow-y: auto; }
  .co2-addsheet .co2-sheetx, .ab-x { top: 14px !important; right: 14px !important; left: auto !important; box-shadow: none !important; background: var(--bg-soft) !important; z-index: 3; }
  .co2-addhead, .ab-head { padding-right: 64px !important; }
  .ab-panel { width: min(560px, 92vw) !important; height: auto !important; max-height: 86vh !important; border-radius: 20px !important; overflow: hidden; }
  .ab-body { overflow-y: auto; }
  .auth-modal-box { width: min(480px, 92vw) !important; max-width: 480px !important; max-height: 90vh; overflow-y: auto; border-radius: 22px !important; animation: dk-pop .18s ease-out; }
  .sheet:has(.fsheet), .sheet-full { padding: 24px !important; }
  .fsheet { width: min(760px, 94vw) !important; height: min(640px, 86vh) !important; border-radius: 20px; overflow: hidden; animation: dk-pop .18s ease-out; }
  .loc-pop { top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important; width: 420px !important; transform: translate(-50%, -50%); border-radius: 20px !important; padding: 26px 24px 22px !important; box-shadow: 0 24px 60px rgba(20, 20, 40, .25); }
  .ud { align-items: center !important; padding: 20px !important; }
  .ud-box { width: min(420px, 92vw) !important; border-radius: 18px !important; }
  @keyframes dk-pop { from { opacity: 0; transform: scale(.97); } }
  .vs { align-items: center; }
  .vs-box { border-radius: 22px; padding-bottom: 30px; }

  /* ---------- product grids & rows ---------- */
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 34px 22px !important; }
  .carousel-cell { width: calc((100% - 4 * 20px) / 5); }
  .carousel-track { gap: 20px; }
  .carousel-arrow { display: grid !important; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(20, 20, 40, .16); border: 0; top: 38%; z-index: 3; opacity: .95; }
  .carousel-arrow.prev { left: -18px; } .carousel-arrow.next { right: -18px; }
  .pcard-title, .pcard-brand-title { font-size: 14.5px; }
  .pcard-price strong { font-size: 16px; }
  .pcard:hover .pcard-img img { transform: scale(1.04); }
  .section-title { font-size: 22px; }
  .section, main > .section, main > section.section { padding-top: 36px; padding-bottom: 20px; }

  /* ---------- home ---------- */
  .hero-full { max-width: var(--dk-w); margin: 20px auto 0; padding: 0 32px; }
  .hero, .hero-full .hero { border-radius: 18px; overflow: hidden; }
  .hero-slide { position: relative; display: flex; justify-content: center; align-items: center; height: clamp(300px, 30vw, 440px); overflow: hidden; background: #f1f1f4; }
  .hero-slide picture { display: contents; }
  .hero-slide.has-dk::before { display: none; }
  .hero-slide.has-dk img, .hero-full .hero-slide.has-dk img { width: 100% !important; height: 100% !important; object-fit: cover; }
  .hero-slide::before { content: ''; position: absolute; inset: -40px; background: var(--hbg) center / cover; filter: blur(34px) saturate(1.2); opacity: .9; }
  .hero-slide img, .hero-full .hero-slide img { position: relative; width: auto !important; max-width: 100%; height: 100% !important; object-fit: contain; }
  .hero .slider-arrow { display: grid !important; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); border: 0; }
  .hero-dots { bottom: 14px; }
  .carousel-track:has(.tile-circle) { justify-content: safe center; gap: 28px; }
  .tile-circle, .tile-circle img { width: 116px !important; }
  .tile-circle img { height: 116px !important; }
  .tile-circle span { font-size: 14px; margin-top: 10px; }
  .tile-photo { width: calc((100% - 4 * 20px) / 5) !important; }
  .tile-story { width: calc((100% - 3 * 16px) / 4) !important; }
  .tile-wide { width: calc((100% - 2 * 20px) / 3) !important; }
  .tile-tall { width: calc((100% - 4 * 20px) / 5) !important; }
  .promo-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; gap: 20px; }

  /* ---------- product page ---------- */
  body.is-pdp main { padding-top: 0 !important; }
  body.is-pdp main > .container { padding-top: 0; }
  /* breadcrumb (Home › Women › Tops › product): scrolls away with the page */
  body.is-pdp .crumbs { display: flex !important; align-items: center; flex-wrap: nowrap; gap: 6px; padding: 14px 0 14px; font-size: 13.5px; color: #535766; min-width: 0; }
  body.is-pdp .crumbs a { font-weight: 600; color: #3e4152; white-space: nowrap; }
  body.is-pdp .crumbs a:hover { color: var(--primary); }
  body.is-pdp .crumbs .crumb-sep { flex-shrink: 0; color: #94969f; }
  body.is-pdp .crumbs .current { color: #7e818c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .pdp-gallery { top: 100px !important; }
  /* gallery column = exactly the photo's width (the photo is as tall as the screen allows), details right next to it */
  .pdp { display: grid !important; grid-template-columns: auto minmax(0, 1fr) !important; gap: 0 48px !important; align-items: start; justify-content: start; }
  .pdp-info { max-width: 640px; }
  .pdp-info .pdp-rchip, .pdp-info .coupon-box { align-self: flex-start; }
  .pdp-info .coupon-box { width: 100%; max-width: 520px; }
  .pdp-gallery { display: grid !important; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 100px; }
  .pdp-gallery .thumbs { grid-column: 1; grid-row: 1; order: 0 !important; display: flex !important; flex-direction: column !important; gap: 10px; padding: 0 !important; border: 0 !important; max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: none; }
  .pdp-gallery .main-img { grid-column: 2; grid-row: 1; }
  body.is-pdp .pdp-gallery { display: grid !important; }
  body.is-pdp .pdp-actions { display: flex !important; position: static !important; box-shadow: none !important; padding: 0 !important; background: none !important; }
  body.is-pdp .pdp-actions .btn { display: inline-flex !important; }
  .pdp-gallery .thumb { padding: 0; width: 76px; aspect-ratio: 3 / 4; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-soft); cursor: pointer; flex-shrink: 0; }
  .pdp-gallery .thumb[hidden] { display: none; }
  .pdp-gallery .thumb { border: 0 !important; border-radius: 8px; opacity: .62; transition: opacity .15s, box-shadow .15s; }
  .pdp-gallery .thumb:hover { opacity: 1; }
  .pdp-gallery .thumb.active { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--primary); } /* thin ring with a gap: the photo is not cut */
  .pdp-gallery .thumbs { padding: 4px !important; margin: -4px; }
  .pdp-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .pdp-gallery .main-img { position: relative; aspect-ratio: 3 / 4; height: clamp(440px, calc(100vh - 170px), 760px); width: auto; max-width: 46vw; border-radius: 16px; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
  .pdp-gallery .main-img { border: 0 !important; padding: 0 !important; }
  .pdp-gallery .main-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain !important; object-position: center !important; border-radius: 0 !important; }
  .pdp-gallery .share-btn { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); display: grid; place-items: center; cursor: pointer; }
  .pdp-gallery .pbadge { position: absolute; top: 14px; left: 14px; z-index: 2; }
  .pdp-info { display: flex; flex-direction: column; position: relative; padding-top: 4px; min-width: 0; }
  .pdp-info > * { order: 0; }
  .pdp-info > .srg-promise { order: 2; }
  .pdp-info > .pdp-about { order: 3; }
  .pdp-info > .pdp-actions { order: 1; }
  .pdp-info h1 { font-size: 24px !important; line-height: 1.3; padding-right: 56px; }
  .pdp-info .pdp-wish { position: absolute; top: 0; right: 0; }
  body.is-pdp, body.is-pdp main { background: #fff !important; }
  body.is-pdp .pdp-info h1 { font-size: 22px !important; font-weight: 600 !important; line-height: 1.35 !important; color: #282c3f; }
  .pdp-actions { display: flex !important; align-items: center; gap: 12px; margin: 18px 0 8px; }
  .pdp-actions .qty { display: none; }
  .pdp-actions .btn { flex: 1; height: 54px; border-radius: 12px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .pdp-actions .btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; }
  .pdp-actions .btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
  .pdp-actions .btn-primary:hover { filter: brightness(.94); }
  .pdp-delivery { white-space: normal !important; }
  #reviews, .pdp-similar { margin-top: 40px; }

  /* ---------- bag ---------- */
  body:has(.bag) main > .container.bag { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 32px; align-items: start; padding-top: 10px; }
  .bag #bag-items { grid-column: 1; grid-row: 1 / span 3; }
  .bag #bag-offers, .bag #bag-price { grid-column: 2; }
  .bag .bag-more { grid-column: 1 / -1; }
  .bag-pin, .bag-free { max-width: calc(var(--dk-w) - 64px); margin-left: auto !important; margin-right: auto !important; border-radius: 12px; }
  .bag-pin { margin-top: 18px !important; }
  .bag-bar { display: none !important; }
  body:has(.bag-bar) { padding-bottom: 0 !important; }
  .bag #bag-price { position: static; } /* not sticky: it slid over the "You may also like" row */
  .bag .bag-more { margin-top: 28px; }
  .dk-place { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 14px; border-radius: 12px; background: var(--primary) !important; color: #fff !important; font-size: 16px; font-weight: 700; }

  /* ---------- checkout, payment, account and other one-column pages: a centred column ---------- */
  body:has(.co2) main, body:has(.pay2) main, body:has(.os) main, body:has(.acc) main { padding-top: 24px; }
  .co2, .pay2, .os, .acc, .bag-empty, .co2-strip { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
  /* checkout: two columns, the order summary stays open on the right and follows the scroll */
  .co2, .co2-strip { max-width: 1120px; }
  .co2-login { max-width: calc(100% - 420px); }
  #co-form { display: grid; grid-template-columns: minmax(0, 1fr) 392px; column-gap: 28px; row-gap: 0; align-items: start; }
  #co-form > * { grid-column: 1; }
  #co-form > .co2-summary { grid-column: 2; grid-row: 1 / span 60; position: sticky; top: 96px; margin-top: 30px; border-radius: 12px; box-shadow: 0 8px 26px rgba(20, 20, 40, .07); }
  #co-form > .co2-summary summary { cursor: default; pointer-events: none; }
  #co-form > .co2-summary .co2-caret { display: none; }
  #co-form > .co2-summary .co2-items { max-height: calc(100vh - 260px); overflow-y: auto; }
  #co-form > .co2-card:not(.co2-summary) { border-radius: 12px; }
  .co2-pay { transition: border-color .15s, box-shadow .15s; }
  .co2-pay:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(233, 30, 99, .1); }
  .co2-strip { border-radius: 10px; }
  .co-mbar { left: calc(50% - 380px) !important; right: calc(50% - 380px) !important; border-radius: 16px 16px 0 0; }
  .simple-header { display: none !important; }
  body.is-focus .dk-menu, body.is-focus .dk-search { display: none !important; } /* checkout: no menu to wander off to */
  body.is-focus .dk-actions { margin-left: auto; }

  /* ---------- all categories page ---------- */
  .allcat { grid-template-columns: 250px minmax(0, 1fr) !important; max-width: var(--dk-w); margin: 24px auto 0 !important; padding: 0 32px; min-height: 60vh; }
  .allcat-rail { border-radius: 14px; padding: 8px 0 !important; align-self: start; position: sticky; top: 100px; }
  .allcat-tab { flex-direction: row !important; justify-content: flex-start !important; text-align: left !important; gap: 12px !important; padding: 12px 18px !important; }
  .allcat-tab-img { width: 44px !important; height: 44px !important; flex-shrink: 0; }
  .allcat-tab-name { font-size: 14.5px !important; }
  .allcat-panes { padding: 0 0 40px 36px !important; }
  .allcat-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 26px 20px !important; }
  .allcat-tile-img { aspect-ratio: 3 / 4 !important; border-radius: 14px !important; }
  .allcat-tile-name { font-size: 14px !important; }

  /* ---------- footer: on every page (phones show it on the homepage only) ---------- */
  /* (the app footer is replaced by the desktop footer — see the end of this file) */
  body:has(.allcat) .wa-float { display: flex !important; }
  .site-footer .ft-grid { display: grid !important; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)) !important; gap: 48px !important; }
  .site-footer .ft-brand { grid-column: auto; }
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 18px !important; padding: 34px 32px !important; }
  .trust-item { flex-direction: row !important; text-align: left !important; gap: 14px !important; padding: 18px 20px !important; }
  .trust-item strong { font-size: 15px !important; }
  .site-footer .ft-news { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .site-footer .ft-news-form { flex: 0 1 520px; }
  .ft-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
}

@media (min-width: 1280px) {
  .dk-n3, .dk-n4 { display: flex; }
  .dk-m-narrow { display: none !important; }
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .listing-page:has(.dk-filters) .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } /* 4 next to the filters */
}

/* desktop product cards: flip through photos on hover */
@media (min-width: 1024px) {
  .pc-nav { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .18s; }
  .pcard:hover .pc-nav { opacity: 1; }
  .pc-arrow { pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #282c3f; box-shadow: 0 3px 12px rgba(0, 0, 0, .18); cursor: pointer; }
  .pc-arrow:hover { background: #fff; color: var(--primary); }
  .pc-arrow.prev { left: 10px; } .pc-arrow.next { right: 10px; }
  .pc-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px 7px; border-radius: 10px; background: rgba(255, 255, 255, .85); }
  .pc-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b9bbc2; }
  .pc-dots i.on { background: #282c3f; }
  .pcard:has(.pc-nav) .prating { transition: opacity .18s; }
  .pcard:hover:has(.pc-nav) .prating { opacity: 0; } /* the dots take the bottom of the photo while hovering */
}

/* product page photo: a normal (about 3:4) photo fills the box; a wide one is shown whole (see app.js) */
@media (min-width: 1024px) {
  .pdp-gallery .main-img > img { object-fit: cover !important; object-position: center top !important; }
  .pdp-gallery .main-img.is-wide > img { object-fit: contain !important; object-position: center !important; }
  .pdp-gallery .main-img { background: #f5f5f6; }
  #pdp-form > .opt-group, #pdp-form > .pdp-colours { padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); }
  #pdp-form > :is(.opt-group, .pdp-colours):first-of-type { border-top: 0; }
}

/* ===== desktop footer (views/desktop-footer.php): compact, dark ===== */
.dk-footer { display: none; }
@media (min-width: 1024px) {
  .site-footer { display: none !important; } /* desktops use the footer below (phones keep the app one) */
  .dk-footer { display: block; margin-top: 48px; background: #17171f; color: #a9abb6; font-size: 14px; }
  .dk-footer a { color: #c9cad3; transition: color .15s; }
  .dk-footer a:hover { color: #fff; }
  .dk-footer svg { width: 16px; height: 16px; flex-shrink: 0; }
  /* newsletter line */
  .dk-ft-news { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 26px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .dk-ft-news-text b { display: block; font-size: 17px; font-weight: 700; color: #fff; }
  .dk-ft-news-text span { font-size: 13.5px; }
  .dk-ft-news-form { display: flex; flex: 0 1 460px; height: 44px; border-radius: 8px; overflow: hidden; background: #fff; }
  .dk-ft-news-form input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 14px; outline: none; color: #16161d; }
  .dk-ft-news-form button { padding: 0 22px; border: 0; background: var(--primary); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .dk-ft-news-form button:hover { filter: brightness(.94); }
  /* five columns */
  .dk-ft-main { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 34px; padding-bottom: 30px; }
  .dk-ft-logo img { display: block; height: 30px; width: auto; filter: brightness(0) invert(1); }
  .dk-ft-brand p { margin: 12px 0 14px; max-width: 300px; line-height: 1.6; }
  .dk-ft-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .dk-ft-perks li { display: flex; align-items: center; gap: 9px; color: #c9cad3; }
  .dk-ft-perks svg, .dk-ft-contact svg { color: var(--primary); }
  .dk-ft-social { display: flex; gap: 8px; margin-top: 16px; }
  .dk-ft-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
  .dk-ft-social a:hover { background: var(--primary); }
  .dk-ft-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
  .dk-ft-col h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
  .dk-ft-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .dk-ft-contact span, .dk-ft-contact a { display: inline-flex; align-items: center; gap: 8px; word-break: break-word; color: #c9cad3; }
  /* bottom bar */
  .dk-ft-bar { border-top: 1px solid rgba(255, 255, 255, .08); background: #111117; }
  .dk-ft-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; font-size: 13px; }
  .dk-ft-pay { display: flex; align-items: center; gap: 6px; }
  .dk-ft-pay b { display: grid; place-items: center; height: 24px; min-width: 38px; padding: 0 6px; border-radius: 4px; background: #fff; }
  .dk-ft-pay img { height: 14px; width: auto; }
  .dk-ft-pay .dk-ft-cod { color: #16161d; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
}

/* listing bar: the filters that are on, each with × to take it off */
@media (min-width: 1024px) {
  .dk-achip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 16px; border: 1px solid var(--primary); border-radius: 20px; background: #fff; color: var(--primary); font-size: 14px; font-weight: 600; white-space: nowrap; }
  .dk-achip .ico { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--primary); color: #fff; }
  .dk-achip:hover { background: color-mix(in srgb, var(--primary) 8%, #fff); }
}

/* ===== bag page (desktop) ===== */
@media (min-width: 1024px) {
  .bag-steps { max-width: 520px; margin: 22px auto 0; padding: 0; background: none; }
  .bag-steps span { font-size: 14px; }
  .bag-pin, .bag-free { max-width: calc(var(--dk-w) - 64px); }
  .bag-item { gap: 18px; padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--line); box-shadow: none; }
  .bag-img, .bag-img img { width: 120px; }
  .bag-img img { height: 160px; }
  .bag-title { font-size: 16px; font-weight: 600; padding-right: 36px; }
  .bag-selects { margin-top: 10px; }
  .bag-price { margin-top: 10px; font-size: 15px; }
  .bag-price b { font-size: 18px; }
  .bag-h { font-size: 18px; margin-bottom: 12px; }
  .bag #bag-price .bag-h, .bag #bag-offers .bag-h { font-size: 16px; }
  .dk-place + .dk-trust, .dk-trust { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
}

/* listing: "Sort by" dropdown — own design (option + round mark, the chosen one ticked) */
@media (min-width: 1024px) {
  .dk-sort { position: relative; z-index: 20; }
  .dk-sort-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 280px; height: 46px; padding: 0 14px 0 16px; border: 1px solid #d4d5d9; border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: #535766; cursor: pointer; }
  .dk-sort-btn b { font-weight: 700; color: var(--text); }
  .dk-sort-btn > span { flex: 1; text-align: left; }
  .dk-sort-chev { transition: transform .2s; }
  .dk-sort.open .dk-sort-btn { border-color: var(--primary); color: var(--primary); }
  .dk-sort.open .dk-sort-btn b { color: var(--primary); }
  .dk-sort.open .dk-sort-chev { transform: rotate(180deg); }
  .dk-sort-list { position: absolute; top: calc(100% + 4px); right: 0; left: 0; padding: 6px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 40px rgba(20, 20, 40, .14); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
  .dk-sort.open .dk-sort-list { opacity: 1; visibility: visible; transform: none; }
  .dk-sort-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; font-size: 15px; color: #3e4152; }
  .dk-sort-list a:hover { background: var(--bg-soft); }
  .dk-sort-list a.on { background: color-mix(in srgb, var(--primary) 7%, #fff); color: var(--text); font-weight: 600; }
  .dk-sort-list i { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #d4d5d9; color: #fff; }
  .dk-sort-list a.on i { background: var(--primary); }
}

/* bag top: steps first, then "Deliver to" and the free-delivery bar joined into one card */
@media (min-width: 1024px) {
  body:has(.bag) main { display: flex; flex-direction: column; }
  body:has(.bag) main > * { width: 100%; }
  body:has(.bag) main > .bag-steps { order: -1; margin: 24px auto 18px; max-width: 520px; }
  body:has(.bag) main > .bag-pin { margin-top: 0 !important; margin-bottom: 0 !important; border-radius: 12px 12px 0 0 !important; border-bottom: 1px solid var(--line); }
  body:has(.bag) main > .bag-free { margin-top: 0 !important; border-radius: 0 0 12px 12px !important; }
  body:has(.bag) main > .bag-pin:not(:has(+ .bag-steps + .bag-free)):not(:has(+ .bag-free)) { border-radius: 12px !important; border-bottom: 0; }
}


/* desktop: 5 reels in a row, a card lifts on hover; the viewer is a phone-shaped box in the middle */
@media (min-width: 1024px) {
  .reels-head { margin-bottom: 18px; }
  .reels { gap: 18px !important; padding-top: 8px; padding-bottom: 12px; }
  .section.reels-sec { padding-bottom: 0 !important; }
  .reel { width: calc((100% - 4 * 18px) / 5) !important; }
  .reel-media { border-radius: 16px; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
  .reel:hover .reel-media { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(20, 20, 40, .18); }
  .reel-prod { left: 9px; right: 9px; bottom: 9px; padding: 7px; gap: 10px; border-radius: 12px; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .reel:hover .reel-prod { transform: translateY(-5px); }
  .reel-prod img { width: 38px; height: 48px; }
  .reel-prod b { font-size: 13px; }
  .reel-prod small { font-size: 13.5px; }
  .reel-prod em { display: inline; }
  .reel-prod-go { display: grid; width: 34px; height: 34px; transition: background .2s; }
  .reel-prod:hover .reel-prod-go { background: var(--primary); }
  .reel-cap.has-prod { padding-bottom: 76px; }
  .reels-sec .carousel-arrow { top: 45%; }
  /* viewer: a phone-shaped video in the middle, the videos before / after peek in at the sides */
  .rl { --rh: min(90vh, 880px); background: rgba(8, 8, 12, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .rl-bg { opacity: .6; }
  .rl-stage { height: var(--rh); width: auto; aspect-ratio: 9 / 16; max-width: none; border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
  .rl-x { position: fixed; top: 22px; right: 26px; width: 48px; height: 48px; background: rgba(255, 255, 255, .14); }
  .rl-x:hover { background: rgba(255, 255, 255, .28); }
  .rl-hint { display: none; }
  .rl-peek { display: block; position: absolute; z-index: 1; top: 50%; width: calc(var(--rh) * .62 * 9 / 16); aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #22222a; transform: translateY(-50%); opacity: .5; cursor: pointer; transition: opacity .25s, transform .25s; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
  .rl-peek[hidden] { display: none; }
  .rl-peek img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rl-peek:hover { opacity: .9; transform: translateY(-50%) scale(1.03); }
  .rl-prev { right: calc(50% + var(--rh) * 9 / 32 + 40px); }
  .rl-next { left: calc(50% + var(--rh) * 9 / 32 + 40px); }
  .rl-peek-ico { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #16161d; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
}


@media (min-width: 1024px) {
  main .section-title:not(.pdp-similar .section-title) { font-size: 19px; letter-spacing: .16em; }
}
