/*
Theme Name: Elias
Author: CGN
Description: A lightweight, modular, and performance-first WooCommerce theme built for speed and seamless custom integrations.
Version: 1.1.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elias
*/

:root {
    --elias-container-width: 1200px;
    --elias-primary-color: #046bd2;
    --elias-text-color: #333333;
    --elias-link-color: #046bd2;
    --elias-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--elias-body-font);
    color: var(--elias-text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

.elias-container {
    max-width: var(--elias-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header */
.site-header {
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.site-header .elias-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    text-decoration: none;
    color: #111;
    font-weight: 700;
    font-size: 1.5rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--elias-text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--elias-link-color);
}

/* Content Layout */
.site-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.site-content.no-sidebar {
    grid-template-columns: 1fr;
}

article {
    margin-bottom: 40px;
}

article h2 a {
    text-decoration: none;
    color: #111;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    border-top: 1px solid #eaeaea;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Header Actions & WooCommerce Header Elements
   ========================================================================== */

.header-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
}

/* Wrapper containing the account and cart action buttons */
.elias-header-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

/* 1. My Account User Link & Icon */
.elias-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--elias-text-color, #111111);
    text-decoration: none;
    padding: 6px;
    line-height: 1;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.elias-account-link:hover {
    color: var(--elias-primary-color, #046bd2);
}

.elias-account-icon {
    display: block;
    width: 22px;
    height: 22px;
}

/* 2. Mini-Cart Trigger & Badge Counter */
.elias-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--elias-text-color, #111111);
    text-decoration: none;
    padding: 6px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.elias-cart-link:hover {
    color: var(--elias-primary-color, #046bd2);
}

.elias-cart-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.elias-cart-icon svg {
    display: block;
}

.elias-cart-count {
    background-color: var(--elias-primary-color, #046bd2);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 1;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -2px;
    right: -4px;
    padding: 0 4px;
    pointer-events: none;
}

/* Product Cards & Buttons */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.woocommerce ul.products li.product img {
    margin: 0 0 15px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--elias-primary-color);
    color: #fff;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 600;
}

.woocommerce span.onsale {
    background-color: var(--elias-primary-color);
    border-radius: 3px;
    padding: 4px 8px;
    min-height: auto;
    line-height: 1;
}

/* ==========================================================================
   Slide-Out Mini-Cart Drawer
   ========================================================================== */

body.elias-drawer-open {
    overflow: hidden;
}

/* Backdrop */
.elias-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.elias-drawer-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Off-canvas Panel */
.elias-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.elias-cart-drawer.is-open {
    transform: translateX(0);
}

/* Drawer Header */
.elias-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.elias-drawer-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.elias-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
    transition: color 0.2s;
}

.elias-drawer-close:hover {
    color: #111;
}

/* Drawer Body & Native WooCommerce Mini-Cart Overrides */
.elias-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.elias-mini-cart-inner .woocommerce-mini-cart__empty-message {
    text-align: center;
    margin: 40px 0;
    color: #777;
}

.elias-mini-cart-inner ul.cart_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elias-mini-cart-inner ul.cart_list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f6f6f6;
    position: relative;
}

.elias-mini-cart-inner ul.cart_list li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    float: none;
    margin: 0;
}

.elias-mini-cart-inner ul.cart_list li a.remove {
    position: static;
    order: 3;
    margin-left: auto;
    color: #ff4d4f !important;
    background: transparent !important;
    font-size: 1.2rem;
}

.elias-mini-cart-inner p.woocommerce-mini-cart__total {
    padding: 16px 0;
    border-top: 2px solid #eaeaea;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
}

.elias-mini-cart-inner p.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.elias-mini-cart-inner p.woocommerce-mini-cart__buttons a.button {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
}

.elias-mini-cart-inner p.woocommerce-mini-cart__buttons a.button.checkout {
    background-color: var(--elias-primary-color);
    color: #fff;
}

/* ==========================================================================
   Elementor Compatibility & Reset Rules
   ========================================================================== */

/* Full-width container removal */
.elias-elementor-fullwidth-content,
body.elias-elementor-active .site-content.no-sidebar {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

body.elias-elementor-canvas {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* Ensure Elementor stretched sections span 100vw cleanly */
body.elias-elementor-active .elementor-section.elementor-section-stretched {
    max-width: 100vw;
    left: 0;
}

/* Remove default entry title margin collisions */
.elias-elementor-active .entry-header {
    display: none;
}

/* ==========================================================================
   Header, Navigation & Off-Canvas Layout Fixes
   ========================================================================== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    z-index: 100;
}

.site-header .elias-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Prevent Logo from shrinking */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 140px;
}

.site-branding a.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-branding img.custom-logo {
    display: block;
    width: var(--elias-logo-width, 202px) !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}

/* Header Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 1;
}

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

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--elias-text-color, #333);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: var(--elias-link-color, #046bd2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #111;
}

/* Header Cart Link */
.header-cart-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.elias-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #111;
    text-decoration: none;
    padding: 8px;
    cursor: pointer;
}

.elias-cart-count {
    background-color: var(--elias-primary-color, #046bd2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 4px;
}

/* ==========================================================================
   Mobile Responsive Navigation & Off-Canvas (Breakpoint Driven via Dynamic CSS)
   ========================================================================== */
.main-navigation-inner:not(.is-visible) {
    display: none;
}

.main-navigation-inner.is-visible {
    display: block;
}

/* ==========================================================================
   Modern & Responsive WooCommerce Shop Layout
   ========================================================================== */

/* 1. Shop Header & Breadcrumb Clean Up */
.woocommerce-page .woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 12px;
}

.woocommerce-page .woocommerce-breadcrumb a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-page .woocommerce-breadcrumb a:hover {
    color: var(--elias-primary-color, #046bd2);
}

.woocommerce-page .woocommerce-products-header .page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.02em;
    margin: 0 0 25px 0;
}

/* 2. Controls Bar (Result Count & Sorting Dropdown) */
.woocommerce-page .woocommerce-notices-wrapper {
    width: 100%;
}

.woocommerce-page .woocommerce-result-count {
    font-size: 0.95rem;
    color: #666666;
    margin: 0;
    float: none !important;
}

.woocommerce-page .woocommerce-ordering {
    float: none !important;
    margin: 0;
}

.woocommerce-page .woocommerce-ordering select {
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 36px 10px 14px;
    font-size: 0.9rem;
    color: #333333;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: border-color 0.2s ease;
}

.woocommerce-page .woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--elias-primary-color, #046bd2);
}

/* Flex wrapper aligning result-count and sorting dropdown */
.woocommerce-page .site-main {
    display: flex;
    flex-direction: column;
}

.woocommerce-page .woocommerce-result-count,
.woocommerce-page .woocommerce-ordering {
    display: inline-block;
}

@media (min-width: 768px) {
    .woocommerce-page .site-main > .woocommerce-result-count {
        align-self: flex-start;
    }
    .woocommerce-page .site-main > .woocommerce-ordering {
        align-self: flex-end;
        margin-top: -38px;
        margin-bottom: 25px;
    }
}

/* 3. Product Grid Layout (Overrides WooCommerce Floats & Percentages) */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 28px !important;
    margin: 20px 0 50px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* 4. Refined Modern Product Card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #d8d8d8 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07) !important;
}

/* Card Link and Image Frame */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    margin: 0 0 18px 0 !important;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.02);
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--elias-primary-color, #046bd2) !important;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #2b2b2b !important;
    margin-bottom: 18px !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del {
    color: #999999;
    font-weight: 400;
    margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #0d9488;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 18px !important;
    margin-top: auto !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: var(--elias-primary-color, #046bd2) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #0353a4 !important;
    color: #ffffff !important;
}

.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
}

/* Sale Badge */
.woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    margin: 0 !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    min-height: auto !important;
    line-height: 1.3 !important;
    border-radius: 4px !important;
    z-index: 2;
}

/* 5. Mobile & Tablet Responsiveness */
@media (max-width: 600px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .woocommerce-page .woocommerce-ordering {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .woocommerce ul.products li.product img {
        height: 200px !important;
    }
}

/* Header Actions Alignment */
.elias-header-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.elias-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--elias-text-color, #111111);
    text-decoration: none;
    padding: 6px;
    transition: color 0.2s ease;
}

.elias-account-link:hover {
    color: var(--elias-primary-color, #046bd2);
}

.elias-account-icon {
    display: block;
}

/* ==========================================================================
   ELIAS NATIVE SIDE CART DRAWER STYLES
   ========================================================================== */

/* 1. Backdrop Overlay */
.elias-cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 999998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
}

.elias-cart-overlay.elias-open {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2. Side Drawer Container */
.elias-cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 440px !important;
    max-width: 92vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12) !important;
    z-index: 999999 !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: inherit !important;
    color: #1a1a1a !important;
    box-sizing: border-box !important;
}

.elias-cart-drawer *,
.elias-cart-drawer *::before,
.elias-cart-drawer *::after {
    box-sizing: border-box !important;
}

.elias-cart-drawer.elias-open {
    transform: translateX(0) !important;
}

/* 3. Drawer Header */
.ascd-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 28px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}

.ascd-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #111111 !important;
}

.ascd-close-btn {
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333333 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    padding: 0 !important;
}

.ascd-close-btn:hover {
    color: #000000 !important;
    transform: rotate(90deg) !important;
}

/* 4. Body & Scroll Area */
.ascd-body-wrap {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

.ascd-empty-cart {
    padding: 60px 28px !important;
    text-align: center !important;
}

.ascd-empty-cart p {
    font-size: 15px !important;
    color: #666 !important;
    margin-bottom: 24px !important;
}

/* 5. Product List & Items */
.ascd-items-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 28px !important;
}

.ascd-item {
    padding: 24px 0 !important;
    border-bottom: 1px solid #f2f2f2 !important;
}

.ascd-item-main-grid {
    display: grid !important;
    grid-template-columns: 110px 1fr !important;
    gap: 20px !important;
    align-items: center !important;
}

.ascd-item-thumb {
    width: 110px !important;
    height: 100px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    display: block !important;
}

.ascd-item-title {
    margin: 0 0 4px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.ascd-item-title a {
    color: #111111 !important;
    text-decoration: none !important;
}

.ascd-item-meta {
    font-size: 12px !important;
    color: #777777 !important;
    margin-bottom: 6px !important;
}

.ascd-item-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 12px !important;
}

/* 6. Stepper & Actions */
.ascd-actions-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 4px !important;
}

.ascd-stepper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 135px !important;
    height: 38px !important;
    border: 1px solid #111111 !important;
    background: #ffffff !important;
    padding: 0 8px !important;
}

.ascd-qty-btn {
    width: 30px !important;
    height: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #111111 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.ascd-qty-val {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    user-select: none !important;
}

.ascd-plus-sign {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.ascd-secondary-actions {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.ascd-icon-action {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #222222 !important;
    padding: 0 !important;
}

.ascd-icon-action .ascd-icon {
    display: block !important;
    stroke: currentColor !important;
    transition: stroke 0.2s ease, transform 0.15s ease !important;
}

.ascd-action-edit:hover .ascd-icon {
    stroke: var(--elias-primary-color, #046bd2) !important;
    transform: translateY(-1px) !important;
}

.ascd-remove-item:hover .ascd-icon {
    stroke: #e03131 !important;
    transform: translateY(-1px) !important;
}

/* 7. Inline Variation Panel */
.ascd-inline-edit-panel {
    margin-top: 16px !important;
    padding: 16px !important;
    background: #fcfcfc !important;
    border: 1px solid #eaeaea !important;
    border-radius: 4px !important;
}

.ascd-edit-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.ascd-edit-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.ascd-edit-row label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #555 !important;
    text-transform: uppercase !important;
}

.ascd-attr-select {
    width: 100% !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    border-radius: 3px !important;
}

.ascd-edit-buttons {
    display: flex !important;
    gap: 10px !important;
}

/* 8. Circular Tools Bar (True Circles) */
.ascd-tools-bar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 22px 20px !important;
    background: #f7f7f7 !important;
    border-top: 1px solid #ebebeb !important;
    border-bottom: 1px solid #ebebeb !important;
}

.ascd-tools-bar .ascd-tool-circle {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 0 !important;
}

.ascd-tools-bar .ascd-tool-circle:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13) !important;
}

/* 9. Slide-Down Tool Panels (Note, Shipping, Coupon) */
.ascd-tool-panel {
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 24px 28px !important;
}

.ascd-panel-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 14px 0 !important;
}

.ascd-note-form,
.ascd-shipping-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.ascd-note-form textarea {
    width: 100% !important;
    min-height: 100px !important;
    border: 1px solid #222222 !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    outline: none !important;
}

.ascd-coupon-form {
    display: flex !important;
    gap: 8px !important;
}

.ascd-coupon-form input {
    flex: 1 !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #ddd !important;
    outline: none !important;
}

.ascd-field-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.ascd-field-row label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #444 !important;
}

.ascd-field-row input,
.ascd-field-row select.ascd-select {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #222 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    outline: none !important;
}

.ascd-field-half-wrap {
    flex-direction: row !important;
    gap: 12px !important;
}

.ascd-field-half {
    flex: 1 1 50% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

/* 10. Drawer Footer & Buttons */
.ascd-footer {
    padding: 24px 28px !important;
    background: #ffffff !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: auto !important;
}

.ascd-subtotal-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

.ascd-tax-note {
    font-size: 12px !important;
    color: #777777 !important;
    margin: 0 0 16px 0 !important;
}

.ascd-terms-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #666666 !important;
    margin-bottom: 18px !important;
    cursor: pointer !important;
}

.ascd-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.ascd-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px 16px !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.ascd-btn-outline {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
}

.ascd-btn-outline:hover {
    background: #f7f7f7 !important;
}

.ascd-btn-checkout {
    background: #6e7681 !important;
    color: #ffffff !important;
    border: none !important;
}

.ascd-btn-checkout:hover {
    background: #5b626b !important;
}

.ascd-btn-primary {
    background: #111111 !important;
    color: #ffffff !important;
    border: none !important;
}

.ascd-btn-note-save {
    background: #7d7d7d !important;
    color: #ffffff !important;
    border: none !important;
}

.ascd-btn-note-cancel {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1.5px solid #111111 !important;
}

.ascd-shipping-rates-list {
    list-style: none !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    border: 1px solid #eee !important;
}

.ascd-rate-item {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #eee !important;
    font-size: 13px !important;
}

.ascd-rate-item:last-child {
    border-bottom: none !important;
}

/* Ensure button receives the event target instead of SVG shapes */
.ascd-qty-btn,
.ascd-qty-btn *,
.ascd-secondary-actions button,
.ascd-secondary-actions button *,
.ascd-icon-action,
.ascd-icon-action * {
    pointer-events: auto;
}

.ascd-qty-btn svg,
.ascd-qty-btn svg *,
.ascd-icon-action svg,
.ascd-icon-action svg * {
    pointer-events: none !important;
}

/* ==========================================================================
   Elias: Modern WooCommerce My Account Page
   ========================================================================== */

/* 1. Base Layout (Overrides default WC floats) */
.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: var(--elias-container-width, 1200px);
    margin: 40px auto;
    padding: 0 20px;
}

@media (min-width: 992px) {
    .woocommerce-account .woocommerce {
        flex-direction: row;
        align-items: flex-start;
        padding: 0;
    }
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
    display: none !important; /* Remove WC clearfix floats */
}

/* 2. Navigation Sidebar */
.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
}

@media (min-width: 992px) {
    .woocommerce-MyAccount-navigation {
        flex: 0 0 280px;
        position: sticky;
        top: 40px;
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 8px;
    /* Mobile: Horizontal scrollable pills */
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px !important; 
    border-bottom: 1px solid #eaeaea;
}

/* Hide scrollbar for cleaner mobile look */
.woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
        overflow-x: visible;
        border-bottom: none;
        padding-bottom: 0 !important;
    }
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    flex-shrink: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--elias-primary-color, #046bd2);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.2);
}

/* 3. Content Area (Card Styling) */
.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
    .woocommerce-MyAccount-content {
        flex: 1;
        padding: 40px;
    }
}

/* Typography inside Content */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}

.woocommerce-MyAccount-content p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content a {
    color: var(--elias-primary-color, #046bd2);
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* 4. Tables (Orders, Downloads) */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: #f8fafc;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 16px;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none;
}

/* Buttons inside tables */
.woocommerce-MyAccount-content .button {
    background: #f1f5f9;
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.woocommerce-MyAccount-content .button:hover {
    background: var(--elias-primary-color, #046bd2);
    color: #ffffff;
    text-decoration: none;
}

/* 5. Address Cards */
.woocommerce-MyAccount-content .col2-set {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-content .col2-set {
        grid-template-columns: 1fr 1fr;
    }
}

.woocommerce-MyAccount-content .col-1,
.woocommerce-MyAccount-content .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.woocommerce-MyAccount-content address {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-style: normal;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 6. Forms and Inputs */
.woocommerce-MyAccount-content form {
    max-width: 700px;
}

.woocommerce-MyAccount-content .form-row {
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-MyAccount-content input:focus {
    border-color: var(--elias-primary-color, #046bd2);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
    outline: none;
}

.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content .woocommerce-Button {
    background: var(--elias-primary-color, #046bd2);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content .woocommerce-Button:hover {
    background: #035bb3;
}

/* Footer Bar Core Styles */
.site-footer-bar {
    padding: 24px 0;
    font-size: 13.5px;
}

.footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Layout 1: Left / Right Split */
.site-footer-bar.layout-1 .footer-bar-inner {
    justify-content: space-between;
}

/* Layout 2: Centered / Stacked */
.site-footer-bar.layout-2 .footer-bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.site-footer-bar.layout-2 .footer-bar-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Content Resets */
.footer-bar-content p {
    margin: 0;
    line-height: 1.6;
}

/* Footer Menu */
.footer-bar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-bar-menu {
        justify-content: center;
    }
}

/* ==========================================================================
   WooCommerce Checkout Fields - Light Gray Borders & Modern Styling
   ========================================================================== */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    border: 1px solid #d1d5db !important; /* Crisp, lighter gray border */
    background-color: #ffffff !important;
    border-radius: 4px !important;
    color: #1e293b !important;
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Light Gray Hover State */
.woocommerce-checkout .form-row input.input-text:hover,
.woocommerce-checkout .form-row textarea:hover,
.woocommerce-checkout .form-row select:hover,
.woocommerce-checkout .select2-container--default .select2-selection--single:hover {
    border-color: #9ca3af !important;
}

/* Focus State using Theme Primary Color */
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--elias-primary-color, #046bd2) !important;
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.12) !important;
    outline: none !important;
}

/* Optional: Subtly lighten field labels */
.woocommerce-checkout .form-row label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}

/* Ensure primary navigation and submenus inherit the active body font stack */
.main-navigation,
.main-navigation a,
.main-navigation ul li a,
.main-navigation .menu-item a {
    font-family: inherit;
}

/* ==========================================================================
   Elias WooCommerce: Modern My Account Layout
   ========================================================================== */
.woocommerce-account .entry-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #0f172a;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
  margin-bottom: 60px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 24px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a .elias-account-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover .elias-account-nav-icon {
  color: var(--elias-primary-color, #046bd2);
  transform: translateX(2px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a .elias-account-nav-icon {
  color: #ffffff !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 8px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover .elias-account-nav-icon {
  color: #dc2626 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  min-height: 400px;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content > p {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 16px;
}

.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--elias-primary-color, #046bd2);
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
  text-decoration: underline;
}

.elias-account-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.elias-account-profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.elias-account-avatar img {
  border-radius: 50%;
  display: block;
  border: 2px solid #f1f5f9;
}

.elias-account-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.elias-account-email {
  font-size: 13px;
  color: #64748b;
}

.elias-account-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.elias-account-logout-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 10px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: row !important;
    gap: 6px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul li {
    display: inline-block;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 8px 14px !important;
    font-size: 13.5px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px;
    border-radius: 10px;
  }
  .elias-account-profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .elias-account-logout-btn {
    align-self: flex-start;
  }
}

/* =========================================================================
   HAMBURGER TOGGLE: LARGER SVG, VERTICAL ROTATION ON HOVER, MORPH TO X
   ========================================================================= */
#elias-menu-toggle.menu-toggle {
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

#elias-menu-toggle .menu-toggle-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 22px !important;
    line-height: 0;
}

#elias-menu-toggle .elias-hamburger-svg {
    display: block !important;
    width: 28px !important;
    height: 22px !important;
    overflow: visible;
    transform-box: fill-box;
    transform-origin: center !important;
    transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#elias-menu-toggle .elias-hamburger-svg .elias-bar {
    transform-box: fill-box;
    transform-origin: center !important;
    transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.22s ease !important;
}

/* Hover State (when closed): rotate the 3 bars vertical (90deg) */
#elias-menu-toggle[aria-expanded="false"]:hover .elias-hamburger-svg {
    transform: rotate(90deg) !important;
}

/* Open / Active State (when clicked, aria-expanded="true"): morph into X */
#elias-menu-toggle[aria-expanded="true"] .elias-hamburger-svg {
    transform: rotate(0deg) !important;
}

#elias-menu-toggle[aria-expanded="true"] .bar-1 {
    transform: translateY(7px) rotate(45deg) !important;
}

#elias-menu-toggle[aria-expanded="true"] .bar-2 {
    opacity: 0 !important;
}

#elias-menu-toggle[aria-expanded="true"] .bar-3 {
    transform: translateY(-7px) rotate(-45deg) !important;
}