
.main-content { width: 100%; }

/* ==========================================
   PRIMARY WORKSPACE LAYOUT BREAKPOINTS
   ========================================== */
.product-container { width: 100%; display: flex; flex-direction: column; }
.gallery-column { width: 100%; position: relative; }
.details-column { width: 100%; padding: 24px 20px 40px 20px; }

@media (min-width: 992px) {
  .linea-editorial-second { grid-template-columns: 0.78fr 1.22fr; }
  .product-container {
    flex-direction: row;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
  }
  .gallery-column {
    width: 55%;
    position: sticky;
    top: calc(7vh + 40px);
    height: min-content;
  }
  .details-column { width: 45%; padding: 0; }
}

/* ==========================================
   CAROUSEL WORKSACES CODES
   ========================================== */
.card-slider {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.slider-window { width: 100%; height: 100%; overflow: hidden; background-color: #fff; }
.slider-track { display: flex; gap: 10px; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); transform: translate3d(0, 0, 0); will-change: transform; backface-visibility: hidden; }
.slider-track.dragging { cursor: grabbing; transition: none; }
.slider-card { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; user-select: none; overflow: hidden; padding: 0; background-color: #fff; backface-visibility: hidden; }
.slider-card img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.slider-button { position: absolute; top: 50%; z-index: 2; width: auto; height: auto; padding: 10px; border: none; background: none; color: #fff; font-size: 54px; line-height: 1; cursor: pointer; transform: translateY(-50%); filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.45)); }
.slider-button-left { left: 16px; }
.slider-button-right { right: 16px; }
.mini-viewer { display: flex; justify-content: flex-start; gap: 10px; padding: 16px; width: 100%; overflow-x: auto; scroll-behavior: smooth; }
.thumb-card { flex: 0 0 70px; width: 70px; height: 70px; border: 1px solid var(--border-gray); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; user-select: none; overflow: hidden; padding: 0; }
.thumb-card.active { border: 2px solid var(--primary-color); }

@media (min-width: 992px) {
  .mini-viewer { padding: 16px 0; }
}

/* ==========================================
   PRODUCT PARAMETERS INFO DISPLAY PANELS
   ========================================== */
.product-title { font-size: 26px; font-weight: 600; margin: 0 0 12px 0; }
.badge-sale { display: inline-block; background-color: rgb(28,20,13); color: #fff; font-size: 11px; font-weight: bold; padding: 4px 8px; margin-bottom: 12px; }
.price-box {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.current-price {
  font-size: 24px;
  font-weight: bold;
  color: rgb(28,20,13);
  margin-right: 8px; }
.old-price { font-size: 16px; text-decoration: line-through; color: #999999; }
.shipping-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.shipping-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.shipping-price { font-size: 16px; font-weight: 700; color: rgb(41 41 41); }
.option-group-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.variant-selector { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.variant-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  background-color: #fff;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  color: #000000 !important;
  border-radius: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.variant-btn:active { transform: scale(0.98); }
.variant-btn.active {
  border: 2px solid var(--primary-color);
  font-weight: 600;
  background-color: #fff;
  color: #000000 !important;
}
.variant-btn:disabled,
.variant-btn.out-of-stock {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: #f3f3f3;
  color: #8a8a8a !important;
  border-color: #d5d5d5;
}
.variant-btn:disabled:active,
.variant-btn.out-of-stock:active {
  transform: none;
}
.variant-stock-state {
  font-size: 12px;
  color: #8a8a8a;
}
.variant-name {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  background-color: #fff;
  color: #000000;
  font-size: 13px;
  line-height: 1.3;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.variant-swatch {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
  background-color: #f5f5f5;
  pointer-events: none;
}
.variant-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.variant-btn:disabled .variant-name,
.variant-btn.out-of-stock .variant-name {
  background-color: #f3f3f3;
  color: #8a8a8a;
}
.variant-btn:disabled .variant-swatch,
.variant-btn.out-of-stock .variant-swatch {
  filter: grayscale(1);
}

@media (max-width: 420px) {
  .variant-btn {
    min-height: 52px;
  }

  .variant-name {
    padding: 0 12px;
    font-size: 12px;
  }
}

.product-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
  letter-spacing: 0.2px;
}

.quantity-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.quantity-picker {
  display: flex;
  border: 1.5px solid var(--border-gray);
  border-radius: 25px;
  width: 130px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.quantity-picker:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 2px 12px rgba(142, 69, 0, 0.12);
}
.quantity-picker button {
  background: linear-gradient(135deg, #f5f0e6, #e8e0d0);
  border: none;
  width: 42px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}
.quantity-picker button:hover {
  background: linear-gradient(135deg, #e8e0d0, #d4cbb5);
}
.quantity-picker button:active {
  transform: scale(0.9);
  background: linear-gradient(135deg, #d4cbb5, #c4bba5);
}
.quantity-picker button:first-child {
  border-right: 1px solid var(--border-gray);
  border-radius: 25px 0 0 25px;
}
.quantity-picker button:last-child {
  border-left: 1px solid var(--border-gray);
  border-radius: 0 25px 25px 0;
}
.quantity-picker input {
  width: 46px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.quantity-picker input::-webkit-outer-spin-button,
.quantity-picker input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.btn-add-cart {
  width: 100%;
  background-color: rgb(28,20,13);
  color: #fff; border: none;
  border-radius: 30px;
  padding: 16px;
  font-size: 15px; font-weight: bold; text-transform: uppercase; cursor: pointer; }

.accordion-group { margin-top: 30px; border-top: 1px solid var(--border-gray); }
.accordion-item { border-bottom: 1px solid var(--border-gray); }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; padding: 16px 0; background: none; border: none; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; color: #000000 !important; }
.accordion-content { max-height: 0; overflow: hidden; padding-bottom: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; transition: max-height 0.5s ease, padding-bottom 0.5s ease; }
.accordion-content inner { padding-bottom: 16px; }
.accordion-item.active .accordion-content { max-height: 200px; padding-bottom: 16px; }


.section-title { font-size: 24px; font-weight: 600; margin-bottom: 24px; text-align: center; }

/* Showcase Boxes with Parallax */
.showcase-box {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 70vw;
  margin-bottom: 16px;
  overflow: hidden;
}
.showcase-img {
  position: absolute;
  top: -30%; left: 0;
  width: 100%;
  height: 160%; /* Extra height to cover parallax range without blanks */
  object-fit: cover;
  object-position: center 42%;
  z-index: 1;
  will-change: transform;
}
.showcase-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #e9e9e9;
  width: inherit;
  font-weight: bold;
  font-size: 24px;
  background: rgb(0,0,0,0);
  padding: 16px 24px;
}
.landing-section {
  width: 100%;
  max-width: 100vw;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
.panoramic-banner {
  width: 100%;
  max-width: 100vw;
  height: 70vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}
.panoramic-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.homes-grid, .highlights-grid, .story-grid, .explore-matrix { width: 100%; max-width: 140%; padding: 0 20px; display: grid; gap: 30px; }
.homes-grid { grid-template-columns: 1fr; }
.home-card {
  height: 50vh;
  width: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}
.home-card img{
  width: inherit;
  object-fit: contain;
  object-position: center;
  display: block;
}

.large-lifestyle {
  width: 100%;
  max-width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-sizing: border-box;
  overflow: hidden;
}
.large-lifestyle img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.highlights-grid {
  --highlight-columns: 1;
  container-type: inline-size;
  width: min(100%, 1260px);
  max-width: 1260px;
  padding: 0;
  gap: 0;
  grid-template-columns: repeat(var(--highlight-columns), minmax(0, 1fr));
}
.highlight-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.highlights-section {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.highlights-kicker {
  margin: 0 0 clamp(28px, 4vw, 48px);
  text-align: center;
}
.highlight-text-panel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(18px, 5cqw, 64px);
  background: #f9f6f0;
  text-align: left;
}
.highlight-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 22em;
}
.highlight-copy h3 {
  margin: 0 0 20px;
  color: #171717;
  font-size: clamp(24px, 4.1cqw, 52px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.highlight-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(13px, 1.5cqw, 16px);
  line-height: 1.6;
}
.highlights-grid .highlight-photo-panel,
.highlight-photo-frame {
  aspect-ratio: 1 / 1;
}
.highlight-photo-panel {
  background: transparent;
}
.highlight-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.highlight-photo-frame img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Story Grid & Buttons */
.story-grid { grid-template-columns: repeat(1, 1fr); gap:20px;}
.story-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.story-img {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.story-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 320px);
  margin-top: 12px;
  gap: 8px;
}

.story-name { font-size: 14px; font-weight: 600; text-align: left; flex: 1; }
.story-price { font-size: 14px; color: var(--text-muted); margin-right: 8px; }
.story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2/1;
  padding: 0 16px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 9999px; /* Perfect pill shape */
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.5s ease, color 0.5s ease;
}
.story-btn:hover { background: #fff; color: var(--primary-color); }

/* Trust Banner */
/* Explore Matrix */
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
@media (min-width: 768px) {
  .homes-grid { grid-template-columns: repeat(3, 1fr); max-width: 1260px; }
  .story-grid { grid-template-columns: repeat(4, 1fr); max-width: 1260px; }
}
@media (min-width: 992px) {
  .product-title { font-size: 36px; }
  .homes-grid, .highlights-grid, .story-grid, .explore-matrix { padding: 0; }
  .large-lifestyle { max-width: 1260px; padding: 0 20px; }
  .highlights-grid {
    --highlight-columns: 2;
  }
  .highlight-panel {
    aspect-ratio: 1 / 1;
  }
  .highlight-text-panel {
    min-height: 0;
  }
  .highlight-text-panel::after {
    background: linear-gradient(to right, rgba(249, 246, 240, 0) 72%, rgba(233, 225, 211, 1) 100%);
  }
  .highlight-photo-panel::after {
    background: none;
  }
  .highlights-grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .highlights-grid > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .highlights-grid > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .highlights-grid > :nth-child(4) { grid-column: 1; grid-row: 2; }
  .highlights-grid > :nth-child(5) { grid-column: 1; grid-row: 3; }
  .highlights-grid > :nth-child(6) { grid-column: 2; grid-row: 3; }
}

/* Phone-specific overflow fixes */
@media (max-width: 991px) {
  .main-content { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .product-container { max-width: 100vw; }
  .details-column { max-width: 100vw; }
  .showcase-box { height: 60vh; }
  .highlights-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .slider-card img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 2;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: #8e4500;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.linea-editorial,
.material-study {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(64px, 10vw, 140px);
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.linea-editorial-copy,
.material-study-copy {
  max-width: 490px;
}
.linea-editorial h2,
.material-study h2 {
  margin: 0 0 20px;
  color: #171717;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.eyebrow-second {
  margin: 0 0 14px;
  color: #8e4500;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.linea-editorial-copy > p:not(.eyebrow),
.material-study-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}
.linea-editorial-images-second {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.linea-editorial-images-second img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.linea-editorial-images-second img:last-child { margin-top: 48px; }
.linea-editorial-copy-second {
  max-width: 490px;
}
.linea-editorial-second h2 {
  margin: 0 0 20px;
  color: #171717;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.linea-editorial-copy-second > p:not(.eyebrow-second) {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}



.linea-editorial-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  width: 100%;
}
.linea-editorial-images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.material-study { background: #f3efe8; }
.material-study-image { min-height: 500px; overflow: hidden; }
.material-study-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.material-stat {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 23, 23, 0.18);
}
.material-stat span { color: #171717; font-size: 16px; font-weight: 650; }
.material-stat small { color: var(--text-muted); font-size: 13px; }
@media (min-width: 992px) {
  .linea-editorial { grid-template-columns: 1fr; }
  .linea-editorial-copy { max-width: 760px; }
  .material-study { grid-template-columns: 1fr 0.8fr; }
  .material-study-copy { padding: 48px 56px; }
}
@media (max-width: 991px) {
  .linea-editorial-second { padding-left: 20px; padding-right: 20px; }
  .linea-editorial, .material-study { padding-left: 20px; padding-right: 20px; }
  .material-study-copy { padding-bottom: 32px; }
  .linea-editorial-images-second img { min-height: 260px; }
}

/* Home inspiration and collection edit */
.home-inspiration {
  width: min(100%, 1260px);
  margin: 0 auto;
}
.section-intro {
  width: min(100%, 660px);
  margin: 0 auto;
  text-align: center;
}
.linea-editorial { padding-bottom: clamp(24px, 3vw, 40px); }
.linea-editorial + .home-inspiration { padding-top: clamp(24px, 3vw, 40px); }
.section-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #241c16;
}
.linea-editorial-second {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(64px, 10vw, 140px);
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.linea-editorial-second h2 {
  margin: 0 0 20px;
  color: #171717;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.section-intro > p:last-child {
  margin: 0;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  color: #6b6056;
  font-size: 15px;
  line-height: 1.8;
}
.home-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px) clamp(16px, 2.5vw, 32px);
  margin-top: 40px;
}
.home-scene { grid-column: span 2; min-width: 0; margin: 0; }
.home-scene-wide { grid-column: span 3; }
.home-scene img {
  display: block;
  width: 100%;
  height: clamp(280px, 36vw, 460px);
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  background: #e8dfd3;
}
.home-scene figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  padding-top: 14px;
  color: #30251d;
  font-size: 16px;
}
.home-scene figcaption small { color: #76695c; font-size: 11px; letter-spacing: 0.04em; }
.collection-card:focus-visible
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
}
@media (max-width: 767px) {
  .home-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-scene { grid-column: span 1; }
  .home-scene-wide { grid-column: span 2; }
  .home-scene img { height: auto; aspect-ratio: 4 / 5; }
  .home-scene-wide img { aspect-ratio: 3 / 2; }
  .home-scene:nth-child(3) { grid-column: 2; grid-row: 2; }
  .home-scene figcaption { font-size: 14px; }
  .collection-all { display: inline-block; margin-top: 20px; }
  .collection-photo img { aspect-ratio: 4 / 3; }
}
