/* ==========================================================================
   MAHLAM STANDALONE THEME - BESPOKE EDITORIAL STYLESHEET
   100% faithful to the official MAHLAM visual reference
   ========================================================================== */

/* 1. Global Variables & Resets */
:root {
  --color-ivory: #F7F4EE;
  --color-charcoal: #171717;
  --color-warm-gray: #6D6963;
  --color-border: #DCD7CF;
  --color-dark: #171615;
  --color-accent: #8A7562;
  --color-white: #FFFFFF;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

/* 2. Headings & Typography */
h1, h2, h3, h4, h5, h6,
.brand-wordmark,
.mahlam-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sub-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-warm-gray);
  margin-bottom: 8px;
  display: block;
}

/* 3. Header Architecture */
.mahlam-header {
  width: 100%;
  z-index: 1000;
  transition: all 0.25s ease;
}

.header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.header-transparent a,
.header-transparent .util-icon,
.header-transparent .brand-wordmark {
  color: #FFFFFF;
}

.header-transparent .hamburger-line {
  background-color: #FFFFFF;
}

.header-solid,
.header-transparent.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-charcoal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-solid a,
.header-transparent.is-scrolled a,
.header-solid .util-icon,
.header-transparent.is-scrolled .util-icon,
.header-solid .brand-wordmark,
.header-transparent.is-scrolled .brand-wordmark {
  color: var(--color-charcoal);
}

.header-solid .hamburger-line,
.header-transparent.is-scrolled .hamburger-line {
  background-color: var(--color-charcoal);
}

.mahlam-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 44px;
  max-width: 1720px;
  margin: 0 auto;
}

.header-col {
  display: flex;
  align-items: center;
}

.header-col-left {
  flex: 1;
  justify-content: flex-start;
  gap: 20px;
}

.brand-wordmark {
  font-family: var(--font-logo) !important;
  font-size: 1.6rem;
  letter-spacing: 0.16em !important;
  font-weight: 700 !important;
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
}

.wishlist-count-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 4px;
}

.header-col-center {
  flex: 2;
  justify-content: center;
}

.primary-menu-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-menu-list a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-col-right {
  flex: 1;
  justify-content: flex-end;
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 20px;
}

.util-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.cart-count {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  margin-left: 3px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
}

/* Search Modal Overlay */
.mahlam-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 21, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mahlam-search-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.search-modal-inner {
  width: 90%;
  max-width: 640px;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}

.search-modal-form {
  position: relative;
  width: 100%;
}

.search-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  padding: 16px 50px 16px 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  outline: none;
}

.search-field::placeholder {
  color: rgba(255,255,255,0.4);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.search-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* 4. Mobile Drawer Navigation */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--color-ivory);
  z-index: 2100;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
}

.drawer-title {
  font-family: var(--font-logo) !important;
  font-size: 1.4rem;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-content {
  padding: 32px 28px;
  overflow-y: auto;
}

.mobile-menu-list li {
  margin-bottom: 20px;
}

.mobile-menu-list a {
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* 5. HOMEPAGE HERO (Preserved Exactly) */
.mahlam-hero {
  position: relative;
  width: 100vw;
  height: calc(100vh - env(safe-area-inset-bottom, 0px));
  height: 100svh;
  max-height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 84px;
}

.mahlam-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 1;
}

.mahlam-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.mahlam-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

.mahlam-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #FFFFFF;
  padding: 0 20px;
}

.mahlam-hero-content h1 {
  font-family: var(--font-logo) !important;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  margin-bottom: 12px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.mahlam-hero-content p {
  font-size: clamp(0.875rem, 1.8vw, 1.125rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 34px;
  color: #FFFFFF;
}

.mahlam-btn {
  display: inline-block;
  background: transparent !important;
  border: 1px solid #FFFFFF !important;
  color: #FFFFFF !important;
  padding: 14px 44px;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  border-radius: 0;
}

.mahlam-btn:hover {
  background-color: #FFFFFF !important;
  color: var(--color-charcoal) !important;
}

.mahlam-btn-dark {
  display: inline-block;
  background: var(--color-charcoal) !important;
  border: 1px solid var(--color-charcoal) !important;
  color: #FFFFFF !important;
  padding: 13px 36px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  transition: all 0.3s ease;
  border-radius: 0;
}

.mahlam-btn-dark:hover {
  background: #333333 !important;
  border-color: #333333 !important;
}

/* 6. Section 2: Real Interactive Fabric Category Slider */
.mahlam-fabric-slider-section {
  max-width: 1440px;
  margin: 90px auto 70px;
  padding: 0 36px;
  position: relative;
}

.slider-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.slider-section-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: 0.05em;
}

.view-all-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-charcoal);
  padding-bottom: 2px;
}

.slider-outer-wrapper {
  position: relative;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-card {
  flex: 0 0 calc((100% - (20px * 5)) / 6);
  min-width: 160px;
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.3s ease;
}

.slider-card:hover {
  transform: translateY(-4px);
}

.slider-card-image {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background-color: #ECE8E0;
}

.slider-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.slider-card-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--color-charcoal);
}

/* Slider Nav Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.95);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: background-color 0.2s, color 0.2s;
}

.slider-arrow:hover {
  background: var(--color-charcoal);
  color: #fff;
  border-color: var(--color-charcoal);
}

.slider-arrow-prev {
  left: -21px;
}

.slider-arrow-next {
  right: -21px;
}

/* 7. Section 3: New Arrivals 2x3 Editorial Gallery with Progressive Gradient Blur */
.mahlam-new-arrivals-section {
  max-width: 1320px;
  margin: 40px auto 100px;
  padding: 0 24px;
}

.gallery-unified-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 40px 40px 48px;
  background-color: #FAF8F4;
  position: relative;
}

.gallery-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.gallery-card-header h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
}

.editorial-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.editorial-product-slot {
  position: relative;
  overflow: hidden;
  background-color: #ECE8E0;
}

.editorial-product-slot a {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.editorial-product-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-product-slot:hover img {
  transform: scale(1.03);
}

/* Desktop Blur: Last Row (Items 9-12 / index 8-11) */
@media (min-width: 1025px) {
  .editorial-product-slot[data-index="8"] a::after,
  .editorial-product-slot[data-index="9"] a::after,
  .editorial-product-slot[data-index="10"] a::after,
  .editorial-product-slot[data-index="11"] a::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,1) 100%);
    pointer-events: none;
    z-index: 2;
  }
  
  .editorial-product-slot[data-index="8"] a::before,
  .editorial-product-slot[data-index="9"] a::before,
  .editorial-product-slot[data-index="10"] a::before,
  .editorial-product-slot[data-index="11"] a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(23, 22, 21, 0.3) 100%);
    pointer-events: none;
    z-index: 3;
  }
}

/* Tablet Blur: Last Row (Items 7-9 / index 6-8) */
@media (min-width: 769px) and (max-width: 1024px) {
  .editorial-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .editorial-product-slot[data-index="9"],
  .editorial-product-slot[data-index="10"],
  .editorial-product-slot[data-index="11"] {
    display: none;
  }
  
  .editorial-product-slot[data-index="6"] a::after,
  .editorial-product-slot[data-index="7"] a::after,
  .editorial-product-slot[data-index="8"] a::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,1) 100%);
    pointer-events: none;
    z-index: 2;
  }
  
  .editorial-product-slot[data-index="6"] a::before,
  .editorial-product-slot[data-index="7"] a::before,
  .editorial-product-slot[data-index="8"] a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(23, 22, 21, 0.3) 100%);
    pointer-events: none;
    z-index: 3;
  }
}

/* Mobile Blur: Last Row (Items 5-6 / index 4-5) */
@media (max-width: 768px) {
  .editorial-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-product-slot[data-index="6"],
  .editorial-product-slot[data-index="7"],
  .editorial-product-slot[data-index="8"],
  .editorial-product-slot[data-index="9"],
  .editorial-product-slot[data-index="10"],
  .editorial-product-slot[data-index="11"] {
    display: none;
  }
  
  .editorial-product-slot[data-index="4"] a::after,
  .editorial-product-slot[data-index="5"] a::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,1) 100%);
    pointer-events: none;
    z-index: 2;
  }
  
  .editorial-product-slot[data-index="4"] a::before,
  .editorial-product-slot[data-index="5"] a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(23, 22, 21, 0.3) 100%);
    pointer-events: none;
    z-index: 3;
  }
}

/* Single Unified Centered SEE MORE Button */
.mystery-reveal-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%; /* Covers the blurred row */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.reveal-cta-btn {
  pointer-events: auto;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: 0.1em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 16px 36px;
  border-radius: 4px;
  transition: transform 0.25s ease;
}

.reveal-cta-btn:hover {
  transform: translateY(-2px);
  color: rgba(255, 255, 255, 0.8);
}

/* 8. Editorial & Brand Story Sections */
.mahlam-editorial-split-section {
  max-width: 1440px;
  margin: 0 auto 90px;
  padding: 0 40px;
}

.editorial-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.editorial-split-grid.reversed {
  grid-template-columns: 1fr 1.2fr;
}

.editorial-split-media {
  overflow: hidden;
}

.editorial-split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.editorial-split-content {
  padding: 20px 0;
}

.editorial-split-content h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 16px;
}

.editorial-split-content p {
  color: var(--color-warm-gray);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}

/* Brand Story Section */
.mahlam-story-section {
  max-width: 1440px;
  margin: 0 auto 100px;
  padding: 0 40px;
}

.story-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.story-split-media {
  overflow: hidden;
}

.story-split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-split-content h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  margin-bottom: 18px;
}

.story-split-content p {
  color: var(--color-warm-gray);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 460px;
}

/* 9. Newsletter Section */
.mahlam-newsletter-section {
  background-color: #FAF8F4;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 24px;
  text-align: center;
}

.newsletter-box {
  max-width: 580px;
  margin: 0 auto;
}

.newsletter-box h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  margin-bottom: 10px;
}

.newsletter-box p {
  color: var(--color-warm-gray);
  font-size: 0.875rem;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-right: none;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  outline: none;
}

.newsletter-form button {
  background: var(--color-charcoal);
  color: #FFFFFF;
  border: 1px solid var(--color-charcoal);
  padding: 0 28px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #333333;
}

/* 10. Footer Section */
.mahlam-footer {
  background-color: var(--color-dark);
  color: #E6E2DA;
  padding: 80px 44px 40px;
  border-top: 1px solid #282828;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand-title {
  font-family: var(--font-logo) !important;
  font-size: 1.6rem;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-brand-desc,
.footer-subtext {
  font-size: 0.875rem;
  color: #A09D96;
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social-links a {
  color: #A09D96;
}

.footer-social-links a:hover {
  color: #FFFFFF;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #B5B1A8;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #7D7A73;
  letter-spacing: 0.08em;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* 11. WooCommerce Shop & Archive Styling */
.mahlam-woocommerce-container {
  max-width: 1440px;
  margin: 110px auto 80px;
  padding: 0 40px;
}

.woocommerce-products-header__title.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Piece-count tabs on Fabric archive pages (Definitive rule defined in section 14) */


/* Product Cards Grid & Clearfix Deactivation (Fixes Empty First Cell) */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 36px 24px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

li.product {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  list-style: none !important;
  grid-column: auto !important;
}

li.product a {
  display: block;
}

li.product img {
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
  margin-bottom: 14px !important;
  background-color: #ECE8E0;
}

.woocommerce-loop-product__title.mahlam-product-title {
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
  margin-bottom: 4px !important;
  color: var(--color-charcoal) !important;
}

.price {
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--color-charcoal) !important;
  display: block !important;
}

.price del {
  color: var(--color-warm-gray) !important;
  font-weight: 400 !important;
  margin-right: 6px !important;
}

.price ins {
  text-decoration: none !important;
}

/* Context rules for title hiding */
.mahlam-context-piece .mahlam-product-title,
.mahlam-context-fabric-piece .mahlam-product-title {
  display: none !important;
}

/* WooCommerce Single Product Page */
.single-product .mahlam-woocommerce-container {
  margin-top: 110px;
}

.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}

.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  padding: 20px 0;
}

.single-product div.product .product_title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.single-product div.product .price {
  font-size: 1.35rem !important;
  margin-bottom: 24px !important;
}

.single-product div.product .single_add_to_cart_button {
  background: var(--color-charcoal) !important;
  color: #fff !important;
  padding: 16px 48px !important;
  border-radius: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}

.mahlam-product-components {
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.mahlam-product-components h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.mahlam-component-list li {
  font-size: 0.875rem;
  color: var(--color-warm-gray);
  margin-bottom: 6px;
  list-style: disc;
  margin-left: 20px;
}

/* 12. Responsive Breakpoints */
@media (max-width: 1024px) {
  .primary-navigation {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .slider-card {
    flex: 0 0 calc((100% - (20px * 3)) / 4);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .single-product div.product {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mahlam-header-container {
    padding: 0 20px;
    height: 64px;
  }

  .brand-wordmark {
    font-size: 1.45rem;
  }

  .slider-card {
    flex: 0 0 44%; /* 2.2 cards visible to indicate scroll */
    min-width: 140px;
  }

  .slider-arrow {
    display: none; /* Swipe native on mobile */
  }

  .gallery-unified-card {
    padding: 28px 12px 36px !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
  }

  .editorial-2x3-grid {
    gap: 14px;
  }

  /* Force exactly 2 columns on mobile for product grids */
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 12px !important;
  }

  .editorial-split-grid,
  .editorial-split-grid.reversed,
  .story-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* 12. Breadcrumbs & Content Pages */
.mahlam-breadcrumbs {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-warm-gray);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.mahlam-breadcrumbs a {
  color: var(--color-charcoal);
  font-weight: 500;
}

.mahlam-breadcrumbs .separator {
  margin: 0 10px;
  color: var(--color-border);
}

.standard-page-wrapper {
  padding: 130px 24px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.mahlam-woocommerce-container {
  padding-top: 130px;
  padding-bottom: 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* 13. WooCommerce Product Cards Hover Interactions */
li.product:hover img {
  filter: brightness(0.88);
}



/* 14. Category Page Spacing */
.mahlam-category-description-wrapper {
  margin-bottom: 24px;
}

/* 14. Piece-Count Navigation Tabs (Shop & Stitched & Fabric Pages) */
.mahlam-piece-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 15px auto 35px !important;
  padding: 0 16px !important;
  flex-wrap: wrap !important;
  border: none !important;
  border-bottom: none !important;
}

.mahlam-piece-tab {
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--color-charcoal) !important;
  padding: 8px 24px !important;
  border: 1px solid var(--color-border) !important;
  background: transparent !important;
  border-radius: 20px !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}

.mahlam-piece-tab:hover,
.mahlam-piece-tab.mahlam-piece-tab--active {
  background-color: var(--color-charcoal) !important;
  color: #FFFFFF !important;
  border-color: var(--color-charcoal) !important;
}

/* Card Hover Actions - Strictly Centered & Aligned Across All Pages */
.editorial-product-slot .product-hover-actions,
.slider-card .product-hover-actions,
.woocommerce ul.products li.product .product-hover-actions,
li.product .product-hover-actions {
  position: absolute !important;
  top: 40% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  z-index: 25 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.editorial-product-slot:hover .product-hover-actions,
.slider-card:hover .product-hover-actions,
li.product:hover .product-hover-actions {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1.04) !important;
}

/* Force both circular buttons to be identical in size, alignment and elevation */
.product-hover-actions button,
.product-hover-actions a.button,
.woocommerce ul.products li.product .product-hover-actions .button,
.woocommerce ul.products li.product .product-hover-actions a.button {
  background-color: #171717 !important;
  color: #FFFFFF !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.product-hover-actions button:hover,
.product-hover-actions a.button:hover,
.woocommerce ul.products li.product .product-hover-actions a.button:hover {
  background-color: #8A7562 !important;
  transform: scale(1.1) !important;
}

.product-hover-actions button svg,
.product-hover-actions a.button svg {
  stroke: #FFFFFF !important;
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

.product-hover-actions button.is-liked svg {
  fill: #E53935 !important;
  stroke: #E53935 !important;
  filter: drop-shadow(0 0 4px rgba(229, 57, 53, 0.4)) !important;
}

/* Hide WooCommerce's injected 'View cart' text link floating on card */
.product-hover-actions .added_to_cart,
.woocommerce ul.products li.product .product-hover-actions .added_to_cart {
  display: none !important;
}

/* Fix: Disable click and zoom on blurred rows */
@media (min-width: 1025px) {
  .editorial-product-slot[data-index="8"],
  .editorial-product-slot[data-index="9"],
  .editorial-product-slot[data-index="10"],
  .editorial-product-slot[data-index="11"] {
    pointer-events: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .editorial-product-slot[data-index="6"],
  .editorial-product-slot[data-index="7"],
  .editorial-product-slot[data-index="8"] {
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .editorial-product-slot[data-index="4"],
  .editorial-product-slot[data-index="5"] {
    pointer-events: none;
  }
}

/* Fix View More Button */
.mystery-reveal-overlay {
  align-items: flex-end !important;
  padding-bottom: 30px !important;
}

.reveal-cta-btn {
  background-color: #171717 !important;
  color: #FFFFFF !important;
  padding: 16px 40px !important;
  border-radius: 4px !important;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  transition: background-color 0.3s ease, transform 0.3s ease !important;
}

.reveal-cta-btn:hover {
  background-color: #8A7562 !important;
  transform: translateY(-2px) !important;
  color: #FFFFFF !important;
}

.editorial-product-slot:hover img,
.slider-card:hover img,
li.product:hover img {
  filter: brightness(0.92);
}

/* View More Fade Effect (Matches Image) */
.mystery-reveal-overlay {
  align-items: flex-end !important;
  padding-bottom: 20px !important;
  background: linear-gradient(to bottom, transparent 0%, #FAF8F4 85%) !important;
  height: 35% !important;
}

.reveal-cta-btn {
  background: transparent !important;
  color: #171717 !important;
  padding: 0 !important;
  font-family: var(--font-serif) !important;
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
}

.reveal-cta-btn:hover {
  background: transparent !important;
  color: #171717 !important;
  transform: translateX(4px) !important;
}

/* Ensure blurred rows are truly non-clickable and transparent */
@media (min-width: 1025px) {
  .editorial-product-slot[data-index="8"] a::after,
  .editorial-product-slot[data-index="9"] a::after,
  .editorial-product-slot[data-index="10"] a::after,
  .editorial-product-slot[data-index="11"] a::after {
    display: none;
  }
}

/* Force WooCommerce Content Area to Full Width */
.woocommerce #primary.content-area,
.woocommerce-page #primary.content-area,
.woocommerce #content,
.woocommerce-page #content {
  width: 100% !important;
  float: none !important;
}

/* Ensure no sidebar padding */
.mahlam-woocommerce-container {
  padding: 130px 24px 80px !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* ==========================================================================
   VERSION 7 (V7) ENHANCEMENTS & LUXURY MOTION SUITE
   ========================================================================== */

/* 1. ATELIER SPRING ANIMATIONS */
@keyframes heartBounce {
  0% { transform: scale(1); }
  28% { transform: scale(0.8); }
  62% { transform: scale(1.24); }
  100% { transform: scale(1); }
}

@keyframes badgeHop {
  0% { transform: scale(1) translateY(0); }
  35% { transform: scale(1.35) translateY(-5px); }
  70% { transform: scale(0.95) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes btnPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes pdpLikePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.anim-bounce {
  animation: heartBounce 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.anim-hop {
  animation: badgeHop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.anim-press {
  animation: btnPress 0.25s ease-out !important;
}

.anim-pdp-like {
  animation: pdpLikePop 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}


/* 2. HEADER ICONS & COUNTER BADGES */
#header-wishlist-icon,
#header-cart-icon,
.wishlist-count-badge,
.cart-count {
  display: inline-block;
  will-change: transform;
}

/* 3. MOBILE: DISABLE HOVER BUTTONS ON TOUCH SCREENS (TASK 6) */
@media (max-width: 768px), (hover: none) {
  .product-hover-actions,
  .editorial-product-slot .product-hover-actions,
  .slider-card .product-hover-actions,
  li.product .product-hover-actions {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

/* 4. MOBILE: FULL-WIDTH SLIDERS & 2.35 CARDS PEEK LAYOUT (TASK 7) */
@media (max-width: 768px) {
  .mahlam-fabric-slider-section,
  .modest-wear-slider-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    margin-top: 36px !important;
    margin-bottom: 36px !important;
    overflow: hidden !important;
  }

  .mahlam-fabric-slider-section .slider-section-header,
  .modest-wear-slider-section .slider-section-header {
    padding: 0 20px !important;
    margin-bottom: 16px !important;
  }

  .mahlam-fabric-slider-section .slider-outer-wrapper,
  .modest-wear-slider-section .slider-outer-wrapper {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .mahlam-fabric-slider-section .slider-track,
  .modest-wear-slider-section .slider-track {
    width: 100% !important;
    padding: 0 20px 16px 20px !important;
    margin: 0 !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  .mahlam-fabric-slider-section .slider-track::-webkit-scrollbar,
  .modest-wear-slider-section .slider-track::-webkit-scrollbar {
    display: none !important;
  }

  .mahlam-fabric-slider-section .slider-card,
  .modest-wear-slider-section .slider-card {
    flex: 0 0 41.5% !important;
    min-width: 140px !important;
    max-width: 175px !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Hide arrows on mobile touch */
  .mahlam-fabric-slider-section .slider-arrow,
  .modest-wear-slider-section .slider-arrow {
    display: none !important;
  }
}

/* 5. PRODUCT PAGE: ADD TO CART FIRST, QUANTITY SECOND (TASK 10) */
.single-product form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 32px 0 24px !important;
  flex-wrap: wrap !important;
}

.single-product form.cart .single_add_to_cart_button {
  order: 1 !important;
  flex: 1 1 220px !important;
  height: 52px !important;
  background: var(--color-charcoal) !important;
  color: #FFFFFF !important;
  padding: 0 36px !important;
  border: 1px solid var(--color-charcoal) !important;
  border-radius: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.single-product form.cart .single_add_to_cart_button:hover {
  background: #8A7562 !important;
  border-color: #8A7562 !important;
}

.single-product form.cart .quantity {
  order: 2 !important;
  margin: 0 !important;
  float: none !important;
}

.single-product form.cart .quantity input.qty {
  width: 60px !important;
  height: 52px !important;
  border: 1px solid var(--color-border) !important;
  background: #FFFFFF !important;
  text-align: center !important;
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--color-charcoal) !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* 6. SINGLE PRODUCT PAGE: LIKE & SHARE BUTTONS (TASK 9) */
.mahlam-single-product-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  order: 3 !important;
}

.mahlam-pdp-action-btn {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid var(--color-border) !important;
  background: transparent !important;
  color: var(--color-charcoal) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.mahlam-pdp-action-btn:hover {
  border-color: var(--color-charcoal) !important;
  background: #FFFFFF !important;
  color: var(--color-charcoal) !important;
  transform: translateY(-2px);
}

.mahlam-pdp-action-btn.is-liked {
  border-color: #E53935 !important;
  background-color: #FFF5F5 !important;
  color: #E53935 !important;
}

.mahlam-pdp-action-btn.is-liked svg {
  fill: #E53935 !important;
  stroke: #E53935 !important;
  filter: drop-shadow(0 0 3px rgba(229, 57, 53, 0.35)) !important;
}

/* 7. CLEAN PRODUCT IMAGE VIEWING (TASK 11: NO SEARCH ZOOM ICON, PHONE GALLERY STYLE) */
.woocommerce-product-gallery__trigger {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-viewport img {
  cursor: pointer !important;
}

/* 8. TOAST NOTIFICATION FOR SHARE / WISHLIST */
.mahlam-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--color-charcoal);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 99999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mahlam-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 9. HEADER WISHLIST ACTIVE RED STATE */
#header-wishlist-icon.has-items {
  stroke: #E53935 !important;
  fill: #E53935 !important;
  filter: drop-shadow(0 0 3px rgba(229, 57, 53, 0.35)) !important;
}

.wishlist-count-badge.has-items {
  color: #E53935 !important;
  font-weight: 700 !important;
}

/* 10. MOBILE FLOATING CART BUTTON (OPTION A) */
.mahlam-floating-cart-btn {
  display: none;
}

@media (max-width: 768px) {
  .mahlam-floating-cart-btn {
    display: flex !important;
    position: fixed !important;
    bottom: 24px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
    background-color: #171717 !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    z-index: 9999 !important;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s !important;
    -webkit-tap-highlight-color: transparent;
  }

  .mahlam-floating-cart-btn:active {
    transform: scale(0.92) !important;
  }

  .floating-cart-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .floating-cart-inner svg {
    stroke: #FFFFFF !important;
    width: 22px;
    height: 22px;
  }

  .floating-cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background-color: #8A7562 !important;
    color: #FFFFFF !important;
    font-family: var(--font-sans) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    border: 2px solid #171717 !important;
    box-sizing: border-box !important;
  }

  /* Crisp Edge-to-Edge Sliders (No Mask, Natural 2.35 Card Peek) */
  .mahlam-fabric-slider-section .slider-outer-wrapper,
  .modest-wear-slider-section .slider-outer-wrapper {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .slider-card-title {
    min-height: 2.8em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
  }

  /* Mobile Header Spacing between icons */
  .header-utilities {
    gap: 16px !important;
  }

  .util-icon {
    padding: 4px !important;
  }
}

/* ==========================================================================
   15. MAHLAM+ THE PRIVATE WARDROBE — LUXURY ECOSYSTEM & CART INFILTRATION
   ========================================================================== */

/* A. Navigation Branding */
.gold-plus {
  color: var(--color-gold) !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
  display: inline-block;
}

.mobile-plus-badge {
  background: var(--color-gold) !important;
  color: #121212 !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 2px !important;
  margin-left: 8px !important;
  letter-spacing: 0.1em !important;
  vertical-align: middle;
}

/* B. Homepage MAHLAM+ Gateway Section */
.mahlam-plus-section {
  background-color: #121212 !important;
  color: #FFFFFF !important;
  padding: 90px 0 !important;
  position: relative;
  overflow: hidden;
}

.mahlam-plus-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 44px;
}

.mahlam-plus-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.mahlam-plus-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(197, 168, 128, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.mahlam-plus-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mahlam-plus-media:hover img {
  transform: scale(1.03);
}

.mahlam-plus-content {
  padding-left: 10px;
}

.mahlam-plus-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.mahlam-plus-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.mahlam-plus-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #D6D2CA;
  margin-bottom: 32px;
  font-weight: 300;
}

.mahlam-plus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.mahlam-plus-badge {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(197, 168, 128, 0.45);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(197, 168, 128, 0.06);
}

.mahlam-plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 16px 38px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mahlam-plus-btn:hover {
  background: var(--color-gold);
  color: #121212;
  box-shadow: 0 6px 24px rgba(197, 168, 128, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .mahlam-plus-section {
    padding: 60px 0 !important;
  }
  .mahlam-plus-container {
    padding: 0 20px;
  }
  .mahlam-plus-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mahlam-plus-content {
    padding-left: 0;
  }
  .mahlam-plus-btn {
    width: 100%;
  }
}

/* C. Dedicated Full-Black Page: /mahlam-plus/ */
body.mahlam-plus-page {
  background-color: #121212 !important;
  color: #E8E4DC !important;
}

body.mahlam-plus-page #masthead {
  background-color: rgba(18, 18, 18, 0.95) !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.25) !important;
  backdrop-filter: blur(12px) !important;
}

body.mahlam-plus-page .brand-wordmark,
body.mahlam-plus-page #masthead a,
body.mahlam-plus-page #masthead .util-icon {
  color: #FFFFFF !important;
}

body.mahlam-plus-page #masthead .hamburger-line {
  background-color: #FFFFFF !important;
}

.mahlam-plus-page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.mahlam-plus-hero-banner {
  text-align: center;
  padding: 70px 20px 50px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  margin-bottom: 50px;
}

.mahlam-plus-hero-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 300;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.mahlam-plus-hero-banner p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #C5A880;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* Filter pills on MAHLAM+ page */
.mahlam-plus-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.mahlam-plus-tab {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E8E4DC;
  border: 1px solid rgba(197, 168, 128, 0.35);
  background: transparent;
  padding: 8px 22px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mahlam-plus-tab:hover,
.mahlam-plus-tab.is-active {
  background: var(--color-gold);
  color: #121212;
  border-color: var(--color-gold);
  font-weight: 600;
}

/* Product cards on MAHLAM+ page */
body.mahlam-plus-page ul.products li.product {
  background: #181716 !important;
  border: 1px solid rgba(197, 168, 128, 0.18) !important;
  transition: all 0.3s ease;
}

body.mahlam-plus-page ul.products li.product:hover {
  border-color: var(--color-gold) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

body.mahlam-plus-page ul.products li.product h2.woocommerce-loop-product__title {
  color: #FFFFFF !important;
}

body.mahlam-plus-page ul.products li.product .price {
  color: var(--color-gold) !important;
}

/* WhatsApp Concierge Banner on MAHLAM+ */
.mahlam-concierge-card {
  margin-top: 70px;
  padding: 44px 30px;
  background: linear-gradient(135deg, #1C1B1A 0%, #141312 100%);
  border: 1px solid rgba(197, 168, 128, 0.3);
  text-align: center;
  border-radius: 4px;
}

.mahlam-concierge-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: 300;
}

.mahlam-concierge-card p {
  color: #D6D2CA;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.mahlam-concierge-btn {
  display: inline-block;
  background: var(--color-gold);
  color: #121212;
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mahlam-concierge-btn:hover {
  background: #E0C9A6;
  transform: translateY(-2px);
}

/* D. Cart Infiltration: Black & Gold Highlighting for MAHLAM+ Items */
tr.mahlam-plus-cart-item,
li.mahlam-plus-cart-item,
.woocommerce-cart-form tr.mahlam-plus-cart-item {
  background-color: #141312 !important;
  color: #FFFFFF !important;
  border-top: 1px solid var(--color-gold) !important;
  border-bottom: 1px solid var(--color-gold) !important;
  box-shadow: inset 0 0 15px rgba(197, 168, 128, 0.08) !important;
}

tr.mahlam-plus-cart-item td,
.woocommerce-cart-form tr.mahlam-plus-cart-item td {
  background-color: #141312 !important;
  color: #FFFFFF !important;
}

tr.mahlam-plus-cart-item td a,
.woocommerce-cart-form tr.mahlam-plus-cart-item td a {
  color: #FFFFFF !important;
}

tr.mahlam-plus-cart-item .product-price,
tr.mahlam-plus-cart-item .product-subtotal,
.woocommerce-cart-form tr.mahlam-plus-cart-item .amount {
  color: var(--color-gold) !important;
  font-weight: 600 !important;
}

.mahlam-plus-item-badge {
  background: var(--color-gold) !important;
  color: #121212 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 2px !important;
  margin-left: 8px !important;
  letter-spacing: 0.08em !important;
  display: inline-block !important;
  vertical-align: middle !important;
  text-transform: uppercase !important;
}

/* Global Checkout & Buy Button Infiltration (Black & Gold) */
.cart-has-mahlam-plus .checkout-button,
.cart-has-mahlam-plus #place_order,
.cart-has-mahlam-plus .single_add_to_cart_button,
.cart-has-mahlam-plus .wc-proceed-to-checkout a.checkout-button,
.cart-has-mahlam-plus .woocommerce-cart .wc-proceed-to-checkout a {
  background: linear-gradient(135deg, #222120 0%, #121212 100%) !important;
  border: 1px solid var(--color-gold) !important;
  color: var(--color-gold) !important;
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.3) !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}

.cart-has-mahlam-plus .checkout-button:hover,
.cart-has-mahlam-plus #place_order:hover,
.cart-has-mahlam-plus .single_add_to_cart_button:hover,
.cart-has-mahlam-plus .wc-proceed-to-checkout a.checkout-button:hover,
.cart-has-mahlam-plus .woocommerce-cart .wc-proceed-to-checkout a:hover {
  background: var(--color-gold) !important;
  color: #121212 !important;
  border-color: var(--color-gold) !important;
  box-shadow: 0 8px 28px rgba(197, 168, 128, 0.45) !important;
  transform: translateY(-2px);
}

.cart-has-mahlam-plus .mahlam-floating-cart-btn {
  border: 2px solid var(--color-gold) !important;
  box-shadow: 0 8px 28px rgba(197, 168, 128, 0.38) !important;
}

.cart-has-mahlam-plus .floating-cart-badge {
  background-color: var(--color-gold) !important;
  color: #121212 !important;
  font-weight: 800 !important;
}

