/* --- Reset & Global --- */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary: #b71f20;
  --primary-dark: #9e211e;
  --primary-light: #e64a4a;
  --black: #000000;
  --charcoal: #1c1b17;
  --dark-gray: #3a3a3a;
  --light: #f8f8f8;
  --white: #ffffff;
  --gold: #c5a572;
  --beige: #e7d6b5;
  --brown: #7a5a3a;
  --text-dark: #1c1b17;
  --text-light: #666666;
  --border: #e2e2e2;
  --shadow: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Page Base --- */
.duna-product-page {
  background-color: var(--white);
  font-family: "Inter", sans-serif;
  color: var(--charcoal);
  padding-bottom: 100px;
}

/* --- 2. Main Product Section (Split) --- */
.product-main-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

/* --- Left: Single Static Image --- */
.prod-gallery {
  position: relative;
}

.main-image-frame {
  width: 100%;
  height: 550px;
  background-color: #ffffffd2;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
  /* Cursor crosshair removed */
}

.main-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hover Zoom REMOVED */

/* --- Right: Product Details --- */
.prod-details {
  padding-top: 10px;
}

.prod-tag {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.prod-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 20px;
}

.prod-price-status {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.status-badge {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.prod-short-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Key Features List */
.prod-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.prod-features-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--charcoal);
  font-weight: 500;
}

.prod-features-list i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Buttons */
.prod-actions {
  display: flex;
  gap: 20px;
}

.btn-enquire-main {
  flex: 1;
  padding: 18px 30px;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: 0.3s;
}

.btn-enquire-main:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp-prod {
  padding: 18px 25px;
  background-color: #25d366;
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-whatsapp-prod:hover {
  background-color: #128c7e;
  color: var(--white);
  transform: translateY(-2px);
}

/* --- 3. Tabs Section --- */
.prod-tabs-section {
  max-width: 1000px;
  margin: 100px auto 0 auto;
  padding: 0 20px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  background: #f8f8f8;
  padding: 10px;
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 35px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.4s ease;
  font-weight: 600;
}

.tab-btn:hover {
  color: var(--charcoal);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(183, 31, 32, 0.3);
}

.tab-content {
  display: none;
  animation: fadeUp 0.6s ease;
  padding: 20px;
  background: var(--white);
  border: 1px solid #f0f0f0;
  /* Default border */
  border-radius: 8px;
}

.tab-content.active {
  display: block;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.specs-table tr {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
}

.specs-table tr:hover {
  transform: scale(1.01);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.specs-table td {
  padding: 20px 30px;
  font-size: 1rem;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  width: 30%;
  background-color: #fcfcfc;
  border-left: 1px solid #f0f0f0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.specs-table td:last-child {
  color: var(--charcoal);
  border-right: 1px solid #f0f0f0;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Applications Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 6px;
  transition: 0.3s;
}

.app-card:hover {
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.app-icon {
  width: 50px;
  height: 50px;
  background: rgba(183, 31, 32, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.app-text h4 {
  margin: 0 0 5px 0;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.app-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- 4. Related Products --- */
.related-section {
  margin-top: 100px;
  padding-top: 80px;
  border-top: 1px solid #eee;
  background-color: #fcfcfc;
}

.related-header {
  text-align: center;
  margin-bottom: 60px;
}

.related-title {
  font-size: 3rem;
  color: var(--charcoal);
  margin-bottom: 10px;
  font-weight: 700;
}

.related-sub {
  font-family: "Inter", sans-serif;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 20px;
}

.rel-card {
  display: block;
  text-decoration: none;
  position: relative;
  transition: transform 0.4s ease;
}

.rel-card:hover {
  transform: translateY(-10px);
}

.rel-img-box {
  height: 400px;
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.rel-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.rel-card:hover .rel-img-box img {
  transform: scale(1.1);
}

.rel-view-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rel-card:hover .rel-view-btn {
  opacity: 1;
  transform: translateY(0);
}

.rel-info {
  text-align: center;
}

.rel-name {
  font-size: 1.8rem;
  color: var(--charcoal);
  margin: 0 0 5px 0;
  transition: 0.3s;
  font-weight: 600;
}

.rel-card:hover .rel-name {
  color: var(--primary);
}

.rel-cat {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- 5. CTA --- */
.duna-product-cta {
  position: relative;
  padding: 120px 0;
  background-image: url("../images/banner/cta-prd.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: var(--white);
  margin-top: 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(28, 27, 23, 0.8)
  );
  z-index: 1;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-tagline {
  font-family: "Inter", sans-serif;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
}

.cta-heading {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.1;
}

.btn-cta-large {
  display: inline-block;
  padding: 20px 60px;
  background-color: var(--primary);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: 0.4s ease;
}

.btn-cta-large:hover {
  background-color: transparent;
  color: var(--white);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
  .product-main-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .main-image-frame {
    height: 400px;
  }

  .prod-hero-title {
    font-size: 3rem;
  }

  .product-hero {
    height: 400px;
  }

  .prod-title {
    font-size: 2.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .rel-img-box {
    height: 350px;
  }

  .cta-heading {
    font-size: 2.5rem;
  }
}

/* --- 5. NEW Parallax CTA Section --- */
.duna-product-cta {
  position: relative;
  padding: 120px 0;
  /* High quality wood texture/workshop background */
  background-image: url("../images/banner/cta-prd.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax Effect */
  text-align: center;
  color: var(--white);
  margin-top: 0;
  /* Connected to previous section */
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(28, 27, 23, 0.8)
  );
  /* Dark elegant tint */
  z-index: 1;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-tagline {
  font-family: "Inter", sans-serif;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
}

.cta-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.1;
}

.btn-cta-large {
  display: inline-block;
  padding: 20px 60px;
  background-color: var(--primary);
  /* Brand Red */
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: 0.4s ease;
}

.btn-cta-large:hover {
  background-color: transparent;
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .duna-product-cta {
    background-attachment: scroll;
    /* Mobile smooth scroll */
    padding: 100px 0;
  }

  .cta-heading {
    font-size: 2.5rem;
  }
}

/* ===== TABLET & MOBILE RESPONSIVE FIX ===== */
@media (max-width: 767px) {
  /* Tabs: 2 buttons in first row, 1 in second row */
  .prod-tabs-section {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin-top: 50px;
    box-sizing: border-box;
  }

  .prod-tabs-section .tabs-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 8px;
    margin-bottom: 30px;
    box-sizing: border-box;
    border-radius: 15px;
  }

  .prod-tabs-section .tab-btn {
    width: 100%;
    min-width: 0;
    padding: 12px 5px;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  /* Applications: 1 card per row on mobile */
  .prod-tabs-section .apps-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 12px;
  }

  .prod-tabs-section .app-card {
    width: 100%;
    min-width: 0;
    padding: 16px 12px;
    gap: 12px;
    box-sizing: border-box;
  }

  .prod-tabs-section .app-icon {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
  }

  .prod-tabs-section .app-text {
    flex: 1;
    min-width: 0;
  }

  .prod-tabs-section .app-text h4 {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .prod-tabs-section .app-text p {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 380px) {
  .prod-tabs-section {
    padding: 0 10px;
  }

  .prod-tabs-section .tab-btn {
    font-size: 10px;
    padding: 11px 3px;
  }

  .prod-tabs-section .tab-content {
    padding: 12px;
  }
}
