/*
Theme Name: Habitudes Child
Theme URI: https://habitudesbynoush.com
Description: Habitudes by Noush — child theme for Botiga
Author: Habitudes by Noush
Author URI: https://habitudesbynoush.com
Template: botiga
Version: 1.0.0
Text Domain: habitudes-child
*/

/* =========================================================
   BRAND TOKENS
   ========================================================= */
:root {
  --hb-cream:        #FAF6F0;
  --hb-moss:         #3E4A36;
  --hb-moss-deep:    #2D3628;
  --hb-parchment:    #C8BFB0;
  --hb-sand:         #E8DDD0;
  --hb-clay:         #B5735A;
  --hb-blush:        #D9B8AE;
  --hb-ink:          #2A2420;

  --hb-font-display: 'Fraunces', Georgia, serif;
  --hb-font-body:    'Manrope', system-ui, sans-serif;
  --hb-font-tag:     'Cormorant Garamond', Georgia, serif;

  --hb-radius:       2px;
  --hb-transition:   0.22s ease;
}

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

body {
  background-color: var(--hb-cream) !important;
  color: var(--hb-ink) !important;
  font-family: var(--hb-font-body) !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--hb-font-display) !important;
  font-weight: 500;
  color: var(--hb-ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p, li, td, th, label, input, textarea, select {
  font-family: var(--hb-font-body) !important;
}

a {
  color: var(--hb-moss);
  transition: color var(--hb-transition);
}
a:hover { color: var(--hb-clay); }

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

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header,
header.site-header {
  background-color: rgba(250, 246, 240, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hb-sand) !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  box-shadow: none !important;
}

.site-logo a,
.custom-logo-link { display: inline-flex; align-items: center; }

/* Primary nav links */
.main-navigation ul li a,
.botiga-nav ul li a {
  font-family: var(--hb-font-body) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--hb-ink) !important;
  transition: color var(--hb-transition) !important;
  padding: 6px 0 !important;
  border-bottom: 1.5px solid transparent;
}
.main-navigation ul li a:hover,
.botiga-nav ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.botiga-nav ul li.current-menu-item > a {
  color: var(--hb-moss) !important;
  border-bottom-color: var(--hb-clay);
}

/* Cart icon */
.botiga-header-cart .cart-count,
.botiga-cart-count {
  background-color: var(--hb-clay) !important;
  color: var(--hb-cream) !important;
  font-family: var(--hb-font-body) !important;
  font-size: 0.7rem !important;
}

/* Mobile hamburger */
.botiga-offcanvas-toggle span,
.menu-toggle span {
  background-color: var(--hb-ink) !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.elementor-button {
  font-family: var(--hb-font-body) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background-color: var(--hb-moss) !important;
  color: var(--hb-cream) !important;
  border: none !important;
  border-radius: var(--hb-radius) !important;
  padding: 14px 28px !important;
  cursor: pointer;
  transition: background-color var(--hb-transition), color var(--hb-transition) !important;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.elementor-button:hover {
  background-color: var(--hb-moss-deep) !important;
  color: var(--hb-cream) !important;
}

/* Ghost / outline variant */
.button.button-outline,
.woocommerce a.button.alt {
  background-color: transparent !important;
  color: var(--hb-moss) !important;
  border: 1.5px solid var(--hb-moss) !important;
}
.button.button-outline:hover,
.woocommerce a.button.alt:hover {
  background-color: var(--hb-moss) !important;
  color: var(--hb-cream) !important;
}

/* Add to cart */
.woocommerce .single_add_to_cart_button {
  background-color: var(--hb-moss) !important;
  color: var(--hb-cream) !important;
  min-width: 200px;
}
.woocommerce .single_add_to_cart_button:hover {
  background-color: var(--hb-moss-deep) !important;
}

/* =========================================================
   FORMS / INPUTS
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea {
  font-family: var(--hb-font-body) !important;
  font-size: 0.95rem !important;
  background-color: #fff !important;
  border: 1px solid var(--hb-parchment) !important;
  border-radius: var(--hb-radius) !important;
  padding: 12px 16px !important;
  color: var(--hb-ink) !important;
  transition: border-color var(--hb-transition) !important;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--hb-moss) !important;
  box-shadow: 0 0 0 3px rgba(62, 74, 54, 0.1) !important;
}

/* =========================================================
   WOOCOMMERCE — PRODUCT CARDS
   ========================================================= */
.woocommerce ul.products li.product,
.botiga-product-item {
  background: #fff !important;
  border: 1px solid var(--hb-sand) !important;
  border-radius: var(--hb-radius) !important;
  overflow: hidden;
  transition: box-shadow var(--hb-transition), transform var(--hb-transition) !important;
}
.woocommerce ul.products li.product:hover,
.botiga-product-item:hover {
  box-shadow: 0 8px 30px rgba(42, 36, 32, 0.10) !important;
  transform: translateY(-3px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.botiga-product-item .product-title {
  font-family: var(--hb-font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--hb-ink) !important;
}

.woocommerce ul.products li.product .price,
.botiga-product-item .price {
  font-family: var(--hb-font-body) !important;
  font-size: 0.92rem !important;
  color: var(--hb-moss) !important;
  font-weight: 600 !important;
}

/* Sale badge */
.woocommerce span.onsale,
.botiga-badge-sale {
  background-color: var(--hb-clay) !important;
  color: var(--hb-cream) !important;
  font-family: var(--hb-font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: var(--hb-radius) !important;
}

/* =========================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ========================================================= */
.woocommerce div.product .product_title {
  font-family: var(--hb-font-display) !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  font-weight: 500 !important;
  color: var(--hb-ink) !important;
}

.woocommerce div.product .price {
  color: var(--hb-moss) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 0.97rem !important;
  line-height: 1.7 !important;
  color: rgba(42,36,32,0.82) !important;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--hb-font-body) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--hb-ink) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--hb-moss) !important;
  border-bottom: 2px solid var(--hb-clay);
}

/* Star ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--hb-clay) !important;
}

/* =========================================================
   WOOCOMMERCE — CART & CHECKOUT
   ========================================================= */
.woocommerce-cart table.cart th,
.woocommerce-checkout .shop_table th {
  font-family: var(--hb-font-body) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--hb-ink) !important;
  border-bottom: 1px solid var(--hb-sand) !important;
}

.woocommerce #payment .payment_methods li label {
  font-family: var(--hb-font-body) !important;
}

.woocommerce-checkout h3 {
  font-family: var(--hb-font-display) !important;
  font-size: 1.3rem !important;
}

/* Order total */
.woocommerce-checkout .order-total .amount,
.woocommerce-cart .order-total .amount {
  color: var(--hb-moss) !important;
  font-weight: 700 !important;
}

/* =========================================================
   TYPOGRAPHY — PAGE CONTENT
   ========================================================= */
.entry-content h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.entry-content h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.entry-content h3 { font-size: 1.3rem; }

.entry-content p,
.entry-content li {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(42,36,32,0.88);
}

blockquote {
  border-left: 3px solid var(--hb-clay) !important;
  padding-left: 24px !important;
  font-family: var(--hb-font-tag) !important;
  font-style: italic !important;
  font-size: 1.15rem !important;
  color: rgba(42,36,32,0.75) !important;
}

/* =========================================================
   ELEMENTOR OVERRIDES
   ========================================================= */

/* Section backgrounds */
.elementor-section.hb-section-moss,
.elementor-section.hb-bg-moss {
  background-color: var(--hb-moss) !important;
}
.elementor-section.hb-section-cream,
.elementor-section.hb-bg-cream {
  background-color: var(--hb-cream) !important;
}
.elementor-section.hb-section-sand {
  background-color: var(--hb-sand) !important;
}

/* Elementor headings */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--hb-font-display) !important;
  font-weight: 500 !important;
}

/* Elementor text */
.elementor-widget-text-editor .elementor-widget-container p {
  font-family: var(--hb-font-body) !important;
  line-height: 1.7 !important;
}

/* Elementor divider */
.elementor-divider-separator {
  border-color: var(--hb-sand) !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer,
footer.site-footer {
  background-color: var(--hb-moss-deep) !important;
  color: rgba(250,246,240,0.82) !important;
  border-top: none !important;
}

.site-footer a,
footer.site-footer a {
  color: var(--hb-blush) !important;
  transition: color var(--hb-transition) !important;
}
.site-footer a:hover,
footer.site-footer a:hover {
  color: var(--hb-cream) !important;
}

.site-footer h4,
.site-footer h3,
.site-footer .widget-title,
footer .widget-title {
  font-family: var(--hb-font-body) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--hb-cream) !important;
  margin-bottom: 16px !important;
}

.site-footer p,
.site-footer li,
footer p, footer li {
  font-family: var(--hb-font-body) !important;
  font-size: 0.88rem !important;
  color: rgba(250,246,240,0.72) !important;
}

.site-footer .copyright,
.botiga-footer-bar {
  background-color: var(--hb-moss-deep) !important;
  border-top: 1px solid rgba(250,246,240,0.12) !important;
  font-size: 0.78rem !important;
  color: rgba(250,246,240,0.5) !important;
}

/* =========================================================
   UTILITY CLASSES  (use in Elementor via CSS class field)
   ========================================================= */

/* Eyebrow label */
.hb-eyebrow {
  font-family: var(--hb-font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-moss);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--hb-moss);
  flex-shrink: 0;
}

/* Italic serif accent */
.hb-serif-italic {
  font-family: var(--hb-font-display) !important;
  font-style: italic !important;
  color: var(--hb-clay) !important;
}

/* Text on dark background */
.hb-text-cream { color: var(--hb-cream) !important; }
.hb-text-blush { color: var(--hb-blush) !important; }
.hb-text-moss  { color: var(--hb-moss) !important; }

/* Thin divider line */
.hb-divider {
  width: 100%;
  height: 1px;
  background: var(--hb-sand);
  margin: 40px 0;
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 768px) {
  .site-header {
    padding: 14px 16px !important;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .woocommerce div.product .product_title {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
