/* Premium Custom Header Styles */

:root {
    --ayush-primary: #008248;
    --ayush-primary-hover: #005f33;
    --ayush-bg: #ffffff;
    --ayush-text: #1a3020;
    --ayush-text-light: #5a6e60;
    --ayush-border: #e2e8f0;
    --ayush-shadow: rgba(0, 0, 0, 0.05);
}

/* Hide default Astra header to avoid double-header if remove_action fails */
.site-header, #masthead, .main-header-bar, .ast-primary-header-bar {
    display: none !important;
}

.ayush-header {
    background: var(--ayush-bg);
    border-bottom: 1px solid var(--ayush-border);
    box-shadow: 0 2px 15px var(--ayush-shadow);
    position: sticky;
    top: 0;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ayush-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Brand */
.ayush-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 12px;
}

.ayush-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.ayush-default-logo-icon {
    font-size: 32px;
}

.ayush-site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ayush-text);
    white-space: nowrap;
}

/* Navigation */
.ayush-navigation {
    display: flex;
    align-items: center;
}

.ayush-menu-list {
    display: flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 28px;
}

.ayush-menu-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.ayush-menu-list a {
    color: var(--ayush-text-light);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.ayush-menu-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ayush-primary);
    transition: width 0.3s ease;
}

.ayush-menu-list a:hover,
.ayush-menu-list .current-menu-item > a,
.ayush-menu-list .current-post-parent > a {
    color: var(--ayush-primary) !important;
}

.ayush-menu-list a:hover::after,
.ayush-menu-list .current-menu-item > a::after {
    width: 100%;
}

/* Actions */
.ayush-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Woo Cart */
.ayush-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f7f5;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none !important;
    color: var(--ayush-text) !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.ayush-cart-btn:hover {
    background: #e9f0eb;
    transform: translateY(-1px);
}

.ayush-cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ayush-cart-icon {
    width: 20px;
    height: 20px;
    color: var(--ayush-text);
}

.ayush-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--ayush-primary);
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Search */
.ayush-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ayush-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.ayush-search-toggle:hover {
    background: #f4f7f5;
    color: var(--ayush-primary);
}

.ayush-search-icon {
    width: 20px;
    height: 20px;
}

/* Hamburger */
.ayush-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100000;
}

.ayush-hamburger .ayush-bar {
    height: 2px;
    width: 100%;
    background-color: var(--ayush-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Search Overlay & Drawer */
.ayush-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999999;
    backdrop-filter: blur(4px);
}

.ayush-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ayush-search-drawer {
    position: absolute;
    top: -300px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 40px 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.ayush-search-overlay.active .ayush-search-drawer {
    top: 0;
}

.ayush-search-close {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--ayush-text-light);
    line-height: 1;
}

.ayush-search-close:hover {
    color: var(--ayush-primary);
}

.ayush-search-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ayush-search-content h3 {
    margin-bottom: 15px;
    color: var(--ayush-text);
    font-size: 18px;
}

.ayush-search-content form {
    display: flex;
    gap: 8px;
}

.ayush-search-content input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--ayush-border);
    border-radius: 30px;
    outline: none;
    font-size: 15px;
}

.ayush-search-content input[type="search"]:focus {
    border-color: var(--ayush-primary);
}

.ayush-search-content input[type="submit"] {
    background: var(--ayush-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ayush-search-content input[type="submit"]:hover {
    background: var(--ayush-primary-hover);
}

/* Side Cart Drawer */
.ayush-cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 9999998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.ayush-cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ayush-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 385px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ayush-cart-drawer.active {
    transform: translateX(0);
}

.ayush-cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--ayush-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ayush-cart-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ayush-text);
}

.ayush-cart-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--ayush-text-light);
    line-height: 1;
    padding: 0 5px;
}

.ayush-cart-drawer-close:hover {
    color: var(--ayush-primary);
}

.ayush-cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

/* Custom Mini Cart Layout (Spacious, Minimalist) */
.ayush-mini-cart-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ayush-cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--ayush-border);
    padding-bottom: 15px;
    position: relative;
}

.ayush-cart-item-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ayush-border);
}

.ayush-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ayush-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ayush-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ayush-text);
    margin-right: 20px;
}

.ayush-cart-item-title a {
    color: var(--ayush-text) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.ayush-cart-item-title a:hover {
    color: var(--ayush-primary) !important;
}

.ayush-cart-item-price {
    font-size: 14px;
    color: var(--ayush-primary);
    font-weight: 600;
}

.ayush-cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--ayush-text-light) !important;
    font-size: 20px;
    text-decoration: none !important;
    line-height: 1;
    transition: color 0.2s;
}

.ayush-cart-item-remove:hover {
    color: #e53e3e !important;
}

/* Quantity Adjuster Styling */
.ayush-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--ayush-border);
    border-radius: 20px;
    width: fit-content;
    overflow: hidden;
    margin-top: 5px;
    background: #fff;
}

.ayush-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 26px;
    cursor: pointer;
    font-size: 16px;
    color: var(--ayush-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    outline: none !important;
}

.ayush-qty-btn:hover {
    background: #f4f7f5;
    color: var(--ayush-primary);
}

.ayush-qty-input {
    width: 32px;
    height: 26px;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ayush-text);
    -moz-appearance: textfield;
    outline: none !important;
    pointer-events: none; /* Make input readonly to force button interaction */
    background: #fff;
    padding: 0;
}

.ayush-qty-input::-webkit-outer-spin-button,
.ayush-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Subtotal and Actions */
.ayush-cart-totals {
    border-top: 2px solid var(--ayush-border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ayush-cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: var(--ayush-text);
}

.ayush-cart-subtotal-row .amount {
    color: var(--ayush-primary);
}

.ayush-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ayush-cart-actions .button {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ayush-cart-actions .button.view-cart {
    background: #f4f7f5;
    color: var(--ayush-text) !important;
}

.ayush-cart-actions .button.view-cart:hover {
    background: #e9f0eb;
}

.ayush-cart-actions .button.checkout {
    background: var(--ayush-primary);
    color: #fff !important;
    border: none;
}

.ayush-cart-actions .button.checkout:hover {
    background: var(--ayush-primary-hover);
}

/* Empty Cart View */
.ayush-empty-cart-container {
    text-align: center;
    padding: 40px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ayush-empty-cart-icon {
    font-size: 48px;
}

.ayush-empty-cart-message {
    color: var(--ayush-text-light);
    font-size: 15px;
    margin: 0;
}

/* Loading overlay for cart updates */
.ayush-cart-drawer-items.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .ayush-hamburger {
        display: flex;
    }

    .ayush-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--ayush-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 40px;
        transition: left 0.4s ease;
        border-top: 1px solid var(--ayush-border);
        box-shadow: 0 10px 15px var(--ayush-shadow);
        box-sizing: border-box;
    }

    .ayush-navigation.active {
        left: 0;
    }

    .ayush-menu-list {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .ayush-menu-list a {
        display: block;
        font-size: 18px;
        width: 100%;
        padding: 10px 0;
    }

    .ayush-menu-list a::after {
        display: none;
    }

    /* Hamburger Animation to 'X' */
    .ayush-hamburger.active .ayush-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .ayush-hamburger.active .ayush-bar:nth-child(2) {
        opacity: 0;
    }
    .ayush-hamburger.active .ayush-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hide cart subtotal price on mobile devices (600px and under) */
@media (max-width: 600px) {
    .ayush-cart-subtotal {
        display: none !important;
    }

    .ayush-cart-btn {
        padding: 8px 12px;
    }
}

/* --- Homepage Hero --- */

/* Hide the old broken/overlapping banner-image hero section (kept in the page data, just hidden) */
.elementor-element-26426f4 {
    display: none !important;
}

/* This green icon-strip section used a negative top margin to overlap the old
   fixed-height banner image. Our new hero's height is content-based, so that
   negative margin now just eats the hero's bottom spacing and makes it look
   glued together. Cancel it and let normal spacing do the job instead. */
.elementor-element-3d36450 {
    margin-top: 0 !important;
}

.ayush-home-hero {
    background: #f6f8f3;
    overflow: hidden;
}

.ayush-home-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
}

.ayush-home-hero-text {
    max-width: 560px;
}

.ayush-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef3ea;
    color: var(--ayush-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.ayush-hero-heading {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--ayush-text);
}

.ayush-hero-heading-accent,
.ayush-hero-heading span:first-child {
    display: block;
    color: var(--ayush-primary);
}

.ayush-hero-heading span:last-child {
    display: block;
}

.ayush-hero-subtext {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ayush-text-light);
    margin: 0 0 32px;
    max-width: 480px;
}

.ayush-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.ayush-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 2px solid transparent;
}

.ayush-hero-btn-primary {
    background: var(--ayush-primary);
    color: #ffffff !important;
}

.ayush-hero-btn-primary:hover {
    background: var(--ayush-primary-hover);
    transform: translateY(-1px);
}

.ayush-hero-btn-secondary {
    background: transparent;
    color: var(--ayush-text) !important;
    border-color: var(--ayush-border);
}

.ayush-hero-btn-secondary:hover {
    border-color: var(--ayush-primary);
    color: var(--ayush-primary) !important;
    transform: translateY(-1px);
}

.ayush-hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.ayush-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ayush-text-light);
}

.ayush-hero-trust-item svg {
    color: var(--ayush-primary);
    flex-shrink: 0;
}

.ayush-home-hero-media {
    display: flex;
    justify-content: center;
}

.ayush-hero-image {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%;
    background-size: cover;
    background-position: right center;
    box-shadow: 0 30px 60px -20px rgba(0, 60, 30, 0.25);
}

@media (max-width: 992px) {
    .ayush-home-hero-inner {
        grid-template-columns: 1fr;
        padding: 48px 24px;
        text-align: center;
    }

    .ayush-home-hero-text {
        max-width: none;
        margin: 0 auto;
    }

    .ayush-hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .ayush-hero-actions,
    .ayush-hero-trust-row {
        justify-content: center;
    }

    .ayush-home-hero-media {
        order: -1;
    }

    .ayush-hero-image {
        max-width: 340px;
    }

    .ayush-hero-heading {
        font-size: 44px;
    }
}

@media (max-width: 600px) {
    .ayush-hero-heading {
        font-size: 34px;
    }

    .ayush-hero-subtext {
        font-size: 15px;
    }

    .ayush-hero-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .ayush-hero-trust-row {
        gap: 16px 20px;
    }

    .ayush-hero-trust-item {
        font-size: 13px;
    }

    .ayush-hero-image {
        max-width: 260px;
    }
}

