/*
Theme Name: Kadence Child - Pet Store
Theme URI: https://yourstore.com
Description: Custom child theme for Kadence theme for NZ pet toy store
Author: Roo Code
Author URI: https://yourstore.com
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadence-child
*/

/* ==========================================================================
   CSS Variables - Brand Colors
   ========================================================================== */

:root {
  /* Brand Colors */
  --brand-primary: #FF6B35;
  --brand-dark: #4A3728;
  --brand-light: #FFF8F0;
  --brand-accent: #FFB347;
  
  /* Typography */
  --brand-font: 'Nunito', sans-serif;
  
  /* Spacing & Layout */
  --radius: 8px;
  --shadow: 0 2px 12px rgba(74, 55, 40, 0.1);
  --shadow-lg: 0 4px 20px rgba(74, 55, 40, 0.15);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ==========================================================================
   Global Overrides
   ========================================================================== */

body {
  font-family: var(--brand-font);
  background-color: var(--brand-light);
  color: var(--brand-dark);
}

a {
  color: var(--brand-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--brand-accent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button__link,
.button,
.kt-button,
input[type="submit"],
button,
.btn {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: white !important;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-weight: 600;
  transition: var(--transition);
}

.wp-block-button__link:hover,
.button:hover,
.kt-button:hover,
input[type="submit"]:hover,
button:hover,
.btn:hover {
  background-color: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

#masthead {
  background-color: var(--brand-light);
  border-bottom: 1px solid rgba(74, 55, 40, 0.1);
}

.primary-navigation a {
  color: var(--brand-dark);
  font-weight: 500;
}

.primary-navigation a:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ==========================================================================
   Product Cards (Shop Page)
   ========================================================================== */

.wc-block-grid__product {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: var(--transition);
}

.wc-block-grid__product:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.wc-block-grid__product-title {
  color: var(--brand-dark);
  font-size: 1rem;
  margin-bottom: 10px;
}

.wc-block-grid__product-price {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.wc-block-grid__product-add-to-cart .button {
  width: 100%;
  background-color: var(--brand-primary);
  border: none;
  padding: 12px;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

.product_title {
  color: var(--brand-dark);
  font-size: 2rem;
  margin-bottom: 15px;
}

.woocommerce-Price-amount {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.single_add_to_cart_button {
  background-color: var(--brand-primary) !important;
  border: none !important;
  font-size: 1.1rem;
  padding: 15px 30px;
  width: 100%;
  max-width: 300px;
}

.single_add_to_cart_button:hover {
  background-color: var(--brand-accent) !important;
}

/* Trust Micro-Badges */
.trust-micro-badges {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--brand-light);
  border-radius: var(--radius);
  margin-top: 20px;
  flex-wrap: wrap;
}

.trust-micro-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--brand-dark);
}

/* ==========================================================================
   ShopLentor Sections
   ========================================================================== */

/* Benefits Section */
.wl-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.wl-benefits .benefit-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wl-benefits .benefit-item h3 {
  color: var(--brand-primary);
  margin-bottom: 10px;
}

/* FAQ Section */
.wl-faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.wl-faq details {
  border: 1px solid #eee;
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 15px;
  background: white;
}

.wl-faq summary {
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
}

.wl-faq details[open] summary {
  color: var(--brand-primary);
}

/* Trust Badges Section */
.wl-trust {
  display: flex;
  justify-content: space-around;
  padding: 30px;
  background: var(--brand-light);
  border-radius: var(--radius);
  flex-wrap: wrap;
  gap: 20px;
}

.wl-trust .trust-item {
  text-align: center;
  padding: 10px 20px;
}

.wl-trust .trust-item h4 {
  color: var(--brand-dark);
  margin-bottom: 5px;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.woocommerce-cart .cart_table {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.woocommerce-cart .button {
  background-color: var(--brand-primary);
  border: none;
}

/* Free Shipping Progress Bar */
.free-shipping-progress {
  background: var(--brand-light);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: center;
}

.free-shipping-progress .progress-bar {
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.free-shipping-progress .progress-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.woocommerce-checkout .checkout-form {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.woocommerce-checkout .order-summary {
  background: var(--brand-light);
  padding: 20px;
  border-radius: var(--radius);
}

/* ==========================================================================
   My Account Page
   ========================================================================== */

.woocommerce-MyAccount-navigation {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.woocommerce-MyAccount-navigation-link {
  color: var(--brand-dark);
}

.woocommerce-MyAccount-navigation-link:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   Sticky Add to Cart Bar (Mobile)
   ========================================================================== */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 10px 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  align-items: center;
  justify-content: space-between;
}

.mobile-sticky-cta .product-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-sticky-cta .product-info img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.mobile-sticky-cta .product-info .price {
  color: var(--brand-primary);
  font-weight: 700;
}

.mobile-sticky-cta .add-to-cart-btn {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
  /* Product layout */
  .product {
    flex-direction: column;
  }
  
  /* Full-width buttons */
  .single_add_to_cart_button {
    width: 100%;
    max-width: none;
  }
  
  /* Show sticky CTA on mobile */
  .mobile-sticky-cta {
    display: flex;
  }
  
  /* Hide main CTA when sticky is visible */
  .single_add_to_cart_button {
    margin-bottom: 60px;
  }
  
  /* Trust badges stack on mobile */
  .wl-trust {
    flex-direction: column;
    align-items: center;
  }
  
  /* Benefits grid on mobile */
  .wl-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .product_title {
    font-size: 1.5rem;
  }
  
  .trust-micro-badges {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-primary { color: var(--brand-primary) !important; }
.text-dark { color: var(--brand-dark) !important; }
.bg-light { background-color: var(--brand-light) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .mobile-sticky-cta {
    display: none !important;
  }
}
