/*
 * Chaaya Child Theme global styles
 *
 * This file contains base resets and utility classes.  The majority
 * of styling is handled within components and templates via inline
 * <style> tags to keep related markup and styling together.  Adjust
 * these utilities to suit your design system.
 */

/* Base Reset */
* {
    box-sizing: border-box;
}

:root {
    --chaaya-blue: #0f2541;
    --chaaya-blue-soft: #3a5c94;
    --chaaya-green: #0f6b38;
    --chaaya-green-light: #5bb56c;
    --chaaya-neutral: #f3f5f0;
    --chaaya-muted: #7f8b81;
    --chaaya-primary: var(--chaaya-blue);
    --chaaya-secondary: var(--chaaya-blue-soft);
    --chaaya-header-bg: #ffffff;
    --chaaya-text-dark: #1a1a1a;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Lato', Arial, sans-serif !important;
    line-height: 1.6 !important;
    color: var(--chaaya-text-dark) !important;
    background-color: var(--chaaya-neutral) !important;
}

body.chaaya-brand-chaaya {
    --chaaya-primary: var(--chaaya-blue);
    --chaaya-secondary: var(--chaaya-blue-soft);
    --chaaya-header-bg: #ffffff;
}

body.chaaya-brand-prachhaaya {
    --chaaya-primary: var(--chaaya-green);
    --chaaya-secondary: var(--chaaya-green-light);
    --chaaya-header-bg: #f2f7ee;
}

/* Elementor overrides */
.elementor * {
    box-sizing: border-box;
}

.elementor-page .elementor-section {
    margin: 0;
}

/* Remove Elementor's background overlay globally if present */
.elementor-background-overlay { display: none !important; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.3;
    font-weight: 600;
}

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

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--chaaya-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--chaaya-primary);
    text-decoration: underline;
}

/* Buttons */
.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    background-color: var(--chaaya-secondary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--chaaya-primary);
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================
   CUSTOM HEADER STYLES
   ============================================================================= */
.chaaya-header {
    background: var(--chaaya-header-bg);
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: visible;
}
.chaaya-header .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.chaaya-header .site-branding {
    flex: 0 0 auto;
}
.chaaya-header .site-logo img {
    height: 50px;
    width: auto;
}

/* Hide header menu Shop button if present */
.chaaya-header .main-menu a[href*="/shop/"] { display: none !important; }
.chaaya-header .site-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--chaaya-primary);
}
.chaaya-header .site-nav {
    flex: 1;
}
.chaaya-header .main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}
.chaaya-header .main-menu li {
    position: relative;
}
.chaaya-header .main-menu a {
    color: var(--chaaya-text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    transition: color 0.3s ease;
}
.chaaya-header .main-menu a:hover {
    color: var(--chaaya-secondary);
}
.chaaya-header .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--chaaya-text-dark);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background: rgba(15, 37, 65, 0.08);
}
.header-brand-pill--prachhaaya {
    background: rgba(15, 107, 56, 0.12);
    border-color: rgba(15, 107, 56, 0.4);
    color: #0c3f2b;
}
.header-brand-pill--prachhaaya:hover {
    background: var(--chaaya-green);
    color: #ffffff;
    border-color: var(--chaaya-green);
}
.chaaya-header .header-cart {
    position: relative;
    display: flex;
    align-items: center;
    color: #333;
    transition: color 0.3s ease;
}
.chaaya-header .header-cart:hover {
    color: var(--chaaya-primary);
}
.chaaya-header .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--chaaya-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chaaya-header .header-search-toggle {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}
.chaaya-header .header-search-toggle:hover {
    color: #167A41;
}
.chaaya-header .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.chaaya-header .mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}
.chaaya-search-host {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.chaaya-search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: min(360px, 90vw);
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    display: none;
    z-index: 60;
}
.chaaya-search-panel.is-visible {
    display: block;
}
.chaaya-search-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.chaaya-search-panel__header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--chaaya-primary);
}
.chaaya-search-panel__brand {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--chaaya-muted);
}
.chaaya-search-panel__close {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #555;
    padding: 0;
}
.chaaya-search-panel__form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.chaaya-search-panel__form input[type="search"] {
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    font-size: 0.95rem;
}
.chaaya-search-panel__form button {
    border-radius: 12px;
    padding: 10px 16px;
    background: var(--chaaya-primary);
    color: #ffffff;
    border: none;
    min-width: 120px;
    font-weight: 600;
}
.chaaya-search-results {
    max-height: 280px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.chaaya-search-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fbfbfb;
    min-height: 160px;
    text-decoration: none;
    color: inherit;
}
.chaaya-search-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}
.chaaya-search-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--chaaya-text-dark);
    margin: 0;
}
.chaaya-search-card__meta {
    font-size: 0.8rem;
    color: var(--chaaya-muted);
}
.chaaya-search-card__brand {
    font-size: 0.75rem;
    color: var(--chaaya-secondary);
}
.chaaya-search-card__price {
    font-size: 0.85rem;
    color: var(--chaaya-primary);
    font-weight: 600;
}
.chaaya-search-panel__message {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--chaaya-muted);
}

/* =============================================================================
   CUSTOM FOOTER STYLES
   ============================================================================= */
.chaaya-footer {
    background: #2c2c2c;
    color: #ffffff;
    margin-top: 80px;
}
.chaaya-footer .footer-content {
    padding: 60px 0 40px;
}
.chaaya-footer .footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.chaaya-footer h3,
.chaaya-footer h4 {
    color: #ffffff;
    margin-bottom: 20px;
}
.chaaya-footer .footer-description {
    color: #cccccc;
    margin-bottom: 20px;
}
.chaaya-footer .footer-social {
    display: flex;
    gap: 15px;
}
.chaaya-footer .footer-social a {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.chaaya-footer .footer-social a:hover {
    background: #167A41;
    transform: translateY(-3px);
}
.chaaya-footer .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.chaaya-footer .footer-menu li {
    margin-bottom: 10px;
}
.chaaya-footer .footer-menu a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.chaaya-footer .footer-menu a:hover {
    color: #ffffff;
}
.chaaya-footer .contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #cccccc;
}
.chaaya-footer .contact-info li {
    margin-bottom: 15px;
}
.chaaya-footer .contact-info strong {
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}
.chaaya-footer .footer-bottom {
    background: #1a1a1a;
    padding: 20px 0;
    text-align: center;
}
.chaaya-footer .footer-bottom p {
    margin: 5px 0;
    color: #999;
    font-size: 0.9rem;
}
.chaaya-footer .footer-links a {
    color: #999;
    margin: 0 10px;
    text-decoration: none;
}
.chaaya-footer .footer-links a:hover {
    color: #ffffff;
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .chaaya-header .site-nav {
        display: none;
    }
    .chaaya-header .mobile-menu-toggle {
        display: flex;
    }
    .chaaya-header .header-search-toggle {
        display: none;
    }
    .chaaya-footer .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

/* Lists */
ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 2rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #167A41;
}

/* Utility classes */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

/* Spacing utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* Display utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* WooCommerce Global Styles */
.woocommerce-cart,
.woocommerce-checkout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Cart Table */
.woocommerce table.shop_table {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 20px;
}
.woocommerce table.shop_table th {
    background-color: #f5f5f5;
    padding: 15px;
    font-weight: 600;
    text-align: left;
}
.woocommerce table.shop_table td {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}
.woocommerce table.shop_table .product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}
.woocommerce table.shop_table .product-name a {
    color: #167A41;
    font-weight: 600;
}
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    color: #167A41;
    font-weight: 600;
}

/* Cart Actions */
.woocommerce .cart-collaterals {
    margin-top: 30px;
}
.woocommerce .cart_totals {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}
.woocommerce .cart_totals h2 {
    color: #167A41;
    margin-bottom: 20px;
}
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}
.woocommerce .cart_totals .order-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #167A41;
}

/* Checkout Form */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    color: #167A41;
    margin-bottom: 20px;
}
.woocommerce-checkout .form-row {
    margin-bottom: 15px;
}
.woocommerce-checkout label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.woocommerce-checkout .required {
    color: #dc3232;
}

/* Order Review */
.woocommerce-checkout #order_review {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}
.woocommerce-checkout #order_review_heading {
    color: #167A41;
    margin-bottom: 20px;
}

/* Single Product Page */
.single-product .product {
    display: flex;
    gap: 40px;
    margin: 40px auto;
    max-width: 1200px;
}
.single-product .product .woocommerce-product-gallery {
    flex: 1;
}
.single-product .product .summary {
    flex: 1;
}
.single-product .product .product_title {
    color: #167A41;
    margin-bottom: 20px;
}
.single-product .product .price {
    font-size: 1.5rem;
    color: #167A41;
    font-weight: bold;
    margin-bottom: 20px;
}
.single-product .product .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}
.single-product .product .cart {
    margin-top: 20px;
}
.single-product .product .quantity input {
    width: 80px;
    padding: 8px;
    margin-right: 10px;
}

/* =============================================================================
   CART BUTTON & BADGE
   ============================================================================= */
.chaaya-cart-trigger {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.chaaya-cart-trigger:hover {
    color: #167A41;
}
.chaaya-cart-trigger svg {
    width: 24px;
    height: 24px;
}
.chaaya-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #167A41;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}
.chaaya-cart-count:empty {
    display: none;
}

/* =============================================================================
   SIDE CART PANEL
   ============================================================================= */
.chaaya-side-cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}
.chaaya-side-cart.is-open {
    right: 0;
}
.chaaya-side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.chaaya-side-cart-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Cart Header */
.chaaya-cart-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}
.chaaya-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}
.chaaya-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
}
.chaaya-cart-close:hover {
    color: #167A41;
}

/* Cart Body */
.chaaya-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.chaaya-cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.chaaya-cart-empty-state p {
    margin: 0;
    font-size: 1.1rem;
}

/* Cart Items */
.chaaya-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.chaaya-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}
.chaaya-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.chaaya-cart-item__image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}
.chaaya-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chaaya-cart-item__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chaaya-cart-item__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.chaaya-cart-item__name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.chaaya-cart-item__name a:hover {
    color: #167A41;
}
.chaaya-cart-item__price {
    font-size: 0.9rem;
    color: #666;
}
.chaaya-cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chaaya-qty-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.chaaya-qty-btn:hover {
    background: #167A41;
    border-color: #167A41;
    color: #ffffff;
}
.chaaya-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}
.chaaya-cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}
.chaaya-cart-item__subtotal {
    font-weight: 600;
    color: #167A41;
    font-size: 1rem;
}
.chaaya-cart-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    transition: color 0.3s ease;
}
.chaaya-cart-item__remove:hover {
    color: #d32f2f;
}

/* Cart Footer */
.chaaya-cart-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #f9f9f9;
}
.chaaya-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.chaaya-cart-subtotal span:first-child {
    color: #666;
}
.chaaya-cart-subtotal span:last-child {
    font-weight: bold;
    color: #167A41;
    font-size: 1.25rem;
}
.chaaya-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}
.chaaya-btn-primary {
    background: #167A41;
    color: #ffffff;
}
.chaaya-btn-primary:hover {
    background: #145e31;
    color: #ffffff;
}
.chaaya-btn-secondary {
    background: #ffffff;
    color: #167A41;
    border: 2px solid #167A41;
}
.chaaya-btn-secondary:hover {
    background: #167A41;
    color: #ffffff;
}

/* Responsive utilities */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .single-product .product {
        flex-direction: column;
    }
    
    .woocommerce table.shop_table {
        font-size: 0.9rem;
    }
    
    .woocommerce table.shop_table td,
    .woocommerce table.shop_table th {
        padding: 10px 5px;
    }
    
    .chaaya-side-cart {
        width: 100%;
        right: -100%;
    }
    
    .chaaya-cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 10px;
    }
    
    .chaaya-cart-item__image {
        width: 60px;
        height: 60px;
    }
}

/* =============================================================================
   PRODUCT LISTING GRID (Homepage & Loops)
   ============================================================================= */
.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}
.products li.product {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}
.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.products li.product .woocommerce-LoopProduct-link img {
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 8px;
    min-height: 42px;
    color: #0f2541;
}
.products li.product .price {
    margin-top: auto;
    font-weight: 700;
    color: #167A41;
    font-size: 0.95rem;
}
.products li.product .star-rating { margin: 4px 0 8px; }
.products li.product .button {
    margin-top: 12px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 6px;
}

.chaaya-product-authors {
    font-size: 0.85rem;
    color: var(--chaaya-muted);
    line-height: 1.4;
    margin-top: 6px;
}

.chaaya-product-authors a {
    color: var(--chaaya-primary);
    text-decoration: none;
}

.chaaya-product-authors a:hover {
    text-decoration: underline;
}

.products li.product.chaaya-brand-chaaya .woocommerce-loop-product__title {
    color: #4664aa;
}
.products li.product.chaaya-brand-chaaya .button {
    background: #4664aa;
    border: none;
    color: #fff;
}
.products li.product.chaaya-brand-prachhaaya .woocommerce-loop-product__title {
    color: #24b24b;
}
.products li.product.chaaya-brand-prachhaaya .button {
    background: #24b24b;
    border: none;
    color: #fff;
}

/* Column width helpers */
.products.columns-6 li.product { flex: 1 1 calc(16.666% - 28px); max-width: calc(16.666% - 28px); }
.products.columns-5 li.product { flex: 1 1 calc(20% - 28px); max-width: calc(20% - 28px); }
.products.columns-4 li.product { flex: 1 1 calc(25% - 28px); max-width: calc(25% - 28px); }
.products.columns-3 li.product { flex: 1 1 calc(33.333% - 28px); max-width: calc(33.333% - 28px); }
.products.columns-2 li.product { flex: 1 1 calc(50% - 28px); max-width: calc(50% - 28px); }
.products.columns-1 li.product { flex: 1 1 100%; max-width: 100%; }

@media (max-width: 1200px) {
    .products.columns-6 li.product { flex: 1 1 calc(20% - 28px); max-width: calc(20% - 28px); }
}
@media (max-width: 1024px) {
    .products.columns-6 li.product,
    .products.columns-5 li.product { flex: 1 1 calc(25% - 28px); max-width: calc(25% - 28px); }
}
@media (max-width: 900px) {
    .products.columns-6 li.product,
    .products.columns-5 li.product,
    .products.columns-4 li.product { flex: 1 1 calc(33.333% - 28px); max-width: calc(33.333% - 28px); }
}
@media (max-width: 680px) {
    .products.columns-6 li.product,
    .products.columns-5 li.product,
    .products.columns-4 li.product,
    .products.columns-3 li.product { flex: 1 1 calc(50% - 20px); max-width: calc(50% - 20px); }
    .products { gap: 20px; }
}
@media (max-width: 480px) {
    .products.columns-6 li.product,
    .products.columns-5 li.product,
    .products.columns-4 li.product,
    .products.columns-3 li.product,
    .products.columns-2 li.product { flex: 1 1 100%; max-width: 100%; }
}

/* Badges & sale flash tweaks */
.products li.product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.products li.product .added_to_cart { display: none; }

/* =============================================================================
     MULTI-STEP CHECKOUT
     ============================================================================= */
.chaaya-checkout-wrapper { margin:40px auto; max-width:1200px; }
.chaaya-checkout-grid { display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px; }
.chaaya-checkout-steps { display:flex; flex-direction:column; gap:30px; }
.chaaya-step { background:#ffffff; border:1px solid #e2e6ea; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.05); padding:28px; position:relative; }
.chaaya-step-header { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.chaaya-step-number { width:34px; height:34px; background:#167A41; color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; border-radius:50%; font-size:0.9rem; }
.chaaya-step-body .form-row { margin-bottom:16px; }
.chaaya-step-actions { display:flex; justify-content:space-between; margin-top:20px; gap:18px; }
.chaaya-checkout-summary { background:#0f2541; color:#fff; border-radius:12px; padding:30px; display:flex; flex-direction:column; gap:24px; }
.chaaya-checkout-summary h3 { margin:0 0 10px; font-size:1.35rem; color:#fff; }
.chaaya-summary-items { display:flex; flex-direction:column; gap:16px; max-height:360px; overflow:auto; padding-right:6px; }
.chaaya-summary-item { display:flex; align-items:center; gap:16px; background:#122d4d; padding:10px 12px; border-radius:8px; }
.chaaya-summary-thumb img { width:58px; height:58px; object-fit:cover; border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,0.4); }
.chaaya-summary-details { flex:1; }
.chaaya-summary-name { margin:0 0 4px; font-size:0.85rem; font-weight:600; line-height:1.25; }
.chaaya-summary-meta { margin:0; font-size:0.75rem; opacity:0.8; }
.chaaya-summary-price { font-weight:700; font-size:0.85rem; }
.chaaya-summary-totals p { margin:6px 0; font-size:0.85rem; }
.chaaya-summary-totals strong { font-weight:600; }
.chaaya-summary-note { font-size:0.7rem; opacity:0.8; }
.chaaya-step[hidden] { display:none !important; }
button.chaaya-step-next, button.chaaya-step-prev { flex:1; }
#order_review { background:#ffffff; border:1px solid #e2e6ea; border-radius:10px; padding:20px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { font-size:0.85rem; }
.woocommerce-checkout-payment { margin-top:12px; }
.woocommerce-checkout-payment .payment_methods > li { background:#f5f7f9; padding:14px 16px; border-radius:8px; margin-bottom:10px; }
.woocommerce-checkout-payment .payment_methods > li input { margin-right:6px; }
.woocommerce-checkout-payment .place-order { margin-top:20px; }

.tk-cart-summary {
    background: var(--chaaya-primary);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(15, 37, 65, 0.25);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tk-cart-summary__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tk-cart-summary__heading h3 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}
.tk-cart-summary__count {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 999px;
}
.tk-cart-summary-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 380px;
    overflow: auto;
    padding-right: 6px;
}
.tk-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}
.tk-cart-thumb img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
}
.tk-cart-body {
    flex: 1;
    min-width: 0;
}
.tk-cart-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
}
.tk-cart-title a {
    color: inherit;
    text-decoration: none;
}
.tk-cart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.85;
    gap: 12px;
}
.tk-cart-item__remove {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}
.tk-cart-item__remove:hover {
    background: rgba(255, 255, 255, 0.35);
}
.tk-cart-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
}
.tk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.95;
}
.tk-summary-row--discount span {
    color: #ffe1e1;
}
.tk-summary-row--total {
    font-size: 1rem;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 8px;
}
.tk-cart-summary-note {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 960px) {
    .chaaya-checkout-grid { grid-template-columns: 1fr; }
    .chaaya-checkout-summary { order:-1; margin-bottom:30px; }
}
@media (max-width: 580px) {
    .chaaya-step { padding:20px; }
    .chaaya-checkout-summary { padding:22px; }
}

@media (max-width: 768px) {
    .tk-cart-summary {
        padding: 22px;
    }

    .tk-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tk-cart-item__remove {
        align-self: flex-end;
    }
}

/* Moved from style.css */
/* =====================
	Single Book Layout
	===================== */
.chaaya-single-book.wrapper {max-width:1200px;margin:40px auto;padding:0 20px;}
.chaaya-single-book .book-layout {display:grid;grid-template-columns:400px 1fr;gap:40px;align-items:flex-start;}
.chaaya-single-book .book-cover img {width:100%;height:auto;box-shadow:0 4px 16px rgba(0,0,0,0.15);border:1px solid #e0e0e0;border-radius:4px;}
.chaaya-single-book .book-title {font-size:2rem;margin:0 0 10px;font-weight:700;line-height:1.2;}
.chaaya-single-book .book-authors {margin:0 0 15px;color:#167A41;font-weight:600;}
.chaaya-single-book .book-purchase {display:flex;align-items:center;gap:20px;margin:15px 0 25px;}
.chaaya-single-book .book-price {font-size:1.5rem;font-weight:700;color:#167A41;}
.chaaya-single-book .book-cart form {display:flex;gap:10px;align-items:center;}
.chaaya-single-book .book-meta {list-style:none;margin:0 0 25px;padding:0;columns:2;column-gap:40px;}
.chaaya-single-book .book-meta li {margin:0 0 8px;font-size:.95rem;}
.chaaya-single-book .book-description {line-height:1.7;font-size:1rem;margin-top:10px;}
.chaaya-single-book .related-books {margin:60px 0 20px;}
.chaaya-single-book .related-books h2 {font-size:1.6rem;margin:0 0 25px;position:relative;padding-bottom:8px;}
.chaaya-single-book .related-books h2:after {content:"";position:absolute;left:0;bottom:0;width:60px;height:3px;background:#167A41;border-radius:2px;}
.chaaya-single-book .related-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:25px;}
.chaaya-single-book .related-grid .product {background:#fff;border:1px solid #ececec;border-radius:4px;overflow:hidden;transition:.3s;}
.chaaya-single-book .related-grid .product:hover {box-shadow:0 4px 14px rgba(0,0,0,0.12);transform:translateY(-4px);}
.chaaya-single-book .related-grid .woocommerce-loop-product__title {font-size:.95rem;padding:10px 12px;margin:0;}
.chaaya-single-book .related-grid .price {padding:0 12px 12px;font-size:.9rem;color:#167A41;font-weight:600;}
@media (max-width:1024px){.chaaya-single-book .book-layout{grid-template-columns:320px 1fr;gap:30px;} }
@media (max-width:768px){.chaaya-single-book .book-layout{grid-template-columns:1fr;} .chaaya-single-book .book-cover img{max-width:340px;margin:0 auto;display:block;} .chaaya-single-book .book-meta{columns:1;} }
@media (max-width:480px){.chaaya-single-book.wrapper{padding:0 15px;} .chaaya-single-book .book-title{font-size:1.6rem;} }

/* Single Book Page Redesign */
.chaaya-single-book-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.chaaya-single-book {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.book-cover-column {
    flex: 0 0 35%;
}

.book-cover-image .wp-post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.book-details-column {
    flex: 1;
}

.book-author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.book-author-name a {
    color: #167A41;
    text-decoration: none;
}

.book-author-name a:hover {
    text-decoration: underline;
}

.book-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.book-price-and-cart {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.book-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #167A41;
}

.book-price-and-cart .quantity {
    display: none; /* Hiding the quantity selector for a cleaner look */
}

.book-price-and-cart .single_add_to_cart_button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #167A41;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.book-price-and-cart .single_add_to_cart_button:hover {
    background-color: #145e31;
}

.book-sharing {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-link {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    transition: opacity 0.3s;
}
.share-link:hover {
    opacity: 0.8;
}

.share-link.whatsapp { background-color: #25D366; }
.share-link.email { background-color: #777; }

.book-details-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.book-meta-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #444;
}

.book-meta-details li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.book-meta-details li strong {
    font-weight: 600;
    margin-right: 8px;
}

.book-lower-content {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.book-description-section,
.book-author-bio-section {
    margin-bottom: 40px;
}

.book-lower-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #167A41;
    padding-bottom: 10px;
    display: inline-block;
}

.book-description-content,
.author-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.author-bio-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-photo img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.read-more-author {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #167A41;
    text-decoration: none;
}
.read-more-author:hover {
    text-decoration: underline;
}

.related-books-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.related-books-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.related-books-section .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

/* Custom Checkout Page */
.chaaya-checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.chaaya-checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .chaaya-checkout-grid {
        grid-template-columns: 55% 1fr;
    }
}

.checkout-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #167A41;
    padding-bottom: 10px;
}

.chaaya-checkout-left .woocommerce-billing-fields {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.chaaya-checkout-left .form-row {
    padding: 0;
    margin-bottom: 15px;
}

.chaaya-checkout-left .form-row label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.chaaya-checkout-left .input-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.chaaya-checkout-left .input-text:focus {
    border-color: #167A41;
    outline: none;
}

.chaaya-checkout-right .order-summary-box,
.chaaya-checkout-right .payment-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#order_review_heading, #payment_heading {
    display: none;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    font-weight: 700;
}

.woocommerce-checkout-payment {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_method label {
    font-weight: 600;
}

.payment_box {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #eee;
}

#place_order {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #167A41;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#place_order:hover {
    background-color: #145e31;
}

/*
 * This file intentionally contains no additional styling.  Global CSS is enqueued from
 * assets/css/main.css via the enqueue.php loader.  Component CSS is embedded
 * directly within each PHP component file to keep related markup and styles
 * together.  JavaScript for each component lives in a sibling .js file.
 */
