/* ==========================================================================
   devines. — WooCommerce theme styles
   Measurements taken from devines.store (desktop 1440px, phone 390px).
   ========================================================================== */

:root {
  --dv-black: #000;
  --dv-white: #fff;
  --dv-grey: #707070;
  --dv-line: #e8e8e8;
  --dv-font-body: "Sofia Sans", system-ui, sans-serif;
  --dv-font-sub: "Sofia Sans Condensed", "Sofia Sans", sans-serif;
  --dv-font-head: "Sofia Sans Extra Condensed", "Sofia Sans Condensed", sans-serif;
  --dv-page-margin: clamp(16px, 3vw, 40px);
  --dv-header-h: 68px;
  --dv-announce-h: 27px;
  /* names used by the reused devines-app.css / devines-pdp.css */
  --font-body--family: "Sofia Sans", system-ui, sans-serif;
  --font-heading--family: "Sofia Sans", system-ui, sans-serif;
  --button-font-family-primary: "Sofia Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dv-white);
  color: var(--dv-black);
  font-family: var(--dv-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.dv-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.dv-skip:focus { left: 8px; }

/* ---------- Announcement bar (scrolls right to left, pauses on hover) ---------- */
.dv-announce {
  background: #000; color: #fff; overflow: hidden;
  font-family: var(--dv-font-head); font-weight: 700;
}
.dv-announce__track { display: flex; width: max-content; animation: dv-marquee 85s linear infinite; }
.dv-announce:hover .dv-announce__track { animation-play-state: paused; }
.dv-announce__group { display: flex; flex-shrink: 0; }
.dv-announce__item {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 4px 32px; font-size: 15px; line-height: 1.3; letter-spacing: .04em; white-space: nowrap;
}
@keyframes dv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .dv-announce__track { animation: none; }
  .dv-announce__group + .dv-announce__group { display: none; }
}

/* ---------- Header ---------- */
.dv-sticky-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .dv-sticky-header { top: 32px; }
.dv-header { background: #000; color: #fff; }
.dv-header__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--dv-header-h);
  padding-inline: var(--dv-page-margin);
}
.dv-header__left, .dv-header__right { display: flex; align-items: center; min-width: 0; }
.dv-header__right { justify-content: flex-end; gap: 21px; }
.dv-header__logo img { height: 34px; width: auto; }
.dv-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: none;
  width: 22px; height: 22px;
}
.dv-header__burger, .dv-header__chat--mobile { display: none; }
.dv-cart-count {
  position: absolute; top: -6px; right: -8px; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: #fff; color: #000; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
}
.dv-cart-count[data-count="0"] { display: none; }

.dv-menu { min-width: 0; flex: 1; }
.dv-menu__list { display: flex; align-items: center; gap: 23px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.dv-menu__link {
  display: inline-block; background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: #fff; text-decoration: none; text-transform: uppercase;
  font-family: var(--dv-font-head); font-weight: 800; font-size: 20px; letter-spacing: .03em; line-height: 1;
}
.dv-menu__link:hover { opacity: .75; }
/* On a collection page the current menu item stays white and the others dim (as on Shopify). */
.dv-menu__list:has(.is-active) .dv-menu__link:not(.is-active) { opacity: .7; }
.dv-menu__list:has(.is-active) .dv-menu__link:not(.is-active):hover { opacity: 1; }
.dv-menu__more { position: relative; }
.dv-menu__more-list {
  display: none; position: absolute; top: calc(100% + 12px); left: -16px; z-index: 5;
  list-style: none; margin: 0; padding: 12px 16px; background: #000; min-width: 180px;
}
.dv-menu__more.is-open .dv-menu__more-list { display: grid; gap: 10px; }

/* Mobile drawer + search */
.dv-drawer, .dv-search { position: fixed; inset: 0; z-index: 100; }
.dv-drawer[hidden], .dv-search[hidden] { display: none; }
.dv-drawer__backdrop, .dv-search__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .45); }
.dv-drawer__panel {
  position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); z-index: 1;
  background: #000; color: #fff; padding: 20px var(--dv-page-margin); overflow-y: auto;
}
.dv-drawer__close { margin-bottom: 24px; }
.dv-drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.dv-drawer__list a { color: #fff; text-decoration: none; font-family: var(--dv-font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.dv-search__panel { position: relative; z-index: 1; background: #fff; padding: 20px var(--dv-page-margin); }
.dv-search__form { display: flex; align-items: center; gap: 12px; max-width: 680px; margin: 0 auto; border-bottom: 1px solid #000; padding-bottom: 10px; }
.dv-search__input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; background: none; }

@media screen and (max-width: 989px) {
  .dv-menu { display: none; }
  .dv-header__burger, .dv-header__chat--mobile { display: inline-flex; }
  .dv-header__left { gap: 18px; }
  .dv-header__chat--desktop { display: none; }
  .dv-header__right { gap: 18px; }
}
@media screen and (max-width: 749px) {
  :root { --dv-header-h: 52px; }
  .dv-header__logo img { height: 30px; }
  .dv-announce__item { font-size: 13px; padding: 3px 24px; }
}

/* ---------- Hero videos ---------- */
.dv-hero { position: relative; background: #000; overflow: hidden; }
.dv-hero--tall { height: 70svh; }
.dv-hero--second { height: 70svh; }
.dv-hero--logos { display: none; }   /* Shopify shows the logos video on phones only */
.dv-hero__link { display: block; position: absolute; inset: 0; color: #fff; text-decoration: none; }
.dv-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dv-hero__overlay { position: absolute; inset: 0; background: var(--dv-overlay, transparent); pointer-events: none; }
.dv-hero__content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dv-hero__cta { font-family: var(--dv-font-sub); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.2; }
@media screen and (max-width: 749px) {
  .dv-hero--tall { height: 58.5vw; }
  .dv-hero--second { height: 75.6vw; }
  .dv-hero--logos { display: block; height: 93vw; }
}

/* ---------- Product grids & cards ---------- */
.dv-plist { padding: 5px 0 12px; }
.dv-plist__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 13px; padding: 0 0 6px;
}
.dv-plist__title { font-family: var(--dv-font-sub); font-weight: 400; font-size: 18px; text-transform: uppercase; letter-spacing: 0; }
.dv-plist__all { font-size: 12px; color: var(--dv-grey); text-decoration: underline; text-underline-offset: 3px; }
.dv-grid { display: grid; gap: 8px 6px; }
.dv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media screen and (max-width: 749px) {
  .dv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Homepage "New Arrivals": Shopify shows 6 on phones, 8 on desktop */
  .dv-plist .dv-grid--4 > :nth-child(n+7) { display: none; }
}

.dv-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dv-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f2f2f2; }
.dv-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.dv-card__img--hover { opacity: 0; }
@media (hover: hover) {
  .dv-card:hover .dv-card__img--hover { opacity: 1; }
}
.dv-card__badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 3px 7px; background: #fff; color: #000; border: 1px solid var(--dv-line);
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.dv-card.is-sold .dv-card__img { opacity: .55; }
.dv-card__content { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 10px; text-align: center; }
.dv-card__title {
  font-family: var(--dv-font-sub); font-size: 18px; font-weight: 400; line-height: 1.1;
  text-transform: uppercase; text-decoration: none; letter-spacing: 0;
}
.dv-card__price { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; font-family: var(--dv-font-sub); font-size: 13px; line-height: 1.4; }
.dv-price--compare { color: var(--dv-grey); font-size: 13px; }
@media screen and (max-width: 749px) {
}

/* ---------- Browse by category ---------- */
.dv-cats { padding: 16px 0 28px; }
.dv-cats__title { font-family: var(--dv-font-head); font-weight: 800; font-size: 32px; line-height: 1; margin-bottom: 14px; }
.dv-cats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
.dv-cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.dv-cat__img { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #f2f2f2; }
.dv-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dv-cat:hover .dv-cat__img img { transform: scale(1.03); }
.dv-cat__label {
  background: #000; color: #fff; padding: 5px 12px;
  font-family: var(--dv-font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
@media screen and (max-width: 749px) {
  .dv-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .dv-cat__label { font-size: 10px; padding: 4px 10px; }
}

.dv-spacer { height: 80px; }
@media screen and (max-width: 749px) { .dv-spacer { height: 40px; } }

/* ---------- Collection / generic pages ---------- */
.dv-collection { padding: 24px 0 48px; }
.dv-collection__head { padding: 0 var(--dv-page-margin) 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dv-collection__title, .dv-page__title { font-family: var(--dv-font-head); font-weight: 800; font-size: clamp(32px, 4vw, 56px); line-height: 1; text-transform: uppercase; }
.dv-collection__count { margin: 0; font-size: 12px; color: var(--dv-grey); text-transform: uppercase; letter-spacing: .06em; }
.dv-page { max-width: 1200px; margin: 0 auto; padding: 32px var(--dv-page-margin) 64px; }
.dv-page .dv-page__title { margin-bottom: 24px; }
.dv-rte { line-height: 1.65; }
.dv-empty { padding: 40px var(--dv-page-margin); color: var(--dv-grey); }
.dv-pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0 0; font-family: var(--dv-font-head); font-size: 18px; font-weight: 700; }
.dv-pagination .page-numbers { padding: 4px 10px; text-decoration: none; }
.dv-pagination .current { background: #000; color: #fff; }
.dv-btn {
  display: inline-block; padding: 14px 48px; border: 1px solid #000; background: #000; color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.dv-btn:hover { background: #262626; }

/* ==========================================================================
   Footer — devines footer section (devines.store), unchanged values
   ========================================================================== */
.devines-footer {
  --df-bg: #111111; --df-text: #ffffff; --df-muted: #B1B1B1; --df-line: #FFFFFF;
  --df-pad-top: 32px; --df-pad-bottom: 28px;
  background: var(--df-bg); color: var(--df-text);
  padding: var(--df-pad-top) 6% var(--df-pad-bottom);
  font-family: var(--dv-font-body);
}
.devines-footer a { color: inherit; text-decoration: none; }
.devines-footer a:hover { opacity: .8; }
.devines-footer__inner { max-width: 1200px; margin: 0 auto; }
.devines-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr auto auto; gap: 40px 48px; align-items: start; }
.devines-footer__brand { display: inline-block; font-family: var(--dv-font-head); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: .95; letter-spacing: .01em; color: var(--df-text); }
.devines-footer__tagline { margin: 14px 0 0; max-width: 220px; color: var(--df-muted); font-size: .92rem; line-height: 1.45; }
.devines-footer__heading { margin: 0 0 16px; color: var(--df-muted); font-family: var(--dv-font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.devines-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.devines-footer__links a { font-family: var(--dv-font-head); font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.devines-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.devines-footer__contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.devines-footer__contact-text { font-family: var(--dv-font-head); font-size: 1rem; font-weight: 600; }
.devines-footer__badge { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid var(--df-text); border-radius: 2px; font-family: var(--dv-font-head); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; opacity: .9; }
.devines-footer__address { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--df-line); color: var(--df-muted); font-size: .9rem; line-height: 1.5; }
.devines-footer__social { display: flex; align-items: center; gap: 14px; }
.devines-footer__social-link { display: inline-flex; color: var(--df-text); }
.devines-footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--df-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.devines-footer__payments { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.devines-footer__secure { font-family: var(--dv-font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.devines-footer__payment-icons { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.devines-footer__payment-box { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; background: #fff; border-radius: 2px; min-height: 28px; }
.devines-footer__payment-name { color: #1a1a1a; font-size: 10px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.devines-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.devines-footer__copyright { margin: 0; font-size: .78rem; color: var(--df-muted); }
@media screen and (max-width: 989px) and (min-width: 750px) {
  .devines-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px 28px; }
}
@media screen and (max-width: 749px) {
  .devines-footer { padding-inline: 20px; }
  .devines-footer__grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
    grid-template-areas: "brand brand" "company contact" "company follow" "discuss discuss";
    column-gap: 18px; row-gap: 28px;
  }
  .devines-footer__col--brand { grid-area: brand; }
  .devines-footer__col--company { grid-area: company; }
  .devines-footer__col--contact { grid-area: contact; }
  .devines-footer__col--follow { grid-area: follow; margin-top: 4px; }
  .devines-footer__col--discuss { grid-area: discuss; }
  .devines-footer__brand { font-size: 2.6rem; }
  .devines-footer__tagline { max-width: none; margin-top: 10px; font-size: .88rem; }
  .devines-footer__heading { margin-bottom: 12px; font-size: .7rem; }
  .devines-footer__links { gap: 8px; }
  .devines-footer__links a { font-size: .95rem; }
  .devines-footer__contact { gap: 10px; }
  .devines-footer__contact-row { flex-wrap: nowrap; gap: 6px; }
  .devines-footer__contact-text { font-size: .78rem; min-width: 0; overflow-wrap: anywhere; }
  .devines-footer__badge { flex-shrink: 0; padding: 2px 5px; font-size: .55rem; }
  .devines-footer__address { margin-top: 14px; padding-top: 14px; font-size: .82rem; line-height: 1.45; }
  .devines-footer__social { gap: 12px; }
  .devines-footer__bottom { margin-top: 28px; padding-top: 16px; flex-direction: column; align-items: stretch; gap: 14px; }
  .devines-footer__payments { width: 100%; justify-content: space-between; gap: 10px; }
  .devines-footer__secure { font-size: .65rem; }
  .devines-footer__meta { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Product page — layout measured from devines.store/products/* (1440px + 390px)
   Spec table + phone buy bar come from your devines-pdp.css, the left rail from devines-app.css.
   ========================================================================== */
.dv-pdp-wrap { background: #F2F0EF; margin-bottom: 56px; }
.dv-pdp {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start;
  max-width: calc(1400px + 2 * var(--dv-page-margin)); margin: 0 auto; padding: 0 var(--dv-page-margin);
}

/* Photo carousel */
.dv-gallery { position: relative; min-width: 0; }
.dv-gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--dv-header-h) - var(--dv-announce-h));
  outline: none;
}
.dv-gallery__track::-webkit-scrollbar { display: none; }
.dv-gallery__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.dv-gallery__zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.dv-gallery__img { width: 100%; height: 100%; object-fit: cover; }
.dv-gallery__arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #000; cursor: pointer;
  transition: opacity .2s ease;
}
.dv-gallery__arrow--prev { left: 6px; }
.dv-gallery__arrow--next { right: 6px; }
.dv-gallery__arrow[disabled] { opacity: .35; cursor: default; }
.dv-gallery__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.dv-gallery__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.3); transition: background .2s ease;
}
.dv-gallery__dot.is-active { background: #000; }

/* Details column */
.dv-pdp__details { min-width: 0; padding: 29px 0 24px; }
.dv-pdp__sticky { position: sticky; top: calc(var(--dv-header-h) + var(--dv-announce-h) + 16px); }
.dv-pdp__title { font-family: var(--dv-font-body); font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.dv-pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; font-size: 18px; line-height: 1.4; }
.dv-pdp__price .dv-price--compare { font-size: 15px; }
.dv-pdp__soldout { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #000; padding: 2px 8px; }
.dv-pdp .dv-specs {
  --dv-specs-bg: #fff; --dv-specs-divider: #000; --dv-specs-label: #4a4a52; --dv-specs-value: #14213d;
  --dv-specs-label-size: 13px; --dv-specs-value-size: 16px; --dv-specs-row-padding: 15px;
  margin: 22px 0;
}
.dv-pdp .dv-spec-details__body { line-height: 1.55; }
.dv-pdp .dv-spec-details__body p { margin: 0 0 1em; }

.dv-atc { margin: 0; }
.dv-btn-buy {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 52px; padding: 0 24px;
  border: 0; background: #000; color: #fff; cursor: pointer;
  font-family: var(--dv-font-head); font-size: 18px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  transition: background .2s ease;
}
.dv-btn-buy:hover { background: #262626; }
.dv-btn-buy[disabled] { background: #8a8a8a; cursor: default; }
.dv-btn-buy.is-busy { opacity: .7; pointer-events: none; }
.dv-offer-btn {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 11px; padding: 12px 16px;
  border: 1px solid #000; color: #000; text-decoration: none; text-align: center;
  font-family: var(--dv-font-head); font-size: 14px; font-weight: 600; letter-spacing: .04em;
  transition: background .2s ease, color .2s ease;
}
.dv-offer-btn:hover { background: #000; color: #fff; }

/* FAQ accordion */
.dv-acc { margin-top: 26px; }
.dv-acc__item { border-top: 1px solid rgba(0,0,0,.55); }
.dv-acc__item:last-child { border-bottom: 1px solid rgba(0,0,0,.55); }
.dv-acc__sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0;
  font-family: var(--dv-font-sub); font-size: 18px; line-height: 1.1; text-transform: uppercase; cursor: pointer; list-style: none;
}
.dv-acc__sum::-webkit-details-marker { display: none; }
.dv-acc__sum svg { flex: 0 0 auto; transition: transform .25s ease; }
.dv-acc__item[open] .dv-acc__sum svg { transform: rotate(180deg); }
.dv-acc__body { padding: 0 0 14px; font-size: 16px; line-height: 1.55; }
.dv-acc__body p { margin: 0; }
.dv-acc__body a { text-decoration: underline; text-underline-offset: 2px; }

/* You may also like */
.dv-reco { max-width: calc(1400px + 2 * var(--dv-page-margin)); margin: 0 auto; padding: 22px var(--dv-page-margin) 27px; }
.dv-reco__title { font-family: var(--dv-font-sub); font-size: 24px; font-weight: 400; line-height: 1.4; margin-bottom: 4px; }
.dv-reco__grid { gap: 24px 10px; }
.dv-card--plain .dv-card__content { align-items: flex-start; text-align: left; padding: 4px 0 8px; gap: 2px; }
.dv-card--plain .dv-card__title { font-family: var(--dv-font-body); font-size: 16px; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.dv-card--plain .dv-card__price { justify-content: flex-start; font-size: 12px; }

/* Photo viewer */
.dv-zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.dv-zoom::backdrop { background: #fff; }
.dv-zoom__list { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 40px; }
.dv-zoom__img { width: min(100%, 1100px); height: auto; }
.dv-zoom__close { position: fixed; top: 12px; right: 12px; z-index: 2; background: #fff; border: 1px solid #000; width: 44px; height: 44px; }

/* Rail tweaks for links (the Shopify version used buttons) */
.dv-rail__login { text-decoration: none; }
.dv-rail .dv-rail__brand { font-family: var(--dv-font-body); }

@media screen and (max-width: 989px) {
  .dv-pdp { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .dv-gallery__track { max-height: none; }
  .dv-gallery__arrow { display: none; }
  .dv-gallery__dots { bottom: 14px; }
  .dv-pdp__details { padding: 24px 16px 8px; }
  .dv-pdp__sticky { position: static; }
  .dv-reco { padding: 22px 16px 27px; }
}

/* WooCommerce's stylesheet sets `.woocommerce-page img { height: auto }` — keep our photos filling their boxes. */
.dv-card .dv-card__img, .dv-gallery .dv-gallery__img { height: 100%; max-width: none; }

/* Footer stays at the bottom of the screen on short pages (like Shopify) */
.page-wrapper { display: flex; flex-direction: column; min-height: 100svh; }
.page-wrapper > .dv-main { flex: 1 0 auto; }
