/* ============================================================================
   Dakhl Shop Loop Card — Minimal Hover Actions, Dreamy Liquid Wave & Capsule Quick View
   ============================================================================ */

/* Ensure loop product card establishes stacking & clipping context */
ul.products li.product.dakhl-loop-product-card,
.dakhl-shop-products-wrapper ul.products li.product.dakhl-loop-product-card,
.woocommerce ul.products li.product.dakhl-loop-product-card,
.dakhl-loop-product-card {
    position: relative !important;
    isolation: isolate;
}

/* -------------------------------------------------------------------------- */
/* 1. Ultra-Minimal Floating Hover Action Dock                                */
/* -------------------------------------------------------------------------- */
.dakhl-lca-dock {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    opacity: 0;
    transform: translate3d(-4px, -6px, 0) scale(0.9);
    pointer-events: none;
    transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.dakhl-loop-product-card:hover .dakhl-lca-dock,
.dakhl-loop-product-card:focus-within .dakhl-lca-dock,
.dakhl-lca-dock.is-busy {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.dakhl-lca-btn {
    position: relative;
    width: 27px;
    height: 27px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.dakhl-lca-btn .dakhl-lca-icon {
    width: 13.5px;
    height: 13.5px;
    display: block;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s ease;
}

.dakhl-lca-btn:hover {
    transform: scale(1.1);
}

.dakhl-lca-btn:active {
    transform: scale(0.92);
}

.dakhl-lca-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
}

/* Semantic subtle hover accents */
.dakhl-lca-like:hover {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
}

.dakhl-lca-like.is-liked {
    background: rgba(244, 63, 94, 0.14);
    color: #f43f5e;
}

.dakhl-lca-like.is-liked .dakhl-lca-heart-svg {
    fill: #f43f5e;
    stroke: #f43f5e;
    animation: dakhl-lca-heart-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dakhl-lca-quickview:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.dakhl-lca-cart:hover {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

/* Tiny loading spinner inside icon button */
.dakhl-lca-spinner {
    display: none;
    width: 12px;
    height: 12px;
    border: 1.8px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: dakhl-lca-spin 0.65s linear infinite;
}

.dakhl-lca-btn.is-loading .dakhl-lca-icon {
    display: none;
}

.dakhl-lca-btn.is-loading .dakhl-lca-spinner {
    display: block;
}

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

@keyframes dakhl-lca-heart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.32); }
    75%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* Dark Mode Dock */
html.dakhl-dark-mode .dakhl-lca-dock {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dakhl-dark-mode .dakhl-lca-btn {
    color: #cbd5e1;
}

html.dakhl-dark-mode .dakhl-lca-like:hover,
html.dakhl-dark-mode .dakhl-lca-like.is-liked {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
}

html.dakhl-dark-mode .dakhl-lca-like.is-liked .dakhl-lca-heart-svg {
    fill: #fb7185;
    stroke: #fb7185;
}

html.dakhl-dark-mode .dakhl-lca-quickview:hover {
    background: rgba(129, 140, 248, 0.2);
    color: #a5b4fc;
}

html.dakhl-dark-mode .dakhl-lca-cart:hover {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

/* Responsive visibility toggles controlled via Theme Options */
@media (min-width: 769px) {
    .dakhl-lca-dock.dakhl-lca-hide-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .dakhl-lca-dock.dakhl-lca-hide-mobile {
        display: none !important;
    }
}

/* Touch Tablets (vertical cards): keep subtle dock visible at top-left */
@media (hover: none) and (min-width: 769px) {
    .dakhl-lca-dock {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

/* Mobile (horizontal cards): ALWAYS lock micro-capsule to the very bottom edge of the 110px thumbnail */
@media (max-width: 768px) {
    .dakhl-lca-dock {
        opacity: 1;
        pointer-events: auto;
        flex-direction: row;
        top: auto;
        bottom: 10px;
        left: 10px;
        right: auto;
        transform: none;
        padding: 2.5px 4px;
        gap: 2px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }

    /* Inside shop archive list: .dakhl-loop-product-link has align-items:center + padding:16px 14px,
       so the 110px thumbnail is always vertically centered at 50% (bottom edge = 50% + 55px)
       and horizontally centered at right: 69px (14px padding + 55px half-width). */
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-lca-dock {
        top: calc(50% + 52px);
        bottom: auto;
        left: auto;
        right: 69px;
        transform: translate(50%, -100%);
    }

    .dakhl-loop-product-card:hover .dakhl-lca-dock,
    .dakhl-loop-product-card:focus-within .dakhl-lca-dock,
    .dakhl-lca-dock.is-busy {
        opacity: 1;
        transform: none;
    }

    .dakhl-shop-products-wrapper .dakhl-loop-product-card:hover .dakhl-lca-dock,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card:focus-within .dakhl-lca-dock,
    .dakhl-shop-products-wrapper .dakhl-loop-product-card .dakhl-lca-dock.is-busy {
        opacity: 1;
        transform: translate(50%, -100%);
    }

    .dakhl-lca-btn {
        width: 23px;
        height: 23px;
    }

    .dakhl-lca-btn .dakhl-lca-icon {
        width: 12px;
        height: 12px;
    }
}

/* -------------------------------------------------------------------------- */
/* 2. Dreamy Silky Wave Gradient Wash Overlay (Origin: Top-Left Buttons Corner)*/
/* -------------------------------------------------------------------------- */
.dakhl-lca-wave {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
    will-change: opacity;
}

/* Expanding liquid aurora wash from top-left buttons corner downwards */
.dakhl-lca-wave-fill {
    position: absolute;
    inset: 0;
    clip-path: circle(0% at 22px 24px);
    opacity: 0;
    backdrop-filter: blur(1.5px) saturate(130%);
    -webkit-backdrop-filter: blur(1.5px) saturate(130%);
    will-change: clip-path, opacity;
}

.dakhl-lca-wave.is-cart .dakhl-lca-wave-fill {
    background:
        radial-gradient(circle at 16% 12%, rgba(110, 231, 183, 0.62) 0%, rgba(16, 185, 129, 0.42) 38%, rgba(5, 150, 105, 0.24) 72%, rgba(4, 120, 87, 0.14) 100%),
        linear-gradient(165deg, rgba(52, 211, 153, 0.46) 0%, rgba(16, 185, 129, 0.34) 48%, rgba(20, 184, 166, 0.24) 100%);
    animation: dakhl-lca-wave-bloom 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dakhl-lca-wave.is-like .dakhl-lca-wave-fill {
    background:
        radial-gradient(circle at 16% 12%, rgba(253, 164, 175, 0.62) 0%, rgba(244, 63, 94, 0.40) 38%, rgba(236, 72, 153, 0.24) 72%, rgba(190, 24, 93, 0.14) 100%),
        linear-gradient(165deg, rgba(251, 113, 133, 0.46) 0%, rgba(244, 63, 94, 0.32) 48%, rgba(232, 121, 249, 0.22) 100%);
    animation: dakhl-lca-wave-bloom 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Flowing top-to-bottom silky liquid shimmer wave crest */
.dakhl-lca-wave-crest {
    position: absolute;
    top: -65%;
    left: -45%;
    width: 210%;
    height: 75%;
    border-radius: 46%;
    filter: blur(16px);
    opacity: 0;
    transform: translate3d(-10%, -30%, 0) rotate(-14deg);
    will-change: transform, opacity;
}

.dakhl-lca-wave.is-cart .dakhl-lca-wave-crest {
    background: linear-gradient(180deg,
        rgba(167, 243, 208, 0) 0%,
        rgba(110, 231, 183, 0.55) 45%,
        rgba(52, 211, 153, 0.38) 70%,
        rgba(16, 185, 129, 0) 100%);
    animation: dakhl-lca-wave-glide 1.5s cubic-bezier(0.25, 0.85, 0.35, 1) forwards;
}

.dakhl-lca-wave.is-like .dakhl-lca-wave-crest {
    background: linear-gradient(180deg,
        rgba(254, 205, 211, 0) 0%,
        rgba(253, 164, 175, 0.55) 45%,
        rgba(244, 114, 182, 0.36) 70%,
        rgba(244, 63, 94, 0) 100%);
    animation: dakhl-lca-wave-glide 1.5s cubic-bezier(0.25, 0.85, 0.35, 1) forwards;
}

/* Soft floating micro status capsule */
.dakhl-lca-wave-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -42%) scale(0.9);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: -0.1px;
    white-space: nowrap;
    color: #ffffff;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    opacity: 0;
    animation: dakhl-lca-pill-float 1.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dakhl-lca-wave.is-cart .dakhl-lca-wave-pill {
    background: rgba(5, 150, 105, 0.78);
    border: 1px solid rgba(167, 243, 208, 0.48);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.34);
}

.dakhl-lca-wave.is-like .dakhl-lca-wave-pill {
    background: rgba(225, 29, 72, 0.78);
    border: 1px solid rgba(254, 205, 211, 0.48);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.34);
}

.dakhl-lca-wave-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Dreamy luminous border halo on the card during wave */
.dakhl-loop-product-card.is-wave-cart-glow {
    border-color: rgba(52, 211, 153, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35), 0 12px 30px rgba(16, 185, 129, 0.24) !important;
}

.dakhl-loop-product-card.is-wave-like-glow {
    border-color: rgba(251, 113, 133, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.35), 0 12px 30px rgba(244, 63, 94, 0.24) !important;
}

@keyframes dakhl-lca-wave-bloom {
    0% {
        clip-path: circle(0% at 22px 24px);
        opacity: 0.25;
    }
    38% {
        clip-path: circle(155% at 22px 24px);
        opacity: 1;
    }
    62% {
        clip-path: circle(165% at 22px 24px);
        opacity: 0.88;
    }
    100% {
        clip-path: circle(170% at 22px 24px);
        opacity: 0;
    }
}

@keyframes dakhl-lca-wave-bloom-mobile {
    0% {
        clip-path: circle(0% at calc(100% - 69px) calc(50% + 39px));
        opacity: 0.25;
    }
    38% {
        clip-path: circle(140% at calc(100% - 69px) calc(50% + 39px));
        opacity: 1;
    }
    62% {
        clip-path: circle(150% at calc(100% - 69px) calc(50% + 39px));
        opacity: 0.88;
    }
    100% {
        clip-path: circle(155% at calc(100% - 69px) calc(50% + 39px));
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .dakhl-lca-wave.is-cart .dakhl-lca-wave-fill,
    .dakhl-lca-wave.is-like .dakhl-lca-wave-fill {
        animation-name: dakhl-lca-wave-bloom-mobile;
    }
}

@keyframes dakhl-lca-wave-glide {
    0% {
        transform: translate3d(-12%, -25%, 0) rotate(-14deg);
        opacity: 0;
    }
    20% {
        opacity: 0.95;
    }
    70% {
        opacity: 0.65;
    }
    100% {
        transform: translate3d(8%, 215%, 0) rotate(-8deg);
        opacity: 0;
    }
}

@keyframes dakhl-lca-pill-float {
    0% {
        opacity: 0;
        transform: translate(-50%, -35%) scale(0.86);
    }
    24% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    68% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -62%) scale(0.95);
    }
}

/* -------------------------------------------------------------------------- */
/* 3. Ultra-Minimal Capsule Quick View Modal                                  */
/* -------------------------------------------------------------------------- */
.dakhl-lqv-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 15, 28, 0.56);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    direction: rtl;
    box-sizing: border-box;
}

.dakhl-lqv-overlay.is-visible {
    display: flex;
}

.dakhl-lqv-overlay.is-open {
    opacity: 1;
}

.dakhl-lqv-dialog {
    position: relative;
    width: min(680px, 94vw);
    max-height: min(490px, 88vh);
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    overflow: hidden;
    transform: translate3d(0, 14px, 0) scale(0.95);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.22s ease;
    display: flex;
    flex-direction: column;
}

.dakhl-lqv-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.dakhl-lqv-overlay.is-open .dakhl-lqv-dialog {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

/* Fast dismiss state when adding to cart from modal */
.dakhl-lqv-overlay.is-fast-closing {
    transition: opacity 0.14s ease !important;
    opacity: 0 !important;
}
.dakhl-lqv-overlay.is-fast-closing .dakhl-lqv-dialog {
    transition: transform 0.14s ease, opacity 0.14s ease !important;
    transform: translate3d(0, 6px, 0) scale(0.94) !important;
    opacity: 0 !important;
}

.dakhl-lqv-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 15;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.2s ease;
}

.dakhl-lqv-close:hover {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    transform: rotate(90deg) scale(1.05);
}

.dakhl-lqv-close svg {
    width: 13px;
    height: 13px;
}

/* Loading & Error States */
.dakhl-lqv-loading,
.dakhl-lqv-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 250px;
    padding: 32px 24px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}

.dakhl-lqv-loading-ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-top-color: #10b981;
    animation: dakhl-lca-spin 0.7s linear infinite;
}

/* Modal Content Grid */
.dakhl-lqv-body {
    display: grid;
    grid-template-columns: 294px minmax(0, 1fr);
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

/* Left/Right Gallery Pane (Strict 1:1 Square Frame) */
.dakhl-lqv-media {
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

.dakhl-lqv-slider-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
}

.dakhl-lqv-swiper {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.dakhl-lqv-swiper .swiper-wrapper {
    align-items: stretch;
    height: 100%;
}

.dakhl-lqv-slide {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dakhl-lqv-slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-height: none;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Fallback slider mode when Swiper is absent */
.dakhl-lqv-swiper.is-fallback {
    overflow: hidden;
    position: relative;
}
.dakhl-lqv-swiper.is-fallback .swiper-wrapper {
    display: flex;
    direction: ltr;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.dakhl-lqv-swiper.is-fallback .dakhl-lqv-slide {
    min-width: 100%;
    width: 100%;
}

/* Discount Pill Badge on Slider */
.dakhl-lqv-discount-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    background: #f43f5e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

/* Tiny Capsule Slider Arrows */
.dakhl-lqv-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    padding: 0;
}

.dakhl-lqv-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.dakhl-lqv-nav-btn svg {
    width: 12px;
    height: 12px;
}

.dakhl-lqv-nav-prev { right: 8px; }
.dakhl-lqv-nav-next { left: 8px; }

/* Minimal Pill Pagination Dots */
.dakhl-lqv-dots {
    position: absolute !important;
    bottom: 9px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: auto !important;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dakhl-lqv-dots .swiper-pagination-bullet,
.dakhl-lqv-dots .dakhl-lqv-dot {
    width: 5px;
    height: 5px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: width 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.dakhl-lqv-dots .swiper-pagination-bullet-active,
.dakhl-lqv-dots .dakhl-lqv-dot.is-active {
    width: 15px;
    background: #ffffff;
}

/* Details Column (Refined Small Typography) */
.dakhl-lqv-info {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px 18px 14px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.dakhl-lqv-info::-webkit-scrollbar {
    width: 4px;
}
.dakhl-lqv-info::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
}

.dakhl-lqv-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
    padding-left: 30px; /* space for close button */
}

.dakhl-lqv-brand-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.dakhl-lqv-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.dakhl-lqv-stock-pill.in-stock {
    background: rgba(16, 185, 129, 0.11);
    color: #059669;
}

.dakhl-lqv-stock-pill.out-stock {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
}

.dakhl-lqv-stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.dakhl-lqv-title {
    margin: 0 0 8px 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.55;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dakhl-lqv-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.dakhl-lqv-title a:hover {
    color: #10b981;
}

/* Price Capsule Strip + Tiny Toman Badge */
.dakhl-lqv-price-capsule {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    align-self: flex-start;
}

.dakhl-lqv-price-main {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.dakhl-lqv-price-num {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.dakhl-lqv-toman-wrap {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    line-height: 1;
}

.dakhl-lqv-toman-wrap .dakhl-toman-svg {
    width: 11px !important;
    height: 10px !important;
    display: block;
}

.dakhl-lqv-toman-wrap .dakhl-toman-svg path {
    fill: currentColor !important;
}

.dakhl-lqv-toman-wrap .dakhl-toman-custom {
    font-size: 9.5px !important;
    font-weight: 700;
    color: inherit !important;
}

.dakhl-lqv-reg-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.dakhl-lqv-price-cfp {
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
}

/* Compact Description */
.dakhl-lqv-desc {
    margin: 0 0 11px 0;
    font-size: 11px;
    line-height: 1.75;
    color: #64748b;
    max-height: 58px;
    overflow-y: auto;
    scrollbar-width: none;
}
.dakhl-lqv-desc::-webkit-scrollbar {
    display: none;
}

/* Variations Area (Capsule Pills, Mandatory Selection) */
.dakhl-lqv-variations {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 10px;
}

.dakhl-lqv-attr-group {
    padding: 7px 10px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dakhl-lqv-attr-group.is-missing {
    border-color: rgba(244, 63, 94, 0.65);
    background: rgba(244, 63, 94, 0.05);
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.12);
    animation: dakhl-lqv-shake 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes dakhl-lqv-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    40%      { transform: translateX(4px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

.dakhl-lqv-attr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 10.5px;
}

.dakhl-lqv-attr-label {
    font-weight: 700;
    color: #334155;
}

.dakhl-lqv-attr-chosen {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

.dakhl-lqv-attr-group.has-choice .dakhl-lqv-attr-chosen {
    color: #10b981;
    font-weight: 700;
}

.dakhl-lqv-attr-group.is-missing .dakhl-lqv-attr-chosen {
    color: #e11d48;
    font-weight: 700;
}

.dakhl-lqv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dakhl-lqv-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: #ffffff;
    color: #334155;
    font-size: 10.5px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dakhl-lqv-pill:hover:not(:disabled) {
    border-color: #10b981;
    color: #059669;
}

.dakhl-lqv-pill.is-selected {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.dakhl-lqv-pill.is-disabled {
    opacity: 0.36;
    text-decoration: line-through;
    cursor: not-allowed;
}

.dakhl-lqv-swatch-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

/* Inline Validation Notice Pill */
.dakhl-lqv-notice {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.24);
    color: #e11d48;
    font-size: 10.5px;
    font-weight: 600;
}

.dakhl-lqv-notice.is-shown {
    display: inline-flex;
}

/* Capsule Buy Action Bar */
.dakhl-lqv-actions {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dakhl-lqv-qty {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.dakhl-lqv-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dakhl-lqv-qty-btn:hover {
    background: #ffffff;
    color: #0f172a;
}

.dakhl-lqv-qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    user-select: none;
}

.dakhl-lqv-buy-btn {
    flex: 1;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
    transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.18s ease, filter 0.18s ease;
}

.dakhl-lqv-buy-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(16, 185, 129, 0.36);
    filter: brightness(1.04);
    color: #ffffff;
}

.dakhl-lqv-buy-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.dakhl-lqv-buy-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    background: #94a3b8;
}

.dakhl-lqv-buy-btn svg {
    width: 13.5px;
    height: 13.5px;
    flex-shrink: 0;
}

.dakhl-lqv-buy-btn .dakhl-lqv-btn-spin {
    display: none;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dakhl-lca-spin 0.65s linear infinite;
}

.dakhl-lqv-buy-btn.is-loading .dakhl-lqv-btn-label,
.dakhl-lqv-buy-btn.is-loading svg {
    display: none;
}

.dakhl-lqv-buy-btn.is-loading .dakhl-lqv-btn-spin {
    display: block;
}

.dakhl-lqv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.dakhl-lqv-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.18s ease;
}

.dakhl-lqv-more-link:hover {
    color: #0f172a;
}

.dakhl-lqv-more-link svg {
    width: 12px;
    height: 12px;
}

/* Modal Dark Mode (Matches Screenshot Obsidian Theme Seamlessly) */
html.dakhl-dark-mode .dakhl-lqv-overlay {
    background: rgba(2, 6, 23, 0.72);
}

html.dakhl-dark-mode .dakhl-lqv-dialog {
    background: #131b2b;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html.dakhl-dark-mode .dakhl-lqv-close {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

html.dakhl-dark-mode .dakhl-lqv-close:hover {
    background: rgba(244, 63, 94, 0.22);
    color: #fda4af;
}

html.dakhl-dark-mode .dakhl-lqv-media {
    background: #0d1320;
}

html.dakhl-dark-mode .dakhl-lqv-slider-wrap {
    background: #182235;
}

html.dakhl-dark-mode .dakhl-lqv-nav-btn {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

html.dakhl-dark-mode .dakhl-lqv-nav-btn:hover {
    background: rgba(30, 41, 59, 0.95);
}

html.dakhl-dark-mode .dakhl-lqv-brand-pill {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

html.dakhl-dark-mode .dakhl-lqv-stock-pill.in-stock {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

html.dakhl-dark-mode .dakhl-lqv-stock-pill.out-stock {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
}

html.dakhl-dark-mode .dakhl-lqv-title {
    color: #f1f5f9;
}

html.dakhl-dark-mode .dakhl-lqv-price-capsule {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(148, 163, 184, 0.14);
}

html.dakhl-dark-mode .dakhl-lqv-price-num {
    color: #f8fafc;
}

html.dakhl-dark-mode .dakhl-lqv-toman-wrap {
    color: #94a3b8;
}

html.dakhl-dark-mode .dakhl-lqv-reg-price {
    color: #64748b;
}

html.dakhl-dark-mode .dakhl-lqv-desc {
    color: #94a3b8;
}

html.dakhl-dark-mode .dakhl-lqv-attr-group {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.13);
}

html.dakhl-dark-mode .dakhl-lqv-attr-group.is-missing {
    border-color: rgba(251, 113, 133, 0.72);
    background: rgba(244, 63, 94, 0.1);
}

html.dakhl-dark-mode .dakhl-lqv-attr-label {
    color: #e2e8f0;
}

html.dakhl-dark-mode .dakhl-lqv-pill {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

html.dakhl-dark-mode .dakhl-lqv-pill:hover:not(:disabled) {
    border-color: #34d399;
    color: #6ee7b7;
}

html.dakhl-dark-mode .dakhl-lqv-pill.is-selected {
    background: #10b981;
    border-color: #34d399;
    color: #052e16;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.32);
}

html.dakhl-dark-mode .dakhl-lqv-swatch-dot {
    border-color: rgba(255, 255, 255, 0.28);
}

html.dakhl-dark-mode .dakhl-lqv-notice {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(251, 113, 133, 0.3);
    color: #fda4af;
}

html.dakhl-dark-mode .dakhl-lqv-qty {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.16);
}

html.dakhl-dark-mode .dakhl-lqv-qty-btn {
    color: #cbd5e1;
}

html.dakhl-dark-mode .dakhl-lqv-qty-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #f8fafc;
}

html.dakhl-dark-mode .dakhl-lqv-qty-val {
    color: #f8fafc;
}

html.dakhl-dark-mode .dakhl-lqv-footer {
    border-top-color: rgba(148, 163, 184, 0.12);
}

html.dakhl-dark-mode .dakhl-lqv-more-link {
    color: #94a3b8;
}

html.dakhl-dark-mode .dakhl-lqv-more-link:hover {
    color: #f8fafc;
}

/* Mobile Responsive Capsule Modal */
@media (max-width: 640px) {
    .dakhl-lqv-dialog {
        width: 94vw;
        max-height: 88vh;
        border-radius: 26px;
    }

    .dakhl-lqv-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .dakhl-lqv-media {
        padding: 12px 12px 0 12px;
    }

    .dakhl-lqv-slider-wrap {
        width: min(250px, 100%);
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
        border-radius: 20px;
    }

    .dakhl-lqv-slide img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        max-height: none;
        object-fit: cover;
    }

    .dakhl-lqv-info {
        padding: 12px 14px 14px 14px;
        overflow-y: visible;
    }

    .dakhl-lqv-meta-row {
        padding-left: 0;
    }
}

/* Body scroll lock & keep floating widgets (Size Guide, Live Chat) behind Quick View modal */
body.dakhl-lqv-locked {
    overflow: hidden !important;
}

body.dakhl-lqv-locked #dakhl-size-guide-floating-btn,
body.dakhl-lqv-locked .dakhl-lc-trigger,
body.dakhl-lqv-locked #dakhl-lc-trigger {
    z-index: 100 !important;
    pointer-events: none !important;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .dakhl-lca-wave-fill,
    .dakhl-lca-wave-crest,
    .dakhl-lca-wave-pill {
        animation-duration: 0.45s !important;
    }
}
