/*
Theme Name: CBD Boutique
Theme URI: https://www.thecbdboutique.com
Description: Custom WooCommerce theme for CBD Boutique — black, gold, and natural wellness aesthetic.
Author: CBD Boutique
Version: 1.0.0
Template: storefront
License: GNU General Public License v2 or later
Text Domain: cbd-boutique
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --black:       #111111;
  --off-black:   #1a1a1a;
  --dark-bg:     #0d0d0d;
  --gold:        #c9a84c;
  --gold-light:  #f0d080;
  --gold-pale:   #fdf6e3;
  --cream:       #f5f3ee;
  --pet-bg:      #fdf6e3;
  --caps-bg:     #f0f0f5;
  --white:       #ffffff;
  --gray-light:  #e8e6e0;
  --gray-mid:    #888888;
  --text-dark:   #111111;
  --text-mid:    #444444;
  --text-muted:  #888888;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: #f9f9f7;
  margin: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 1rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header,
header.site-header {
  background: var(--black) !important;
  border-bottom: none !important;
  padding: 0 2rem !important;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: none;
}

.site-header .col-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* Logo area */
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding .custom-logo-link img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Nav links */
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.15s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: #ffffff;
}

/* Cart icon */
.site-header-cart .cart-contents {
  background: var(--gold);
  color: var(--black);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.site-header-cart .cart-contents:hover {
  background: var(--gold-light);
  color: var(--black);
}

.site-header-cart .count {
  background: var(--black);
  color: var(--gold);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   HERO SECTION (homepage)
   ============================================================ */
.cbd-hero {
  background: var(--black);
  padding: 5rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.cbd-hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg width='480' height='480' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 36 Q18 40 14 42' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M22 36 Q22 41 22 43' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M22 36 Q26 40 30 42' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M22 36 Q21 30 22 22' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M22 26 Q16 20 10 18' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M22 26 Q28 20 34 18' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='22' cy='5' r='4.5' fill='white'/%3E%3Ccircle cx='18' cy='7' r='4' fill='white'/%3E%3Ccircle cx='26' cy='7' r='4' fill='white'/%3E%3Ccircle cx='10' cy='17' r='3.5' fill='white'/%3E%3Ccircle cx='34' cy='17' r='3.5' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
}

.cbd-hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.cbd-hero h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  max-width: 560px;
  margin-bottom: 1rem;
}

.cbd-hero h1 strong {
  color: var(--gold);
  font-weight: 600;
}

.cbd-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cbd-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cbd-hero-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 2.5rem 0;
}

.cbd-hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.cbd-hero-stat-num {
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  display: block;
}

.cbd-hero-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  display: block;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.cbd-trust-bar {
  background: #1e1e1e;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 13px 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.cbd-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.cbd-trust-item svg {
  color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--gold) !important;
  color: var(--black) !important;
  border: none !important;
  padding: 13px 28px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.15s;
  letter-spacing: 0.2px;
}

.btn-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--gold-light) !important;
  color: var(--black) !important;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
  background: var(--black) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 10px 20px !important;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.woocommerce ul.products li.product .button:hover {
  background: #333 !important;
}

/* ============================================================
   PRODUCT GRID (Shop / Archive)
   ============================================================ */
.woocommerce-page .site-main,
.woocommerce .site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* Category filter pills */
.cbd-cat-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cbd-cat-pill {
  border: 1.5px solid #ddd;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 13px;
  cursor: pointer;
  background: #ffffff;
  color: #555;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.cbd-cat-pill:hover,
.cbd-cat-pill.current {
  background: var(--black);
  color: #ffffff;
  border-color: var(--black);
}

/* Product cards */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product {
  border-radius: var(--radius) !important;
  border: 0.5px solid #e0deda !important;
  background: #ffffff !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.15s !important;
  float: none !important;
  width: auto !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
}

/* Product image area */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--cream);
  padding: 20px;
}

/* Product info */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  line-height: 1.4 !important;
  padding: 14px 14px 4px !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 14px 14px;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--black) !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--black) !important;
}

.woocommerce ul.products li.product .button {
  margin: 0 14px 14px !important;
  width: calc(100% - 28px) !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
  background: #c0392b !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 9px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  top: 10px !important;
  left: 10px !important;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.woocommerce div.product {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.woocommerce div.product .product_title {
  font-size: 28px !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem !important;
}

.woocommerce div.product p.price {
  font-size: 28px !important;
  font-weight: 600 !important;
  color: var(--black) !important;
  margin-bottom: 1rem !important;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: var(--radius);
  background: var(--cream);
}

/* Variation selects */
.woocommerce div.product .variations select {
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  background: #ffffff;
}

/* ============================================================
   BRAND STATEMENT SECTION
   ============================================================ */
.cbd-brand-band {
  background: var(--black);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cbd-brand-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cbd-brand-logo-area img {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.cbd-brand-cbd {
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 4px;
}

.cbd-brand-boutique {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.cbd-brand-copy h2 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.cbd-brand-copy h2 em {
  color: var(--gold);
  font-style: normal;
}

.cbd-brand-copy p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cbd-brand-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbd-brand-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.cbd-brand-points li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
  padding: 14px 10px;
}

.woocommerce table.shop_table {
  border-collapse: collapse;
  border: 0.5px solid #e0deda !important;
  border-radius: var(--radius);
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--black);
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 12px 14px;
}

.woocommerce #payment {
  background: var(--cream) !important;
  border-radius: var(--radius) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid #ddd !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
}

.woocommerce form .form-row input.input-text:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.2) !important;
}

/* ============================================================
   NEWSLETTER / CTA BAND
   ============================================================ */
.cbd-cta-band {
  background: #f5f3ee;
  padding: 3rem;
  text-align: center;
  border-top: 0.5px solid #e0deda;
}

.cbd-cta-band h2 {
  font-size: 24px;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.cbd-cta-band p {
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 1.5rem;
  font-size: 15px;
}

.cbd-email-row {
  display: flex;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.cbd-email-row input[type="email"] {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #ddd;
  font-size: 14px;
}

.cbd-email-row button {
  background: var(--black);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.cbd-email-row button:hover {
  background: #333;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0d0d0d !important;
  color: rgba(255,255,255,0.5) !important;
  padding: 0 !important;
}

.cbd-footer-gold-line {
  width: 100%;
  height: 2px;
  background: var(--gold);
  opacity: 0.25;
}

.cbd-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.cbd-footer-brand .f-cbd {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  display: block;
}

.cbd-footer-brand .f-sub {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.cbd-footer-brand p {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  max-width: 180px;
  line-height: 1.6;
}

.cbd-footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.cbd-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cbd-footer-col ul li a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 13px;
  display: block;
  margin-bottom: 7px;
  transition: color 0.15s;
}

.cbd-footer-col ul li a:hover {
  color: rgba(255,255,255,0.85);
}

.cbd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cbd-footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  margin: 0;
}

.cbd-footer-socials {
  display: flex;
  gap: 10px;
}

.cbd-footer-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
}

.cbd-footer-social:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-header .col-full { padding: 0 1rem; }
  .main-navigation { display: none; }
  .cbd-hero { padding: 3rem 1.5rem; }
  .cbd-hero h1 { font-size: 32px; }
  .cbd-hero-stats { gap: 1.5rem; }
  .cbd-trust-bar { gap: 1rem; padding: 13px 1rem; }
  .cbd-brand-band { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .cbd-footer-inner { padding: 2rem 1.5rem; }
  .cbd-footer-bottom { padding: 1rem 1.5rem; }
  .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; }
  .cbd-email-row { flex-direction: column; }
}
