
.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) {
  .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: 72px;
  height: 72px;
  padding: 0;
  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%;
  height: 100%;
  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: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
.variant-swatch {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  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: 72px;
    height: 72px;
  }

  .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; }

.product-detail-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--border-gray);
}

.product-detail-card {
  border-bottom: 1px solid var(--border-gray);
}

.product-detail-trigger {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #000 !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.product-detail-title {
  min-width: 0;
  line-height: 1.25;
}

.product-detail-title-inline {
  display: inline-flex;
  align-items: center;
}

.product-detail-inline-badge {
  margin-left: 0px;
}

.product-detail-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.product-detail-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.product-detail-plus {
  min-width: 10px;
  text-align: center;
}

.product-detail-content {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  transition: max-height 0.5s ease, padding-bottom 0.5s ease;
}

.product-detail-card.active .product-detail-content {
  max-height: 220px;
  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: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}
.home-card img{
  width: 100%;
  height: 100%;
  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;
  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;
  overflow: hidden;
}
.highlight-text-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: clamp(24px, 4vw, 40px);
  background: #f9f6f0;
  text-align: center;
}
.highlight-copy {
  display: grid;
  gap: 12px;
  max-width: 28ch;
}
.highlight-copy h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  color: #171717;
}
.highlight-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.highlight-photo-panel,
.highlight-photo-frame {
  aspect-ratio: 1 / 1;
}
.highlight-photo-panel {
  background: transparent;
}
.highlight-photo-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.highlight-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  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;
  }
  .highlight-photo-panel.fade-left::after {
    background: linear-gradient(to left, rgba(249, 246, 240, 0) 72%, rgba(249, 246, 240, 1) 100%);
  }
  .highlight-photo-panel.fade-right::after {
    background: linear-gradient(to right, rgba(249, 246, 240, 0) 72%, rgba(249, 246, 240, 1) 100%);
  }
  .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;
  }
}
