
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --primary: #26381C;       /* Deep Forest Green */
  --primary-light: #344D24; /* Olive Green */
  --gold: #C58A32;          /* Luxury Gold */
  --gold-light: #D9B36A;    /* Soft Gold */
  --cream: #F5EFE3;         /* Warm Cream */
  --white: #FFFFFF;         /* Pure White */
  --text: #1C2118;          /* Charcoal */

  /* Legacy variable mappings to maintain site compatibility */
  --bg-primary: var(--white);
  --bg-dark-teal: var(--primary);
  --accent-terracotta: var(--gold);
  --accent-hover: var(--primary-light);
  
  /* Text Colors */
  --text-dark: var(--text);
  --text-light: var(--white);
  --text-muted: #555c50; /* A readable mix of Charcoal and Olive Green for descriptions */
  
  /* Layout Specs */
  --max-width: 1200px;
  --transition: all 0.3s ease;
}


  /* 2. GLOBAL RESETS & BASE STYLES8 */
  
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--primary);
}

/* Container Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Base Link & Button Styles */
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 
   3. RESPONSIVE NAVIGATION BAR*/
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(38, 56, 28, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 25px rgba(38, 56, 28, 0.04);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* Premium Logo Styling */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

.brand-logo-img {
  height: 60px; /* luxury proportioned logo image */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--primary);
  transition: var(--transition);
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* Mobile & Tablet Hamburger Toggle Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger transforms into an X when menu is open */
.mobile-menu-btn.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Prevent page scroll while the mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Navigation Breakpoints */
@media (min-width: 1400px) {
  .nav-container {
    max-width: 1320px;
  }
}

@media (max-width: 868px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    border-bottom: 1px solid rgba(38, 56, 28, 0.08);
    display: none;
    box-shadow: 0 10px 25px rgba(38, 56, 28, 0.06);
    z-index: 999;
    /* Tall menus scroll on short screens instead of getting cut off */
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    display: flex;
    animation: navMenuDrop 0.3s ease;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }
}

/* Slide + fade for the mobile menu */
@keyframes navMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 
   DROPDOWN & MOBILE RESPONSIVE STYLING
  */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 5px 0;
  display: inline-block;
}

.dropdown > a.active,
.dropdown:hover > a {
  color: var(--gold) !important;
  border-bottom: 2px solid var(--gold);
}

/* Desktop Dropdown Box */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(38, 56, 28, 0.08);
  border: 1px solid rgba(38, 56, 28, 0.08);
  border-radius: 6px;
  z-index: 1000;
  overflow: hidden;
  padding: 5px 0;
}

.dropdown-content a {
  color: var(--text-dark) !important;
  padding: 10px 20px;
  display: block;
  font-size: 0.9rem;
  text-align: left;
  border-bottom: none !important;
  transition: var(--transition);
}

.dropdown-content a:hover,
.dropdown-content a.active-item {
  background-color: var(--cream) !important;
  color: var(--primary) !important;
  font-weight: 500;
}

/* Desktop Hover */
@media (min-width: 869px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}


  /* MOBILE & TABLET NAVIGATION FIX (868px and below)*/

@media (max-width: 868px) {
  .dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-content {
    position: static; /* Relative flow in mobile menu */
    box-shadow: none;
    border: none;
    background-color: rgba(0, 0, 0, 0.02);
    width: 100%;
    margin-top: 5px;
    border-radius: 4px;
  }

  /* Show when mobile active class applied */
  .dropdown.mobile-open .dropdown-content {
    display: block;
    animation: navMenuDrop 0.25s ease;
  }

  /* Rotate the ▾ arrow when the dropdown opens */
  .dropdown-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
  }

  .dropdown.mobile-open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-content a {
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
  }
}
/*    4. HERO SECTION STYLING
  */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 56, 28, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--white) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 35px;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Reusable Buttons */
.btn {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}


/* Buttons Container — horizontal scrollable row with hidden scrollbar.
   Future me nayi category add karo (naya <a>), users swipe/scroll karke dekh lenge. */
.category-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* old Edge/IE */
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin: 25px 0 35px 0;
  width: 100%;
}

.category-buttons-container::-webkit-scrollbar {
  display: none;                    /* Chrome/Safari/Edge */
}

/* Category pages: the pill row sits directly on the page body (outside .container),
   so give it the same centered column + gutters as the content below it. */
body > .category-buttons-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* Auto-margins center the pills on wide screens, but still allow scrolling when they overflow */
.category-buttons-container::before,
.category-buttons-container::after {
  content: "";
  margin: auto;
}

/* Individual Button Styling */
.category-btn {
  flex: 0 0 auto;               /* don't shrink; lets the row scroll */
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dark, #2b2b2b);
  background-color: #f6f4f0; /* soft fill instead of grey border */
  border: none;
  border-radius: 30px; /* Pill Shape */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Hover Effect */
.category-btn:hover {
  background-color: #eeeae3;
  color: var(--accent-terracotta, #c86d51);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(38, 56, 28, 0.12);
}

/* Active Selected Button Effect */
.category-btn.active {
  background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-hover));
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(197, 138, 50, 0.3);
}

/* Small phones: slightly tighter pills + gutters for the scrollable row */
@media (max-width: 600px) {
  .category-buttons-container {
    gap: 10px;
    margin: 15px 0 25px 0;
    padding: 2px clamp(20px, 5vw, 60px);
  }

  .category-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
}

/* 
   5. FEATURED CATEGORIES & PRODUCT CARDS GRID 
   */
.featured-categories {
  padding: 80px clamp(20px, 5vw, 60px) 60px;
}

/* Home page: the collections section sits right below the hero — extra top space to balance the CTA gap */
.featured-categories:has(.section-title) {
  padding-top: 100px;
}

/* Category pages: the pill row already sits above the grid, so keep the grid's top gap smaller */
main.featured-categories {
  padding-top: 30px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--primary) !important;
  margin-bottom: 12px;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns layout */
  gap: 30px;
}

/* Home page: exactly 4 collection cards — one clean row on desktop, no orphan card */
.featured-categories:has(.section-title) .categories-grid,
.categories-overview .categories-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Perfectly Aligned Product Cards */
.category-card {
  background-color: var(--cream);
  border-radius: 8px;
  
  overflow: hidden;
  border: 1px solid rgba(38, 56, 28, 0.04);
  box-shadow: 0 4px 20px rgba(38, 56, 28, 0.04);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(38, 56, 28, 0.08);
}

/* Image Container Fixed Height */
.card-image-box {
  width: 100%;
  height: 240px; /* Fixed Height for image alignment */
  overflow: hidden;
  background-color: #f3f1ec;
  position: relative;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents image distortion/squishing */
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .card-image-box img {
  transform: scale(1.04);
}

/* Soft teal overlay that fades in on hover (hover-capable devices only) */
.card-image-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 56, 28, 0.4), rgba(38, 56, 28, 0) 55%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@media (hover: hover) {
  .category-card:hover .card-image-box::after {
    opacity: 1;
  }
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary);
}

.card-content p {
  line-height: 1.5;
}

/* Grid Breakpoints */
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Home + overview collections: 4 cards → balanced 2×2 on tablet */
  .featured-categories:has(.section-title) .categories-grid,
  .categories-overview .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  /* Home + overview collections collapse to 1 column on phones (these rules have higher specificity) */
  .featured-categories:has(.section-title) .categories-grid,
  .categories-overview .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-categories {
    padding: 60px 20px 40px;
  }

  /* Match the mobile top padding (this :has rule has higher specificity) */
  .featured-categories:has(.section-title) {
    padding-top: 60px;
  }

  main.featured-categories {
    padding-top: 20px;
  }
}

/* 
   6. BLOG ARTICLE & PRODUCT INNER PAGE STYLES
   */
/* INNER BLOG HERO IMAGE FIX */
.blog-hero-box {
  width: 100%;
  height: 420px; /* Fixed proportional height */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 40px;
  border: none; /* Removed border */
  background-color: transparent; /* Remove background shadow/color */
}

.blog-hero-box img,
#blogMainImage {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain images inside container */
  object-position: center;
  display: block;
}

/* Sub Gallery Images Fix */
.editorial-cell img,
#blogSubImage1,
#blogSubImage2 {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain images inside container */
  object-position: center;
  display: block;
}

/* Editorial image grid on product page (2 side-by-side detail photos) */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 35px 0;
}

.editorial-cell {
  height: 250px;
  border-radius: 6px;
  overflow: hidden;
  border: none; /* Removed border */
  background-color: transparent; /* Remove background shadow/color */
}

/* Product page title */
#blogTitle {
  font-size: 2.5rem;
}

/* Mobile: shrink hero + stack editorial photos, smaller title */
@media (max-width: 768px) {
  .blog-hero-box {
    height: 260px;
    margin-bottom: 30px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 30px 0;
  }

  .editorial-cell {
    height: 220px;
  }

  #blogTitle {
    font-size: 1.9rem;
  }
}

/*
   7. FOOTER STYLING
    */
.main-footer {
  background-color: var(--bg-dark-teal);
  color: var(--text-light);
  padding-top: 60px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 15px;
}

.footer-logo-img {
  height: 70px; /* luxury height for footer logo */
  width: auto;
  display: block;
}

.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
  margin-bottom: 15px;
  display: block;
}

.footer-desc {
  color: #c0c0c0;
  font-size: 0.92rem;
  max-width: 360px;
  line-height: 1.6;
}

/* Social Media Icons in Footer */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  transform: translateY(-3px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #c0c0c0;
  font-size: 0.92rem;
  transition: var(--transition);
}.footer-col ul li a:hover {
  color: var(--accent-terracotta);
  padding-left: 4px;
}

/* Footer Instagram gallery column */
.footer-ig-desc {
  color: #c0c0c0;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-ig-desc a {
  color: var(--accent-terracotta);
  font-weight: 600;
  transition: var(--transition);
}

.footer-ig-desc a:hover {
  color: var(--gold-light);
}

.footer-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 260px;
}

.footer-ig-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f3f1ec;
}

.footer-ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover: zoom photo + teal overlay + Instagram camera icon */
.footer-ig-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38, 56, 28, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.footer-ig-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="5"/><circle cx="12" cy="12" r="4"/><circle cx="17.2" cy="6.8" r="1.1" fill="%23ffffff" stroke="none"/></svg>') center/contain no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
  z-index: 2;
}

.footer-ig-grid a:hover img {
  transform: scale(1.1);
}

.footer-ig-grid a:hover::before,
.footer-ig-grid a:hover::after {
  opacity: 1;
}

.footer-ig-grid a:hover::after {
  transform: scale(1);
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .footer-ig-grid a:hover img {
    transform: none;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #a0a0a0;
}

/* Tablet: 2×2 footer grid keeps everything readable */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 
   7.5 CTA SECTION (HOME PAGE)
   */
.cta-section {
  /* Balanced vertical rhythm: matches the 100px gap above the card
     (collections grid bottom padding + this top padding) so the section
     no longer feels bottom-heavy before the footer. */
  padding: 40px clamp(20px, 5vw, 60px) 40px;
  margin-top: 0;
}

/* Rounded card with interior photo + teal gradient overlay */
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 64px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--text-light);
  background-color: var(--bg-dark-teal);
  background-image:
    linear-gradient(115deg, rgba(38, 56, 28, 0.97) 20%, rgba(38, 56, 28, 0.85) 55%, rgba(38, 56, 28, 0.6) 100%),
    url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 25px 60px rgba(38, 56, 28, 0.22);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cta-info h2 {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  color: var(--white) !important;
}

.cta-info > p:not(.cta-success) {
  color: #d3dede;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 460px;
}

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-top: 26px;
}

.cta-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cta-form input:focus {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 1px;
}

.cta-form .btn {
  border-radius: 8px;
  padding: 14px 26px;
  white-space: nowrap;
}

.cta-success {
  margin-top: 14px;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: #c7d3d3;
  font-size: 0.85rem;
}

.cta-trust span::before {
  content: "\2713\00a0 ";
  color: var(--accent-terracotta);
  font-weight: 700;
}

/* Right side glass stats panel */
.cta-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cta-stat:last-child {
  border-bottom: none;
}

.cta-stat strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.cta-stat span {
  font-size: 0.9rem;
  color: #e3eaea;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 20px 40px;
    margin-top: 0;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 28px;
  }

  /* Center the newsletter content on mobile for a cleaner, calmer look */
  .cta-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cta-info h2 {
    font-size: 1.7rem;
  }

  .cta-form {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  .cta-form .btn {
    width: 100%;
  }

  .cta-trust {
    justify-content: center;
  }

  /* Stats: one even row of three, centered numbers above labels */
  .cta-stats {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  .cta-stat {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    border-bottom: none;
  }
}

/* Small phones: tighter CTA card, smaller type so nothing overflows */
@media (max-width: 480px) {
  .cta-card {
    padding: 36px 20px;
    border-radius: 18px;
    gap: 26px;
  }

  .cta-info h2 {
    font-size: 1.45rem;
  }

  .cta-info > p:not(.cta-success) {
    font-size: 0.92rem;
  }

  .cta-badge {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .cta-form input {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .cta-trust {
    justify-content: center;
    gap: 8px 14px;
    font-size: 0.8rem;
  }

  .cta-stats {
    gap: 8px;
    padding: 22px 16px;
  }

  .cta-stat strong {
    font-size: 1.2rem;
  }

  .cta-stat span {
    font-size: 0.78rem;
  }
}

/* 
   8. PAGE HEADER & ABOUT / CONTACT STYLES
   */
.page-header {
  background-color: var(--primary);
  background-image: linear-gradient(135deg, rgba(38, 56, 28, 0.95), rgba(52, 77, 36, 0.98));
  color: var(--text-light);
  padding: 85px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  color: var(--white) !important;
}

.page-header p {
  color: var(--cream) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* About Us Layout */
.about-section {
  padding: 60px 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-muted);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--accent-terracotta);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Contact Page Layout */
.contact-section {
  padding: 60px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info h2 {
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.info-item {
  margin-bottom: 20px;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-terracotta);
  margin-bottom: 4px;
}

/* Contact Form Styling */
.contact-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: var(--bg-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 
   9. ENHANCEMENTS: BACK-TO-TOP, BREADCRUMBS, REVEAL, CLICKABLE CARDS, RELATED, 404, CONTACT SUCCESS
   */

/* Floating Back-to-Top Button (created by JS on every page) */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent-terracotta);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(197, 138, 50, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.3s ease;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px clamp(20px, 5vw, 60px) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--accent-terracotta);
}

.breadcrumbs .sep {
  color: #c9c4bb;
}

.breadcrumbs .crumb-current {
  color: var(--accent-terracotta);
  font-weight: 600;
}

/* Make whole product cards clickable (category pages) — stretched-link trick */
.category-card {
  position: relative;
}

.card-content a[href*="product.html"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Reveal-on-scroll animation (class added by JS) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Related products section (product page) */
.related-section {
  /* Tight top: the article already carries its own bottom margin/padding,
     and 60px bottom keeps the gap to the footer consistent with other pages. */
  padding: 10px clamp(20px, 5vw, 60px) 60px;
}

/* "You May Also Like" title sits closer to its cards than a page-level section title */
.related-section .section-title {
  margin-bottom: 35px;
}

/* Related grid has exactly 3 cards — keep them in one clean row on desktop AND tablet
   (avoids the orphan card that the shared .categories-grid 2-col breakpoint would create) */
#relatedGrid {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Contact form success message */
.contact-success {
  background: #eef5f2;
  border: 1px solid #cfe3da;
  color: var(--bg-dark-teal);
  padding: 18px 20px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.6;
}

/* 404 Error page */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-terracotta);
  letter-spacing: 4px;
}

.error-page h1 {
  font-size: 1.8rem;
  margin: 12px 0 10px;
  color: var(--primary);
}

.error-page p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 30px;
  font-size: 1rem;
}

.error-page .btn {
  margin: 0 6px 10px;
}

@media (max-width: 600px) {
  .error-code {
    font-size: 4.5rem;
  }
}

/* Premium Styling Tips Container */
.styling-tips-box {
  background-color: var(--cream);
  padding: 35px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  border-top: 1px solid rgba(38, 56, 28, 0.05);
  border-right: 1px solid rgba(38, 56, 28, 0.05);
  border-bottom: 1px solid rgba(38, 56, 28, 0.05);
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(38, 56, 28, 0.02);
}

.styling-tips-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.styling-tips-box ul {
  padding-left: 20px;
  list-style-type: none;
}

.styling-tips-box ul li {
  position: relative;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
}

.styling-tips-box ul li::before {
  content: "♦";
  color: var(--gold);
  position: absolute;
  left: -20px;
  top: 0;
  font-size: 0.8rem;
}