/*
 Theme Name: Still Waters Theme
 Description: Genesis child theme with custom header (logo left, menu right)
 Author: Kendrick
 Template: genesis
 Text Domain: still-waters-theme
*/

/* =============== VARIABLES =============== */
:root {
  --header-h: 96px;      /* header height (adjust to logo) */
  --header-bg: #966F42;  /* fallback brown */
  --text: #0b0b0b;
  --link: #0b0b0b;
  --link-hover: #111;
  --menu-gap: 28px;
}

/* =============== BASE ==================== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

/* Typography */
.site-title,
h1, h2, h3 { 
	font-family: "Cinzel", serif!important; 
}

body, p, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* =============== HEADER ================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: transparent;
  box-shadow: none;
  padding-block: 0 !important;
  transition: background .25s ease, box-shadow .25s ease;
}

/* Header inner wrapper */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 40px);
  min-height: var(--header-h);
  max-width: 90%;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 12px;
}
.site-branding .custom-logo {
  display: block;
  max-height: 110px; /* adjust to your logo */
  width: auto;
  height: auto;
}

/* Primary nav basics */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: var(--menu-gap);
}
.primary-nav li { position: relative; }
.primary-nav a {
  text-decoration: none;
  color: var(--link);
  font-weight: 600;
}
.primary-nav a:hover { color: var(--link-hover); }

/* Top utility bar */
.nav-secondary {
  background: #ae5801!important;
  border-bottom: 1px solid rgba(0,0,0,.15);
  font-size: 14px;
}
.nav-secondary .menu {
  margin: 0 auto;
  padding: 6px 150px;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  list-style: none;
}
.nav-secondary a {
  color: #efdcbe;
  text-decoration: none;
  font-weight: 600;
}
.nav-secondary a:hover { color: #fff; text-decoration: underline; }

/* =============== MEGA MENU =============== */

/* Reset wrapper backgrounds */
#mega-menu-wrap-primary,
#mega-menu-primary {
  background: transparent !important;
  border: 0;
  margin: 0;
  padding: 0 !important;
}

/* Top-level menu links */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  font-family: 'Cinzel', serif !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  color: #efdcbe !important;        /* start light */
  padding: 0 100px !important;
}

/* Center menu items vertically */
#mega-menu-primary > li {
  height: 100%;
  display: flex;
  align-items: center;
}
#mega-menu-primary > li > a.mega-menu-link {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1.2;
  padding: 0 22px;
}

/* Dropdown menus */
#mega-menu-primary li ul.mega-sub-menu {
  background: rgba(0,0,0,.85) !important;
  border-radius: 10px;
  padding: 8px 0;
}
#mega-menu-primary li ul.mega-sub-menu a {
  color: #f1f1f1 !important;
}

/* Submenu section titles (Shop by Type / Roast, etc.) */
#mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu
  > li.mega-menu-item-has-children > a.mega-menu-link {
  font-family: 'Cinzel', serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 6px 0 8px !important;
  color: #000 !important;
}

/* =============== HEADER SCROLLED STATE ==== */
body.is-scrolled .site-header {
  background: rgba(150,111,66,.95); /* brown solid */
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
body.is-scrolled .site-header a,
body.is-scrolled #mega-menu-primary > li > a.mega-menu-link {
  color: #0b0b0b !important;
}
body.is-scrolled #mega-menu-primary li ul.mega-sub-menu {
  background: #fff !important;
}
body.is-scrolled #mega-menu-primary li ul.mega-sub-menu a {
  color: #222 !important;
}

/* remove the automatic offset so the header truly overlays content */
body { padding-top: 0 !important; }

.entry-header {
  display: none;
}

/* Admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px){ .admin-bar .site-header { top: 46px; } }

/* =============== MOBILE NAV =============== */
@media (max-width: 860px){
  .header-inner { flex-wrap: wrap; gap: 14px; padding: 10px 0; }
  .site-branding, .primary-nav { width: 100%; }
  .primary-nav ul { flex-direction: column; gap: 10px; }
  .primary-nav li ul {
    position: static; display: block;
    background: transparent; padding: 0;
  }
  .primary-nav li ul a {
    padding-left: 26px;
    background: transparent;
    color: var(--link);
  }
}

/* =============== PRODUCT PAGE ============ */

/* Full-width product container */
.single-product .site-inner {
  max-width: none;
  padding: 40px clamp(30px, 4vw, 60px);
}
.single-product .product {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}

/* Gallery */
.single-product .woocommerce-product-gallery { width: 100% !important; margin: 0; }
.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.single-product .woocommerce-product-gallery__trigger { display: none; }
.single-product .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.single-product .flex-control-thumbs img {
  border-radius: 8px;
  opacity: .85;
  transition: opacity .2s ease;
}
.single-product .flex-control-thumbs img:hover,
.single-product .flex-control-thumbs img.flex-active { opacity: 1; }

/* Summary */
.single-product .summary { padding: 0; }
.single-product .product .product_title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 42px);
  margin-bottom: 14px;
}
.single-product .summary .price {
  font-family: 'Cinzel', serif;
  font-size: clamp(20px, 1.8vw, 28px);
  color: #0b0b0b;
  margin-bottom: 20px;
}

/* Variations form */
.single-product form.variations_form .variations {
  width: 100%;
  border: 1px solid #e8e3dc;
  border-radius: 10px;
  background: #fbf9f6;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.single-product form.variations_form .variations tr {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.single-product form.variations_form .variations td.label {
  font-weight: 600;
  color: #3b2e22;
}
.single-product form.variations_form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ded7cd;
  border-radius: 8px;
  font: 14px/1.3 'Montserrat', sans-serif;
}

/* Add to cart */
.single-product .single_add_to_cart_button {
  background: #966F42;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s ease, transform .1s ease;
}
.single-product .single_add_to_cart_button:hover {
  background: #7e5b36;
  transform: translateY(-1px);
}

/* Meta */
.single-product .product_meta {
  font-size: 14px;
  margin-top: 14px;
  color: #666;
}

/* Tabs */
.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}
.single-product .woocommerce-tabs ul.tabs { display: none; }
.single-product .woocommerce-tabs .panel {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #2b241d;
}

/* Related */
.single-product .related {
  grid-column: 1 / -1;
  margin-top: 60px;
}
.single-product .related h2 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  margin-bottom: 20px;
}
.single-product .related ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.single-product .related ul.products li.product a img {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

/* Responsive product layout */
@media (max-width: 960px) {
  .single-product .product { grid-template-columns: 1fr; }
  .single-product .woocommerce-product-gallery {
    max-width: 700px;
    margin: 0 auto;
  }
  .single-product .summary { margin-top: 24px; }
}



/* Product Page Styling */


/* Overall panel – dark background, centered content */
.ne-single-product__panel {
    background: #222a30; /* dark charcoal */
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
}

.ne-single-product__inner {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
    align-items: center;
}

/* Image column */
.ne-single-product__media {
    text-align: center;
}

.ne-single-product__media .woocommerce-product-gallery__image img {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Right column */
.ne-single-product__summary {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Eyebrow label: e.g. LIMITED RELEASE */
.ne-single-product__eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b6945a;
    margin: 0 0 0.5rem;
}

/* Title */
.ne-single-product__header .product_title {
    font-size: 24px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

/* Price next to title style */
.ne-single-product__header .price {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.75rem;
}

/* Short description text */
.ne-single-product__header .woocommerce-product-details__short-description {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Attributes block under description */
.ne-single-product__meta-row {
    margin-top: 1.5rem;
    font-size: 13px;
}

.ne-single-product__meta-row table.shop_attributes {
    width: 100%;
    border: none;
}

.ne-single-product__meta-row table.shop_attributes th,
.ne-single-product__meta-row table.shop_attributes td {
    border: none;
    padding: 0.3rem 0;
}

/* Form area: variations + qty + add to cart */
.ne-single-product__form {
    margin-top: 2rem;
}

/* Turn variation selects into full-width "rows" to mimic Peet's buttons */
.ne-single-product__form table.variations {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin-bottom: 1.5rem;
}

.ne-single-product__form table.variations td.label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.25rem;
}

.ne-single-product__form table.variations td {
    border: none;
    padding: 0;
}

/* Style selects to be big pill buttons (simple version) */
.ne-single-product__form select {
    width: 100%;
    border-radius: 0;
    border: 1px solid #d6c29a;
    padding: 1rem 1.25rem;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: #fdf9f3;
    font-weight: 600;
}

/* Qty pill buttons */
.ne-qty-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #d6c29a;
    margin-bottom: 1.5rem;
}

.ne-qty-buttons button {
    border: none;
    border-right: 1px solid #d6c29a;
    background: #fdf9f3;
    padding: 1rem 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.ne-qty-buttons button:last-child {
    border-right: none;
}

.ne-qty-buttons button.is-active {
    background: #b6934f;
    color: #fff;
}

/* Big Add to Cart button */
.ne-single-product__form .single_add_to_cart_button {
    width: 100%;
    display: block;
    text-align: center;
    padding: 1.2rem 1rem;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    background: #b6934f;
    border-radius: 0;
    border: none;
}

.ne-single-product__form .single_add_to_cart_button:hover {
    background: #91743d;
}

/* Remove small quantity +/- icons if theme adds them */
.ne-single-product__form .quantity {
    margin-bottom: 0;
}
/* === GENESIS WRAPPER OVERRIDES (single product only) === */
.single-product .site-inner,
.single-product .content-sidebar-wrap,
.single-product .content,
.single-product .entry {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Make the dark band full-bleed across the viewport */
.single-product .ne-single-product__panel {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 4rem 0; /* vertical padding only; horizontal handled by inner */
}

/* Keep the inner grid centered and capped */
.single-product .ne-single-product__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px; /* horizontal page gutter */
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

/* Safety: remove any unexpected margins above/below */
.single-product .ne-single-product {
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 960px) {
  .single-product .ne-single-product__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 16px;
  }
}



/* Responsive */
@media (max-width: 960px) {
    .ne-single-product__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ne-single-product__summary {
        padding: 1.75rem 1.5rem;
    }
}


/* === FORCE FULL WIDTH FOR CUSTOM PRODUCT TEMPLATE === */
body.single-product .site-inner,
body.single-product .content-sidebar-wrap,
body.single-product .content,
body.single-product .entry,
body.single-product .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide Genesis entry header/meta */
body.single-product .entry-header,
body.single-product .entry-meta,
body.single-product .entry-footer {
  display: none !important;
}

/* Remove the default product grid that conflicts */
body.single-product .product {
  display: block !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}