/*
Theme Name:    Luna Luxe
Theme URI:     https://lunaboo.co.uk
Description:   Ultra-modern, high-performance child theme for Luna Boo. Soft cream luxury aesthetic with refined product presentation.
Author:        Custom for Luna Boo
Author URI:    https://lunaboo.co.uk
Template:      generatepress
Version:       3.8.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License:       GNU General Public License v2 or later
License URI:   http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:   luna-luxe
Tags:          e-commerce, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready, woocommerce
*/

/* Self-hosted fonts – no Google Fonts request (GDPR-friendly) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2");
}



/* ==========================================================================
   LUNA LUXE – Design System
   Soft cream · Refined teal · High-end fragrance aesthetic
   Built for performance on GeneratePress
   ========================================================================== */

:root {
  --luna-cream:        #F8F5F0;
  --luna-cream-dark:   #F0EBE3;
  --luna-sand:         #E8DFD1;
  --luna-teal:         #2A7A7A;
  --luna-teal-dark:    #1E5C5C;
  --luna-teal-soft:    #4A9B9B;
  --luna-charcoal:     #2C2C2C;
  --luna-charcoal-soft:#4A4A4A;
  --luna-muted:        #7A7268;
  --luna-gold:         #C9A86C;
  --luna-white:        #FFFFFF;
  --luna-border:       rgba(44, 44, 44, 0.08);

  --font-serif:        "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:         "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm:         6px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --shadow-soft:       0 4px 20px rgba(44, 44, 44, 0.06);
  --shadow-hover:      0 12px 36px rgba(44, 44, 44, 0.10);
  --transition:        all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   BASE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  /* Body background = Customizer → Colors → Background Color (shows with Separate Containers) 
  background-color: var(--luna-page-bg, #F8F5F0);
  color: var(--luna-charcoal) !important;
  font-family: var(--font-sans) !important;*/
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.woocommerce-products-header__title,
.product_title,
.wp-block-heading {
  font-family: var(--font-serif) !important;
  font-weight: 500 !important;
  color: var(--luna-charcoal) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: var(--luna-teal);
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--luna-teal-dark);
}

/* ==========================================================================
   HEADER (GeneratePress structure)
   ========================================================================== */

/* =====================================================
   HEADER – simple fixed, constant opacity, hero shows through
   ===================================================== */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(248, 245, 240, 0.4) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
}

.site-header .inside-header {
  background: transparent !important;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 28px !important;
  min-height: 0 !important;
}

.site-logo img,
.custom-logo {
  max-height: 48px;
  width: auto;
}

/* Nav – no boxes */
.main-navigation,
.main-navigation .main-nav,
.main-navigation .menu-bar-items,
.main-navigation .inside-navigation,
.navigation-branding,
.mobile-menu-control-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.main-navigation .main-nav ul li a {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--luna-charcoal) !important;
  padding: 10px 14px !important;
  background: transparent !important;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--luna-teal) !important;
  background: transparent !important;
}

/* Hide every menu-toggle by default (GeneratePress outputs more than one) */
.menu-toggle,
button.menu-toggle,
#site-navigation .menu-toggle,
.main-navigation .menu-toggle,
.main-nav + .menu-toggle {
  display: none !important;
}

/* Show only the header control-wrapper toggle – 58px circle */
.mobile-menu-control-wrapper .menu-toggle,
.site-header > .inside-header .mobile-menu-control-wrapper .menu-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--luna-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

/* Hide "Menu" label text */
.menu-toggle .mobile-menu,
span.mobile-menu {
  display: none !important;
}

.mobile-menu-control-wrapper .menu-toggle .gp-icon,
.mobile-menu-control-wrapper .menu-toggle svg {
  width: 24px !important;
  height: 24px !important;
  color: #fff !important;
  fill: #fff !important;
  display: block !important;
  margin: 0 auto !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* Menu icons: hamburger when closed, X when open */
.mobile-menu-control-wrapper .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(1) {
  display: block !important;
}
.mobile-menu-control-wrapper .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(2) {
  display: none !important;
}
.mobile-menu-control-wrapper .menu-toggle .gp-icon.icon-menu-close {
  display: none !important;
}

/* When navigation is open */
.main-navigation.toggled ~ .mobile-menu-control-wrapper .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(1),
.has-inline-mobile-toggle #site-navigation.toggled .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(1),
#site-navigation.toggled .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(1),
.mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .gp-icon.icon-menu-bars svg:nth-child(1) {
  display: none !important;
}
.main-navigation.toggled ~ .mobile-menu-control-wrapper .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(2),
.has-inline-mobile-toggle #site-navigation.toggled .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(2),
#site-navigation.toggled .menu-toggle .gp-icon.icon-menu-bars svg:nth-child(2),
.mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .gp-icon.icon-menu-bars svg:nth-child(2) {
  display: block !important;
}


/* Open mobile menu – matches page bg, shadow, larger text, no white box on close */
@media (max-width: 768px) {
  #site-navigation.toggled,
  .main-navigation.toggled,
  .main-navigation.toggled .inside-navigation,
  .main-navigation.toggled .main-nav {
    background: var(--luna-page-bg, #F8F5F0) !important;
    background-color: var(--luna-page-bg, #F8F5F0) !important;
    box-shadow: 0 12px 40px rgba(44, 44, 44, 0.14) !important;
  }

  .main-navigation.toggled .main-nav ul li a {
    color: var(--luna-charcoal) !important;
    padding: 16px 24px !important;
    background: transparent !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.08em !important;
  }

  /* Kill white square behind the close (X) button only */
  .mobile-menu-control-wrapper,
  .has-inline-mobile-toggle .mobile-menu-control-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .mobile-menu-control-wrapper .menu-toggle,
  .mobile-menu-control-wrapper .menu-toggle:hover,
  .mobile-menu-control-wrapper .menu-toggle:focus {
    background: var(--luna-teal) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
  }
}

/* Space page content below fixed header */
body {
  padding-top: 72px;
}

body.home {
  padding-top: 0; /* hero goes under header */
}

body.home .luna-hero {
  margin-top: 0 !important;
  padding-top: 80px !important; /* room for fixed header */
}

/* ==========================================================================
   LAYOUT – clean, single system
   ========================================================================== */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Main container – width from GeneratePress Customizer (Container Width) */
.site.grid-container,
.grid-container,
#content.site-content {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Content areas transparent – body colour shows through */
.site-content,
.content-area,
.inside-article,
.page-header,
.site-main,
#main,
#primary {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Homepage – no sidebar */
body.home #left-sidebar,
body.home #right-sidebar,
body.home .sidebar,
body.front-page #left-sidebar,
body.front-page .sidebar,
body.luna-no-sidebar #left-sidebar,
body.luna-no-sidebar .sidebar {
  display: none !important;
}

body.home #primary,
body.home .content-area,
body.luna-no-sidebar #primary,
body.luna-no-sidebar .content-area {
  width: 100% !important;
  float: none !important;
}

/* ---- Desktop with left sidebar: flex so content fills remaining space ---- */
@media (min-width: 1025px) {
  body.left-sidebar .site-content > .grid-container,
  body.both-sidebars .site-content > .grid-container,
  body.is-left-sidebar .site-content > .grid-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 32px;
  }

  body.left-sidebar #left-sidebar,
  body.is-left-sidebar #left-sidebar,
  #left-sidebar {
    flex: 0 0 260px !important;
    width: 260px !important;
    max-width: 260px !important;
    float: none !important;
    position: relative !important;
  }

  body.left-sidebar #primary,
  body.is-left-sidebar #primary,
  body.left-sidebar .content-area,
  body.is-left-sidebar .content-area {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    min-width: 0 !important; /* critical: allows grid children to shrink correctly */
  }

  #left-sidebar .inside-left-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

/* Sidebar – no white panel (matches page body) */
#left-sidebar,
#left-sidebar .inside-left-sidebar,
#left-sidebar .widget,
#left-sidebar .widget-area,
#left-sidebar .wp-block-group,
#left-sidebar .wp-block-woocommerce-filter-wrapper,
#left-sidebar .wc-block-product-filters,
#left-sidebar .wp-block-woocommerce-product-filters,
.sidebar,
.sidebar .widget,
.sidebar .wp-block-group {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}


/* ---- Tablet (769–1024): keep sidebar beside content, content fills rest ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  body.left-sidebar .site-content > .grid-container,
  body.is-left-sidebar .site-content > .grid-container,
  body.left-sidebar #content > .grid-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 20px;
  }

  body.left-sidebar #left-sidebar,
  body.is-left-sidebar #left-sidebar,
  #left-sidebar {
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: 220px !important;
    float: none !important;
  }

  body.left-sidebar #primary,
  body.is-left-sidebar #primary,
  body.left-sidebar .content-area,
  body.is-left-sidebar .content-area,
  body.left-sidebar .site-main,
  body.is-left-sidebar .site-main,
  #main {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ---- Mobile only: stack ---- */
@media (max-width: 768px) {
  body.left-sidebar .site-content > .grid-container,
  body.is-left-sidebar .site-content > .grid-container {
    display: flex !important;
    flex-direction: column !important;
  }

  #left-sidebar,
  #primary,
  .content-area,
  .site-main,
  #main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    flex: none !important;
    margin: 0 !important;
  }

  #left-sidebar {
    margin-bottom: 16px !important;
  }
}

@media (max-width: 768px) {
  .site.grid-container,
  .grid-container,
  #content.site-content {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Kill alignwide overflow */
.alignwide,
.alignfull,
.entry-content .alignwide,
.entry-content .alignfull,
.wc-block-grid.alignwide,
.wp-block-product-category.alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

ul.products {
  display: grid !important;
  /* columns: single source of truth at end of file */
  margin: 0 0 40px !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
}

ul.products li.product {
  background: var(--luna-white) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  padding: 0 0 18px !important;
  border: 1px solid transparent;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}

ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--luna-border);
}

ul.products li.product a img,
ul.products li.product img {
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

ul.products li.product:hover a img {
  transform: scale(1.04);
}

ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  padding: 16px 16px 4px !important;
  margin: 0 !important;
  color: var(--luna-charcoal) !important;
  text-align: left;
  line-height: 1.3;
  min-height: 2.8em; /* even title rows so buttons line up */
}

ul.products li.product .price {
  /*font-family: var(--font-sans) !important;*/
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--luna-teal) !important;
  padding: 0 16px 10px !important;
  margin: 0 !important;
  display: block;
  text-align: left;
}

ul.products li.product .price del {
  color: var(--luna-muted) !important;
  opacity: 0.65;
  margin-right: 6px;
}

/* Push button to bottom of card; full width, consistent */
ul.products li.product .button,
ul.products li.product a.button,
ul.products li.product .added_to_cart {
  margin: auto 16px 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--luna-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  width: calc(100% - 32px) !important;
  max-width: none !important;
  text-align: center;
  box-sizing: border-box !important;
  float: none !important;
}

ul.products li.product .button:hover,
ul.products li.product a.button:hover {
  background: var(--luna-teal-dark) !important;
  color: #fff !important;
}

/* Link wrapping image+title should not stretch oddly */
ul.products li.product > a {
  display: block;
  text-decoration: none !important;
}

/* Star ratings */
.star-rating {
  margin: 4px 18px !important;
  font-size: 12px;
}

/* ==========================================================================
   SINGLE PRODUCT
   ========================================================================== */

.single-product .product_title {
  font-size: clamp(1.9rem, 4vw, 2.7rem) !important;
  margin-bottom: 8px !important;
}

/* Price – clearer hierarchy */
.single-product p.price,
.single-product .summary .price {
  /*font-family: var(--font-serif) !important;*/
  font-size: 1.75rem !important;
  font-weight: 500 !important;
  color: var(--luna-teal) !important;
  margin: 0 0 18px !important;
  letter-spacing: -0.01em;
}

.single-product p.price del,
.single-product .summary .price del {
  font-size: 1.1rem !important;
  color: var(--luna-muted) !important;
  opacity: 0.75;
}

.single-product p.price ins,
.single-product .summary .price ins {
  text-decoration: none !important;
  font-weight: 500 !important;
}

.single-product .woocommerce-product-details__short-description {
  font-size: 1.05rem;
  color: var(--luna-charcoal-soft);
  line-height: 1.7;
  margin-bottom: 26px;
}

/* Hide SKU; keep category only (tags optional – hidden by default) */
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .sku {
  display: none !important;
}

.single-product .product_meta .tagged_as {
  display: none !important;
}

.single-product .product_meta {
  font-size: 13px !important;
  color: var(--luna-muted) !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--luna-border) !important;
}

.single-product .product_meta a {
  color: var(--luna-teal) !important;
}

/* Quantity + Add to bag – vertical centre align */
.single-product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.single-product form.cart .quantity {
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
}

.single-product .quantity .qty {
  border-radius: 10px !important;
  border: 1px solid var(--luna-border) !important;
  padding: 0 12px !important;
  height: 48px !important;
  width: 64px !important;
  text-align: center !important;
  background: var(--luna-white) !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
}

.single-product .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.single-product .single_add_to_cart_button {
  background: var(--luna-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  height: 48px !important;
  padding: 0 32px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  transition: var(--transition);
}

.single-product .single_add_to_cart_button:hover {
  background: var(--luna-teal-dark) !important;
}

/* ---- Tabs: classic connected style; kill WC ::before/::after corner curves ---- */
.woocommerce-tabs {
  margin-top: 40px !important;
  margin-bottom: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs,
.woocommerce-tabs ul.tabs {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 -1px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  list-style: none !important;
  position: relative;
  z-index: 2;
}

/* WC draws curved corners with these – remove completely */
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
  display: none !important;
  content: none !important;
  border: none !important;
  box-shadow: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 22px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--luna-muted) !important;
  border: 1px solid transparent !important;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li.active a {
  background: var(--luna-white) !important;
  color: var(--luna-charcoal) !important;
  border-color: var(--luna-border) !important;
  border-bottom: 1px solid var(--luna-white) !important;
  border-radius: 10px 10px 0 0 !important;
  position: relative;
  z-index: 3;
  margin-bottom: -1px;
}

.woocommerce-tabs ul.tabs li a:hover {
  color: var(--luna-charcoal) !important;
}

/* Panel sits under active tab; top-left square, other corners rounded */
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-Tabs-panel,
.woocommerce-tabs .panel {
  background: var(--luna-white) !important;
  border: 1px solid var(--luna-border) !important;
  border-radius: 0 12px 12px 12px !important;
  padding: 28px 28px 32px !important;
  margin: 0 !important;
  position: relative;
  z-index: 1;
  box-shadow: none !important;
}

/* Hide duplicate h2 inside panels */
.woocommerce-Tabs-panel > h2:first-child,
.woocommerce-Tabs-panel > h2,
.woocommerce-Tabs-panel--description > h2,
.woocommerce-Tabs-panel--additional_information > h2,
#tab-description > h2,
#tab-additional_information > h2 {
  display: none !important;
}

/* Additional information – product type as soft pill */
.woocommerce-Tabs-panel--additional_information table,
#tab-additional_information table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
  border: none !important;
}

#tab-additional_information table.shop_attributes tr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 4px 0;
}

#tab-additional_information table.shop_attributes th,
#tab-additional_information table.shop_attributes td {
  display: block;
  width: auto !important;
  border: none !important;
  padding: 0 !important;
}

#tab-additional_information table.shop_attributes th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--luna-muted);
}

#tab-additional_information table.shop_attributes td {
  /*background: rgba(42, 122, 122, 0.1);*/
  color: var(--luna-teal) !important;
  font-weight: 600 !important;
  /*font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;*/
}

#tab-additional_information table.shop_attributes td p {
  margin: 0 !important;
}

/* Related products – more space below tabs */
.single-product .related.products,
.single-product section.related,
.single-product .upsells.products {
  margin-top: 56px !important;
  padding-top: 8px !important;
}

.single-product .related.products > h2,
.single-product section.related > h2 {
  margin-bottom: 24px !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button,
button,
input[type="submit"],
input[type="button"],
.woocommerce a.button,
.woocommerce button.button,
.wp-block-button__link {
  background-color: var(--luna-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px !important;
  padding: 11px 26px !important;
  transition: var(--transition);
  box-shadow: none !important;
  text-decoration: none !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wp-block-button__link:hover {
  background-color: var(--luna-teal-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  /*background: var(--luna-cream-dark) !important;*/
  border-top: 1px solid var(--luna-border) !important;
  padding-top: 40px !important;
  margin-top: 60px;
  color: var(--luna-charcoal-soft);
}

.site-footer a {
  
}

.site-footer a:hover {
  
}

/* Portland tagline */
.luna-footer-tagline {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--luna-charcoal-soft);
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0 20px;
  font-style: italic;
}

/* Copyright / credits area */
.site-info {
  border-top: 1px solid var(--luna-border);
  padding: 18px 0 !important;
  font-size: 13px;
  color: var(--luna-muted);
  text-align: center;
}

.luna-copyright {
  display: block;
  margin-top: 4px;
}

/* Hide only the GeneratePress credit link / “Built with” fragment */
.site-info a[href*="generatepress.com"],
.site-info .gp-powered,
.copyright-bar .gp-powered {
  display: none !important;
}

/* Footer menu – horizontal on desktop */
.site-footer .menu,
.site-footer .footer-bar .menu,
.footer-bar-navigation .menu,
.site-footer ul.menu {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  text-align: center;
}

.site-footer .menu li,
.site-footer ul.menu li {
  display: inline-block !important;
  margin: 0 !important;
  float: none !important;
}

.site-footer .menu a {
  font-size: 14px;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .site-footer .menu,
  .site-footer ul.menu {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   FORMS & MISC
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
select {
  border: 1px solid var(--luna-border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--luna-white) !important;
  padding: 11px 15px !important;
  font-family: var(--font-sans) !important;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--luna-teal) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(42, 122, 122, 0.12) !important;
}

.woocommerce-breadcrumb,
.generate-breadcrumbs {
  background: transparent !important;
  font-size: 13px;
  color: var(--luna-muted);
  margin-bottom: 20px;
}

.woocommerce-breadcrumb a {
  color: var(--luna-muted);
}

.woocommerce-breadcrumb a:hover {
  color: var(--luna-teal);
}

/* Cart & Checkout polish */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
  background: var(--luna-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--luna-border);
  box-shadow: var(--shadow-soft);
}

.woocommerce table.shop_table {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--luna-border) !important;
}

.woocommerce table.shop_table th {
  background: var(--luna-cream-dark) !important;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .inside-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-navigation .main-nav ul li a {
    padding: 8px 12px !important;
  }
}

/* Selection */
::selection {
  background: rgba(42, 122, 122, 0.18);
  color: var(--luna-charcoal);
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS – Safe card styling
   (Does NOT force a new grid – lets the block keep its own columns)
   ========================================================================== */

/* Force proper 4-column layout on desktop */
.wc-block-grid.has-4-columns .wc-block-grid__products,
.wc-block-grid__products {
  display: grid !important;
  flex-wrap: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Override WooCommerce Blocks flex + padding that creates white edges */
.wc-block-grid .wc-block-grid__products {
  display: grid !important;
}

.wc-block-grid.has-4-columns .wc-block-grid__product,
.wc-block-grid.has-3-columns .wc-block-grid__product,
.wc-block-grid.has-2-columns .wc-block-grid__product,
.wc-block-grid .wc-block-grid__product,
.wc-block-grid.has-4-columns .wc-block-grid__product:nth-child(odd),
.wc-block-grid.has-4-columns .wc-block-grid__product:nth-child(even) {
  flex: none !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 481px) and (max-width: 600px) {
  .wc-block-grid.has-4-columns .wc-block-grid__product,
  .wc-block-grid.has-4-columns .wc-block-grid__product:nth-child(odd),
  .wc-block-grid.has-4-columns .wc-block-grid__product:nth-child(even) {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
}


.wc-block-grid__products {
  gap: 1.5em !important;
}

.wc-block-grid__product {
  background: var(--luna-white) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(44, 44, 44, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  text-align: left !important;
  padding-bottom: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.wc-block-grid__product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(44, 44, 44, 0.11);
  border-color: rgba(44, 44, 44, 0.06);
}

/*
 * Product images – full width of card, natural square from the image.
 * Do NOT set height/line-height on .wc-block-grid__product-link
 * (it also wraps the title – that was hiding the prices).
 */
.wc-block-grid__product {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.wc-block-grid__product-link {
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
}

.wc-block-grid__products .wc-block-grid__product-image {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

.wc-block-grid__products .wc-block-grid__product-image img,
.wc-block-grid__products img.attachment-woocommerce_thumbnail {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

.wc-block-grid__product-title {
  font-family: var(--font-serif) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: var(--luna-charcoal) !important;
  padding: 14px 16px 2px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.wc-block-grid__product-title a {
  color: var(--luna-charcoal) !important;
  text-decoration: none !important;
}

.wc-block-grid__product-price {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--luna-teal) !important;
  padding: 4px 16px 14px !important;
  margin: 0 !important;
  text-align: left !important;
  line-height: 1.4 !important;
  height: auto !important;
  overflow: visible !important;
}

.wc-block-grid__product-price .woocommerce-Price-amount {
  color: var(--luna-teal) !important;
}

.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .add_to_cart_button {
  background: var(--luna-teal) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 9px 18px !important;
  border: none !important;
  margin: 0 16px 12px !important;
  display: inline-block;
  transition: background 0.25s ease;
}

.wc-block-grid__product .wp-block-button__link:hover {
  background: var(--luna-teal-dark) !important;
}

/* ==========================================================================
   STRONGER HEADER & CONTENT OVERRIDES FOR GENERATEPRESS
   ========================================================================== */

/* Hide site title text when logo is present */
.site-header .main-title,
.site-header .site-description {
  display: none !important;
}

.site-logo,
.site-header .custom-logo-link {
  margin: 0 !important;
}

/*.site-header .custom-logo,
.site-logo img {
  max-height: 48px !important;
  width: auto !important;
}
*/
/* Navigation stays clean */
.main-navigation .main-nav ul li a {
  background: transparent !important;
}

/* Homepage / open layouts: no heavy box */
body.home .inside-article,
body.home .page-header {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.site-content .content-area {
  background: transparent !important;
}

/* Page titles – tight gap above products */
.page-header .entry-title,
.woocommerce-products-header__title,
.woocommerce-products-header h1,
body.woocommerce-shop h1.page-title,
body.woocommerce h1.page-title {
  font-family: var(--font-serif) !important;
  font-weight: 500 !important;
  text-align: center;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.woocommerce-products-header,
header.woocommerce-products-header,
.page-header {
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.woocommerce-breadcrumb {
  margin-bottom: 8px !important;
}


/* ==========================================================================
   MOBILE ADJUSTMENTS FOR BLOCKS
   ========================================================================== */

/* Mobile – stop cards going off-screen */
@media (max-width: 768px) {

  /* Kill alignwide / alignfull negative margins that push content off-screen */
  .alignwide,
  .alignfull,
  .entry-content .alignwide,
  .entry-content .alignfull,
  .wc-block-grid.alignwide,
  .wp-block-product-category.alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* padding handled by .grid-container only */

  .wc-block-grid,
  .wc-block-grid__products {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* columns handled by single source of truth at end of file */

  .wc-block-grid__product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .wc-block-grid__product-title {
    font-size: 0.9rem !important;
    padding: 10px 12px 2px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.3 !important;
  }

  .wc-block-grid__product-price {
    font-size: 13px !important;
    padding: 0 12px 10px !important;
  }
}

@media (max-width: 480px) {
  .wc-block-grid__product-title {
    font-size: 1.05rem !important;
  }
}

/* ==========================================================================
   HOMEPAGE HERO – full-width under header
   ========================================================================== */

.luna-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.luna-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,245,240,0.82) 0%, rgba(248,245,240,0.45) 45%, rgba(248,245,240,0.15) 70%, transparent 100%);
  pointer-events: none;
}

.luna-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 40px;
}

.luna-hero-content {
  max-width: 480px;
}

.luna-hero-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  color: var(--luna-charcoal) !important;
  margin: 0 0 18px !important;
  letter-spacing: -0.02em;
}

.luna-hero-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--luna-charcoal-soft);
  margin: 0 0 28px;
  max-width: 400px;
}

.luna-hero-btn {
  display: inline-block;
  background: var(--luna-teal) !important;
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.luna-hero-btn:hover {
  background: var(--luna-teal-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Reduce top spacing so hero sits tightly under header */
body.home .site-content,
body.front-page .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home .content-area,
body.front-page .content-area {
  margin-top: 0 !important;
}

/* Homepage H1 – keep it visible and nicely spaced under the hero */
body.home .entry-header,
body.home .page-header,
body.home .entry-title,
body.home .page-title {
  display: block !important;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .luna-hero {
    min-height: 400px;
    background-position: 70% center;
  }

  body.home .luna-hero {
    padding-top: 70px !important;
  }

  .luna-hero-inner {
    padding: 28px 20px 36px;
  }

  .luna-hero-title {
    font-size: 1.85rem !important;
  }

  .luna-hero-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .luna-hero::before {
    background: linear-gradient(180deg, rgba(248,245,240,0.7) 0%, rgba(248,245,240,0.45) 50%, rgba(248,245,240,0.2) 100%);
  }

  .site-header .inside-header {
    padding: 0 16px !important;
  }

  .site-logo img,
  .custom-logo {
    max-height: 44px !important;
  }

  body.home .site-content,
  .site-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.home .entry-header,
  body.home .page-header {
    margin-top: 28px !important;
    padding: 0 8px;
  }

  .wc-block-grid__product-title {
    padding: 10px 10px 2px !important;
    font-size: 0.88rem !important;
  }

  .wc-block-grid__product-price {
    padding: 0 10px 10px !important;
  }
}


/* Page width containment – keep cards fully on-screen at all widths */
@media (max-width: 900px) {
  .site.grid-container,
  .grid-container,
  .site-content,
  .content-area,
  .inside-article,
  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .wc-block-grid,
  .wc-block-grid.alignwide,
  .wp-block-product-category.alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* ==========================================================================
   SHOP – product category cards
   ========================================================================== */

/* Remove yellow <mark class="count"> highlight (browser default for mark) */
mark.count,
.woocommerce-loop-category__title mark.count,
.product-category mark,
.product-category .count {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--luna-teal) !important;
  padding: 0 !important;
  font-weight: 500;
}

/* Category cards – softer radius, title clear of corners */
ul.products li.product-category,
.woocommerce ul.products li.product-category {
  border-radius: 12px !important;
  overflow: hidden !important;
  background: var(--luna-white) !important;
  box-shadow: 0 4px 18px rgba(44, 44, 44, 0.07);
  text-align: left !important;
  padding: 0 !important;
}

ul.products li.product-category a,
.woocommerce ul.products li.product-category a {
  display: block !important;
  text-decoration: none !important;
}

ul.products li.product-category img,
.woocommerce ul.products li.product-category img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.woocommerce-loop-category__title {
  font-family: var(--font-serif) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--luna-charcoal) !important;
  padding: 14px 18px 16px !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* (product grid columns unified at end of file) */



/* ==========================================================================
   HEADER SEARCH – magnifier left of menu button
   ========================================================================== */

/* Header controls row: search then menu */
.luna-header-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.luna-header-search {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
  order: 0;
}

.inside-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.luna-search-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: var(--luna-teal) !important;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: none !important;
  line-height: 0 !important;
}

.luna-search-toggle:hover,
.luna-search-toggle:focus {
  background: var(--luna-teal-dark) !important;
  color: #fff !important;
  outline: none;
}

.luna-search-toggle svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

.luna-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.12);
  padding: 12px;
  z-index: 1000;
}

.luna-search-panel[hidden] {
  display: none !important;
}

.luna-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.luna-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(44, 44, 44, 0.12) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  background: #fff !important;
  color: var(--luna-charcoal) !important;
  box-shadow: none !important;
}

.luna-search-input:focus {
  border-color: var(--luna-teal) !important;
  outline: none;
}

.luna-search-submit {
  flex: 0 0 auto;
  border: none !important;
  border-radius: 999px !important;
  background: var(--luna-teal) !important;
  color: #fff !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.luna-search-submit:hover {
  background: var(--luna-teal-dark) !important;
}

/* Desktop: keep toggle visible near nav */
@media (min-width: 769px) {
  .luna-header-search {
    margin-right: 12px;
  }
}





/* ==========================================================================
   FILTER BUTTON – open-overlay (WC blocks)
   ========================================================================== */

button.wc-block-product-filters__open-overlay,
.wc-block-product-filters__open-overlay {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px !important;
  padding: 12px 18px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--luna-charcoal) !important;
  border: 1px solid rgba(44, 44, 44, 0.2) !important;
  border-radius: 999px !important;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  float: none !important;
}

button.wc-block-product-filters__open-overlay:hover,
.wc-block-product-filters__open-overlay:hover {
  border-color: var(--luna-teal) !important;
  color: var(--luna-teal) !important;
  background: transparent !important;
}

/* Full-width bar at top of shop/search content on tablet + mobile */
@media (max-width: 1024px) {
  .wc-block-product-filters {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    order: -1 !important;
  }

  button.wc-block-product-filters__open-overlay,
  .wc-block-product-filters__open-overlay {
    display: flex !important;
    order: -1 !important;
  }
}

@media (min-width: 1025px) {
  /* Sidebar present – hide overlay button on large screens */
  body.left-sidebar button.wc-block-product-filters__open-overlay,
  body.is-left-sidebar button.wc-block-product-filters__open-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   DESKTOP HEADER – logo left | nav centred IN header | search far right
   ========================================================================== */

@media (min-width: 769px) {
  .site-header .inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    min-height: 72px;
    width: 100%;
  }

  .site-header .site-logo,
  .site-header .site-branding {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }

  /* Nav centred in the header bar */
  .site-header .main-navigation,
  .site-header #site-navigation {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    z-index: 1;
  }

  .site-header .main-navigation .main-nav > ul {
    display: flex !important;
    justify-content: center !important;
  }

  /* Search far right */
  .site-header .luna-header-controls,
  .site-header .luna-header-search {
    position: relative;
    z-index: 2;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  /* Hide hamburger on desktop */
  .site-header .mobile-menu-control-wrapper {
    display: none !important;
  }
}


/* Hide redundant "Search results: …" title (breadcrumb already shows it) */
body.search .page-header,
body.search-results .page-header,
body.search .woocommerce-products-header,
body.search-results h1.page-title,
body.search h1.page-title,
body.search .entry-title,
body.search-results .entry-title {
  display: none !important;
}



/* ==========================================================================
   FILTER UX – mobile overlay button at TOP; no duplicate widgets
   ========================================================================== */

/* Default: style the open button */
button.wc-block-product-filters__open-overlay,
.wc-block-product-filters__open-overlay {
  display: none !important; /* shown only where needed */
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 12px 18px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--luna-charcoal) !important;
  border: 1px solid rgba(44, 44, 44, 0.2) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

/* Mobile + tablet: show FILTER at top, overlay behaviour */
@media (max-width: 1024px) {
  .site-main,
  #main,
  .content-area {
    display: flex !important;
    flex-direction: column !important;
  }

  .wc-block-product-filters,
  .wp-block-woocommerce-product-filters {
    order: -20 !important;
    width: 100% !important;
    display: block !important;
  }

  button.wc-block-product-filters__open-overlay,
  .wc-block-product-filters__open-overlay {
    display: flex !important;
    order: -20 !important;
  }

  /* Hide the inline filter fields until overlay opens – avoid bottom duplicate */
  .wc-block-product-filters:not(.is-overlay-opened) .wc-block-product-filters__overlay,
  .wc-block-product-filters:not(.is-overlay-opened) .wc-block-product-filters__content,
  .wc-block-product-filters:not(.is-overlay-opened) .wc-block-product-filters__overlay-content {
    display: none !important;
  }

  ul.products {
    order: 10 !important;
  }

  .woocommerce-result-count,
  .woocommerce-ordering {
    order: 0 !important;
  }
}

/* Desktop with sidebar: hide overlay button */
@media (min-width: 1025px) {
  button.wc-block-product-filters__open-overlay,
  .wc-block-product-filters__open-overlay {
    display: none !important;
  }
}


/* ==========================================================================
   INFO PAGE TEMPLATE – no sidebar, readable width
   ========================================================================== */

body.page-template-template-info .site-content,
body.page-template-template-info #content {
  max-width: 100%;
}

body.page-template-template-info #primary,
body.page-template-template-info .content-area,
body.page-template-template-info .site-main {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}

body.page-template-template-info .inside-article,
body.page-template-template-info .entry-content {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
}

body.page-template-template-info .entry-header,
body.page-template-template-info .page-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

body.page-template-template-info .entry-title,
body.page-template-template-info h1.entry-title {
  text-align: center;
  margin-bottom: 1.5em !important;
}

body.page-template-template-info .entry-content h2 {
  margin-top: 2em !important;
  margin-bottom: 0.6em !important;
}

body.page-template-template-info #left-sidebar,
body.page-template-template-info #right-sidebar,
body.page-template-template-info .sidebar {
  display: none !important;
}


/* ==========================================================================
   PRODUCT COLUMNS – single source of truth
   Mobile 2 | Tablet 3 | Desktop 4
   Applies to shop, search, categories, blocks
   ========================================================================== */

ul.products,
.woocommerce ul.products,
body.search ul.products,
body.search-results ul.products,
ul.products.columns-2,
ul.products.columns-3,
ul.products.columns-4,
ul.products[class*="columns-"],
.wc-block-grid__products,
.wc-block-grid.has-2-columns .wc-block-grid__products,
.wc-block-grid.has-3-columns .wc-block-grid__products,
.wc-block-grid.has-4-columns .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

ul.products li.product,
.woocommerce ul.products li.product,
body.search ul.products li.product,
body.search-results ul.products li.product,
ul.products[class*="columns-"] li.product,
.wc-block-grid__product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  flex: none !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  ul.products,
  .woocommerce ul.products,
  body.search ul.products,
  body.search-results ul.products,
  ul.products[class*="columns-"],
  .wc-block-grid__products,
  .wc-block-grid.has-2-columns .wc-block-grid__products,
  .wc-block-grid.has-3-columns .wc-block-grid__products,
  .wc-block-grid.has-4-columns .wc-block-grid__products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25em !important;
  }
}

@media (min-width: 1025px) {
  ul.products,
  .woocommerce ul.products,
  body.search ul.products,
  body.search-results ul.products,
  ul.products[class*="columns-"],
  .wc-block-grid__products,
  .wc-block-grid.has-2-columns .wc-block-grid__products,
  .wc-block-grid.has-3-columns .wc-block-grid__products,
  .wc-block-grid.has-4-columns .wc-block-grid__products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5em !important;
  }
}






/* ==========================================================================
   CONTACT FORM (WPForms) – modern, high contrast, consistent
   ========================================================================== */

.wpforms-container,
.wpforms-container-full,
div.wpforms-container-full,
body.page-id-7 .wpforms-container {
  max-width: 480px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 4px !important;
  float: none !important;
  box-sizing: border-box !important;
}

body.page-id-7 .entry-content,
body.page-id-7 .inside-article {
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body.page-id-7 h1.entry-title,
body.page-id-7 .entry-header {
  text-align: center !important;
  margin-bottom: 2rem !important;
}

/* Field spacing */
div.wpforms-container-full .wpforms-form .wpforms-field {
  padding: 0 0 22px !important;
  margin: 0 !important;
}

/* Labels – darker, clearer */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 0 0 10px !important;
  letter-spacing: 0.01em;
}

div.wpforms-container-full .wpforms-form .wpforms-required-label {
  color: #c45c5c !important;
}

/* Sublabels (First / Last) */
div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #5c5c5c !important;
  margin-top: 6px !important;
  padding: 0 !important;
}

/* Inputs – full width of form, generous padding, clear border */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="number"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px !important;
  border: 1.5px solid #c8c4bc !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  background: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #1a1a1a !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

div.wpforms-container-full .wpforms-form input::placeholder,
div.wpforms-container-full .wpforms-form textarea::placeholder {
  color: #9a9590 !important;
  opacity: 1 !important;
}

div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus,
div.wpforms-container-full .wpforms-form select:focus {
  border-color: var(--luna-teal) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(42, 122, 122, 0.15) !important;
}

div.wpforms-container-full .wpforms-form textarea {
  min-height: 160px !important;
  resize: vertical;
  padding-top: 16px !important;
}

/* Name row – two equal columns, no tiny fields */
div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row,
div.wpforms-container-full .wpforms-form .wpforms-field-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  margin: 0 !important;
  width: 100% !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-row-block,
div.wpforms-container-full .wpforms-form .wpforms-one-half,
div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row-block {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Submit */
div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  text-align: center !important;
  padding: 12px 0 0 !important;
  margin: 0 !important;
}

div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--luna-teal) !important;
  background-color: var(--luna-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 16px 40px !important;
  min-height: 52px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: none !important;
  width: auto !important;
  min-width: 180px !important;
  line-height: 1.2 !important;
  transition: background 0.2s ease, transform 0.15s ease;
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover {
  background: var(--luna-teal-dark) !important;
  background-color: var(--luna-teal-dark) !important;
}

/* Mobile – stack name fields cleanly */
@media (max-width: 520px) {
  div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row,
  div.wpforms-container-full .wpforms-form .wpforms-field-row {
    flex-direction: column !important;
    gap: 18px !important;
  }

  div.wpforms-container-full .wpforms-form .wpforms-field-row-block,
  div.wpforms-container-full .wpforms-form .wpforms-one-half {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  div.wpforms-container-full .wpforms-form input[type="text"],
  div.wpforms-container-full .wpforms-form input[type="email"],
  div.wpforms-container-full .wpforms-form textarea {
    min-height: 56px !important;
    font-size: 16px !important; /* avoids iOS zoom */
  }
}
/* My additions */
#menu-lbfooter a {
	text-transform: uppercase;
	font-weight: bold;
}

/* ==========================================================================
   SHOP FILTERS SIDEBAR
   ========================================================================== */

#left-sidebar .widget-title,
#left-sidebar h2,
#left-sidebar h3,
.sidebar .wc-block-product-filter-title,
.wp-block-heading {
  overflow-wrap: anywhere;
}

#left-sidebar .wc-block-product-filters,
#left-sidebar .wp-block-woocommerce-product-filters,
#left-sidebar .wp-block-woocommerce-filter-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#left-sidebar .wc-block-product-filter,
#left-sidebar .wp-block-woocommerce-product-filter-checkbox-list,
#left-sidebar .wc-block-product-filter-checkbox-list {
  width: 100%;
  max-width: 100%;
}

#left-sidebar label,
#left-sidebar .wc-block-product-filter-checkbox-list__label,
#left-sidebar .wc-filter-element-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35 !important;
  font-size: 13px !important;
  color: var(--luna-charcoal) !important;
}

#left-sidebar input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
}

#left-sidebar .wc-block-product-filter-checkbox-list__option,
#left-sidebar li {
  margin: 0 0 8px !important;
  padding: 0 !important;
  list-style: none;
}

#left-sidebar .wc-block-active-filter,
#left-sidebar .wc-block-active-filters,
#left-sidebar .wc-block-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

#left-sidebar .wc-block-components-chip,
#left-sidebar .is-active {
  max-width: 100%;
  white-space: normal;
}

#left-sidebar .wc-block-price-filter,
#left-sidebar .wc-block-product-filter-price {
  max-width: 100%;
}

#left-sidebar .wc-block-price-filter__controls,
#left-sidebar input[type="number"] {
  max-width: 100%;
  box-sizing: border-box;
}

#left-sidebar .inside-left-sidebar {
  padding-right: 4px;
}

/* Shop shows categories — product filters do nothing here.
   Hide filters + sidebar on the main shop only. Keep them on
   search and on product category archives. */
body.post-type-archive-product:not(.search) #left-sidebar,
body.post-type-archive-product:not(.search) #right-sidebar,
body.woocommerce-shop:not(.search) #left-sidebar,
body.woocommerce-shop:not(.search) #right-sidebar {
  display: none !important;
}

@media (min-width: 769px) {
  body.post-type-archive-product:not(.search).left-sidebar .site-content > .grid-container,
  body.woocommerce-shop:not(.search).left-sidebar .site-content > .grid-container {
    display: block !important;
  }

  body.post-type-archive-product:not(.search) #primary,
  body.post-type-archive-product:not(.search) .content-area,
  body.woocommerce-shop:not(.search) #primary,
  body.woocommerce-shop:not(.search) .content-area {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
