/* =========================================================
   DESIGN SYSTEM – PRODUCTS
   Premium / Agency Grade / Responsive
========================================================= */

:root {
  --bg-soft: #f7f6f3;
  --bg-white: #ffffff;
  --text-dark: #111111;
  --text-muted: rgba(0,0,0,0.65);
  --text-light: rgba(0,0,0,0.45);
  --accent: #000000;

  --radius-lg: 18px;
  --radius-md: 12px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* =========================================================
   PAGE INTRO (ALL PRODUCT PAGES)
========================================================= */
.mdh-catpage-intro {
  position: relative;
  padding: 180px 20px 80px;   /* push content below header */
  text-align: center;
  background: #f8f7f4;
}
.mdh-back-btn {
  position: absolute;
  top: 110px;   /* below fixed header */
  left: 40px;
  font-size: 14px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  z-index: 10;
}

.mdh-back-btn:hover {
  opacity: 0.7;
}



.mdh-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.mdh-modal-content img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.mdh-modal-content img.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

.mdh-close-modal {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.mdh-modal-nav {
  position: absolute;
  bottom: 60px;
  display: flex;
  gap: 40px;
}

.mdh-modal-nav button {
  background: none;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
}





.products-intro {
  padding: clamp(7rem, 12vh, 10rem) 6% 5rem;
  text-align: center;
  background: var(--bg-soft);
}

.products-eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
}

.products-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.products-highlight {
  position: relative;
  z-index: 1;
}

.products-highlight::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0.45em;
  background: rgba(0,0,0,0.06);
  z-index: -1;
}

.products-description {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.products-subtext {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-light);
}

/* =========================================================
   CATEGORY / SUBCATEGORY GRID
========================================================= */

.products-categories {
  background: var(--bg-white);
  padding: clamp(5rem, 9vw, 7rem) 0;
}

.products-grid {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem);
}

.category-card {
  cursor: pointer;
  transition: transform .6s var(--ease);
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eee;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-title {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* =========================================================
   SUBCATEGORY PAGE
========================================================= */

.subcategory-card {
  cursor: pointer;
  transition: transform .5s var(--ease);
}

.subcategory-card:hover {
  transform: translateY(-8px);
}

.subcategory-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f4f4f4;
  margin-bottom: 1.2rem;
}

.subcategory-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* =========================================================
   PRODUCT DETAIL PAGE
========================================================= */

.product-page {
  background: var(--bg-white);
  padding: clamp(6rem, 10vw, 9rem) 0;
}

.product-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

/* =========================================================
   PRODUCT GALLERY
========================================================= */

.product-gallery {
  display: flex;
  flex-direction: column;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: #f4f4f4;
  overflow: hidden;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.product-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f0f0f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  opacity: 0.45;
  transition: opacity .3s ease, transform .3s ease;
}

.product-thumbs img:hover,
.product-thumbs img.active {
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 1.4rem;
  color: var(--text-dark);
}

.product-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.product-highlights {
  margin-bottom: 2.2rem;
  padding-left: 1.1rem;
}

.product-highlights li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* =========================================================
   CTA
========================================================= */

.product-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-btn {
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.secondary-btn {
  padding: 14px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-decoration: none;
}

/* =========================================================
   MODAL
========================================================= */

.lead-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.lead-modal-content {
  background: #fff;
  padding: 3rem;
  width: min(420px, 90%);
  border-radius: var(--radius-lg);
}

.lead-modal input,
.lead-modal button {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .product-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .products-intro {
    padding-top: 6rem;
  }

  .product-cta {
    flex-direction: column;
  }

  .product-thumbs img {
    width: 60px;
    height: 60px;
  }
}


.products-categories-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 48px;
  text-align: center;
}

.products-categories-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 12px;
  color: #111;
}

.products-categories-head p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
}


#mdh-catpage-intro {
  width: 100%;
  padding: 160px 16px 80px; /* fixes header collision */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}


.mdh-catpage-grid-wrapper {
  padding-top: 2rem;
}


.mdh-catpage-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}



.mdh-catpage-eyebrow {
  display: block;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(0,0,0,0.55);
}

.mdh-catpage-description {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(0,0,0,0.65);
}

.mdh-catpage-section-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 48px;
  text-align: center;
}

.mdh-catpage-section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 12px;
  color: #111;
}

.mdh-catpage-section-head p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
}




/* ===============================
   TABS
=============================== */

.mdh-subcategory-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.mdh-tab-btn {
  padding: 12px 28px;
  border: 1px solid #111;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.15em;
  font-size: 12px;
  text-transform: uppercase;
}

.mdh-tab-btn.active {
  background: #111;
  color: #fff;
}

/* ===============================
   PRODUCT CARD
=============================== */

.mdh-product-card {
  cursor: pointer;
  transition: transform .4s ease;
}

.mdh-product-card:hover {
  transform: translateY(-6px);
}

.mdh-product-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  border-radius: 18px;
  overflow: hidden;
}

.mdh-product-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mdh-product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.mdh-product-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
}

.mdh-product-info {
  margin-top: 16px;
}

.mdh-product-info h3 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mdh-product-info p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
  margin-top: 6px;
}

.mdh-bottom-catalogue {
  text-align: center;
  padding: 60px 20px 100px;
}