/* SM SALT — desktop responsive & media framing (owner brief 2026-11-14, "Emergency desktop responsive design").
   Presentation only: no copy, headings, links, canonical or structured data are changed by this file.
   Media system (by asset class):
     • portrait film on a landscape screen → framed panel beside the copy (never upscaled past ~1.3×)
     • packaging / product shots          → object-fit: contain on a dark stage (full pack visible)
     • lifestyle / scene photos           → object-fit: cover, centred
   Mobile and tablet portrait keep their existing behaviour unless a rule says otherwise. */

/* ---------- 1. Homepage + category films: ORIGINAL full-width presentation (owner, 2026-11-14) ----------
   The films keep their original design: full-section background video, object-fit: cover, original
   section height, overlay, copy and controls. The earlier framed side-panel/poster-backdrop layout was
   removed at the owner's request. Only the vertical framing (object-position; original: center 48%)
   is moved toward each film's subject on desktop. Mobile (<1024px) keeps the original 48%. */
@media (min-width: 1024px) {
  .hc-hero-film video { object-position: center 45%; }                 /* homepage hero 640×1424: keeps faces and products in frame */
  .hc-animal-film video { object-position: center 42%; }               /* livestock + salt licks above the logo plate */
  .hc-bath-film video { object-position: center 40%; }                 /* pouch pour + face */
  .hc-arrival-film video[src*="new-arrivals"] { object-position: center 52%; }  /* plant + bowl */
  .hc-mineral-film video { object-position: center 44%; }              /* Dallas exhibition, landscape */
  body[data-vc-category="health-wellness"] .vc-hero > video { object-position: center 40%; }
  body[data-vc-category="edible-salt"] .vc-hero > video { object-position: center 50%; }
  body[data-vc-category="products/kitchenware"] .vc-hero > video { object-position: center 54%; }
  body[data-vc-category="animal-licking-salt"] .tx-hero video { object-position: center 42%; }
}

/* ---------- 2. Visual-catalog stages (bath salt, kitchenware, construction, lamps) ---------- */
@media (min-width: 1001px) {
  /* One stage height for every option, so switching tabs never makes the section jump. */
  .vc-stage { align-items: stretch; }
  .vc-stage-media { min-height: clamp(460px, calc(100vh - 220px), 600px); }
  .vc-stage-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 60% at 50% 45%, #1d281c 0%, #0b100b 72%);
    z-index: 0;
  }
  .vc-stage-media > img,
  .vc-stage-media > video { z-index: 1; }
  .vc-stage-media .vc-caption { z-index: 2; }
}

/* Bath salt "Beyond the pouch": packaging shots (salt soap 420×520, bath salt balls) were cropped by
   object-fit: cover. Show the full pack on the stage. */
[data-vc-category="health-wellness"] #specialty .vc-stage-media > img {
  object-fit: contain;
  padding: 26px 26px 64px;
  box-sizing: border-box;
}
@media (max-width: 1000px) {
  [data-vc-category="health-wellness"] #specialty .vc-stage-media > img { padding: 14px 14px 52px; }
}

/* Kitchenware: the hospitality photo itself is a two-image collage. It stays unchanged until the owner
   approves a replacement (candidates prepared separately); no CSS crop is applied to it here. */

/* ---------- 3. Bath salt product page (product.html) ---------- */
@media (min-width: 901px) {
  /* Gallery: the main view fits the screen; the side panel stays beside it while scrolling. */
  body[data-vc-category] .productGallery { align-items: start; }
  body[data-vc-category] .productGallery .galleryStage { max-height: calc(100vh - 130px); min-height: 420px; }
  body[data-vc-category] .productGallery .galleryStage > img { width: 100%; height: min(calc(100vh - 132px), 760px); max-height: none; object-fit: contain; }
  body[data-vc-category] .productGallery .gallerySide { position: sticky; top: 108px; align-self: start; }
}

/* Complementary formats → premium cards (desktop-ux.js adds the card markup inside the same links). */
.cr-related.dux-cards { padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 63px); box-sizing: border-box; max-width: 1366px; margin: 0 auto; }
.cr-related.dux-cards .cr-eyebrow { margin: 0 0 10px; }
.cr-related.dux-cards h2 { margin: 0 0 28px; text-align: left; }
.cr-related.dux-cards .cr-related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.cr-related.dux-cards .cr-related-links a {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid rgba(214, 196, 150, .22); border-radius: 4px; overflow: hidden;
  background: #121a12; color: #efe9dc; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.cr-related.dux-cards .cr-related-links a:hover,
.cr-related.dux-cards .cr-related-links a:focus-visible { border-color: #d6c496; transform: translateY(-2px); }
.cr-related.dux-cards .cr-related-links a:focus-visible { outline: 2px solid #d6c496; outline-offset: 3px; }
.cr-related.dux-cards .dux-card-media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: radial-gradient(70% 60% at 50% 45%, #1d281c, #0b100b 75%); }
.cr-related.dux-cards .dux-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; display: block; }
.cr-related.dux-cards .dux-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.cr-related.dux-cards .dux-card-title { font: 400 21px/1.25 Georgia, serif; }
.cr-related.dux-cards .dux-card-note { font: 12px/1.6 Arial, sans-serif; color: #b9b6a6; }
.cr-related.dux-cards .dux-card-go { margin-top: auto; padding-top: 8px; font: 11px/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #d6c496; }
.cr-related.dux-cards .cr-related-links a > .vc-ref-badge { order: 3; display: block; margin: 0; padding: 0 18px 16px; font: 10px/1.4 Arial, sans-serif; letter-spacing: .08em; color: #a99e80; background: none; border: 0; position: static; }
.cr-related.dux-cards .dux-card-media img.dux-strip { object-fit: cover; object-position: 100% 50%; padding: 0; }
@media (prefers-reduced-motion: reduce) { .cr-related.dux-cards .cr-related-links a { transition: none; } .cr-related.dux-cards .cr-related-links a:hover { transform: none; } }

/* ---------- 4. Construction catalogue: sticky sidebar + project assistance ---------- */
@media (min-width: 1001px) {
  .catalogueSidebar .dux-assist { position: sticky; top: 104px; margin-top: 26px; }
}
.dux-assist { border: 1px solid rgba(214, 186, 128, .35); background: linear-gradient(180deg, #1a1712, #121310); padding: 22px; box-sizing: border-box; }
.dux-assist .eyebrow { margin: 0 0 10px; }
.dux-assist h3 { font: 400 22px/1.2 Georgia, serif; margin: 0 0 12px; color: #f1eadb; }
.dux-assist ul { list-style: none; margin: 0 0 18px; padding: 0; }
.dux-assist li { font: 13px/1.5 Arial, sans-serif; color: #c9c3b3; padding: 8px 0; border-top: 1px solid rgba(214, 186, 128, .18); }
.dux-assist .dux-assist-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: #d8bf86; color: #15130e; font: 600 13px/1.2 Arial, sans-serif; text-decoration: none; }
.dux-assist .dux-assist-cta:hover, .dux-assist .dux-assist-cta:focus-visible { background: #e6cf98; }
.dux-compare { margin: 56px 0 0; }
.dux-compare h3 { font: 400 clamp(26px, 2.6vw, 36px)/1.15 Georgia, serif; margin: 6px 0 18px; }
.dux-compare-wrap { overflow-x: auto; border: 1px solid rgba(214, 186, 128, .25); }
.dux-compare table { width: 100%; border-collapse: collapse; min-width: 640px; font: 13px/1.55 Arial, sans-serif; }
.dux-compare th, .dux-compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(214, 186, 128, .16); }
.dux-compare thead th { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #d6ba80; background: #15140f; }
.dux-compare tbody th { font: 400 17px/1.3 Georgia, serif; color: #f1eadb; white-space: nowrap; }
.dux-compare td { color: #c9c3b3; }
.dux-compare .fine { margin-top: 12px; }
.dux-compare-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 26px 0 0; font: 400 20px/1.3 Georgia, serif; color: #f1eadb; }
.dux-compare-cta .dux-assist-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: #d8bf86; color: #15130e; font: 600 13px/1.2 Arial, sans-serif; text-decoration: none; }
/* Phones/tablets: the sidebar stacks above the products, so the assistance box would push the catalogue
   down; there the same call to action follows the comparison table instead. */
@media (max-width: 1000px) { .catalogueSidebar .dux-assist { display: none; } }

/* ---------- 5. Salt lamp product detail: image + ON/OFF always on screen beside the controls ---------- */
@media (min-width: 901px) {
  .studioGrid .visualPanel { height: clamp(460px, calc(100vh - 128px), 614px); top: 104px; }
}

/* ---------- 6. Sitewide safety ---------- */
@media (min-width: 1001px) {
  /* Wide media never creates a horizontal page scrollbar. */
  main img, main video { max-width: 100%; }
}

/* ---------- 7. Homepage salt lamp: desktop-only side-by-side interaction ----------
   Existing mobile presentation stays unchanged. Both the visual and its colour/light controls
   remain in the same desktop viewport; the product image is never stretched or clipped. */
@media (min-width: 1024px) {
  #salt-lamps .hc-lamp-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "copy visual";
    gap: clamp(24px, 4vw, 72px);
    max-width: 1360px;
    width: calc(100% - clamp(40px, 7vw, 112px));
    margin-inline: auto;
    align-items: center;
  }
  #salt-lamps .hc-lamp-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: clamp(12px, 1.4vw, 22px);
  }
  #salt-lamps .hc-lamp-copy > .hc-eyebrow,
  #salt-lamps .hc-lamp-copy > p:not(.hc-small) { display: block; }
  #salt-lamps .hc-lamp-copy h2 {
    position: static;
    grid-area: auto;
    align-self: auto;
    justify-self: auto;
    margin: 0;
    padding: 0;
    font-size: clamp(36px, 3.6vw, 64px);
    line-height: 1.08;
    color: #fff9eb;
  }
  #salt-lamps .hc-lamp-copy .hc-switch,
  #salt-lamps .hc-lamp-copy .hc-swatches,
  #salt-lamps .hc-lamp-copy .hc-button,
  #salt-lamps .hc-lamp-copy .hc-small {
    grid-row: auto;
    margin: 0;
    justify-self: auto;
  }
  #salt-lamps .hc-lamp-copy .hc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
  #salt-lamps .hc-lamp-copy .hc-small { max-width: 48ch; }
  #salt-lamps .hc-lamp-visual {
    grid-area: visual;
    width: 100%;
    aspect-ratio: 1;
    max-height: min(74vh, 700px);
    max-width: min(74vh, 700px);
    justify-self: center;
    align-self: center;
    margin: 0;
    overflow: hidden;
  }
  #salt-lamps .hc-lamp-visual .hc-lamp-aura,
  #salt-lamps .hc-lamp-visual::before { background-size: contain; background-repeat: no-repeat; }
}
@media (min-width: 1024px) and (max-height: 800px) {
  #salt-lamps .hc-lamp-layout { gap: 28px; }
  #salt-lamps .hc-lamp-copy { gap: 12px; }
  #salt-lamps .hc-lamp-copy h2 { font-size: clamp(34px, 3vw, 48px); }
  #salt-lamps .hc-lamp-visual { max-height: min(68vh, 570px); max-width: min(68vh, 570px); }
}
/* Homepage salt lamp, desktop: the whole layout (image + Light ON/OFF + five colours) fits one screen
   below the 86px header, so changing the light never needs a scroll. */
@media (min-width: 1024px) {
  #salt-lamps.hc-lamps { padding-block: clamp(28px, 4vh, 56px); }
  #salt-lamps .hc-lamp-layout { padding-block: clamp(12px, 2vh, 28px); }
  #salt-lamps .hc-lamp-visual { max-height: min(calc(100vh - 210px), 700px); max-width: min(calc(100vh - 210px), 700px); }
}
