/*
	Theme Name: Hello Elementor Child
	Theme URI: https://elementor.com/hello-theme/
	Description: Hello Elementor Child Theme - Custom design built on top of Hello Elementor.
	Author: Admin
	Author URI: https://elementor.com/
	Template: hello-elementor
	Version: 1.0.0
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor-child
*/

/* ==========================================================================
   Custom Styles Below
   ========================================================================== */

/* --- Aesthetic Enhancements --- */

/* 1. Cinematic Noise Overlay */
.cinematic-noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3. Scroll Reveal Animation */
.gs-reveal {
    --gs-reveal-delay: 0ms;
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
}

.gs-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

.gs-delay-1 {
    --gs-reveal-delay: 100ms;
}

.gs-delay-2 {
    --gs-reveal-delay: 180ms;
}

.gs-delay-3 {
    --gs-reveal-delay: 260ms;
}

.gs-delay-4 {
    --gs-reveal-delay: 340ms;
}

/* 4. Interactive Card Glow */
.glow-interactive {
    position: relative;
}

.glow-inner,
.glow-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Inner ambient glow covering the whole background */
.glow-inner {
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: 0;
}

/* Precise 1.5px border glow using masks */
.glow-overlay {
    padding: 1.5px;
    background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.4), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 10;
}

.glow-interactive:hover .glow-inner,
.glow-interactive:hover .glow-overlay {
    opacity: 1;
}

/* 5. Marquee Refinement */
.marquee-glass {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.02) 80%, transparent 100%);
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(230, 238, 246, 0.30) 20%, rgba(230, 238, 246, 0.30) 80%, transparent 100%) 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* (Atmospheric depth elements are now rendered via Tailwind inline classes in front-page.php) */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

:root {
    /* Exact colors currently in use */
    --ui-white: #f2f2f2;
    --ui-silver: #b8b8b8;
    --ui-text-silver: var(--ui-silver);
    --ui-text-silver-rgb: 184, 184, 184;
    --ui-bg-card: #0a0b10;
    --ui-bg-black: #000000;

    /* Heading Gradient (Untouched) */
    --ui-heading-gradient: linear-gradient(to bottom, #f2f2f2 0%, #666666 100%);
    --ui-font-main: 'Plus Jakarta Sans', 'Instrument Sans', 'Outfit', sans-serif;
}
[id] {
    scroll-margin-top: 120px;
    /* Account for floating header height + offset */
}

body {
    background-color: #000;
    color: var(--ui-text-silver);
    font-family: var(--ui-font-main);
    --footer-reveal-height: 0px;
    --footer-reveal-air: clamp(44px, 5vw, 76px);
}

/* Global footer reveal: page content scrolls over the fixed footer until it is revealed at the end. */
.footer-reveal-spacer {
    display: none;
}

.footer {
    position: relative;
    z-index: 1;
}

body.footer-reveal-ready {
    background: #000000;
}

body.footer-reveal-ready :where(.site-main, main, #content, .page-content, article.page) {
    position: relative;
    z-index: 2;
    background: #000000;
}

/* Polished curtain edge for WooCommerce pages that reveal the footer. */
body.single-product.footer-reveal-ready .site-main,
body.woocommerce-cart.footer-reveal-ready .site-main,
body.woocommerce-checkout.footer-reveal-ready .site-main,
body.woocommerce-order-received.footer-reveal-ready .site-main {
    overflow: hidden;
    border-radius: 0 0 64px 64px;
    border-bottom: 1px solid rgba(224, 234, 244, 0.52);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 2px 20px rgba(214, 226, 238, 0.2),
        0 18px 48px rgba(0, 0, 0, 0.44);
}

body.single-product.footer-reveal-ready .site-main::after,
body.woocommerce-cart.footer-reveal-ready .site-main::after,
body.woocommerce-checkout.footer-reveal-ready .site-main::after,
body.woocommerce-order-received.footer-reveal-ready .site-main::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    pointer-events: none;
    z-index: 20;
    background: linear-gradient(
        90deg,
        rgba(214, 226, 238, 0.58) 0%,
        rgba(224, 234, 244, 0.68) 18%,
        rgba(248, 250, 252, 0.78) 50%,
        rgba(224, 234, 244, 0.68) 82%,
        rgba(214, 226, 238, 0.58) 100%
    );
    box-shadow:
        0 0 12px rgba(238, 245, 252, 0.46),
        0 0 30px rgba(210, 224, 238, 0.3);
}

@media (min-width: 1025px) {
    body.footer-reveal-ready .footer-reveal-spacer {
        display: block;
        height: var(--footer-reveal-height);
        position: relative;
        z-index: 1;
        pointer-events: none;
        background: transparent;
    }

    body.footer-reveal-ready .footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: var(--footer-reveal-height, 620px);
        box-sizing: border-box;
        padding-top: var(--footer-reveal-air) !important;
        z-index: 0;
    }
}

@media (max-width: 1024px) {
    body.single-product.footer-reveal-ready .site-main,
    body.woocommerce-cart.footer-reveal-ready .site-main,
    body.woocommerce-checkout.footer-reveal-ready .site-main,
    body.woocommerce-order-received.footer-reveal-ready .site-main {
        border-radius: 0 0 36px 36px;
    }

    body.footer-reveal-ready {
        --footer-reveal-air: clamp(14px, 3.5vw, 28px);
    }

    body.footer-reveal-ready .footer-reveal-spacer {
        display: block;
        height: calc(var(--footer-reveal-height) + var(--footer-reveal-air));
        position: relative;
        z-index: 1;
        pointer-events: none;
        background: transparent;
    }

    body.footer-reveal-ready .footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        box-sizing: border-box;
        padding-top: var(--footer-reveal-air) !important;
        z-index: 0;
    }
}

html body,
html body .font-sans,
html body .font-roboto,
html body input,
html body button,
html body select,
html body textarea {
    font-family: var(--ui-font-main) !important;
}

html body .eor-container,
html body .eor-container *,
html body .eor-alert,
html body .eor-alert *,
html body .eor-login-form,
html body .eor-login-form *,
html body .eor-registration-form,
html body .eor-registration-form *,
html body .custom-auth-page .eor-container,
html body .custom-auth-page .eor-container *,
html body .custom-checkout-auth-modal .eor-container,
html body .custom-checkout-auth-modal .eor-container *,
html body .asci-contact-section,
html body .asci-contact-section * {
    font-family: var(--ui-font-main) !important;
}

/* --------------------------------------------------------------------------
   Global Header Logo Size Fallback (all pages)
   Keeps logo consistent even when utility classes don't load.
   -------------------------------------------------------------------------- */
.nav-section .logo-wrap img {
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
}

@media (min-width: 768px) {
    .nav-section .logo-wrap img {
        height: 43px !important;
    }
}

/* --------------------------------------------------------------------------
   Disable hover scale on buttons site-wide
   -------------------------------------------------------------------------- */
html body button:hover,
html body .button:hover,
html body a.button:hover,
html body .wp-element-button:hover,
html body input[type="submit"]:hover,
html body input[type="button"]:hover,
html body input[type="reset"]:hover,
html body .primary-btn:hover,
html body .checkout-button:hover,
html body .custom_add_to_cart_btn:hover,
html body .single_add_to_cart_button:hover,
html body .added_to_cart:hover {
    transform: none !important;
    scale: 1 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

/* --- Header & Nav Styles --- */
.nav-section {
    will-change: transform, opacity;
}

.nav-section.is-scroll-hidden {
    transform: translate(-50%, calc(-100% - 32px)) !important;
    opacity: 0;
    pointer-events: none;
}

.nav-link.active .nav-text,
.nav-link:not(.active) .nav-text {
    color: var(--ui-text-silver);
}

/* Menu toggle animations */
.menu-active .bar-1 {
    transform: translateY(7px) rotate(45deg);
    width: 18px !important;
}

.menu-active .bar-2 {
    opacity: 0;
}

.menu-active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
    width: 18px !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- Hero Styles --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterPop {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes beamMove {
    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(350%);
    }
}

.animate-beam {
    animation: beamMove 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* --- ECG Beam Animation --- */
.hero-ecg-beam-wrap {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

.animate-ecg-beam {
    stroke-dasharray: 80, 1000;
    stroke-dashoffset: 80;
    animation: ecgFlow 3.6s linear infinite;
    stroke-width: 2.5;
}

@keyframes ecgFlow {
    /* 0% to 22%: Moderately fast start */
    0% {
        stroke-dashoffset: 80;
    }
    22% {
        stroke-dashoffset: -70;
    }
    /* 22% to 78%: Slow movement through the ECG spikes (The pulse effect) */
    78% {
        stroke-dashoffset: -170;
    }
    /* 78% to 100%: Moderately fast finish */
    100% {
        stroke-dashoffset: -350;
    }
}

.letter {
    animation: letterPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    background: linear-gradient(180deg, #f2f2f2 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.letter:nth-child(1) {
    animation-delay: 0.1s;
}

.letter:nth-child(2) {
    animation-delay: 0.2s;
}

.letter:nth-child(3) {
    animation-delay: 0.3s;
}

.letter:nth-child(4) {
    animation-delay: 0.4s;
}

.letter:nth-child(5) {
    animation-delay: 0.5s;
}

.letter:nth-child(6) {
    animation-delay: 0.6s;
}

.letter:nth-child(7) {
    animation-delay: 0.7s;
}

.letter:nth-child(8) {
    animation-delay: 0.8s;
}

.letter:nth-child(9) {
    animation-delay: 0.9s;
}

.hero-thumb-wrap {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
    opacity: 0;
}

/* --- Footer Styles --- */
.footer-link {
    position: relative;
    display: inline-block;
}

.footer .footer-layout {
    position: relative;
    overflow: hidden;
}

.footer .footer-layout>* {
    position: relative;
    z-index: 1;
}

.footer .footer-middle {
    position: relative;
    isolation: isolate;
    min-height: clamp(250px, 24vw, 340px);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    justify-items: center;
    padding-top: clamp(8px, 1.2vw, 14px);
    padding-bottom: clamp(18px, 2.1vw, 28px);
}

.footer .available-tag-wrap {
    margin-bottom: clamp(8px, 1vw, 14px) !important;
}

.footer .footer-center-logo {
    position: relative;
    width: min(315px, 26vw);
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.footer .footer-center-logo img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.footer .footer-center-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, #ffffff 0%, #666666 100%);
    -webkit-mask-image: var(--footer-logo-mask, url('assets/images/site-logo-footer-cropped.webp'));
    mask-image: var(--footer-logo-mask, url('assets/images/site-logo-footer-cropped.webp'));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 1;
    filter: none;
    transform: translate(28px, -18px);
    pointer-events: none;
}

.footer .footer-contact-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 72px);
    align-self: end;
    margin-top: clamp(8px, 1.2vw, 16px);
    margin-bottom: clamp(18px, 2vw, 28px);
}

.footer .footer-info-block--hello,
.footer .footer-info-block--location {
    width: min(320px, 100%);
    text-align: center;
    align-items: center;
}

.footer .footer-info-block--hello {
    justify-self: start;
    transform: translateX(-26px);
}

.footer .footer-info-block--location {
    justify-self: end;
    transform: translateX(26px);
}

.footer .footer-info-block--hello .footer-info-title,
.footer .footer-info-block--location .footer-info-title {
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    background-image: var(--ui-heading-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.footer .available-tag-text {
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    background-image: var(--ui-heading-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.footer .footer-btn {
    margin: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
}

@media (max-width: 767px) {
    .footer .footer-middle {
        min-height: auto;
        grid-template-rows: auto auto auto;
        gap: 0;
        padding-top: 0;
        padding-bottom: 12px;
    }

    .footer .footer-center-logo {
        width: min(64vw, 220px);
    }

    .footer .footer-center-logo::before {
        transform: none;
    }

    .footer .footer-contact-row {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: clamp(18px, 5vw, 28px);
    }

    .footer .footer-info-block--location,
    .footer .footer-info-block--hello {
        justify-self: center;
        text-align: center;
        width: min(300px, 100%);
        transform: none;
        row-gap: 12px !important;
    }

    .footer .footer-info-block--hello .footer-info-title,
    .footer .footer-info-block--location .footer-info-title {
        font-size: 21px !important;
    }

    .footer .available-tag-text {
        font-size: 21px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .footer .footer-middle {
        min-height: clamp(220px, 30vw, 300px);
        padding-top: clamp(6px, 0.9vw, 12px);
        padding-bottom: clamp(16px, 2vw, 24px);
    }

    .footer .footer-center-logo {
        width: min(320px, 38vw);
        transform: translateX(24px);
    }

    .footer .footer-center-logo::before {
        transform: none;
    }

    .footer .footer-contact-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: clamp(14px, 2.2vw, 24px);
    }

    .footer .footer-info-block--hello,
    .footer .footer-info-block--location {
        width: min(320px, 100%);
        transform: none;
        text-align: center;
        align-items: center;
        row-gap: 12px !important;
    }

    .footer .footer-info-block--hello {
        justify-self: center;
    }

    .footer .footer-info-block--location {
        justify-self: center;
    }

    .footer .footer-info-block--hello .footer-info-title,
    .footer .footer-info-block--location .footer-info-title {
        font-size: 21px !important;
    }

    .footer .footer-contact-row .footer-info-text {
        font-size: 17px;
        line-height: 1.25;
    }

    .footer .footer-btn .primary-btn {
        padding: 12px 22px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .footer .footer-bottom {
        margin-top: 18px !important;
        padding-top: 32px !important;
        gap: 12px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .footer .footer-dev-credit {
        font-size: 15px !important;
        line-height: 1.45 !important;
        text-align: left !important;
        margin: 0 !important;
        flex: 1 1 auto;
    }

    .footer #backToTop.top-btn {
        font-size: 17px !important;
        gap: 12px !important;
        margin-left: auto;
        white-space: nowrap;
    }

    .footer #backToTop.top-btn .top-btn-icon {
        width: 18px !important;
        height: 11px !important;
    }
}

@media (max-width: 767px) {
    .footer .footer-center-logo {
        width: min(64vw, 220px);
        transform: translateX(14px);
    }

    .footer .footer-bottom {
        margin-top: 16px !important;
        padding-top: 34px !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 16px !important;
        flex-wrap: nowrap !important;
    }

    .footer .footer-info-block--hello .footer-info-title,
    .footer .footer-info-block--location .footer-info-title {
        font-size: 20px !important;
        line-height: 1.15 !important;
    }

    .footer .footer-contact-row .footer-info-text {
        font-size: 16px;
        line-height: 1.35;
    }

    .footer .footer-btn .primary-btn {
        font-size: 14px !important;
        padding: 11px 20px !important;
        border-radius: 10px !important;
        min-width: 188px;
    }

    .footer .footer-info-block--hello {
        order: 1;
    }

    .footer .footer-info-block--location {
        order: 2;
    }

    .footer .footer-btn {
        order: 3;
    }

    .footer .footer-dev-credit {
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: center !important;
        margin: 0 !important;
        flex: 0 0 auto;
        width: 100%;
    }

    .footer #backToTop.top-btn {
        margin-left: 0;
        margin-right: 0;
        margin-top: 2px;
        align-self: center;
        white-space: nowrap;
    }
}

.top-btn,
.top-btn:hover,
.top-btn:focus,
.top-btn:active {
    color: var(--ui-text-silver) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    outline: none !important;
}

.footer-dev-credit .footer-dev-link {
    position: relative;
    display: inline-block;
    color: #f2f2f2 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.footer-dev-credit .footer-dev-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: #f2f2f2;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}

.footer-dev-credit .footer-dev-link:hover,
.footer-dev-credit .footer-dev-link:focus-visible,
.footer-dev-credit .footer-dev-link:active {
    color: #ffffff !important;
}

.footer-dev-credit .footer-dev-link:hover::after,
.footer-dev-credit .footer-dev-link:focus-visible::after,
.footer-dev-credit .footer-dev-link:active::after {
    background: #ffffff;
    transform: scaleX(1);
}

.top-btn:hover {
    color: #f2f2f2 !important;
}

.top-btn .top-btn-icon {
    animation: topArrowLift 1.4s ease-in-out infinite;
}

.top-btn:hover .top-btn-icon {
    animation-duration: 0.85s;
}

@keyframes topArrowLift {
    0% {
        transform: translateY(0);
        opacity: 0.82;
    }

    50% {
        transform: translateY(-3px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.82;
    }
}

.top-btn span,
.top-btn span:hover,
.top-btn span:focus,
.top-btn span:active {
    color: inherit !important;
    text-decoration: none !important;
}

.footer .footer-btn .primary-btn,
.footer .footer-btn .primary-btn:visited,
.footer .footer-btn .primary-btn:focus,
.footer .footer-btn .primary-btn:focus-visible,
.footer .footer-btn .primary-btn:active {
    background: #f2f2f2 !important;
    color: #181818 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    text-decoration: none !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
}

.footer .footer-btn .primary-btn:hover {
    background: #e0e0e0 !important;
    color: #181818 !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
    transform: none !important;
}

.footer .footer-btn .primary-btn *,
.footer .footer-btn .primary-btn:hover *,
.footer .footer-btn .primary-btn:focus *,
.footer .footer-btn .primary-btn:focus-visible * {
    color: #181818 !important;
}

/* --- WooCommerce Integration Overrides --- */

/* Fix Theme overrides replacing Tailwind Utilities on filters */
.shop-filter-btn.active {
    background-color: #f2f2f2 !important;
    color: #000000 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.shop-filter-btn:not(.active) {
    background-color: #0a0b10 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.shop-filter-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--ui-text-silver) !important;
}

.shop-filter-select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: 2px solid rgba(255, 255, 255, 0.65);
    transform: translateY(-64%) rotate(45deg);
    pointer-events: none;
}

.shop-filter-select {
    color: var(--ui-text-silver) !important;
    background-color: #0a0b10 !important;
    border: 1px solid rgba(230, 238, 246, 0.30) !important;
}

.shop-filter-select option {
    background-color: #0a0b10;
    color: var(--ui-text-silver);
}

/* Unified CTA style for Add to Cart + View Cart inside product cards */
.woocommerce .product-card a.button,
.woocommerce-page .product-card a.button,
.product-card a.button.add_to_cart_button,
.product-card a.button.view-cart-btn-active {
    background-color: #f2f2f2 !important;
    color: #000000 !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-decoration: none !important;
    line-height: 1 !important;
    flex: 1 1 0% !important;
}

.product-card a.button.add_to_cart_button:hover,
.product-card a.button.view-cart-btn-active:hover {
    background-color: #e5e5e5 !important;
    color: #000000 !important;
}

/* Cart icon behavior (same as product card) */
.custom_add_to_cart_btn .cart-bag-icon {
    width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.custom_add_to_cart_btn:not(.added):not(.loading):hover .cart-bag-icon {
    width: 1rem !important;
    max-width: 1rem !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    margin-right: 0.375rem !important;
    margin-left: 0 !important;
}

/* Hide WooCommerce added checkmark pseudo on custom button */
.custom_add_to_cart_btn.added::after {
    display: none !important;
    content: none !important;
}

/* Hide WooCommerce default inserted View Cart link to avoid duplicate CTA */
a.added_to_cart.wc-forward {
    display: none !important;
}

/* Spinner Animation for WooCommerce Buttons */
.button.loading .btn-text,
.button.loading svg {
    opacity: 0;
}

.button.loading {
    position: relative;
    pointer-events: none;
}

.button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.product-card a.button.add_to_cart_button.loading {
    opacity: 0.7 !important;
    cursor: wait !important;
}

/* Product-card spinner: centered and high-contrast on light CTA buttons */
.product-card .custom_add_to_cart_btn.loading {
    position: relative !important;
}

.product-card .custom_add_to_cart_btn.loading .btn-text,
.product-card .custom_add_to_cart_btn.loading .cart-bag-icon,
.product-card .custom_add_to_cart_btn.loading>svg {
    opacity: 0 !important;
    visibility: hidden !important;
}

.product-card .custom_add_to_cart_btn.loading::after {
    content: '' !important;
    position: absolute !important;
    top: calc(50% - 9px) !important;
    left: calc(50% - 9px) !important;
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-top-color: #000000 !important;
    border-radius: 50% !important;
    animation: product-card-spin 0.8s linear infinite !important;
}

@keyframes product-card-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Hide WooCommerce default results count and ordering if they accidentally inject */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* --- UI Bug Fixes vs Theme Overrides --- */

/* Search Input Fix */
#shop-search {
    padding-left: 45px !important;
    padding-right: 15px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    border: 1px solid rgba(230, 238, 246, 0.30) !important;
    background-color: #0c0d12 !important;
    color: var(--ui-text-silver) !important;
    border-radius: 12px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    line-height: normal !important;
    min-height: 48px !important;
}

#shop-search:focus,
#shop-category-select:focus,
.shop-filter-select:focus {
    border-color: rgba(230, 238, 246, 0.78) !important;
    box-shadow: 0 0 0 1px rgba(230, 238, 246, 0.34), 0 0 24px rgba(230, 238, 246, 0.22) !important;
}

/* Floating Cart & Close Button Fixes */
#floating-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
    border: 1px solid #f2f2f2 !important;
    background-color: #f2f2f2 !important;
    background-image: none !important;
    color: #000000 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.35) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    outline: none !important;
    appearance: none !important;
}

#floating-cart-btn:hover {
    background-color: #e7e7e7 !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #e7e7e7 !important;
    transform: none !important;
}

#floating-cart-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

#floating-cart-count {
    background-color: #0a0b10 !important;
    color: #f2f2f2 !important;
    border: 2px solid #f2f2f2 !important;
    box-shadow: 0 0 0 2px rgba(10, 11, 16, 0.6) !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
}

.header-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
    padding: 11px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(255, 255, 255, 0.08) !important;
    appearance: none !important;
}

.header-login-btn:hover,
.header-login-btn:focus,
.header-login-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    color: #ffffff !important;
}

@media (max-width: 1024px) {
    #floating-cart-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    #floating-cart-btn svg {
        width: 17px !important;
        height: 17px !important;
    }

    .header-login-btn {
        padding: 9px 18px !important;
        font-size: 14px !important;
        border-radius: 9px !important;
    }
}

@media (max-width: 767px) {
    #floating-cart-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    #floating-cart-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .header-login-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 9px !important;
    }
}

#cart-toast {
    left: 50% !important;
    right: auto !important;
    bottom: max(28px, env(safe-area-inset-bottom)) !important;
    width: max-content !important;
    max-width: min(520px, calc(100vw - 32px)) !important;
    z-index: 10080 !important;
}

@media (max-width: 767px) {
    #cart-toast {
        left: 12px !important;
        right: 12px !important;
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        --tw-translate-x: 0 !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        gap: 8px !important;
        box-shadow: 0 8px 24px rgba(255, 255, 255, 0.14) !important;
    }

    #cart-toast span {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    #cart-toast svg {
        width: 14px !important;
        height: 14px !important;
        flex: 0 0 14px;
    }
}

.floating-whatsapp-btn {
    position: fixed;
    right: 32px;
    bottom: 46px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #0a0b10;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.floating-whatsapp-btn:hover {
    background: #0a0b10;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05), inset 0 0 18px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.floating-whatsapp-btn.is-dragging {
    transition: none;
    transform: none !important;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.floating-whatsapp-icon {
    width: 34px;
    height: 34px;
}

.floating-whatsapp-bubble {
    position: fixed;
    right: 32px;
    bottom: 120px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(300px, calc(100vw - 32px));
    padding: 12px 14px 12px 16px;
    border-radius: 14px;
    background: #f2f2f2;
    color: #050608;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
    direction: rtl;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transform-origin: right bottom;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.floating-whatsapp-bubble.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-whatsapp-bubble-arrow {
    position: absolute;
    right: 22px;
    top: 100%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 9px solid #f2f2f2;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.08));
}

.floating-whatsapp-bubble-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .floating-whatsapp-btn {
        width: 56px;
        height: 56px;
        right: 22px;
        bottom: 36px;
    }

    .floating-whatsapp-icon {
        width: 32px;
        height: 32px;
    }

    .floating-whatsapp-bubble {
        right: 22px;
        bottom: 102px;
    }
}

@media (max-width: 767px) {
    .floating-whatsapp-btn {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 30px;
    }

    .floating-whatsapp-icon {
        width: 30px;
        height: 30px;
    }

    .floating-whatsapp-bubble {
        right: 16px;
        bottom: 92px;
        max-width: calc(100vw - 32px);
        padding: 10px 12px;
        border-radius: 12px;
    }

    .floating-whatsapp-bubble-text {
        font-size: 13px;
        white-space: normal;
    }

    .floating-whatsapp-bubble-arrow {
        right: 18px;
    }
}

#close-cart-btn {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    color: var(--ui-text-silver) !important;
    padding: 0 !important;
}

#close-cart-btn:hover {
    background-color: #ff4d4d !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.cart-offcanvas-open,
html.cart-offcanvas-open {
    overflow: hidden !important;
}

/* Ensure WooCommerce product Card image ignores theme scaling */
.product-card .img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}

/* ==========================================================================
   OTP Login + Checkout Auth Modal
   ========================================================================== */

.custom-auth-page {
    max-width: 980px;
}

.custom-auth-page--login {
    max-width: 760px;
}

.custom-auth-page--login .custom-auth-login-form-wrap,
.custom-myaccount-auth-page .custom-myaccount-auth-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.custom-auth-page--login .eor-container.eor-modern-shell,
.custom-myaccount-auth-page .eor-container.eor-modern-shell {
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.custom-myaccount-auth-page {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

body.custom-myaccount-login-view.woocommerce-account {
    background: #000000 !important;
}

body.custom-myaccount-login-view.woocommerce-account .site-main,
body.custom-myaccount-login-view.woocommerce-account .page-content,
body.custom-myaccount-login-view.woocommerce-account .woocommerce,
body.custom-myaccount-login-view.woocommerce-account .entry-content,
body.custom-myaccount-login-view.woocommerce-account .post-content,
body.woocommerce-account:has(.custom-myaccount-auth-page.custom-auth-page--login) .site-main,
body.woocommerce-account:has(.custom-myaccount-auth-page.custom-auth-page--login) .page-content,
body.woocommerce-account:has(.custom-myaccount-auth-page.custom-auth-page--login) .woocommerce,
body.woocommerce-account:has(.custom-myaccount-auth-page.custom-auth-page--login) .entry-content,
body.woocommerce-account:has(.custom-myaccount-auth-page.custom-auth-page--login) .post-content {
    background: transparent !important;
}

body.custom-myaccount-login-view.woocommerce-account,
body.custom-myaccount-login-view.woocommerce-account #page,
body.custom-myaccount-login-view.woocommerce-account .site,
body.custom-myaccount-login-view.woocommerce-account #content,
body.custom-myaccount-login-view.woocommerce-account .page-content,
body.custom-myaccount-login-view.woocommerce-account .woocommerce,
body.custom-myaccount-login-view.woocommerce-account .e-con,
body.custom-myaccount-login-view.woocommerce-account .e-con-inner,
body.custom-myaccount-login-view.woocommerce-account article.page {
    background: transparent !important;
}

body.custom-myaccount-login-view.woocommerce-account .custom-myaccount-login-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

body.custom-myaccount-login-view.woocommerce-account .custom-myaccount-login-stage::after {
    content: none;
}

body.custom-myaccount-login-view.woocommerce-account #content,
body.custom-myaccount-login-view.woocommerce-account .page-content,
body.custom-myaccount-login-view.woocommerce-account .woocommerce {
    position: relative;
    z-index: 1;
}

body.custom-myaccount-login-view.woocommerce-account .custom-myaccount-login-stage__image,
body.custom-myaccount-login-view.woocommerce-account .custom-myaccount-login-stage__overlay {
    position: absolute;
    inset: 0;
}

body.custom-myaccount-login-view.woocommerce-account .custom-myaccount-login-stage__image {
    inset: -2%;
    background-image: url('assets/images/bg.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: blur(6px) saturate(0.9) brightness(0.68);
}

body.custom-myaccount-login-view.woocommerce-account .custom-myaccount-login-stage__overlay {
    background:
        radial-gradient(76% 56% at 50% 34%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(180deg, rgba(3, 6, 10, 0.05) 0%, rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.68) 100%),
        radial-gradient(ellipse 56% 28% at 50% 6%, rgba(242, 242, 242, 0.10) 0%, rgba(242, 242, 242, 0) 100%),
        radial-gradient(ellipse 34% 28% at 5% 42%, rgba(242, 242, 242, 0.08) 0%, rgba(242, 242, 242, 0) 100%),
        radial-gradient(ellipse 34% 28% at 95% 42%, rgba(242, 242, 242, 0.08) 0%, rgba(242, 242, 242, 0) 100%);
    background-size: auto, auto, auto, auto, auto;
}

.custom-otp-registration-restricted-message {
    margin: 0 auto;
    max-width: 760px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    text-align: center;
}

.custom-auth-page .custom-auth-shell {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

.custom-checkout-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.custom-checkout-auth-modal.is-open {
    display: flex;
}

.checkout-auth-modal-open {
    overflow: hidden;
}

.custom-checkout-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.56);
    backdrop-filter: blur(1.4px);
}

.custom-checkout-auth-modal__panel {
    position: relative;
    width: min(620px, calc(100vw - 20px));
    max-height: calc(100vh - 28px);
    margin: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    overflow: auto;
    padding: 8px;
}

.custom-checkout-auth-modal__panel .eor-container {
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.custom-checkout-auth-modal__fallback {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 20px;
    background: rgba(10, 11, 16, 0.95);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.custom-checkout-auth-modal__fallback .button {
    margin-top: 12px;
    background: #f2f2f2 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.custom-checkout-auto-submit-status {
    display: none;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(79, 221, 138, 0.35);
    background: rgba(50, 205, 118, 0.12);
    color: rgba(231, 255, 241, 0.96);
    font-size: 14px;
    font-weight: 600;
}

.custom-checkout-auto-submit-status.is-visible {
    display: inline-flex;
}

.custom-checkout-auto-submit-status__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #8fffba;
    animation: customCheckoutSpin 0.8s linear infinite;
}

@keyframes customCheckoutSpin {
    to {
        transform: rotate(360deg);
    }
}

.custom-header-user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    isolation: isolate;
}

.header-auth-wrap {
    min-width: 0;
}

.custom-header-user-dropdown--inline {
    gap: 8px;
}

.custom-header-user-trigger {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px;
    color: inherit !important;
    box-shadow: none !important;
    transition: transform 0.2s ease;
    cursor: pointer;
    appearance: none;
}

button.custom-header-user-trigger,
button.custom-header-user-trigger:hover,
button.custom-header-user-trigger:focus,
button.custom-header-user-trigger:active {
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    box-shadow: none !important;
}

.custom-header-user-trigger:hover,
.custom-header-user-trigger:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.custom-header-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.custom-header-user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    line-height: 1;
    margin-right: 2px;
}

.custom-header-user-wave {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-0.5px);
    filter: drop-shadow(0 1px 5px rgba(255, 214, 136, 0.45));
}

.custom-header-user-hello {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.custom-header-user-name {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

.custom-header-user-badge {
    font-size: 10px;
    font-weight: 600;
    color: rgba(181, 255, 212, 0.98);
    background: rgba(79, 221, 138, 0.2);
    border: 1px solid rgba(79, 221, 138, 0.34);
    border-radius: 999px;
    padding: 2px 7px;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

.custom-header-user-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8b9098;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.35);
}

.custom-header-user-avatar {
    position: absolute;
    inset: -1px;
    z-index: 2;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.custom-header-user-avatar--fallback {
    z-index: 1;
    object-fit: cover;
}

.custom-header-user-avatar--custom {
    opacity: 0;
}

.custom-header-user-avatar--custom.is-loaded {
    opacity: 1;
}

.custom-header-user-chevron {
    display: none !important;
}

.custom-header-user-dropdown.is-open .custom-header-user-chevron {
    display: none !important;
}

.custom-header-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 10, 18, 0.97);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.48);
    padding: 8px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1050;
}

.custom-header-user-dropdown.is-open .custom-header-user-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-header-user-menu-item {
    display: block;
    padding: 9px 11px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: all 0.2s ease;
}

.custom-header-user-menu-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--ui-text-silver) !important;
}

.custom-header-user-menu-item--danger {
    color: rgba(255, 173, 173, 0.95) !important;
}

.custom-header-user-menu-item--danger:hover {
    background: rgba(255, 89, 89, 0.14) !important;
    color: #ffd3d3 !important;
}

.custom-header-user-dropdown--mobile {
    width: min(360px, calc(100vw - 56px));
    display: block;
}

.custom-header-user-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.custom-header-user-trigger--mobile {
    width: 42px;
    height: 42px;
}

.custom-header-user-menu--mobile {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .nav-section .nav-right {
        min-width: 0;
    }

    .custom-header-user-greeting {
        font-size: 12px;
        gap: 4px;
    }

    .custom-header-user-name {
        max-width: 96px;
        font-size: 12px;
    }

    .custom-header-user-badge {
        font-size: 9px;
        padding: 1px 6px;
        margin-top: 2px;
    }

    .custom-header-user-avatar-wrap,
    .custom-header-user-trigger {
        width: 34px;
        height: 34px;
    }

}

@media (max-width: 767px) {
    .header-auth-wrap {
        gap: 8px;
    }

    .header-auth-wrap .header-login-btn {
        padding: 8px 14px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    .custom-header-user-dropdown--inline {
        gap: 6px;
    }

    .custom-header-user-meta {
        min-width: 0;
        align-items: flex-end;
    }

    .custom-header-user-greeting {
        font-size: 11px;
        gap: 3px;
        margin-right: 0;
    }

    .custom-header-user-wave {
        font-size: 12px;
    }

    .custom-header-user-hello {
        display: none;
    }

    .custom-header-user-name {
        max-width: 76px;
        font-size: 12px;
    }

    .custom-header-user-badge {
        font-size: 8px;
        padding: 1px 5px;
        margin-top: 1px;
    }
}

@media (max-width: 768px) {
    .custom-auth-page:not(.custom-myaccount-auth-page) {
        padding-top: 128px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 64px !important;
    }

    .custom-auth-page .custom-auth-shell {
        border-radius: 20px;
        padding: 16px !important;
    }

    .custom-auth-page--login:not(.custom-myaccount-auth-page) .custom-auth-login-form-wrap {
        position: relative;
        isolation: isolate;
    }

    .custom-auth-page--login:not(.custom-myaccount-auth-page) .custom-auth-login-form-wrap::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: min(520px, 108vw);
        height: min(520px, 78vh);
        transform: translate(-50%, -50%);
        z-index: 0;
        pointer-events: none;
        border-radius: 999px;
        background:
            radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.40) 44%, rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 0) 100%);
        filter: blur(22px);
    }

    .custom-auth-page--login:not(.custom-myaccount-auth-page) .custom-auth-login-form-wrap > * {
        position: relative;
        z-index: 1;
    }

    .custom-checkout-auth-modal__panel {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 16px;
        padding: 4px;
    }

    .custom-checkout-auto-submit-status {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1366px) {
    .custom-auth-page:not(.custom-myaccount-auth-page) {
        padding-top: 210px !important;
    }

    .custom-auth-page--login:not(.custom-myaccount-auth-page) .custom-auth-login-form-wrap {
        position: relative;
        isolation: isolate;
    }

    .custom-auth-page--login:not(.custom-myaccount-auth-page) .custom-auth-login-form-wrap::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -42px;
        width: min(680px, 92vw);
        height: 260px;
        transform: translateX(-50%);
        z-index: 0;
        pointer-events: none;
        border-radius: 999px;
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.36) 46%, rgba(0, 0, 0, 0.14) 72%, rgba(0, 0, 0, 0) 100%);
        filter: blur(24px);
    }

    .custom-auth-page--login:not(.custom-myaccount-auth-page) .custom-auth-login-form-wrap > * {
        position: relative;
        z-index: 1;
    }
}

/* ==========================================================================
   Unified Typography System
   ==========================================================================
   - Large section titles: gradient (hero style)
   - Normal headings/text: solid silver
   - White: accent only (buttons/prices/etc)
*/

html body,
html body .woocommerce,
html body .entry-content,
html body .page-content {
    color: var(--ui-text-silver);
}

/* Base content text */
html body main :where(p, li, label, small, td, th, legend, address, blockquote, .woocommerce-info, .woocommerce-message, .woocommerce-error):not(button):not(.button):not(.wp-element-button) {
    color: var(--ui-text-silver) !important;
}

/* Default headings in content (exclude primary gradient headings and hero branding) */
html body main :where(h1, h2, h3, h4, h5, h6):not(.ui-primary-heading):not(.custom-thankyou-title):not(.hero-author-name):not(.footer-title):not(.letter) {
    color: #f2f2f2 !important;
    -webkit-text-fill-color: #f2f2f2 !important;
}

/* Tailwind-like white text utilities, excluding button-like controls */
html body [class~="text-white"]:not(button):not(.button):not(.wp-element-button):not(input[type="submit"]):not(input[type="button"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
html body [class*=" text-white"]:not(button):not(.button):not(.wp-element-button):not(input[type="submit"]):not(input[type="button"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
html body [class^="text-white"]:not(button):not(.button):not(.wp-element-button):not(input[type="submit"]):not(input[type="button"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
html body [class*="!text-white"]:not(button):not(.button):not(.wp-element-button):not(input[type="submit"]):not(input[type="button"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
html body [class*=" !text-white"]:not(button):not(.button):not(.wp-element-button):not(input[type="submit"]):not(input[type="button"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
html body [class^="!text-white"]:not(button):not(.button):not(.wp-element-button):not(input[type="submit"]):not(input[type="button"]):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    color: var(--ui-text-silver) !important;
}

/* Opacity variants mapped to silver shades (text only) */
html body [class*="text-white/90"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/90"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.9) !important;
}

html body [class*="text-white/80"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/80"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.8) !important;
}

html body [class*="text-white/70"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/70"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.72) !important;
}

html body [class*="text-white/60"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/60"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.62) !important;
}

html body [class*="text-white/55"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/55"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.56) !important;
}

html body [class*="text-white/50"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/50"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.5) !important;
}

html body [class*="text-white/45"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/45"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.45) !important;
}

html body [class*="text-white/40"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/40"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.4) !important;
}

html body [class*="text-white/30"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/30"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.32) !important;
}

html body [class*="text-white/25"]:not(button):not(.button):not(.wp-element-button),
html body [class*="!text-white/25"]:not(button):not(.button):not(.wp-element-button) {
    color: rgba(var(--ui-text-silver-rgb), 0.26) !important;
}

/* Tailwind-like gray utility aliases used in templates */
html body [class~="text-gray-400"],
html body [class*=" text-gray-400"],
html body [class^="text-gray-400"] {
    color: rgba(var(--ui-text-silver-rgb), 0.62) !important;
}

html body [class~="text-gray-300"],
html body [class*=" text-gray-300"],
html body [class^="text-gray-300"] {
    color: rgba(var(--ui-text-silver-rgb), 0.78) !important;
}

/* Product names/titles (accent white across design) */
html body.woocommerce-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
html body.woocommerce-page .woocommerce ul.products li.product h2,
html body.woocommerce-page .woocommerce ul.products li.product h3,
html body.woocommerce-page .woocommerce div.product .product_title,
html body.woocommerce-page .woocommerce-cart .product-name a,
html body .product-card h3 a,
html body .custom-mini-cart-container li .flex-col>a {
    color: #f2f2f2 !important;
    -webkit-text-fill-color: #f2f2f2 !important;
}

/* Price Accent: keep prices white */
html body.woocommerce-page .woocommerce .price,
html body.woocommerce-page .woocommerce .amount,
html body.woocommerce-page .woocommerce .woocommerce-Price-amount,
html body .product-card .woocommerce-Price-amount,
html body .product-single-price,
html body .product-single-price .woocommerce-Price-amount,
html body.woocommerce-cart .cart_totals .woocommerce-Price-amount,
html body.woocommerce-cart .shop_table .woocommerce-Price-amount,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-Price-amount,
html body.woocommerce-order-received .custom-thankyou-overview .woocommerce-Price-amount,
html body.woocommerce-order-received .custom-thankyou-details-wrap .woocommerce-Price-amount {
    color: #f2f2f2 !important;
}

html body.woocommerce-page .woocommerce del .amount,
html body.woocommerce-page .woocommerce del .woocommerce-Price-amount,
html body .product-single-price del .woocommerce-Price-amount,
html body .product-card del .woocommerce-Price-amount {
    color: rgba(255, 255, 255, 0.38) !important;
}

/* Large section headings only */
.ui-primary-heading,
.custom-thankyou-title {
    background-image: var(--ui-heading-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* Testimonial person names (accent white) */
html body .testimonial-card-inner .flex.items-center.gap-6>div>div:first-child {
    color: #f2f2f2 !important;
    -webkit-text-fill-color: #f2f2f2 !important;
}

/* Floating Mini-Cart title and prices accent */
html body #cart-sidebar .mini-cart-title,
html body .custom-mini-cart-container .mini-cart-line-price,
html body .custom-mini-cart-container .mini-cart-line-price .woocommerce-Price-amount,
html body .custom-mini-cart-container .mini-cart-line-price .amount,
html body .custom-mini-cart-container .mini-cart-subtotal-price,
html body .custom-mini-cart-container .mini-cart-subtotal-price .woocommerce-Price-amount,
html body .custom-mini-cart-container .mini-cart-subtotal-price .amount {
    color: #f2f2f2 !important;
    -webkit-text-fill-color: #f2f2f2 !important;
}

/* Mini-cart item card separation (match marquee silver border tone) */
html body .custom-mini-cart-container .mini-cart-item-card {
    background: #0a0b10;
    border: 1px solid rgba(230, 238, 246, 0.30);
    border-radius: 14px;
    padding: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html body .custom-mini-cart-container .mini-cart-item-card > .flex-grow {
    min-width: 0;
}

html body .custom-mini-cart-container .mini-cart-item-card:hover {
    border-color: rgba(230, 238, 246, 0.48);
    box-shadow: 0 0 16px rgba(230, 238, 246, 0.10);
}

/* Mini-cart remove (X) hover accent */
html body .custom-mini-cart-container .custom-remove-cart-item {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    line-height: 1 !important;
    border-radius: 999px;
    background-color: transparent;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

html body .custom-mini-cart-container .custom-remove-cart-item svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    transition: filter 0.2s ease, transform 0.2s ease;
}

html body .custom-mini-cart-container .custom-remove-cart-item:hover {
    color: #ffffff !important;
    background-color: #ff4d4d;
    box-shadow: none;
}

html body .custom-mini-cart-container .custom-remove-cart-item:hover svg {
    stroke: #ffffff;
    filter: none;
    transform: none;
}

/* View Cart button border to match marquee silver */
html body .custom-mini-cart-container a[href*="/cart"] {
    border-color: rgba(230, 238, 246, 0.30) !important;
}

@media (max-width: 767px) {
    #cart-sidebar {
        width: calc(100vw - 18px) !important;
        max-width: 372px !important;
        border-top-right-radius: 18px;
        border-bottom-right-radius: 18px;
    }

    #cart-sidebar>div:first-child {
        padding: 14px 14px 12px !important;
    }

    #cart-sidebar .mini-cart-title {
        font-size: 18px !important;
        line-height: 1.1 !important;
    }

    #close-cart-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 999px !important;
    }

    #close-cart-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    #cart-sidebar .custom-mini-cart-container>.flex-grow.overflow-y-auto {
        padding: 12px 14px !important;
    }

    #cart-sidebar .custom-mini-cart-container>.p-6 {
        padding: 14px !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    }

    html body .custom-mini-cart-container .mini-cart-item-card {
        padding: 10px !important;
        gap: 10px !important;
    }

    html body .custom-mini-cart-container .mini-cart-item-card img {
        width: 56px !important;
        height: 56px !important;
    }

    html body .custom-mini-cart-container li .flex-col>a {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    html body .custom-mini-cart-container .mini-cart-line-price,
    html body .custom-mini-cart-container .mini-cart-line-price .woocommerce-Price-amount,
    html body .custom-mini-cart-container .mini-cart-line-price .amount {
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    html body .custom-mini-cart-container .custom-remove-cart-item {
        flex-basis: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        margin-left: 4px !important;
    }

    #cart-sidebar .custom-mini-cart-container a[href*="/cart"],
    #cart-sidebar .custom-mini-cart-container a[href*="/checkout"] {
        min-height: 44px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Legal pages */
body.page-template-page-legal {
    background-color: #000000;
}

.legal-page-shell {
    position: relative;
    overflow: hidden;
    padding-top: clamp(110px, 12vw, 170px);
    padding-bottom: clamp(120px, 12vw, 180px);
}

.legal-page-wrap {
    width: 100%;
    position: relative;
    z-index: 1;
}

.legal-page-container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.legal-page-header {
    margin-bottom: clamp(34px, 4vw, 56px);
    text-align: center;
}

html body.page-template-page-legal main .legal-page-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    display: inline-block;
    background: linear-gradient(to bottom, #f2f2f2 0%, #666666 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    text-fill-color: transparent !important;
}

.legal-page-card {
    border: 1px solid rgba(230, 238, 246, 0.30);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 12, 17, 0.96) 0%, rgba(7, 9, 14, 0.92) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.legal-page-content {
    padding: clamp(22px, 4vw, 40px);
    color: rgba(242, 242, 242, 0.9);
    font-size: 16px;
    line-height: 1.9;
}

.legal-page-content h2 {
    margin: 24px 0 10px;
    color: #f2f2f2;
    font-size: clamp(21px, 2.5vw, 28px);
    line-height: 1.35;
}

.legal-page-content p {
    margin: 0 0 12px;
}

.legal-page-content ul {
    margin: 0 0 14px 18px;
    padding: 0;
}

.legal-page-content li {
    margin-bottom: 8px;
}

.legal-page-content a {
    color: #f2f2f2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page-template-page-legal .legal-page-footer-glow.section-bottom-silver-glow {
    position: absolute;
    left: 50%;
    bottom: -82px;
    transform: translateX(-50%);
    width: min(1560px, 132vw);
    height: 620px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.72;
    background: radial-gradient(ellipse 66% 60% at 50% 100%,
            rgba(230, 238, 246, 0.44) 0%,
            rgba(205, 218, 232, 0.26) 30%,
            rgba(170, 186, 204, 0.13) 52%,
            rgba(170, 186, 204, 0.06) 66%,
            rgba(170, 186, 204, 0) 86%);
    filter: blur(27px);
}

@media (max-width: 1024px) {
    .legal-page-shell {
        padding-top: 150px;
        padding-bottom: 130px;
    }

    .legal-page-header {
        margin-bottom: 34px;
    }

    html body.page-template-page-legal main .legal-page-title {
        font-size: clamp(30px, 5.3vw, 42px);
        line-height: 1.14;
    }

    .legal-page-content {
        padding: 30px;
        font-size: 15px;
        line-height: 1.82;
    }
}

@media (max-width: 767px) {
    .legal-page-shell {
        padding-top: 136px;
        padding-bottom: 108px;
    }

    .legal-page-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .legal-page-header {
        margin-bottom: 24px;
    }

    html body.page-template-page-legal main .legal-page-title {
        font-size: clamp(26px, 8.4vw, 34px);
        line-height: 1.16;
    }

    .legal-page-card {
        border-radius: 18px;
    }

    .legal-page-content {
        padding: 20px 18px;
        font-size: 14px;
        line-height: 1.76;
    }

    .legal-page-content h2 {
        margin: 20px 0 8px;
        font-size: clamp(19px, 6.2vw, 24px);
        line-height: 1.34;
    }

    .legal-page-content p {
        margin: 0 0 10px;
    }

    .legal-page-content ul {
        margin: 0 0 12px 16px;
    }

    .legal-page-content li {
        margin-bottom: 6px;
    }

    body.page-template-page-legal .legal-page-footer-glow.section-bottom-silver-glow {
        width: min(1260px, 152vw);
        height: 520px;
        bottom: -72px;
    }
}

@media (min-width: 1025px) {
    .footer .footer-center-logo {
        width: min(320px, 25vw) !important;
    }
}
