*,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
    input,
    textarea,
    select {
        user-select: text;
        -webkit-user-select: text;
    }
    img {
        user-select: none;
        -webkit-user-select: none;
        pointer-events: none;
        -webkit-user-drag: none;
        display: block;
    }
    button,
    a {
        touch-action: manipulation;
    }
    html {
        -webkit-text-size-adjust: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    /* OPTIMIZATION: CPU Zoom replaced with GPU Scale */
    #cart-sidebar {
        transform: scale(0.8);
        transform-origin: top right;
        height: 125%;
        /* OPTIMIZATION: content-visibility managed via media query below for mobile stability */
        content-visibility: auto;
        contain-intrinsic-size: 500px;
    }
    .checkout-header,
    .checkout-content,
    .checkout-footer,
    #appFrame {
        zoom:0.8;
        transform-origin: top left;
        width: 100%;
        /* FIX: Prevent disappearing elements on mobile by forcing GPU layer */
        transform: translateZ(0);
    }
    .product-grid {
      zoom:0.8;
      transform-origin: top center;
    }

    .product-card__price,
    .old-price,
    .cart-item-price,
    .cart-item-old-price {
      position: relative;
      z-index: 2;
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        will-change: auto !important;
        backface-visibility: visible !important;
    }
    body.is-modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: var(--z-back);
        background: radial-gradient(circle at 50% 0%, #1a2e25 0%, #050806 80%);
        pointer-events: none;
        will-change: transform; /* GPU Optimization */
    }
    @media (min-width: 1025px) {
        body::after {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: var(--z-back);
            pointer-events: none;
            /* OPTIMIZATION: Base64 removed. Replaced with 0KB CSS Pattern */
            background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
            background-size: 4px 4px;
            opacity: 0.1; /* Adjusted to match original visual look exactly */
            contain: strict;
        }
    }
    @media (max-width: 768px) {
        body::before {
            background: #050806;
            will-change: auto; /* RAM OPTIMIZATION: Remove GPU hint on static bg */
        }
        /* OPTIMIZATION: Removed heavy text rendering */
        * {
            /* text-rendering: optimizeLegibility; removed for speed */
            text-shadow: none !important; /* PERFORMANCE: Global text shadow removal for mobile */
            box-shadow: none !important; /* PERFORMANCE: Start clean, re-add specific shadows only */
            backdrop-filter: none !important; /* PERFORMANCE: No blurs on mobile */
            -webkit-backdrop-filter: none !important;
        }
        /* FIX: Re-enable minimal shadows where needed for visibility */
        .product-card, .floating-cart-btn, .confirm-box {
             box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
        }
    }

    .category-tabs {
        transform: scale(0.8);      /* YERİNE BUNU YAZ (GPU tabanlı güvenli küçültme) */
        width: 125%;                /* YERİNE BUNU YAZ (0.8 scale olduğu için %125 genişlik vererek %100'e tamamlıyoruz) */
        transform-origin: top center;
        display: flex;
        gap: 10px;
        margin-bottom: 30px;
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
        z-index: 1000;
        width: 100%;
        max-width: 1500px; /* Adjusted for scale */
        transform: translateZ(0);
        contain: layout;
    }
    .category-btn {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(197, 160, 101, 0.2);
        color: var(--text-muted);
        padding: 10px 18px;
        border-radius: 30px;
        font-family: var(--font-family);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        /* OPTIMIZATION: Specific transitions */
        transition:
            background-color 0.2s,
            color 0.2s,
            border-color 0.2s,
            transform 0.2s,
            opacity 0.3s ease,
            filter 0.3s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        position: relative;
        z-index: 2;
        opacity: 0.7;
        filter: grayscale(0.4);
        backface-visibility: hidden;
        transform: translate3d(0,0,0);
    }
    .category-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 30px;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
        pointer-events: none;
    }
    .category-btn svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
        opacity: 0.8;
    }
    @media (hover: hover) {
        .category-btn:hover {
            background: rgba(197, 160, 101, 0.1);
            color: var(--accent-light);
            opacity: 0.9;
            filter: grayscale(0);
        }
    }
    .category-btn.active {
        transform: scale(1.05);
        z-index: 10;
        color: #fff !important;
        opacity: 1 !important;
        filter: none !important;
    }
    .category-btn.active svg {
        opacity: 1;
    }
    .category-btn.active::before {
        opacity: 1;
    }
    /* DESKTOP ONLY GLOW EFFECTS */
    @media (min-width: 769px) {
        .category-btn[data-filter="all"].active::before {
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
        }
        .category-btn[data-filter="relationship"].active::before {
            box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
        }
        .category-btn[data-filter="manipulation"].active::before {
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
        }
        .category-btn[data-filter="psychology"].active::before {
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
        }
        .category-btn[data-filter="career"].active::before {
            box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
        }
    }
    /* MOBILE OPTIMIZATION: Category Button Active State */
    @media (max-width: 768px) {
        .category-btn.active {
            background: var(--accent-primary) !important; /* Solid Gold Background */
            color: #000 !important; /* Black Text */
            border-color: var(--accent-primary) !important;
            transform: scale(1) !important; /* No scaling on mobile to save layout calc */
        }
        .category-btn.active::before {
            display: none !important; /* Remove glow container */
            box-shadow: none !important;
        }
        .category-btn.active svg {
            fill: #000 !important;
            opacity: 1 !important;
        }
    }

    .product-grid {
        display: grid;
        width: 100%;
        max-width: 1500px; /* Adjusted for scale */
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        row-gap: 32px;
        margin: 0 auto;
        position: relative;
        z-index: 95;
        transition: opacity 0.3s ease;
        touch-action: pan-y;
        contain: layout;
        padding: 0 15px;
    }
    .product-grid.is-filtering .product-card {
        transition:
            opacity 0.3s ease,
            transform 0.3s ease !important;
    }
    .product-card.hidden {
        display: none;
    }
    body.is-cart-open .product-grid,
    body.is-detail-open .product-grid,
    body.is-checkout-open .product-grid,
    body.is-payment-open .product-grid {
        opacity: 0.3;
    }
    @media (min-width: 1024px) {
        .product-grid {
            max-width: 1875px; /* Adjusted for scale */
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            row-gap: 24px;
        }
    }
    .product-card.reveal-on-scroll {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
        transition:
            opacity 0.8s ease,
            transform 0.8s var(--ease-smooth);
    }
    /* MOBILE OPTIMIZATION: Remove Scale/Grow Animation */
    @media (max-width: 768px) {
        .product-card.reveal-on-scroll {
            transform: translateY(10px) !important; /* Just slight slide */
        }
        .product-card.reveal-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0) !important; /* No Scale */
        }
    }
    @media (min-width: 769px) {
        .product-card.reveal-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .product-card {
        background: rgba(14, 20, 18, 0.98);
        border: 1px solid rgba(197, 160, 101, 0.35);
        border-top: 1px solid rgba(197, 160, 101, 0.5);
        border-radius: var(--card-radius);
        padding: 12px;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        transition: transform 0.4s var(--ease-spring);
        z-index: 1;
        cursor: pointer;
        will-change: transform;
        /* OPTIMIZATION: content-visibility managed via media query below */
        content-visibility: auto;
        contain-intrinsic-size: 400px;
        contain: layout paint;
    }
    /* FIX: Disappearing Elements Fix for Mobile */
    @media (max-width: 768px) {
        .product-card, #cart-sidebar, .checkout-content, .detail-content {
            content-visibility: visible !important; /* Fix disappearing items */
            contain-intrinsic-size: unset !important;
            will-change: auto !important; /* RAM SAVER: Remove will-change on mobile list items */
        }
    }

    .product-card.is-filtered-out {
        display: none !important;
    }
    .product-card__shadow-host {
        position: absolute;
        inset: 0;
        border-radius: var(--card-radius);
        /* OPTIMIZATION: Reduced spread for faster rasterization */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: -1;
        transition: none;
    }
    @media (max-width: 768px) {
        .product-card__shadow-host {
            box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important; /* PERFORMANCE: Simple shadow */
        }
    }

    .product-card__shadow-host::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--card-radius);
        border: 1px solid var(--accent-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }
    .product-card__shadow-host::after {
        content: "";
        position: absolute;
        inset: -20px;
        border-radius: var(--card-radius);
        background: radial-gradient(circle at center, rgba(197, 160, 101, 0.25), transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    /* MOBILE OPTIMIZATION: Disable expensive shadows/glows */
    @media (max-width: 768px) {
        .product-card__shadow-host::after {
            display: none !important; /* Kill the heavy radial gradient shadow */
        }
        .product-card__shadow-host::before {
            border-width: 2px !important; /* Make border thicker to compensate for lost glow */
        }
    }

    .product-card.is-in-focus .product-card__shadow-host::after,
    .product-card.is-in-focus .product-card__shadow-host::before {
        opacity: 1;
    }
    .product-card.is-in-focus .product-card__shadow-host::after {
        animation: pulseGlow 4s infinite alternate;
    }
    @media (max-width: 768px) {
        .product-card.is-in-focus .product-card__shadow-host::after {
            animation: none !important; /* Kill animation on mobile */
        }
    }

    @keyframes pulseGlow {
        0% {
            opacity: 0.2;
            transform: scale(0.95);
        }
        100% {
            opacity: 0.4;
            transform: scale(1.05);
        }
    }
    .product-card.anim-enter {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
        transition: none !important;
    }
    .product-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(115deg, transparent 40%, rgba(197, 160, 101, 0.4) 50%, transparent 60%);
        transform: translateX(-150%) skewX(-20deg);
        pointer-events: none;
        z-index: 10;
    }
    @media (max-width: 1024px) {
        .product-card.is-in-focus {
            transform: translateY(-5px) !important;
            z-index: 100;
        }
        .product-card.is-in-focus .product-card__feature-icon {
            border-color: var(--accent-primary);
            background: rgba(197, 160, 101, 0.15);
            /* box-shadow: 0 0 12px var(--glow-color); removed for mobile in below block */
            color: #fff;
        }
        .product-card::after {
            display: none;
        }
    }
    @media (hover: hover) and (min-width: 1024px) {
        .product-card:hover::after {
            animation: sheen 0.7s forwards;
        }
        .product-card:hover {
            transform: translateY(-10px) scale(1.05) !important;
            z-index: 100;
        }
        .product-card:hover .product-card__shadow-host::after,
        .product-card:hover .product-card__shadow-host::before {
            opacity: 1;
        }
        .product-card:hover .product-card__feature-icon {
            border-color: var(--accent-primary);
            background: rgba(197, 160, 101, 0.15);
            box-shadow: 0 0 12px var(--glow-color);
            color: #fff;
        }
    }
    .product-card.sheen-trigger::after {
        animation: sheen 1s forwards;
    }
    @keyframes sheen {
        0% {
            transform: translateX(-150%) skewX(-20deg);
        }
        100% {
            transform: translateX(150%) skewX(-20deg);
        }
    }
    .product-card::before {
        content: "PREMIUM";
        position: absolute;
        top: 10px;
        left: 25px;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 1px;
        color: var(--accent-primary);
        opacity: 0.8;
        z-index: 3;
        pointer-events: none;
    }
    .discount-badge-prime {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 4;
        /* OPTIMIZATION: Backdrop-filter removed, opacity used instead */
        background: rgba(5, 10, 8, 0.9);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: var(--accent-primary);
        font-size: 10px;
        font-weight: 800;
        padding: 4px 8px 4px 18px;
        border-radius: 4px;
        letter-spacing: 0.5px;
        font-family: var(--font-family);
        border: 1px solid var(--accent-primary);
        display: flex;
        align-items: center;
        will-change: transform;
        box-shadow: 0 0 10px rgba(197, 160, 101, 0.2);
    }
    .discount-badge-prime::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: #ff4d4d;
        border-radius: 50%;
        box-shadow:
            0 0 8px #ff4d4d,
            0 0 12px rgba(255, 77, 77, 0.5);
        animation: livePulse 1.5s infinite;
    }
    @keyframes livePulse {
        0% {
            opacity: 1;
        }
        50% {
            opacity: 0.4;
        }
        100% {
            opacity: 1;
        }
    }
    @media (min-width: 1024px) {
        .discount-badge-prime {
            font-size: 11px;
            padding: 6px 12px 6px 22px;
        }
        .discount-badge-prime::before {
            width: 7px;
            height: 7px;
            left: 8px;
        }
    }
    @media (max-width: 768px) {
        .discount-badge-prime::after {
            animation: none;
            display: none;
        }
    }
    .product-card__slider-wrapper {
        width: 100%;
        position: relative;
        top:8px;
        margin-bottom: 12px;
        border-radius: 10px;
        overflow: hidden;
        background: transparent;
        padding: 30px 4px;
        touch-action: pan-y;
        contain: layout paint;
    }
    .product-card__slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        scroll-behavior: smooth;
        user-select: none;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        contain: layout paint;
    }
    .product-card__slider::-webkit-scrollbar {
        display: none;
    }
    .product-card__image {
        backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: cover;
        scroll-snap-align: center;
        display: block;
        border-radius: 8px;
        margin-right: 5px;
    }
    .product-card__image[loading="lazy"] {
        content-visibility: visible;
    }
    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        /* OPTIMIZATION: Backdrop-filter removed */
        background: rgba(10, 20, 16, 0.9);
        border: 1px solid rgba(197, 160, 101, 0.3);
        color: var(--accent-primary);
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: background-color 0.2s;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        user-select: none;
        will-change: transform;
    }
    @media (hover: hover) {
        .slider-nav:hover {
            background: var(--accent-primary);
            color: #0a1410;
            border-color: var(--accent-primary);
        }
    }
    .slider-nav.prev {
        left: 10px;
    }
    .slider-nav.next {
        right: 10px;
    }
    .slider-nav svg {
        width: 12px;
        height: 12px;
        fill: currentColor;
    }
    @media (min-width: 1024px) {
        .product-card:hover .slider-nav,
        .detail-slider-wrapper:hover .slider-nav {
            display: flex;
        }
    }
    @media (max-width: 768px) {
        .slider-nav {
            display: none !important;
        }
    }
    .product-card__dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-bottom: 14px;
    }
    .product-card__dot {
        width: 16px;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 1px;
        transition:
            background-color 0.3s,
            transform 0.3s var(--ease-smooth);
        cursor: pointer;
    }
    .product-card__dot.active {
        background-color: var(--accent-primary);
        transform: scaleX(1.5);
    }
    .product-card__cta {
        margin-bottom: 16px;
        position: relative;
        z-index: 10;
    }
    .product-card__button {
        width: 100%;
        height: var(--btn-height);
        border: none;
        border-radius: 8px;
        background: linear-gradient(135deg, #8c6b3d 0%, #c5a065 50%, #5e4626 100%);
        font-weight: 600;
        font-size: 11px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0;
        margin: 0;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.1s cubic-bezier(0.2, 0.6, 0.2, 1);
        z-index: 20;
        color: #0a1410 !important;
    }
    .product-card__button span,
    .product-card__button svg {
        position: relative;
        z-index: 30;
        pointer-events: none;
        -webkit-font-smoothing: antialiased;
        color: #0a1410 !important;
    }
    .product-card__button svg {
        width: 14px;
        height: 14px;
        fill: #0a1410;
    }
    .product-card__button::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
        transform: skewX(-25deg) translateX(-300%);
        animation: shine 6s infinite;
        pointer-events: none;
        z-index: 5;
    }
    @keyframes shine {
        0%,
        100% {
            transform: skewX(-25deg) translateX(-300%);
        }
        20% {
            transform: skewX(-25deg) translateX(500%);
        }
    }
    @media (max-width: 768px) {
        .product-card__button::after {
            display: none;
        }
    }
    .product-card__button:active {
        transform: none;
    }
    .product-card__button.added {
        background: linear-gradient(135deg, #c5a065 0%, #e8dcb5 50%, #c5a065 100%);
    }
    .product-card__features {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
        padding: 0 4px;
        position: relative;
        z-index: 5;
    }
    .product-card__feature {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .product-card__feature-icon {
        width: 26px;
        height: 26px;
        background: rgba(20, 35, 30, 0.6);
        border: 1px solid rgba(197, 160, 101, 0.2);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--accent-primary);
        transition:
            border-color 0.3s,
            background-color 0.3s,
            box-shadow 0.3s;
    }
    /* MOBILE OPTIMIZATION: Minimize Icon Glow */
    @media (max-width: 768px) {
        .product-card__feature-icon {
            box-shadow: none !important; /* Remove glow */
            border-color: var(--accent-primary) !important; /* Ensure visibility with border */
            background-color: rgba(20, 35, 30, 0.9) !important; /* Slightly more solid background */
        }
    }

    .product-card__feature-icon svg {
        width: 15px;
        height: 15px;
        fill: currentColor;
    }
    .product-card__feature-text {
        font-size: 11px;
        color: var(--text-main);
        font-weight: 500;
        letter-spacing: 0.3px;
        opacity: 0.95;
    }
    @media (min-width: 1024px) {
        .product-card__feature-text {
            font-size: 13px;
            font-weight: 700;
            color: #fff;
            opacity: 1;
        }
    }
    .product-card__footer {
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start !important;
        gap: 10px;
        position: relative;
        z-index: 5;
        min-height: 50px;
    }
    .noble-timer {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: "Manrope", sans-serif;
        font-size: 15px;
        font-weight: 800;
        color: #fff;
        background: rgba(0, 0, 0, 0.8);
        padding: 4px 10px;
        border-radius: 4px;
        border: 1px solid rgba(197, 160, 101, 0.3);
        letter-spacing: 0.5px;
        margin-left: auto;
        min-width: 90px;
        justify-content: center;
        contain: layout paint;
    }
    .noble-timer svg {
        width: 13px;
        height: 13px;
        fill: var(--accent-primary);
    }
    .mobile-footer-row {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        gap: 8px;
    }
    @media (max-width: 768px) {
        .product-card__footer {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 2px !important;
            padding-top: 8px;
        }
        .product-card__footer:not(.has-discount) {
            flex-direction: row !important;
            align-items: center !important;
            justify-content: flex-start !important;
            padding-top: 12px;
            min-height: auto;
        }
        .noble-timer {
            margin-left: 0;
            font-size: 14px;
            padding: 2px 8px;
            background: rgba(0, 0, 0, 0.8);
            border-color: var(--accent-primary);
            flex-shrink: 0;
        }
        .product-card__discount-text {
            font-size: 13px;
            font-weight: 800;
            color: var(--accent-danger);
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
    }
    @media (min-width: 769px) {
        .product-card__discount-text {
            font-size: 14px !important;
            font-weight: 800;
            color: var(--accent-danger);
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .product-card__discount-text::after {
            content: " KAZANÇ";
        }
    }
    .price-container {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .old-price {
        font-size: 13px;
        color: var(--text-muted);
        text-decoration: line-through;
        font-weight: 600;
        opacity: 0.7;
    }
    .product-card__price {
        font-size: 24px;
        font-weight: 800;
        background: linear-gradient(135deg, #a5a5a5 0%, #e8dcb5 50%, #c5a065 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: var(--accent-primary);
        letter-spacing: -0.5px;
        line-height: 1;
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: visible !important;
    }
    .product-card__price-symbol {
        font-size: 18px;
        font-weight: 400;
        vertical-align: top;
        margin-right: 2px;
    }
    @media (max-width: 380px) {
        .product-card__price {
            font-size: 20px;
        }
        .price-container {
            flex-wrap: wrap;
            gap: 4px;
        }
    }
    .floating-cart-btn {
        position: fixed;
        bottom: 100px;
        right: 25px;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #c5a065 0%, #e8dcb5 100%);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        box-shadow:
            0 5px 20px rgba(197, 160, 101, 0.5),
            0 0 0 2px rgba(10, 20, 16, 0.5);
        z-index: 1100;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0a1410;
        touch-action: none;
        user-select: none;
    }
    .floating-cart-btn.is-hidden {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
    .floating-cart-btn svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
        pointer-events: none;
    }
    .cart-count-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #0a1410;
        color: var(--accent-primary);
        border: 1px solid var(--accent-primary);
        font-size: 10px;
        font-weight: 800;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        transform: scale(1);
        transition: transform 0.3s var(--ease-fluid);
        pointer-events: none;
        z-index: 200;
    }
    #cart-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 625px; /* Adjusted for scale */
        max-width: 125%;
        height: 125%;
        background: #0e0e0e;
        border-left: 1px solid rgba(197, 160, 101, 0.15);
        box-shadow: none;
        z-index: 1100;
        transform: translateX(100%) scale(0.8);
        transform-origin: top right;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        flex-direction: column;
        padding: 25px;
        padding-bottom: max(25px, env(safe-area-inset-bottom));
        overflow: hidden;
        overscroll-behavior: contain;
        touch-action: none;
        isolation: isolate;
        will-change: transform;
        content-visibility: auto;
        contain-intrinsic-size: 500px;
    }
    body.is-cart-open #cart-sidebar {
        transform: translateX(0) scale(0.8);
        box-shadow: -5px 0 30px rgba(197, 160, 101, 0.3);
    }
    @media (max-width: 768px) {
        body.is-cart-open #cart-sidebar {
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        }
    }
    @media (min-width: 1024px) {
        #cart-sidebar {
            width: 781px; /* Adjusted for scale */
        }
        .cart-title {
            font-size: 22px !important;
        }
        .cart-item-img {
            width: 80px !important;
            height: 110px !important;
        }
        .cart-item-info {
            height: 110px !important;
        }
        .cart-item-title {
            font-size: 16px !important;
            max-width: 350px !important;
        }
        .cart-item-price {
            font-size: 18px !important;
        }
        .cart-row {
            font-size: 15px !important;
        }
        .cart-row.total {
            font-size: 20px !important;
        }
        .cart-row.total span:last-child {
            font-size: 28px !important;
        }
        .cart-checkout-btn {
            height: 65px !important;
            font-size: 16px !important;
        }
    }
    .cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(197, 160, 101, 0.1);
        margin-bottom: 15px;
        flex-shrink: 0;
    }
    .cart-title-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .cart-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--accent-light);
        letter-spacing: 0.5px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .cart-clear-btn {
        font-size: 13px;
        color: var(--accent-danger);
        background: transparent;
        border: none;
        cursor: pointer;
        text-align: left;
        padding: 0;
        margin-top: 4px;
        opacity: 0.8;
        transition: opacity 0.2s;
    }
    .cart-clear-btn:hover {
        opacity: 1;
        text-decoration: underline;
    }
    .cart-close {
        background: transparent;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        font-size: 28px;
        line-height: 1;
        padding: 0 5px;
    }
    .cart-items {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        overflow-x: hidden;
        touch-action: pan-y;
        min-height: 200px;
        visibility: visible;
        overflow-anchor: none;
        z-index: 0;
        overscroll-behavior: contain;
        padding-right: 8px;
    }
    .cart-items::-webkit-scrollbar {
        width: 5px;
        background-color: transparent;
    }
    .cart-items::-webkit-scrollbar-track {
        background-color: transparent;
    }
    .cart-items::-webkit-scrollbar-thumb {
        background-color: var(--accent-dark);
        border-radius: 10px;
    }
    .cart-item {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(197, 160, 101, 0.1);
        padding: 12px;
        border-radius: 10px;
        position: relative;
        transition:
            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease;
        min-height: 104px;
        z-index: 1;
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    .cart-item.sliding-out {
        transform: translateX(105%) !important;
        opacity: 0 !important;
        pointer-events: none;
    }
    .cart-item-img {
        width: 60px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
    }
    .cart-item-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 80px;
    }
    .cart-item-type {
        font-size: 10px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        width: fit-content;
        margin-bottom: 4px;
    }
    .cart-item-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-main);
        line-height: 1.3;
        max-width: 180px;
    }
    .cart-item-remove {
        position: absolute;
        right: 10px;
        top: 10px;
        background: transparent;
        border: none;
        color: var(--accent-danger);
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.7;
        transition: opacity 0.2s;
    }
    .cart-item-remove svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }
    .cart-item-price-container {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }
    .cart-item-old-price {
        font-size: 11px;
        text-decoration: line-through;
        color: var(--text-muted);
        opacity: 0.8;
    }
    .cart-item-price {
        font-size: 14px;
        color: var(--accent-primary);
        font-weight: 700;
    }
    .cart-summary {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 10px;
        flex-shrink: 0;
        height: auto !important;
    }
    .cart-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
        font-size: 13px;
        color: var(--text-muted);
    }
    .cart-row.discount {
        color: #fff;
        font-weight: 800;
        padding: 10px;
        background: linear-gradient(135deg, rgba(197, 160, 101, 0.3) 0%, rgba(197, 160, 101, 0.1) 100%);
        border: 1px solid var(--accent-primary);
        border-radius: 8px;
        margin-bottom: 12px;
        align-items: center;
        box-shadow: 0 0 15px rgba(197, 160, 101, 0.2);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    .cart-row.total {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0;
        font-size: 17px;
        color: var(--accent-light);
        font-weight: 700;
    }
    .cart-row.total span:last-child {
        color: var(--accent-primary);
        font-size: 22px;
    }
    .cart-bottom {
        flex-shrink: 0;
        flex-grow: 0;
        display: flex;
        flex-direction: column;
    }
    .cart-agreement {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 11px;
        color: var(--text-muted);
        margin-bottom: 20px;
        line-height: 1.4;
        cursor: pointer;
    }
    .cart-checkbox {
        appearance: none;
        width: 16px;
        height: 16px;
        border: 1px solid var(--text-muted);
        border-radius: 3px;
        flex-shrink: 0;
        position: relative;
        cursor: pointer;
        margin-top: 1px;
    }
    .cart-checkbox:checked {
        background-color: var(--accent-primary);
        border-color: var(--accent-primary);
    }
    .cart-checkbox:checked::after {
        content: "✓";
        position: absolute;
        color: #000;
        font-size: 12px;
        left: 3px;
        top: -1px;
        font-weight: bold;
    }
    .cart-agreement a {
        color: var(--accent-light);
        text-decoration: none;
        border-bottom: 1px dotted var(--accent-light);
    }
    .cart-checkout-btn,
    .submit-order-btn,
    .add-to-cart-detail-btn {
        width: 100%;
        height: 50px;
        border: none;
        border-radius: 8px;
        background: linear-gradient(135deg, #888 0%, #aaa 100%);
        color: #0a1410 !important;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition:
            opacity 0.3s,
            transform 0.2s,
            background-color 0.3s;
        opacity: 0.7;
        z-index: 20;
        position: relative;
    }
    .cart-checkout-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        filter: grayscale(0.8);
    }
    .cart-checkout-btn.active,
    .submit-order-btn.active,
    .add-to-cart-detail-btn {
        background: linear-gradient(135deg, #8c6b3d 0%, #c5a065 50%, #5e4626 100%);
        opacity: 1;
    }
    .cart-trust {
        margin-top: 15px;
        text-align: center;
        font-size: 10px;
        color: var(--text-muted);
        opacity: 0.6;
    }
    #checkout-modal,
    #product-detail-view,
    #payment-modal,
    #library-view,
    #notes-view,
    #reader-view {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background: #0e0e0e;
        z-index: var(--z-modal);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        will-change: transform;
        overscroll-behavior: contain;
        touch-action: none;
    }
    #product-detail-view {
        z-index: var(--z-modal-high);
        background: var(--bg-body);
    }
    #payment-modal {
        z-index: 1350;
        background: #0c1a24 !important;
    }
    #library-view {
        z-index: 1250;
        transition:
            transform 0.5s var(--ease-smooth),
            background 0.3s ease;
    }
    #library-view::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        /* OPTIMIZATION: mix-blend-mode removed. Opacity adjusted. */
        background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZHRoPSI0IiBmaWxsPSIjMWEyZTI1IiAvPgo8cmVjdCB3aWR0aD0iMSIgaGVpZHRoPSIxIiBmaWxsPSIjMDUwODA2IiAvPgo8L3N2Zz4=");
        opacity: 0.05; /* Adjusted for visual match without blend mode */
        z-index: -1;
    }
    #notes-view {
        z-index: 1260;
        background: var(--bg-body);
    }
    @media (min-width: 1024px) {
        #checkout-modal,
        #payment-modal,
        #library-view,
        #notes-view {
            width: 750px; /* Adjusted for scale */
            border-left: 1px solid rgba(197, 160, 101, 0.15);
            box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
        }
        #product-detail-view {
            width: 1062.5px !important; /* Adjusted for scale */
            border-left: 1px solid rgba(197, 160, 101, 0.15);
            box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
        }
        #library-view,
        #notes-view {
            width: 100%;
            border: none;
            box-shadow: none;
            left: 0;
            right: auto;
        }
        #reader-view {
            width: 100%;
            left: 0;
            right: 0;
            box-shadow: none;
            border: none;
        }
    }
    body.is-checkout-open #checkout-modal,
    body.is-detail-open #product-detail-view,
    body.is-payment-open #payment-modal,
    body.is-library-open #library-view,
    body.is-notes-open #notes-view,
    body.is-reader-open #reader-view {
        transform: translateX(0);
    }
    body.is-reader-open {
        overflow: hidden !important;
    }

    .checkout-header,
    .detail-header {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(197, 160, 101, 0.15);
        display: flex;
        align-items: center;
        gap: 15px;
        background: rgba(14, 14, 14, 0.98);
        flex-shrink: 0;
        contain: layout;
    }
    .checkout-back,
    .detail-back {
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(197, 160, 101, 0.3);
        border-radius: 12px;
        color: var(--accent-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            color 0.2s ease;
        margin-right: 5px;
        padding: 0;
        flex-shrink: 0;
        z-index: 50;
    }
    @media (hover: hover) {
        .checkout-back:hover,
        .detail-back:hover {
            background: var(--accent-primary);
            color: #0a1410;
            border-color: var(--accent-primary);
            transform: translateX(-2px);
            box-shadow: 0 0 15px var(--glow-color);
        }
    }
    .checkout-back svg,
    .detail-back svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
    .checkout-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--accent-light);
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    .checkout-subtitle {
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 500;
        letter-spacing: 0.5px;
        margin-top: 2px;
        display: block;
        text-transform: none;
    }
    .checkout-content,
    .detail-content {
        flex: 1;
        overflow-y: auto;
        padding: 25px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* OPTIMIZATION: Off-screen rendering disabled managed by mobile query above */
        content-visibility: auto;
    }
    .detail-content {
        will-change: transform;
    }
    .form-section {
        margin-bottom: 25px;
    }
    .form-title {
        font-size: 13px;
        color: var(--accent-primary);
        font-weight: 700;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-left: 2px solid var(--accent-primary);
        padding-left: 10px;
    }
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-error-msg {
        color: var(--accent-danger);
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 4px;
        display: none;
    }
    .form-group.error .form-error-msg {
        display: block;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .form-group.error .form-input,
    .form-group.error .form-select {
        border-color: var(--accent-danger);
        animation: shake 0.3s;
    }
    @keyframes shake {
        0%,
        100% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(-5px);
        }
        75% {
            transform: translateX(5px);
        }
    }
    .form-label {
        display: block;
        font-size: 11px;
        color: var(--text-muted);
        margin-bottom: 6px;
        font-weight: 600;
    }
    .form-input,
    .form-select {
        width: 100%;
        height: 45px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(197, 160, 101, 0.2);
        border-radius: 8px;
        padding: 0 15px;
        color: var(--text-main);
        font-family: var(--font-family);
        font-size: 14px;
    }
    .form-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c5a065' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 16px;
        background-color: #0a1410;
        color: #fff;
    }
    option {
        background: #0a1410;
        color: #fff;
    }
    .form-input:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--accent-primary);
        background: rgba(255, 255, 255, 0.05);
    }
    .checkout-footer,
    .detail-footer {
        padding: 20px 25px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        background: #0e0e0e;
        border-top: 1px solid rgba(197, 160, 101, 0.1);
        flex-shrink: 0;
    }
    .credit-card-container {
        perspective: 1200px;
        width: 100%;
        height: 210px;
        margin-bottom: 30px;
        cursor: default;
        touch-action: none;
        transition:
            transform 0.3s ease,
            height 0.3s ease,
            margin-bottom 0.3s ease;
    }
    .credit-card {
        width: 100%;
        height: 100%;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
        border-radius: 16px;
        font-variant-numeric: tabular-nums;
        /* OPTIMIZATION: Only animate transform on interaction */
        will-change: transform;
    }
    .credit-card.flipped {
        transform: rotateY(180deg) !important;
    }
    .card-face {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(45, 48, 52, 1) 0%, rgba(15, 18, 22, 1) 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            inset 0 0 25px rgba(255, 255, 255, 0.05),
            0 30px 60px rgba(0, 0, 0, 0.9),
            inset 1px 1px 0px rgba(255, 255, 255, 0.1);
        padding: 25px;
        overflow: hidden;
        color: #fff;
        user-select: none;
        -webkit-user-select: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        isolation: isolate;
    }
    .card-face::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
            radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
        z-index: -1;
    }
    .card-face::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(197, 160, 101, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 55%,
            transparent 80%
        );
        background-size: 200% 100%;
        animation: cardShine 6s infinite linear;
        /* OPTIMIZATION: mix-blend-mode removed. Opacity adjusted. */
        opacity: 0.4;
        /* mix-blend-mode: overlay; removed */
    }
    @keyframes cardShine {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    @media (max-width: 768px) {
        body.is-scrolling .card-face::after {
            animation: none;
            opacity: 0;
        }
        body.is-keyboard-active .card-face::after {
            animation: none;
            opacity: 0.1;
        }
        /* OPTIMIZATION: Disable shine animation always on mobile */
        .card-face::after {
            animation: none !important;
            display: none !important;
        }
    }
    .card-back {
        transform: rotateY(180deg);
        padding: 0;
    }
    .cc-magnetic-strip {
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, #111, #000);
        margin-top: 20px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    .cc-cvv-box {
        background: #fff;
        color: #000;
        padding: 5px 10px;
        margin: 20px 25px;
        border-radius: 4px;
        font-family: var(--font-tech);
        text-align: right;
        font-weight: bold;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    }
    .cc-cvv-label {
        padding: 0 25px;
        font-size: 10px;
        text-transform: uppercase;
        opacity: 0.7;
        text-align: right;
        font-weight: 600;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
    }
    .cc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        position: relative;
        z-index: 2;
    }
    .cc-chip {
        width: 45px;
        height: 34px;
        background: linear-gradient(135deg, #f1d691 0%, #a07e40 50%, #8a6b2d 100%);
        border-radius: 6px;
        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.5);
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    .cc-chip::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(0, 0, 0, 0.3);
    }
    .cc-chip::after {
        content: "";
        position: absolute;
        left: 33%;
        top: 0;
        width: 1px;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: 14px 0 0 rgba(0, 0, 0, 0.2);
    }
    .cc-logo {
        height: 24px;
        width: auto;
        display: flex;
        align-items: center;
        font-family: var(--font-luxury);
        font-weight: 700;
        font-size: 14px;
        color: var(--accent-primary);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
        letter-spacing: 0.5px;
    }
    .cc-number {
        font-size: 20px;
        letter-spacing: 1.5px;
        margin-bottom: 25px;
        position: relative;
        z-index: 2;
        font-family: var(--font-tech);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        white-space: nowrap;
        color: #fff;
        font-weight: 600;
    }
    .cc-footer {
        display: flex;
        justify-content: space-between;
        position: relative;
        z-index: 2;
    }
    .cc-holder-label,
    .cc-date-label {
        font-size: 8px;
        text-transform: uppercase;
        opacity: 0.8;
        margin-bottom: 4px;
        font-weight: 700;
        letter-spacing: 1px;
    }
    .cc-holder,
    .cc-date {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-family: var(--font-tech);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    }
    .secure-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
        font-size: 12px;
        color: var(--accent-light);
        opacity: 0.8;
    }
    .secure-badge svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
    }
    .detail-slider-wrapper {
        width: 40%;
        margin: 0 auto 20px auto;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow:
            0 0 35px rgba(197, 160, 101, 0.15),
            0 10px 40px rgba(0, 0, 0, 0.5);
        background: radial-gradient(circle at center, #c5a065 0%, #0a1410 70%, #000 100%);
        border: 1px solid rgba(197, 160, 101, 0.2);
        contain: paint;
    }
    .detail-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        user-select: none;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        contain: layout paint;
        touch-action: pan-x;
    }
    .detail-slider::-webkit-scrollbar {
        display: none;
    }
    .detail-slider-img {
        min-width: 100%;
        height: 240px;
        object-fit: contain;
        scroll-snap-align: center;
        display: block;
        border-radius: 8px;
    }
    #detail-slider img {
        height: 240px !important;
    }
    @media (min-width: 1024px) {
        .detail-slider-img,
        #detail-slider img {
            height: 255px !important;
        }
    }
    .detail-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-bottom: 20px;
    }
    .detail-meta {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 20px;
        justify-content: flex-start;
    }
    .detail-tag {
        font-size: 11px;
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        border-radius: 6px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
    }
    .detail-tag.full-width {
        margin-top: 2px;
    }
    .detail-title {
        font-size: 24px;
        font-weight: 800;
        color: var(--accent-light);
        margin-bottom: 10px;
        line-height: 1.2;
        text-align: left;
    }
    .detail-price-container {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 25px;
        justify-content: flex-start;
    }
    .detail-discount-tag {
        background: var(--accent-primary);
        color: #0a1410;
        font-size: 12px;
        font-weight: 800;
        padding: 4px 8px;
        border-radius: 6px;
        letter-spacing: 0.5px;
        margin-right: 5px;
    }
    .detail-old-price {
        font-size: 16px;
        color: var(--text-muted);
        text-decoration: line-through;
        font-weight: 600;
        opacity: 0.7;
    }
    .detail-price {
        font-size: 28px;
        font-weight: 800;
        color: var(--accent-primary);
        display: block;
    }
    .detail-desc-title {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
        color: var(--accent-light);
        text-shadow: 0 2px 10px rgba(197, 160, 101, 0.3);
        will-change: transform;
    }
    .detail-desc {
        font-size: 14px;
        line-height: 1.6;
        color: var(--text-main);
        margin-bottom: 20px;
        text-align: left;
        background: rgba(8, 14, 11, 0.95);
        padding: 20px;
        border-radius: 8px;
        border-left: 2px solid var(--accent-primary);
    }
    .blur-reveal-container {
        margin-top: 25px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        border: 1px solid rgba(197, 160, 101, 0.1);
    }
    .blur-reveal-title {
        font-size: 12px;
        color: var(--accent-primary);
        font-weight: 700;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .blur-reveal-text {
        font-family: "Lora", serif;
        font-style: italic;
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.8;
        /* PERFORMANCE: Replaced filter:blur with opacity toggle */
        opacity: 0;
        background: rgba(255, 255, 255, 0.08);
        transition: opacity 0.5s ease;
        cursor: pointer;
        user-select: none;
    }
    .blur-reveal-text:hover {
        /* PERFORMANCE: No recalculation of blur, just opacity paint */
        opacity: 1;
        background: transparent;
    }
    .authority-seal {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        opacity: 0.8;
    }
    .authority-seal svg {
        width: 60px;
        height: 60px;
        fill: var(--accent-primary);
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    }
    .authority-text {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--accent-dark);
        font-weight: 700;
    }
    .click-particle {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 2px solid var(--accent-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        animation: particleBurst 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        box-shadow: 0 0 10px var(--accent-primary);
    }
    /* MOBILE OPTIMIZATION: Disable Particle/Wave Effect */
    @media (max-width: 768px) {
        .click-particle {
            display: none !important;
            animation: none !important;
        }
    }

    @keyframes particleBurst {
        0% {
            transform: translate(-50%, -50%) scale(0);
            opacity: 1;
        }
        100% {
            transform: translate(-50%, -50%) scale(2.5);
            opacity: 0;
        }
    }
    @media (min-width: 1024px) {
        .detail-desc {
            font-size: 16px;
            line-height: 1.7;
        }
        .blur-reveal-text {
            color: rgba(242, 240, 230, 0.85);
        }
    }
    #custom-confirm-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 1400;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    #custom-confirm-modal.active {
        opacity: 1;
        pointer-events: auto;
    }
    .confirm-box {
        background: #0e0e0e;
        border: 1px solid var(--accent-primary);
        padding: 25px;
        border-radius: 16px;
        width: 90%;
        max-width: 320px;
        text-align: center;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        transform: scale(0.95);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }
    #custom-confirm-modal.active .confirm-box {
        transform: scale(1);
    }
    .confirm-title {
        font-size: 16px;
        font-weight: 800;
        color: var(--accent-light);
        margin-bottom: 10px;
    }
    .confirm-text {
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 20px;
        line-height: 1.5;
    }
    .confirm-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    .confirm-btn {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        border: none;
    }
    .confirm-btn.cancel {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-main);
    }
    .confirm-btn.confirm {
        background: var(--accent-danger);
        color: #fff;
    }
    @media (max-width: 768px) {
        body.is-keyboard-active,
        body.is-keyboard-active #payment-modal,
        body.is-keyboard-active #checkout-modal {
            overflow: hidden !important;
        }
        body.is-keyboard-active .credit-card-container {
            transform: scale(0.65);
            margin-bottom: -50px;
            transform-origin: top center;
            transition: transform 0.3s ease;
        }
        body.is-keyboard-active #payment-modal .checkout-header,
        body.is-keyboard-active #payment-modal .secure-badge,
        body.is-keyboard-active #payment-modal .form-title,
        body.is-keyboard-active #payment-modal .form-label {
            display: none !important;
        }
        body.is-keyboard-active #payment-modal .checkout-content {
            margin-top: 10px;
            padding: 0 20px 0 20px;
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            gap: 5px;
            overflow: hidden;
        }
        body.is-keyboard-active #payment-modal .form-group {
            margin-bottom: 2px;
        }
        body.is-keyboard-active #payment-modal .form-input {
            height: 38px;
            font-size: 16px;
        }
        body.is-keyboard-active #payment-modal .checkout-footer {
            padding: 0 20px 10px 20px;
            background: transparent;
            border: none;
            margin-top: 0;
            flex-shrink: 0;
            z-index: 20;
        }
        .credit-card {
            transition: none;
        }
        .card-face {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }
        .card-face::after {
            display: none;
        }
    }

    @media (min-width: 1024px) {

        .floating-cart-btn {
            width: 58px;
            height: 58px;
        }
        .floating-cart-btn svg {
            width: 28px;
            height: 28px;
        }
    }

    @media (max-width: 768px) {
        body::before {
            position: absolute !important;
            height: 100% !important;
            background: #050806 !important;
        }
        body {
            background-attachment: scroll !important;
        }
        .product-card {
            background: #0e1412 !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9) !important;
        }
        .product-card__shadow-host {
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6) !important;
        }
        .product-card__price,
        .detail-desc-title {
            background: none !important;
            -webkit-background-clip: initial !important;
            -webkit-text-fill-color: initial !important;
            color: #c5a065 !important;
            text-shadow: none !important;
        }
        .product-card::after,
        .product-card__button::after,
        .discount-badge-prime::after,
        .highlight-icon,
        .premium-icon {
            display: none !important;
            animation: none !important;
        }
        * {
            text-shadow: none !important;
        }
        button,
        a,
        input {
            touch-action: manipulation;
        }
        .product-card__slider,
        .detail-slider {
            touch-action: pan-x pan-y;
        }
        .product-grid.focus-mode .product-card {
            opacity: 0.35;
            transition:
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            backface-visibility: hidden;
        }
        .product-grid.focus-mode .product-card.is-in-focus {
            opacity: 1;
            transform: translateY(-5px) !important;
            z-index: 10;
        }

    }

    .payment-trust-footer {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        opacity: 0.6;
        filter: grayscale(1) brightness(2);
    }
    .payment-trust-footer svg {
        width: 32px;
        height: 32px;
        fill: var(--accent-light);
    }
    .address-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(197, 160, 101, 0.2);
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 12px;
        position: relative;
        transition: all 0.3s var(--ease-smooth);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        overflow: hidden;
    }
    .address-card.active {
        border-color: var(--accent-primary);
        background: rgba(197, 160, 101, 0.1);
        box-shadow: 0 0 20px rgba(197, 160, 101, 0.1);
    }
    .address-card-title {
        font-size: 14px;
        font-weight: 800;
        color: var(--accent-light);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .address-card-details {
        font-size: 12px;
        color: var(--text-muted);
        line-height: 1.4;
    }
    .address-card-actions {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
    }
    .address-action-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: color 0.2s;
    }
    .address-action-btn:hover {
        color: var(--accent-primary);
    }
    .address-action-btn.delete:hover {
        color: var(--accent-danger);
    }
    .new-address-btn {
        width: 100%;
        padding: 15px;
        background: rgba(197, 160, 101, 0.05);
        border: 1px dashed var(--accent-primary);
        border-radius: 12px;
        color: var(--accent-primary);
        font-weight: 700;
        font-size: 12px;
        cursor: pointer;
        transition: background 0.2s;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .new-address-btn:hover {
        background: rgba(197, 160, 101, 0.1);
    }
    #address-form-view {
        display: none;
        opacity: 0;
        transform: translateX(20px);
        transition:
            opacity 0.3s ease,
            transform 0.3s var(--ease-smooth);
    }
    #address-list-view {
        display: block;
        opacity: 1;
        transform: translateX(0);
        transition:
            opacity 0.3s ease,
            transform 0.3s var(--ease-smooth);
    }
    #address-form-view.active {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }
    #address-list-view.hidden {
        display: none;
        opacity: 0;
        transform: translateX(-20px);
    }
    .vazgec-btn {
        background: var(--accent-danger) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 10px 20px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: transform 0.2s ease !important;
        margin-top: 15px !important;
        width: 100% !important;
    }
    .vazgec-btn:hover {
        transform: scale(1.02);
    }
