/* BASE & RESET */
:root {
  --soil-brown: #311f1a;
  --clay-orange: #d2691e;
  --beige: #f3efe0;
  --accent-yellow: #db981c;
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --brown: #b97926;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--beige);
  color: #2e2e2e;
  box-sizing: border-box;
}

/* HERO SECTION */
.hero-section {
  height: 85vh;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: black;
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  padding: 0 1rem;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-overlay-text h1 {
    font-size: 2rem;
  }
}

/* PRODUCT SECTION */
.product-section {
  background-color: var(--beige);
  padding: 2rem 2rem;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto 2rem;
}

.product-row.reverse {
  flex-direction: row-reverse;
}

.product-info {
  flex: 1;
  padding: 1rem;
}

.product-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--accent-yellow);
}

.product-info p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #2e2e2e;
}

.product-info ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.product-info li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #555;
}

/* CAROUSEL */
.carousel-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
}

/* Static Image Support */
.static-track img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .product-row {
    flex-direction: column;
  }

  .product-info h2 {
    font-size: 2rem;
  }

  .product-info p,
  .product-info li {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .carousel-track img {
    max-height: 280px;
  }

  .product-info h2 {
    font-size: 1.6rem;
  }

  .product-section {
    padding: 2rem 1rem;
  }
}

/* Bullet points 3+3 column layout */
.product-info ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
  padding-left: 1rem;
  list-style-type: disc;
  margin-top: 1.5rem;
}

.product-info li {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive stacking for smaller devices */
@media (max-width: 768px) {
  .product-info ul {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
  }
}

/* -----------------------
   Extra Content Styles
------------------------*/
.intercom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1550px;
  margin: 0 auto;
  padding-top: 2rem;
}

.intercom-item {
  text-align: center;
}

.intercom-item img {
  width: 90%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
  padding-right: 3rem;
}

.intercom-item h4 {
  color: var(--accent-yellow);
  margin-top: 1rem;
  font-size: 1.2rem;
}

.intercom-item p {
  color: #2e2e2e;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .intercom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .intercom-grid {
    grid-template-columns: 1fr;
  }
}

.intercom-item a {
  text-decoration: none !important;
  color: inherit;
  display: inline-block;
}

.image-wrapper {
  background-color: #efe6c5;
  padding: 1rem;
  border-radius: 0.75rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.image-wrapper:hover {
  transform: scale(1.02);
}

.intercom-grid2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1550px;
  margin: 0 auto;
  padding-top: 2rem;
}

.intercom-item2 {
  text-align: center;
}

.intercom-item2 img {
  width: 90%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
}

.intercom-item2 h4 {
  color: var(--accent-yellow);
  margin-top: 1rem;
  font-size: 1.2rem;
}

.intercom-item2 p {
  color: #2e2e2e;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .intercom-grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .intercom-grid2 {
    grid-template-columns: 1fr;
  }
}

.intercom-item2 a {
  text-decoration: none !important;
  color: inherit;
  display: inline-block;
}

.image-wrapper2 {
  background-color: #efe6c5;
  padding: 1rem;
  border-radius: 0.75rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.image-wrapper2:hover {
  transform: scale(1.02);
}

/* Dropdown */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  margin-top: 0;
  padding: 0 1rem;
  background-color: var(--beige);
  border-radius: 0.5rem;
}

.dropdown-content.open {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1rem;
  padding: 1rem;
}

.toggle-icon {
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.intercom-grid2.single-item {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-template-columns: none;
}

.intercom-grid2.single-item .intercom-item2 {
  max-width: 400px;
  width: 100%;
}

.intercom-item img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.no-right-pad .intercom-item img {
  padding-right: 0 !important;
}

.dropdown-toggle {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  background-color: var(--accent-yellow);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle:hover {
  background-color: #b97716;
}

.toggle-icon {
  margin-left: 0.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.toggle-icon.rotate {
  transform: rotate(45deg);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.image-grid img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   PHONE (390px - 480px)
--------------------------------*/

/* Mobile-specific fix for reverse product rows */
@media (max-width: 480px) {
  .product-row.reverse {
    flex-direction: column !important;
  }

  .product-row.reverse .product-info {
    order: 1 !important;
  }

  .product-row.reverse .carousel-container {
    order: 2 !important;
  }
}
@media (max-width: 480px) {
  .product-section {
    padding: 1rem;
  }

  .product-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
   

  /* Force description above image for all products */
  .product-row .product-info {
    order: 1;
  }
  .product-row .carousel-container {
    order: 2;
  }

  .product-info h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  .product-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
  }
  .product-info ul {
    grid-template-columns: 1fr;
    padding-left: 1.2rem;
  }

  .carousel-container {
    max-width: 100%;
  }
  .carousel-track img {
    max-height: 220px;
  }

  .image-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    justify-items: center;
  }
  .image-grid img {
    max-width: 90%;
  }

  .dropdown-toggle {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
}

/* ------------------------------
   TABLET (481px - 1024px)
--------------------------------*/
@media (min-width: 481px) and (max-width: 1024px) {
  .product-section {
    padding: 1.5rem;
  }

  .product-row {
    flex-direction: column !important;
    gap: 2rem;
  }

  /* Force text first, image second */
  .product-row .product-info {
    order: 1;
  }
  .product-row .carousel-container {
    order: 2;
  }

  .product-info h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .product-info p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
  }

  .product-info ul {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .carousel-container {
    max-width: 80%;
  }

  .carousel-track img {
    max-height: 300px;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }

  .image-grid img {
    max-width: 90%;
  }
}

/* ------------------------------
   LAPTOP (1025px - 1600px)
--------------------------------*/
@media (min-width: 1025px) {
  .product-section {
    padding: 2rem 3rem;
  }

  .product-row {
    flex-direction: row;
    align-items: center;
  }

  .product-info h2 {
    font-size: 2.2rem;
  }

  .product-info p {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .product-info ul {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }

  .carousel-container {
    max-width: 400px;
  }

  .carousel-track img {
    max-height: 350px;
  }

  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
  }
}
