/*
Theme Name: Elemental Balance
Theme URI: https://elementalbalancesupplies.net
Description: Professional e-commerce theme for Elemental Balance Supplies with WooCommerce integration
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.2
Author: Elemental Balance
Author URI: https://elementalbalancesupplies.net
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elemental-balance
Domain Path: /languages
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Garamond:wght@400;600;700&family=Montserrat:wght@400;500;600&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #2C2C2C;
  line-height: 1.6;
  background-color: #F5F1ED;
}

a {
  color: #2C2C2C;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #666666;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E8DFD5;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.logo img {
  width: 227px;
  height: auto;
  object-fit: contain;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-title {
  font-family: 'Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2C2C2C;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  color: #2C2C2C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #999999;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: #F5F1ED;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 60px;
  position: relative;
}

.hero-content {
  max-width: 280px;
}

.hero h1 {
  font-family: 'Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #2C2C2C;
}

.hero p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #666666;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-btn,
.button,
button,
a.button {
  background-color: #2C2C2C;
  color: #FFFFFF;
  padding: 14px 32px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 24px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn:hover,
.button:hover,
button:hover,
a.button:hover {
  background-color: #555555;
  transform: translateY(-2px);
}

/* ============================================
   FEATURED SECTION
   ============================================ */

.featured {
  padding: 100px 60px;
  background-color: #EFEFEB;
  text-align: center;
}

.section-title {
  font-family: 'Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #2C2C2C;
}

.featured-subtitle {
  font-size: 14px;
  color: #666666;
  margin-bottom: 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-bottom: 20px;
}

.product-card h3 {
  font-family: 'Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #2C2C2C;
}

.product-card p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
}

/* ============================================
   BUILT FOR FLOW SECTION
   ============================================ */

.built-for-flow {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 100px 60px;
}

.built-for-flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.built-for-flow-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  background: rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 8px;
}

.built-for-flow-content h2 {
  font-family: 'Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: white;
}

.built-for-flow-content p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 25px;
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: #FFFFFF;
  padding: 60px;
  border-top: 1px solid #E8DFD5;
  text-align: center;
}

footer img {
  width: 227px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.disclaimer {
  font-size: 12px;
  color: #666666;
  max-width: 600px;
  margin: 20px auto;
  line-height: 1.8;
}

.copyright {
  font-size: 11px;
  color: #666666;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #E8DFD5;
}

/* ============================================
   WOOCOMMERCE STYLES
   ============================================ */

.woocommerce,
.woocommerce-page {
  background-color: #F5F1ED;
}

.woocommerce-products-header {
  display: none;
}

body .woocommerce ul.products,
body.woocommerce-page ul.products,
.woocommerce ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 40px 40px 40px 20px !important;
  max-width: 100% !important;
  margin: 0 !important;
  background-color: #F5F1ED !important;
  width: 100% !important;
}

.woocommerce ul.products li.product {
  background: #FFFFFF !important;
  padding: 0 !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.08) !important;
  border: 1px solid #EFEFEB !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 31% !important;
  flex-basis: 31% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Hide sidebar on shop pages - be specific, don't hide products */
.woocommerce-page .sidebar,
.woocommerce-page .secondary,
.woocommerce-page aside.widget-area,
.ast-primary-sidebar,
.ast-woocommerce-sidebar {
  display: none !important;
}

/* Override Astra theme layout */
.ast-container-inner,
.site-content,
.ast-content-inside-inner {
  display: block !important;
  width: 100% !important;
}

.ast-content-main-wrap {
  width: 100% !important;
  float: none !important;
}

body.woocommerce-page .ast-container-inner {
  max-width: 100% !important;
  width: 100% !important;
}

/* Make shop full width */
.woocommerce-page main,
.woocommerce main {
  width: 100%;
}

/* Full width content on shop */
.woocommerce-page {
  display: block !important;
  width: 100% !important;
}

body.woocommerce-page {
  background-color: #F5F1ED !important;
}

.woocommerce-page > * {
  width: 100% !important;
}

/* Hide all sidebar-like elements */
.woocommerce-page .wp-sidebar-primary,
.woocommerce-page .wp-sidebar-secondary,
.woocommerce-sidebar,
.woocommerce-content-area + aside,
main + aside,
aside.sidebar {
  display: none !important;
}



.woocommerce ul.products li.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(44, 44, 44, 0.15);
  border-color: #D4AF9A;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 0;
  display: block;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: #2C2C2C;
  text-transform: uppercase;
  margin: 20px 15px 12px;
  padding: 0;
}

.woocommerce ul.products li.product .price {
  color: #D4AF9A;
  font-size: 14px;
  font-weight: 600;
  margin: 0 15px 20px;
  display: block;
}

.woocommerce ul.products li.product .button {
  background-color: #2C2C2C !important;
  color: white !important;
  border: none !important;
  padding: 12px 28px !important;
  margin: 0 auto 30px auto !important;
  margin-top: auto !important;
  border-radius: 24px !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  font-family: 'Montserrat', sans-serif !important;
}

.woocommerce ul.products li.product .button:hover {
  background-color: #D4AF9A;
  color: #2C2C2C;
  transform: translateY(-2px);
}

/* Basic flexbox - NO reordering for now */

/* Shop page container */
.woocommerce-main-loop,
.woocommerce-page {
  background-color: #F5F1ED;
}

.woocommerce-cart,
.woocommerce-checkout {
  padding: 60px;
  background-color: #F5F1ED;
  max-width: 1200px;
  margin: 0 auto;
}

.woocommerce table.shop_table {
  width: 100%;
  margin-bottom: 30px;
  background: white;
  border: 1px solid #EFEFEB;
}

.woocommerce table.shop_table thead {
  background-color: #EFEFEB;
}

.woocommerce table.shop_table th {
  color: #2C2C2C;
  font-weight: 600;
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid #D4AF9A;
}

.woocommerce table.shop_table td {
  padding: 15px;
  border-bottom: 1px solid #EFEFEB;
}

.woocommerce .cart_totals,
.woocommerce-checkout .woocommerce-info {
  background-color: #FFFFFF;
  padding: 30px;
  border: 2px solid #D4AF9A;
  border-radius: 8px;
  margin-bottom: 30px;
}

.woocommerce .woocommerce-checkout-review-order-table {
  background: white;
  border: 1px solid #EFEFEB;
}

/* Buttons */
.woocommerce .checkout-button,
.woocommerce-checkout .button[type="submit"] {
  background-color: #2C2C2C;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 24px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.woocommerce .checkout-button:hover,
.woocommerce-checkout .button[type="submit"]:hover {
  background-color: #D4AF9A;
  color: #2C2C2C;
}

/* ============================================
   PANORAMIC CAROUSEL
   ============================================ */

.panoramic-carousel-section {
  background-color: #2C2C2C;
  padding: 60px 0;
  position: relative;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #2C2C2C;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

/* Dot Indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  background-color: #2C2C2C;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #D4AF9A;
  width: 30px;
  border-radius: 6px;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .carousel-wrapper {
    height: 250px;
  }

  .carousel-btn {
    padding: 10px 15px;
    font-size: 18px;
  }

  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 20px;
    justify-content: center;
  }

  .hero {
    background-size: 100%;
    background-position: center bottom;
    padding: 40px 30px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .featured,
  .built-for-flow {
    padding: 60px 30px;
  }

  .products-grid,
  .woocommerce ul.products {
    flex-wrap: wrap !important;
    gap: 30px !important;
  }

  .woocommerce ul.products li.product {
    width: calc(33.333% - 20px) !important;
    flex: 0 0 calc(33.333% - 20px) !important;
  }

  .section-title {
    font-size: 28px;
  }

  footer {
    padding: 40px 30px;
  }

  .product-card img,
  .woocommerce ul.products li.product img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .header-wrapper {
    padding: 15px 20px;
  }

  .logo img {
    width: 80px;
  }

  .nav-links {
    font-size: 11px;
    gap: 15px;
  }

  .hero {
    padding: 30px 20px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero p {
    font-size: 12px;
  }

  .featured,
  .built-for-flow {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .products-grid,
  .woocommerce ul.products {
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding: 20px !important;
  }

  .woocommerce ul.products li.product {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .product-card img,
  .woocommerce ul.products li.product img {
    height: 150px;
  }

  footer {
    padding: 30px 20px;
  }

  footer img {
    width: 80px;
  }

  .cta-btn,
  .button {
    padding: 12px 24px;
    font-size: 11px;
  }
}
