/*
Theme Name: Kadence Mojoy
Description: Mojoy brand customization for Kadence theme
Template: kadence
Version: 1.0
*/

@import url("../kadence/style.css");

/* ==========================================================================
   MOJOY BRAND CUSTOMIZATION CSS
   Theme: Kadence (Free)
   Brand: Mojoy - Feel Good, Do Good
   Focus: Premium Comfort, Timeless Style, Purposeful Impact
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (BRAND COLORS & SPACING)
   -------------------------------------------------------------------------- */
   :root {
    /* MOJOY BRAND COLORS */
    --mojoy-primary: #2C3E50;        /* Deep slate blue - premium, trust */
    --mojoy-secondary: #F4A261;      /* Warm golden - joy, impact */
    --mojoy-accent: #E76F51;         /* Coral red - energy, purpose */
    --mojoy-success: #27AE60;        /* Green - impact, growth */
    --mojoy-hover: #D96748;          /* Suggested hover tone - accent variation */
  
    /* NEUTRAL BASES */
    --mojoy-neutral-light: #F8F9FA;  /* Soft white - clean, minimal */
    --mojoy-neutral-medium: #E9ECEF; /* Light gray - subtle backgrounds */
    --mojoy-neutral-dark: #495057;   /* Charcoal - readable text */
  
    /* TYPOGRAPHY */
    --mojoy-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mojoy-font-secondary: 'Playfair Display', Georgia, serif;
  
    /* SPACING & EFFECTS */
    --mojoy-border-radius: 8px;
    --mojoy-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --mojoy-shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --mojoy-transition: all 0.3s ease;
  }
  
  /* --------------------------------------------------------------------------
     DARK MODE (Optional Setup)
     -------------------------------------------------------------------------- */
  @media (prefers-color-scheme: dark) {
    :root {
      --mojoy-neutral-light: #1F1F1F;
      --mojoy-neutral-medium: #2C2C2C;
      --mojoy-neutral-dark: #EEEEEE;
      --mojoy-primary: #9AC7E2;
      --mojoy-secondary: #EFB872;
      --mojoy-accent: #FF8364;
    }
  
    body {
      background-color: var(--mojoy-neutral-light);
      color: var(--mojoy-neutral-dark);
    }
  }
  
  /* --------------------------------------------------------------------------
     TYPOGRAPHY
     -------------------------------------------------------------------------- */
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
  
  body {
    font-family: var(--mojoy-font-primary) !important;
    font-weight: 400;
    line-height: 1.6;
    color: var(--mojoy-neutral-dark);
    background-color: var(--mojoy-neutral-light);
  }
  
  h1, h2, h3, h4, h5, h6,
  .site-title,
  .kadence-title,
  .wp-block-heading {
    font-family: var(--mojoy-font-primary) !important;
    font-weight: 600;
    color: var(--mojoy-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  h1, .h1 { font-size: 2.5rem; font-weight: 700; }
  h2, .h2 { font-size: 2rem; font-weight: 600; }
  h3, .h3 { font-size: 1.5rem; font-weight: 600; }
  h4, .h4 { font-size: 1.25rem; font-weight: 500; }
  
  .mojoy-hero-title {
    font-family: var(--mojoy-font-secondary) !important;
    font-size: 3rem;
    font-weight: 600;
    color: var(--mojoy-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }
  
  p, .wp-block-paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--mojoy-neutral-dark);
    margin-bottom: 1.5rem;
  }
  
  /* --------------------------------------------------------------------------
     BUTTON & CTA
     -------------------------------------------------------------------------- */
  .wp-block-button__link,
  .button,
  .btn,
  .woocommerce #respond input#submit,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .kadence-button,
  .wp-block-kadence-button .kt-button {
    background-color: var(--mojoy-primary) !important;
    color: white !important;
    font-family: var(--mojoy-font-primary) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 32px !important;
    border-radius: var(--mojoy-border-radius) !important;
    border: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0.02em;
    transition: var(--mojoy-transition) !important;
    cursor: pointer;
    display: inline-block;
    box-shadow: var(--mojoy-shadow);
  }
  
  .wp-block-button__link:hover,
  .button:hover,
  .kadence-button:hover,
  .wp-block-kadence-button .kt-button:hover {
    background-color: var(--mojoy-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--mojoy-shadow-hover) !important;
  }
  
  .wp-block-button.is-style-outline .wp-block-button__link,
  .button-secondary {
    background-color: transparent !important;
    border: 2px solid var(--mojoy-primary) !important;
    color: var(--mojoy-primary) !important;
  }
  
  .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--mojoy-primary) !important;
    color: white !important;
  }
  
  /* --------------------------------------------------------------------------
     HEADER STYLING
     -------------------------------------------------------------------------- */
  .site-header {
    background-color: var(--mojoy-neutral-light);
    border-bottom: 1px solid var(--mojoy-neutral-medium);
    padding: 1rem 0;
  }
  
  .site-title a,
  .site-branding .site-title {
    font-family: var(--mojoy-font-secondary) !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: var(--mojoy-primary) !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
  }
  
  .main-navigation ul li a {
    font-family: var(--mojoy-font-primary) !important;
    font-weight: 500;
    color: var(--mojoy-neutral-dark) !important;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--mojoy-transition);
  }
  
  .main-navigation ul li a:hover {
    color: var(--mojoy-secondary) !important;
  }
  
  /* --------------------------------------------------------------------------
     WOOCOMMERCE STYLING
     -------------------------------------------------------------------------- */
  .woocommerce ul.products li.product,
  .wc-block-grid__product {
    background-color: white;
    border-radius: var(--mojoy-border-radius);
    box-shadow: var(--mojoy-shadow);
    transition: var(--mojoy-transition);
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .woocommerce ul.products li.product:hover,
  .wc-block-grid__product:hover {
    transform: translateY(-4px);
    box-shadow: var(--mojoy-shadow-hover);
  }
  
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .wc-block-grid__product-title {
    font-family: var(--mojoy-font-primary) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--mojoy-primary) !important;
    line-height: 1.4;
  }
  
  .woocommerce .price,
  .wc-block-grid__product-price {
    font-family: var(--mojoy-font-primary) !important;
    font-weight: 600 !important;
    color: var(--mojoy-secondary) !important;
    font-size: 1.2rem !important;
  }
  
  .woocommerce span.onsale {
    background-color: var(--mojoy-accent) !important;
    color: white !important;
    border-radius: var(--mojoy-border-radius) !important;
    font-weight: 600;
  }
  
  /* --------------------------------------------------------------------------
     PAGE SECTIONS
     -------------------------------------------------------------------------- */
  .mojoy-hero {
    background: linear-gradient(135deg, var(--mojoy-neutral-light) 0%, var(--mojoy-neutral-medium) 100%);
    padding: 4rem 0;
    text-align: center;
  }
  
  .mojoy-impact-section {
    background-color: var(--mojoy-success);
    color: white;
    padding: 3rem 0;
  }
  
  .mojoy-impact-section h2,
  .mojoy-impact-section h3 {
    color: white !important;
  }
  
  .mojoy-testimonial {
    background-color: var(--mojoy-neutral-medium);
    padding: 2rem;
    border-radius: var(--mojoy-border-radius);
    border-left: 4px solid var(--mojoy-secondary);
    font-style: italic;
    margin: 2rem 0;
  }
  
  /* --------------------------------------------------------------------------
     RESPONSIVE
     -------------------------------------------------------------------------- */
  @media (max-width: 768px) {
    .mojoy-hero-title {
      font-size: 2rem;
    }
  
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.5rem; }
  
    .wp-block-button__link,
    .button,
    .kadence-button {
      padding: 10px 24px !important;
      font-size: 0.9rem;
    }
  }
  
  /* --------------------------------------------------------------------------
     KADENCE BLOCKS
     -------------------------------------------------------------------------- */
  .wp-block-kadence-rowlayout {
    margin-bottom: 0;
  }
  
  .wp-block-kadence-advancedheading {
    font-family: var(--mojoy-font-primary) !important;
  }
  
  .wp-block-kadence-iconlist .kt-svg-icon-list-item-wrap {
    color: var(--mojoy-neutral-dark);
  }
  
  .wp-block-kadence-iconlist .kt-svg-icon-list-single svg {
    fill: var(--mojoy-secondary);
  }
  
  /* --------------------------------------------------------------------------
     UTILITIES
     -------------------------------------------------------------------------- */
  .mojoy-text-primary { color: var(--mojoy-primary) !important; }
  .mojoy-text-secondary { color: var(--mojoy-secondary) !important; }
  .mojoy-text-accent { color: var(--mojoy-accent) !important; }
  
  .mojoy-bg-light { background-color: var(--mojoy-neutral-light) !important; }
  .mojoy-bg-medium { background-color: var(--mojoy-neutral-medium) !important; }
  
  .mojoy-section-padding { padding: 4rem 0; }
  .mojoy-small-padding { padding: 2rem 0; }
  
  .mojoy-subtitle {
    font-size: 1.2rem;
    color: var(--mojoy-neutral-dark);
    font-weight: 400;
    margin-bottom: 2rem;
  }
  
  .mojoy-highlight {
    background: linear-gradient(120deg, var(--mojoy-secondary) 0%, var(--mojoy-secondary) 100%);
    background-size: 100% 0.2em;
    background-repeat: no-repeat;
    background-position: 0 88%;
    padding: 0 4px;
  }

  /* Custom CSS to override input field background color */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    background-color: #ffffff !important; /* Set background to white */
    color: #000000 !important; /* Ensure text is readable */
}

/* Custom CSS for WooCommerce Order Review section */
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order {
    background-color: #ffffff !important;
    color: #000000 !important; /* Ensure text is readable */
}

/* Custom CSS for WooCommerce Info messages (e.g., "Have a coupon?") */
.woocommerce-info {
  /* background-color: #ffffff !important; */
  /* border-color: #e0e0e0 !important; */ /* Optional: adjust border color if needed */
  color: #000000 !important; /* Ensure text is readable */
}

/* Specific fix for buttons on the cart page */
.woocommerce-cart .button,
.woocommerce-cart button.button,
.woocommerce-cart input[type="submit"].button {
    height: 45px !important; /* Adjust height as needed */
    line-height: 1 !important; /* Adjust line-height as needed */
    box-sizing: border-box; /* Ensure padding and border are included in height */
    display: inline-flex !important; /* Use flexbox for vertical alignment */
    align-items: center !important; /* Center content vertically */
    justify-content: center !important; /* Center content horizontally */
    padding: 12px 32px !important; /* Ensure proper padding */
}

/* Specific fix for the Proceed to Checkout button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex !important; /* Make it a flex container and take full width */
    width: 100% !important;
}

/* Fix for spacing between coupon form and update cart */
.woocommerce-cart .actions {
    margin-top: 20px; /* Add space above the update cart button */
}

/* Fix for coupon form alignment */
.woocommerce-cart .coupon {
  display: flex;
  align-items: center;
  gap: 10px; /* Adds space between input and button */
}

.woocommerce-cart .coupon .input-text {
  flex-grow: 1; /* Allows input to take available space */
}

.woocommerce-cart .coupon .button {
  flex-shrink: 0; /* Prevents button from shrinking */
}
  