/* =========================================================
   LEGACY / BASE ELEMENT STYLES
========================================================= */

.TEXTAREA { font-family: Courier New; }
.TD { font-family: Arial; font-size: 10pt; }
.A { text-decoration: none; }

/* =========================================================
   HEADER / NAV
========================================================= */

.header {
  display: table;
  margin: 0 auto;
  padding-top: 1px;
  position: relative;
  z-index: 1;
}

.dropbtn {
  background-color: #f2f2f2;
  color: black;
  padding: 10px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  min-width: 200px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: lightgrey;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  display: block;
}

.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropbtn { background-color: grey; }

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.nav-logo { height: 40px; }

.desktop-nav {
  display: flex;
  gap: 20px;
}

.nav-group { position: relative; }

.nav-title {
  font-weight: 600;
  cursor: pointer;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 220px;
  z-index: 1000;
}

.nav-group:hover .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  color: #000;
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
}

/* =========================================================
   MOBILE NAV
========================================================= */

/* MOBILE BOTTOM RIGHT NAV */
.sku-right-nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 9999;
}

/* =========================================================
   BASE LAYOUT
========================================================= */

.dls-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 24px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #222;
}

a {
  color: #1b4b25;
  text-decoration: underline;
}

/* =========================================================
   SKU TOP GRID (PHASE 1 STRUCTURE ONLY)
========================================================= */

.sku-top-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)      /* left image */
    minmax(0, 420px)   /* purchase */
    285px;             /* right rail */
  gap: 16px;
  align-items: start;
}

/* Left column (image + yard card stacked) */
.sku-left-col {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
  align-content: start;
}

.sku-middle-col {
  display: grid;
  grid-auto-rows: min-content;
  gap: 16px;
}

/* Shared card styling (reuse visual language) */
.sku-card {
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  padding: 28px;
}

/* Image card tweaks only */
.sku-image-card {
  padding: 24px;
}

/* Boise yard / reviews card */
.sku-yard-card h3 {
  font-size: 18px;
  margin-top: 8px;
}

.sku-yard-card .rating {
  font-weight: 600;
  margin-bottom: 6px;
}

.sku-yard-card .reviews-link {
  font-size: 14px;
}

/* Collapse behavior */
@media (max-width: 1200px) {
  .sku-top-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   STOCK AVAILABILITY
========================= */

/* =========================
   STOCK AVAILABILITY (PRIMARY SIGNAL)
========================= */

.sku-stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px 0;
  font-size: 15px;
  color: #1b4b25;
}

/* Green check icon */
.stock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1f8f3a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.stock-text {
  line-height: 1.3;
}

.stock-text strong {
  font-weight: 700;
}


/* =========================================================
   BULK DISCOUNT CARD (STANDOUT, NOT "SALE" ENERGY)
========================================================= */

.sku-bulk-discount-card {
  /* Subtle confidence tint + strong structure */
  background: linear-gradient(180deg, rgba(27, 75, 37, 0.06), rgba(27, 75, 37, 0.02));
  border: 1px solid rgba(27, 75, 37, 0.16);
  position: relative;
  overflow: hidden;
}

/* Left accent bar (quiet authority) */
.sku-bulk-discount-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #1b4b25;
  opacity: 0.85;
}


.bulk-card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.bulk-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(27, 75, 37, 0.10);
  border: 1px solid rgba(27, 75, 37, 0.18);
  white-space: nowrap;
}

/* Simple “tag” icon (no external libs) */
.bulk-badge-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
  transform: rotate(-12deg);
}
.bulk-badge-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1b4b25;
  border-radius: 4px;
  clip-path: polygon(0 20%, 72% 20%, 100% 50%, 72% 80%, 0 80%);
  opacity: 0.95;
}
.bulk-badge-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  left: 5px;
  top: 7px;
  opacity: 0.9;
}

.bulk-badge-text {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: #1b4b25;
}

.bulk-title {
  margin: 0;
  font-size: 18px;
  color: #1b4b25;
  
}

.bulk-subtitle {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #2f3b33;
  line-height: 1.35;
}

.bulk-tier-table {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
}

.bulk-tier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.bulk-tier-row:first-child {
  border-top: none;
}

.bulk-tier-head {
  background: rgba(27, 75, 37, 0.08);
  font-weight: 700;
  color: #1b4b25;
}

.bulk-tier-col {
  font-size: 14px;
  color: #222;
}

.bulk-tier-col-right {
  text-align: right;
  white-space: nowrap;
}

.bulk-tier-note {
  margin-top: 4px;
  font-size: 12px;
  color: #56625a;
}

.bulk-price {
  font-weight: 800;
  font-size: 16px;
  color: #1b4b25;
}

.bulk-unit {
  font-size: 12px;
  color: #546059;
  margin-left: 4px;
}

.bulk-tier-best {
  background: rgba(27, 75, 37, 0.06);
}

.bulk-footnote {
  margin: 12px 0 0 0;
  font-size: 12.5px;
  color: #37433b;
  line-height: 1.45;
}

/* Small-screen safety: keep table clean */
@media (max-width: 480px) {
  .bulk-card-header {
    grid-template-columns: 1fr;
  }
  .bulk-badge {
    width: fit-content;
  }
}


/* =========================================================
   CRITICAL GRID SHRINK FIX (PREVENT OVERLAP)
========================================================= */

.sku-left-col,
.sku-middle-col,
.sku-image-card,
.media-gallery {
  min-width: 0;
}


/* =========================================================
   DESKTOP GRID LAYOUT
========================================================= */

.dls-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 16px;
}

/* =========================================================
   SKU PAGE – NEUTRALIZE LEGACY LAYOUT GRID
   (Restore balanced width & centering)
========================================================= */

.sku-page .dls-layout {
  display: block;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  text-align: center;
  margin-bottom: 64px;
}

.hero h1 {
  font-size: 28px;
  color: #1b4b25;
  margin-bottom: 12px;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h2 {
  font-size: 23px;
  margin: 72px 0 24px;
}

h3 {
  font-size: 18px;
  margin: 26px 0 14px;
  color: #1b4b25;
}

/* =========================================================
   SIDEBAR
========================================================= */

/* Right column vertical stack (nav + standalone cards) */
.right-col-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dls-sidebar {
  margin-top: 0;
}

.sidebar-rail {
  background: #fafafa;
  padding: 28px 26px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.sidebar-section + .sidebar-section { margin-top: 28px; }

.sidebar-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sidebar-section ul {
  list-style: disc;
  padding-left: 18px;
}

/* =========================================================
   RESPONSIVE LAYOUT BREAKPOINT (1200px)
========================================================= */

/* =========================
   SKU NAV – MOBILE DUPLICATE
========================= */

/* Hide mobile copy by default */
.sku-nav-mobile {
  display: none;
}


@media (max-width: 1200px) {
  .dls-layout { grid-template-columns: 1fr; }
  .dls-sidebar { margin-top: 40px; }
  .sku-nav-mobile {
    display: block;
    margin: 16px 0 24px;
  }
  
  /* Hide original SKU nav on mobile */
  .sku-nav:not(.sku-nav-mobile) {
    display: none;
  }
  
  .sku-right-col { display: none; }
  
  .sku-right-nav-mobile {
    display: block;
    margin: 40px 0 20px 0;
  }
  
  .sku-card {
    padding: 20px;
  }
}

/* =========================================================
   IMAGE GALLERY BASE (ALL SCREENS)
========================================================= */

.media-gallery {
  max-width: 100%;
  margin: 24px auto;
}

.gallery-shell {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  height: 100%;
  width: 100%;
  flex-wrap: nowrap;
  transition: transform 0.35s ease;
}

.gallery-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.gallery-controls button {
  font-size: 22px;
  padding: 4px 14px;
  cursor: pointer;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

.gallery-dot.active { background: #333; }

/* =========================================================
   HOME DEPOT–STYLE IMAGE VIEWER (DESKTOP ONLY)
========================================================= */

/* =========================================================
   DESKTOP ONLY (>=1201px)
========================================================= */
@media (min-width: 1201px) {

  /* Hide ALL mobile slider pieces on desktop */
  .gallery-shell,
  .gallery-track,
  .gallery-controls,
  .gallery-dots,
  .gallery-arrow {
    display: none !important;
  }

  /* Desktop hero + thumbs ON */
  .hd-hero,
  .hd-thumbs {
    display: block;
  }
}


/* =========================================================
   MOBILE / 1-COLUMN (<=1200px)
========================================================= */
@media (max-width: 1200px) {

  /* Kill desktop gallery */
  .hd-hero,
  .hd-thumbs {
    display: none !important;
  }

  /* Enable slider */
  .gallery-shell { display: block !important; }
  .gallery-track { display: flex !important; }   /* <-- CRITICAL */
  .gallery-dots  { display: flex !important; }   /* better than block */
  .gallery-arrow { display: grid !important; }   /* so arrows show on mobile */

  /* Make slider visually smaller and calmer */
  .gallery-shell {
    width: 67%;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Flatten ONLY the image card on mobile */
  .sku-image-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  
  .sku-left-col,
  .sku-middle-col {
    gap: 12px;
  }
}



/* Arrow buttons overlayed on the slider (Apple-ish) */
.gallery-shell {
  position: relative;
  border-radius: 14px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* Push arrows OUTSIDE the image without resizing anything */
.gallery-arrow-left {
  left: 2px;
}

.gallery-arrow-right {
  right: 2px;
}

.gallery-frame {
  position: relative;
  overflow: visible;
}



@media (max-width: 480px) {
  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}



  /* Hero image */
  .hd-hero {
    padding: 8px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .hd-hero img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
  }

  /* Thumbnails */
.hd-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 110px));
  gap: 12px;
  width: 100%;
  justify-content: start;
}

.hd-thumbs img {
  width: 110px;
  height: 110px;
  max-width: 110px;
  max-height: 110px;

  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f5f5f5;
  padding: 4px;
  box-sizing: border-box;
}

  .hd-thumbs img.active,
  .hd-thumbs img:hover {
    border-color: #1b4b25;
    background: #fff;
}


/* =========================================================
   SKU PURCHASE BLOCK (PRICE + QUANTITY)
========================================================= */

.sku-purchase-block {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

/* Price row */
.sku-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sku-price {
  font-size: 28px;
  font-weight: 700;
  color: #1b4b25;
}

.sku-unit {
  font-size: 14px;
  color: #555;
}

/* Quantity */
.sku-qty-row label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* BUY ROW: quantity + add to cart */
.sku-buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* tighter quantity selector */
.qty-compact {
  display: flex;
  align-items: center;
}

.qty-compact input {
  width: 52px;
  text-align: center;
}

/* keep add-to-cart strong but not massive */
.sku-primary-btn {
  flex: 1;
  min-height: 44px;
}


.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  background: #fff;
}

.qty-control input {
  width: 64px;
  height: 44px;
  text-align: center;
  border: none;
  font-size: 16px;
  outline: none;
}

.qty-btn {
  width: 44px;
  height: 44px;
  font-size: 20px;
  border: none;
  background: #f3f3f3;
  cursor: pointer;
  line-height: 1;
}

.qty-btn:hover {
  background: #e6e6e6;
}

/* CTA */
.sku-cta-row {
  margin-top: 4px;
}

.sku-primary-btn {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: none;
  background: #1b4b25;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sku-primary-btn:hover {
  background: #1f8f3a; /* brighter, confident green */
}



/* =========================================================
   EXPANDABLE SECTIONS (SKU DETAIL DIVIDERS)
========================================================= */

.dls-expandable {
  border-top: 1px solid #e3e3e3;
}

.dls-expandable details {
  border-bottom: 1px solid #e3e3e3;
}

.dls-expandable summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: #303030;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dls-expandable summary::-webkit-details-marker {
  display: none;
}

.dls-expandable summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #1b4b25;
  transition: transform 0.2s ease;
}


/* Open state */
.dls-expandable details[open] summary::after {
  transform: rotate(180deg);
}

/* Content */
.dls-expandable .expandable-content {
  padding: 0 0 20px 0;
  color: #303030;
  line-height: 1.7;
}

/* Optional: tighter lists */
.dls-expandable ul {
  margin: 8px 0 0 18px;
}

/* ===============================
   LOWE'S-STYLE QUANTITY CONTROL
================================ */

.qty-lowes {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

/* minus / plus buttons */
.qty-lowes-btn {
  width: 34px;
  height: 40px;
  border: none;
  background: #f6f6f6;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

.qty-lowes-btn:hover {
  background: #eaeaea;
}

/* number input */
.qty-lowes-input {
  width: 38px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 15px;
  outline: none;
}

/* remove ugly browser arrows */
.qty-lowes-input::-webkit-outer-spin-button,
.qty-lowes-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-lowes-input[type=number] {
  -moz-appearance: textfield;
}

.sku-buy-row {
  display: flex;
  gap: 12px;
}

.sku-primary-btn {
  flex: 1;
  height: 40px;
  font-size: 15px;
  font-weight: 600;
}

/* MOBILE-ONLY BOISE YARD CARD */
.sku-yard-card-mobile {
  display: none;
}

@media (max-width: 1200px) {
  .sku-yard-card-mobile {
    display: block;
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    padding: 20px;
    margin: 16px 0;
  }
}

