/*
Theme Name: Montclair
Theme URI: https://montclairgemhouse.com
Author: Studio Cloud
Author URI: https://studiocloud.io
Description: Luxury editorial WordPress and WooCommerce theme tailored for high-fashion jewelry, haute joaillerie, and artisanal collections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: montclair
Tags: e-commerce, custom-colors, custom-menu, featured-images, full-width-template, theme-options
*/

:root {
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --bg-dark: #0a0a0b;
  --bg-dark-card: #141416;
  --bg-light: #f5f4f0;
  --bg-light-card: #ffffff;
  --bg-stone: #ba9d89;
  
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.7);
  --text-dark: #111113;
  --text-dark-muted: #848488;
  --text-stone: #4a3c31;
  
  --border-light: rgba(255, 255, 255, 0.25);
  --border-light-strong: rgba(255, 255, 255, 0.75);
  --border-dark: rgba(0, 0, 0, 0.1);
  
  --radius-pill: 9999px;
  --radius-card: 4px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Utility Containers */
.montclair-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .montclair-container {
    padding: 0 1.25rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.montclair-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.montclair-header.is-sticky {
  position: fixed;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.montclair-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: inline-block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.montclair-nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.montclair-nav-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition-smooth);
}

.montclair-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #ffffff;
  transition: var(--transition-smooth);
}

.montclair-nav-btn:hover::after {
  width: 100%;
}

.montclair-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Section 1: Hero (ÉCLAT COLLECTION)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 7rem 3rem 3rem 3rem;
}

.hero-mid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  margin-bottom: 3rem;
}

/* Inset Viewfinder Box */
.hero-inset-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-left: 5%;
}

.hero-inset-box {
  width: 140px;
  height: 160px;
  border: 1px solid var(--border-light-strong);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.hero-inset-box:hover {
  transform: scale(1.03);
  border-color: #ffffff;
}

.hero-inset-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.65rem;
  background-color: #ffffff;
  color: #111113;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.hero-pill-btn:hover {
  background-color: #f0ede8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  max-width: 260px;
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-light-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-right: 5%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Grand Bottom Typography */
.hero-title-wrap {
  width: 100%;
  text-align: center;
  padding-top: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 9.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.95;
  white-space: nowrap;
  user-select: none;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero-content {
    padding: 6rem 1.5rem 2rem 1.5rem;
  }
  .hero-mid-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .hero-inset-container {
    margin-left: 0;
  }
  .hero-tagline {
    text-align: left;
    margin-right: 0;
  }
  .hero-title {
    font-size: clamp(2.5rem, 11vw, 4.5rem);
    white-space: normal;
  }
}

/* ==========================================================================
   Section 2: Best Sellers
   ========================================================================== */
.bestsellers-section {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 4.5rem 0 6rem 0;
}

.bestsellers-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 2.5rem;
}

.bestsellers-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111113;
}

.bestsellers-view-all {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555558;
  position: relative;
}

.bestsellers-view-all::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #555558;
}

.bestsellers-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
}

.bestseller-col-model {
  position: relative;
  overflow: hidden;
  background-color: #1c1c1e;
}

.bestseller-col-model img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.bestseller-col-model:hover img {
  transform: scale(1.03);
}

.bestseller-col-product {
  position: relative;
  background-color: var(--bg-stone);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  overflow: hidden;
}

.bestseller-stone-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.bestseller-product-overlay {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bestseller-nav-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.bestseller-nav-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.bestseller-nav-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.bestseller-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.bestseller-product-meta {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.bestseller-product-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.bestseller-product-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  max-width: 240px;
}

.bestseller-product-price {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: #ffffff;
}

.bestseller-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: #ffffff;
  color: #111113;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.bestseller-add-btn:hover {
  background-color: #111113;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 860px) {
  .bestsellers-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bestseller-col-model {
    min-height: 380px;
  }
  .bestseller-col-product {
    min-height: 380px;
    padding: 1.75rem;
  }
}

/* ==========================================================================
   Section 3: Category Directory (Editorial Typography & Floating Vignettes)
   ========================================================================== */
.categories-section {
  position: relative;
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 6.5rem 0 8rem 0;
  overflow: hidden;
}

.categories-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating Vignettes */
.category-floating-img {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.category-img-left {
  top: 5%;
  left: 6%;
  width: 140px;
  height: 140px;
}

.category-img-right {
  bottom: 8%;
  right: 6%;
  width: 135px;
  height: 170px;
}

.category-floating-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Typography List */
.categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
  text-align: center;
}

.category-item {
  position: relative;
}

.category-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b0b0b5;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  line-height: 1.1;
}

.category-count {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  letter-spacing: 0.05em;
  transform: translateY(-0.75rem);
}

.category-item.is-active .category-link,
.category-item:hover .category-link {
  color: #111113;
  transform: scale(1.04);
}

.category-item.is-active .category-count,
.category-item:hover .category-count {
  color: #111113;
}

@media (max-width: 768px) {
  .categories-section {
    padding: 4.5rem 0;
  }
  .category-img-left,
  .category-img-right {
    display: none;
  }
}

/* ==========================================================================
   Slide-out Drawers (Cart & Menu)
   ========================================================================== */
.montclair-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.montclair-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: #ffffff;
  color: var(--text-dark);
  z-index: 999;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.montclair-drawer.is-open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-dark);
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drawer-close-btn {
  font-size: 1.25rem;
  color: var(--text-dark-muted);
  padding: 0.5rem;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  color: var(--text-dark);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.drawer-footer {
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--border-dark);
  background-color: #faf9f6;
}

.drawer-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background-color: #111113;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.drawer-btn:hover {
  background-color: #333336;
}

/* Menu Drawer Navigation */
.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.drawer-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #222225;
  transition: var(--transition-smooth);
}

.drawer-nav-link:hover {
  color: #88888d;
  padding-left: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.montclair-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 3.5rem;
}

.footer-nav-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
