/* ========================================================================
   Woods Decor — Shared Product Gallery
   1) Hover magnify on product cards (normal grid view)
   2) Click-to-open lightbox carousel (max 3 images, click-to-enlarge)
   ======================================================================== */

/* ---------- Rounded corners on all content images ---------- */
/* Applies to current AND future images that use these containers,
   so any new product added later is automatically rounded. */
.product-img,
.room-img,
.spotlight-img,
.about-split-img,
.showroom-img,
.pd-main-img,
.strip-item{
  border-radius:14px;
  overflow:hidden;
}
.pd-thumb{ border-radius:10px; }

/* ---------- Product image ---------- */
.product-img{ cursor:pointer; }

/* ---------- Lightbox overlay ---------- */
.pg-overlay{
  position:fixed; inset:0; z-index:1000;
  background:rgba(20,18,16,.9);
  display:none; align-items:center; justify-content:center;
  opacity:0; transition:opacity .3s ease;
  font-family:'Jost',sans-serif;
}
.pg-overlay.open{ display:flex; opacity:1; }

.pg-modal{
  position:relative;
  width:min(92vw,1080px);
  max-height:94vh;
  display:flex; flex-direction:column; align-items:center;
}

.pg-stage{
  position:relative;
  width:100%; height:72vh;
  background:#fff;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.pg-stage img{
  max-width:100%; max-height:100%;
  width:auto; height:auto;
  object-fit:contain;
  border-radius:12px;
}

.pg-name{
  font-family:'Cormorant Garamond',serif;
  color:#fff; font-size:26px; font-weight:400;
  margin-top:20px; text-align:center; letter-spacing:.5px;
}
.pg-price{
  color:#c9a96e; font-size:14px; letter-spacing:1px;
  margin-top:6px; text-align:center;
}

.pg-thumbs{ display:flex; gap:12px; margin-top:18px; }
.pg-thumb{
  width:72px; height:72px; object-fit:cover;
  cursor:pointer; opacity:.5;
  border:1px solid transparent;
  border-radius:8px;
  transition:opacity .25s ease, border-color .25s ease;
}
.pg-thumb:hover{ opacity:.85; }
.pg-thumb.active{ opacity:1; border-color:#c9a96e; }

.pg-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:48px; height:48px;
  border:none; background:rgba(255,255,255,.92); color:#1a1a1a;
  font-size:20px; cursor:pointer; z-index:2;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease;
}
.pg-arrow:hover{ background:#fff; }
.pg-prev{ left:14px; }
.pg-next{ right:14px; }

.pg-close{
  position:absolute; top:-44px; right:0;
  background:none; border:none; color:#fff;
  font-size:32px; line-height:1; cursor:pointer;
  transition:opacity .25s ease;
}
.pg-close:hover{ opacity:.6; }

@media (max-width:560px){
  .pg-stage{ height:58vh; }
  .pg-thumb{ width:56px; height:56px; }
  .pg-name{ font-size:22px; }
  .pg-arrow{ width:40px; height:40px; font-size:16px; }
}

/* ========================================================================
   GLOBAL RESPONSIVE LAYER  (loaded last → safely overrides page styles)
   Applies to every page that links this file (all current + future pages).
   Goals: no text overlap, text wraps, nothing cut off, scroll when needed.
   ======================================================================== */

/* --- Overflow & wrapping safety (all screens) --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, video, svg, iframe { max-width: 100%; height: auto; }
.product-img img, .room-img img, .pd-main-img img { height: 100%; }   /* keep cover crops */
p, h1, h2, h3, h4, h5, h6, a, span, li, button, label, blockquote, figcaption {
  overflow-wrap: break-word;
  word-break: break-word;
}
/* grid/flex children may shrink so they never force the page wider */
.collection-grid > *, .arrival-grid > *, .room-grid > *,
.values-grid > *, .t-grid > *, .footer-grid > *, .related-grid > * { min-width: 0; }
/* wide tables / preformatted blocks scroll inside themselves */
table, pre { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================= TABLET / SMALL LAPTOP ( <= 980px ) ================= */
@media (max-width: 980px){
  /* stack any two-column layouts */
  .spotlight, .about-split, .showroom-grid, .contact-grid { grid-template-columns: 1fr !important; }
  .pd-wrap { grid-template-columns: 1fr !important; }
  .pd-info { position: static !important; top: auto !important; }
  .pd-thumbs { grid-template-columns: repeat(4,1fr) !important; }
}

/* ================= PHONE ( <= 600px ) ================= */
@media (max-width: 600px){
  /* trim large section paddings so content isn't squeezed/cut */
  .rooms, .arrivals, .testimonials, .contact, .values, .lookbook,
  .philosophy, .showroom, .collection-wrap, .related-section, .pd-wrap,
  .spotlight-text, .about-split-text, footer, .editorial-inner, .hero-content {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .rooms, .arrivals, .testimonials, .contact, .philosophy, .showroom { padding-top: 56px !important; padding-bottom: 56px !important; }

  /* single-column product/room grids on phones */
  .collection-grid, .arrival-grid, .room-grid, .related-grid,
  .values-grid, .t-grid, .footer-grid { grid-template-columns: 1fr !important; }
  .strip { grid-template-columns: repeat(2,1fr) !important; }

  /* headings scale down so they don't overlap */
  .section-head h2 { font-size: 30px !important; }
  .page-head h1 { font-size: 32px !important; }

  /* old 3-row header: shrink logo + padding */
  .nav-logo img { height: 60px !important; }
  .nav-row1 { padding: 12px 16px !important; }
  .breadcrumb { padding-left: 18px !important; padding-right: 18px !important; }

  /* Eloquence homepage header + hero */
  .eq-bar { padding: 12px 16px 4px !important; }
  .eq-name { font-size: 20px !important; letter-spacing: .12em !important; }
  .eq-mark img { height: 24px !important; }
  .eq-cap { left: 18px !important; right: 18px !important; bottom: 92px !important; max-width: none !important; }
  .eq-cap h1 { font-size: clamp(30px, 9vw, 44px) !important; }
  .eq-cap p { font-size: 15px !important; }
  .eq-arrows { right: 16px !important; bottom: 16px !important; }

  /* product detail: comfortable tap targets, stacked thumbs */
  .pd-thumbs { grid-template-columns: repeat(4,1fr) !important; }
  .pd-name { font-size: 30px !important; }

  /* lightbox sizing on phones */
  .pg-stage { height: 60vh !important; }
}

/* ================= VERY SMALL ( <= 380px ) ================= */
@media (max-width: 380px){
  .eq-name { font-size: 17px !important; }
  .section-head h2 { font-size: 26px !important; }
}

/* ========================================================================
   SHOW EVERY IMAGE IN FULL — no cropping anywhere.
   Holders size to the image; images are never clipped. Site-wide & future.
   ======================================================================== */
/* content-image holders: drop fixed aspect/height so they fit the image */
.product-img, .room-img, .pd-main-img,
.spotlight-img, .about-split-img, .showroom-img, .strip-item{
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
}
/* the images themselves: full width, natural height, never cropped */
.product-img img, .room-img img, .pd-main-img img,
.spotlight-img img, .about-split-img img, .showroom-img img,
.strip-item img, .product-card img{
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
/* thumbnails keep their neat box but letterbox instead of cropping */
.pd-thumb{ aspect-ratio: 1/1 !important; }
.pd-thumb img, .pg-thumb{ object-fit: contain !important; }
/* keep rows tidy when image heights differ (top-aligned, no stretching) */
.collection-grid, .arrival-grid, .room-grid, .related-grid,
.spotlight, .about-split, .showroom-grid{ align-items: start !important; }

/* ---------- Product name under each catalog card ---------- */
#catalogGrid .product-info{ text-align:center; padding-top:16px; }
#catalogGrid .product-info .pname{ font-size:18px; letter-spacing:.3px; }

/* ---------- Site-wide search overlay ---------- */
.wd-search{ position:fixed; inset:0; z-index:1100; background:rgba(244,241,236,.98);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  display:none; flex-direction:column; align-items:center; opacity:0; transition:opacity .25s ease; }
.wd-search.open{ display:flex; opacity:1; }
.wd-search-bar{ width:min(720px,92vw); margin-top:13vh; position:relative; }
.wd-search-bar input{ width:100%; border:none; border-bottom:1px solid var(--ink); background:transparent;
  font-family:'Cormorant Garamond',serif; font-size:clamp(26px,5vw,38px); font-weight:300; color:var(--ink);
  padding:10px 44px 14px 2px; outline:none; }
.wd-search-bar input::placeholder{ color:#bdb8b1; }
.wd-search-close{ position:absolute; top:6px; right:0; background:none; border:none; font-size:30px; line-height:1; color:var(--ink); cursor:pointer; }
.wd-search-close:hover{ color:var(--gold); }
.wd-results{ width:min(720px,92vw); margin-top:16px; max-height:64vh; overflow-y:auto; }
.wd-result{ display:flex; align-items:center; gap:16px; padding:12px 4px; border-bottom:1px solid var(--border); color:var(--ink); }
.wd-result:hover{ background:rgba(0,0,0,.025); }
.wd-result img, .wd-noimg{ width:50px; height:50px; flex:none; border-radius:6px; object-fit:cover; background:var(--warm); }
.wd-meta{ display:flex; flex-direction:column; }
.wd-result .wn{ font-family:'Cormorant Garamond',serif; font-size:19px; font-weight:400; }
.wd-result .ws{ font-size:10px; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold); margin-top:3px; }
.wd-empty{ color:#8a857f; font-weight:300; padding:22px 4px; font-size:15px; }


/* ===== Category hero video (top of each page) ===== */
.cat-hero{ position:relative; width:100%; height:68vh; min-height:440px; overflow:hidden; background:#d8d2ca; }
.cat-hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.cat-hero-shade{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,0) 68%); }
.cat-hero-cap{ position:absolute; left:64px; bottom:58px; max-width:660px; color:#fff; z-index:2; }
.cat-hero-crumb{ font-family:'Jost',sans-serif; font-size:12px; letter-spacing:2px; text-transform:uppercase; opacity:.92; margin-bottom:14px; }
.cat-hero-crumb a{ color:#fff; } .cat-hero-crumb a:hover{ color:var(--gold,#c9a96e); }
.cat-hero-cap h1{ font-family:'Cormorant Garamond',serif; font-weight:700; font-size:clamp(38px,6vw,72px); line-height:1.04; margin:0 0 14px; color:#fff; }
.cat-hero-cap p{ font-family:'Jost',sans-serif; font-weight:300; font-size:17px; line-height:1.55; max-width:520px; opacity:.95; margin:0; }
@media(max-width:768px){ .cat-hero{ height:56vh; min-height:320px; } .cat-hero-cap{ left:24px; right:24px; bottom:38px; } }


/* ===== Floating glassy header on hero pages ===== */
body.has-hero header{ position:fixed; top:0; left:0; right:0; z-index:600; background:rgba(244,241,236,.5); -webkit-backdrop-filter:blur(18px) saturate(1.4); backdrop-filter:blur(18px) saturate(1.4); border-bottom:none; transition:background .4s ease, box-shadow .4s ease; }
body.has-hero header.solid{ background:rgba(244,241,236,.9); box-shadow:0 1px 14px rgba(0,0,0,.06); }
body.has-hero .nav-logo img{ height:58px; mix-blend-mode:normal; }


/* ===== Hero: show full vertical video, blurred fill behind ===== */
.cat-hero{ height:78vh; min-height:540px; background:#15110e; }
.cat-hero-bgvid{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(34px) brightness(.5); transform:scale(1.14); display:none; z-index:0; }
.cat-hero.video-mode .cat-hero-bgvid{ display:block; }
.cat-hero.video-mode .cat-hero-video{ object-fit:contain; }
.cat-hero-video{ z-index:1; }
.cat-hero-shade{ z-index:2; }
.cat-hero-cap{ z-index:3; }
@media(max-width:768px){ .cat-hero{ height:70vh; min-height:420px; } }
