/* Nakrytka.by cart + checkout styles (auto-loaded by cart.js) */

        .nakrutka-price {
            display: inline-flex;
            align-items: baseline;
            gap: 0.3rem;
            line-height: 1;
            white-space: nowrap;
        }

        .nakrutka-price-value {
            font-weight: 800;
            font-size: 1rem;
            letter-spacing: -0.03em;
            background: linear-gradient(120deg, #fcb045 0%, #fd1d1d 28%, #833ab4 62%, #ec4899 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 0 14px rgba(236, 72, 153, 0.22));
        }

        .nakrutka-price-currency {
            font-size: 0.68rem;
            font-weight: 700;
            color: #64748b;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .nakrutka-price--md .nakrutka-price-value {
            font-size: 1.12rem;
        }

        .nakrutka-price--lg .nakrutka-price-value {
            font-size: 1.38rem;
        }

        .nakrutka-price--xl .nakrutka-price-value {
            font-size: 1.6rem;
        }

        .nakrutka-price-pill {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            padding: 0.45rem 0.7rem;
            border-radius: 0.75rem;
            background: linear-gradient(135deg, rgba(252, 176, 69, 0.1), rgba(236, 72, 153, 0.12));
            border: 1px solid rgba(236, 72, 153, 0.28);
            box-shadow: 0 0 24px rgba(236, 72, 153, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        /* --- Shopping Cart (mobile-first) --- */
        body.cart-open,
        body.checkout-open {
            overflow: hidden;
        }

        .cart-fab {
            position: fixed;
            right: max(1rem, env(safe-area-inset-right));
            bottom: max(1rem, env(safe-area-inset-bottom));
            z-index: 120;
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 9999px;
            border: 1px solid rgba(236, 72, 153, 0.45);
            background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(190, 24, 93, 0.95));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(236, 72, 153, 0.35);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .cart-fab:active {
            transform: scale(0.96);
        }

        .cart-badge {
            position: absolute;
            top: -0.25rem;
            right: -0.25rem;
            min-width: 1.25rem;
            height: 1.25rem;
            padding: 0 0.35rem;
            border-radius: 9999px;
            background: #fff;
            color: #be185d;
            font-size: 0.7rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .cart-badge.hidden {
            display: none;
        }

        .cart-overlay {
            position: fixed;
            inset: 0;
            z-index: 130;
            background: rgba(0, 0, 0, 0.72);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .cart-overlay.hidden {
            display: none;
        }

        .cart-drawer {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 140;
            max-height: min(88vh, 720px);
            background: rgba(12, 10, 9, 0.98);
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 1.25rem 1.25rem 0 0;
            transform: translateY(105%);
            transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex;
            flex-direction: column;
            padding-bottom: env(safe-area-inset-bottom);
        }

        .cart-drawer.open {
            transform: translateY(0);
        }

        .cart-drawer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1rem 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .cart-drawer-header h2 {
            margin: 0;
            font-size: 1.125rem;
            font-weight: 700;
            color: #fff;
        }

        .cart-icon-btn {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: #cbd5e1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .cart-items-list {
            flex: 1;
            overflow-y: auto;
            padding: 0.75rem 1rem;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: rgba(236, 72, 153, 0.45) rgba(255, 255, 255, 0.04);
        }

        .cart-items-list::-webkit-scrollbar {
            width: 6px;
        }

        .cart-items-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.04);
            border-radius: 9999px;
        }

        .cart-items-list::-webkit-scrollbar-thumb {
            background: rgba(236, 72, 153, 0.45);
            border-radius: 9999px;
        }

        .cart-items-list::-webkit-scrollbar-thumb:hover {
            background: rgba(236, 72, 153, 0.65);
        }

        .cart-empty {
            text-align: center;
            color: #94a3b8;
            padding: 2rem 1rem;
            font-size: 0.95rem;
        }

        .cart-item {
            padding: 0.875rem;
            border-radius: 0.875rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            margin-bottom: 0.625rem;
        }

        .cart-item-top {
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
            justify-content: space-between;
        }

        .cart-item-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-top: 0.75rem;
        }

        .cart-qty-control {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.2rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.04);
        }

        .cart-qty-btn {
            width: 2rem;
            height: 2rem;
            border: none;
            border-radius: 0.55rem;
            background: rgba(255, 255, 255, 0.08);
            color: #f8fafc;
            font-size: 1.1rem;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .cart-qty-btn:active {
            background: rgba(236, 72, 153, 0.25);
        }

        .cart-qty-value {
            min-width: 1.75rem;
            text-align: center;
            color: #f8fafc;
            font-size: 0.92rem;
            font-weight: 700;
        }

        .cart-item-pricing {
            text-align: right;
        }

        .cart-item-unit-hint {
            margin: 0.15rem 0 0;
            color: #94a3b8;
            font-size: 0.75rem;
        }

        .cart-item-name {
            margin: 0.35rem 0 0;
            color: #f8fafc;
            font-size: 0.92rem;
            font-weight: 600;
            line-height: 1.35;
        }

        .cart-platform-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.55rem;
            border-radius: 9999px;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            line-height: 1.2;
            border: 1px solid transparent;
        }

        .cart-platform-instagram {
            color: #fce7f3;
            background: rgba(236, 72, 153, 0.18);
            border-color: rgba(236, 72, 153, 0.35);
        }

        .cart-platform-tiktok {
            color: #cffafe;
            background: rgba(34, 211, 238, 0.15);
            border-color: rgba(34, 211, 238, 0.35);
        }

        .cart-platform-telegram {
            color: #dbeafe;
            background: rgba(59, 130, 246, 0.18);
            border-color: rgba(59, 130, 246, 0.35);
        }

        .cart-platform-youtube {
            color: #fecaca;
            background: rgba(239, 68, 68, 0.16);
            border-color: rgba(239, 68, 68, 0.35);
        }

        .cart-platform-threads {
            color: #e7e5e4;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .cart-platform-default {
            color: #e2e8f0;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .checkout-item-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }

        .checkout-item-main {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.35rem;
            min-width: 0;
            flex: 1;
        }

        .checkout-item-head .checkout-item-title {
            margin: 0;
        }

        .cart-item-price {
            margin: 0;
        }

        #cart-total-price,
        #checkout-total-price {
            font-weight: inherit;
        }

        .cart-remove-btn {
            flex-shrink: 0;
            width: 2rem;
            height: 2rem;
            border-radius: 0.625rem;
            border: 1px solid rgba(248, 113, 113, 0.35);
            background: rgba(248, 113, 113, 0.12);
            color: #fca5a5;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .cart-drawer-footer {
            padding: 0.875rem 1rem 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(0, 0, 0, 0.25);
        }

        .cart-total-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #e2e8f0;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
        }

        .cart-total-row strong {
            font-size: inherit;
        }

        .checkout-total {
            margin-bottom: 0.65rem;
        }

        .cart-checkout-btn {
            width: 100%;
            border: none;
            border-radius: 0.875rem;
            padding: 0.95rem 1rem;
            font-weight: 700;
            font-size: 1rem;
            color: #fff;
            background: linear-gradient(135deg, #ec4899, #db2777);
            margin-bottom: 0.5rem;
        }

        .cart-checkout-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .cart-clear-btn {
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 0.875rem;
            padding: 0.75rem 1rem;
            font-weight: 600;
            font-size: 0.875rem;
            color: #94a3b8;
            background: transparent;
        }

        .checkout-modal {
            position: fixed;
            inset: 0;
            z-index: 150;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 0;
        }

        .checkout-modal.hidden {
            display: none;
        }

        .checkout-modal-inner {
            width: 100%;
            max-width: 32rem;
            max-height: min(92vh, 760px);
            border-radius: 1.25rem 1.25rem 0 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            margin: 0;
        }

        .checkout-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1rem 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .checkout-modal-header h2 {
            margin: 0;
            font-size: 1.125rem;
            color: #fff;
        }

        .checkout-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 0.875rem 1rem;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: rgba(236, 72, 153, 0.45) rgba(255, 255, 255, 0.04);
        }

        .checkout-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .checkout-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.04);
            border-radius: 9999px;
        }

        .checkout-scroll::-webkit-scrollbar-thumb {
            background: rgba(236, 72, 153, 0.45);
            border-radius: 9999px;
        }

        .checkout-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(236, 72, 153, 0.65);
        }

        .checkout-field label,
        .checkout-link-label {
            display: block;
            margin-bottom: 0.4rem;
            font-size: 0.8125rem;
            color: #cbd5e1;
        }

        .checkout-input {
            width: 100%;
            box-sizing: border-box;
            padding: 0.85rem 0.95rem;
            border-radius: 0.75rem;
            margin-bottom: 0.75rem;
            font-size: 16px;
        }

        .checkout-item-block {
            margin-bottom: 0.875rem;
            padding: 0.875rem;
            border-radius: 0.875rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .checkout-item-block:focus-within {
            border-color: rgba(236, 72, 153, 0.35);
            box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.12);
        }

        .checkout-item-title {
            margin: 0;
            color: #f8fafc;
            font-size: 0.9rem;
            font-weight: 600;
            line-height: 1.4;
        }

        .checkout-input:focus {
            border-color: rgba(236, 72, 153, 0.45);
            box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
            outline: none;
        }

        .checkout-modal-footer {
            padding: 0.875rem 1rem calc(1rem + env(safe-area-inset-bottom));
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(0, 0, 0, 0.25);
        }

        .checkout-status {
            min-height: 1.25rem;
            font-size: 0.8125rem;
            color: #94a3b8;
            margin: 0.25rem 0 0;
        }

        .checkout-status.error {
            color: #f87171;
        }

        .cart-toast {
            position: fixed;
            left: 50%;
            bottom: calc(5.5rem + env(safe-area-inset-bottom));
            transform: translateX(-50%);
            z-index: 160;
            max-width: calc(100vw - 2rem);
            padding: 0.75rem 1rem;
            border-radius: 9999px;
            background: rgba(15, 15, 19, 0.95);
            border: 1px solid rgba(236, 72, 153, 0.35);
            color: #fff;
            font-size: 0.875rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        }

        .cart-toast.hidden {
            display: none;
        }

        @media (min-width: 768px) {
            .cart-drawer {
                left: auto;
                right: 1rem;
                bottom: 1rem;
                width: min(24rem, calc(100vw - 2rem));
                max-height: min(80vh, 720px);
                border-radius: 1rem;
                border: 1px solid rgba(255, 255, 255, 0.12);
                transform: translateX(calc(100% + 1.5rem));
            }

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

            .checkout-modal {
                align-items: center;
                padding: 1rem;
            }

            .checkout-modal-inner {
                border-radius: 1.25rem;
                max-height: min(88vh, 760px);
            }

            .cart-fab {
                bottom: 1.5rem;
                right: 1.5rem;
            }
        }

        .webpay-redirect-overlay {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            background: rgba(5, 5, 8, 0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .webpay-redirect-card {
            width: min(100%, 22rem);
            padding: 1.5rem 1.25rem;
            border-radius: 1rem;
            border: 1px solid rgba(236, 72, 153, 0.25);
            background: rgba(12, 10, 9, 0.98);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
            text-align: center;
        }

        .webpay-redirect-spinner {
            width: 2.5rem;
            height: 2.5rem;
            margin: 0 auto 1rem;
            border-radius: 9999px;
            border: 3px solid rgba(236, 72, 153, 0.2);
            border-top-color: #ec4899;
            animation: webpay-spin 0.8s linear infinite;
        }

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

        .webpay-redirect-title {
            margin: 0 0 0.35rem;
            color: #fff;
            font-size: 1.05rem;
            font-weight: 700;
        }

        .webpay-redirect-text {
            margin: 0;
            color: #94a3b8;
            font-size: 0.875rem;
            line-height: 1.45;
        }

        /* --- UX additions: trust strip, link hints, empty state --- */
        .checkout-item-block .checkout-input {
            margin-bottom: 0.35rem;
        }

        .checkout-link-hint {
            min-height: 1rem;
            margin: 0 0 0.25rem;
            font-size: 0.75rem;
            line-height: 1.35;
            color: #94a3b8;
        }

        .checkout-link-hint.warn {
            color: #fbbf24;
        }

        .checkout-input.input-valid {
            border-color: rgba(45, 212, 191, 0.55) !important;
            box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.12) !important;
        }

        .checkout-trust {
            margin-top: 0.85rem;
            text-align: center;
        }

        .checkout-trust-note {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            margin: 0 0 0.6rem;
            font-size: 0.8rem;
            color: #cbd5e1;
        }

        .checkout-trust-note svg {
            color: #2dd4bf;
            flex-shrink: 0;
        }

        .checkout-trust-logos {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .checkout-trust-logos img {
            height: 22px !important;
            width: auto !important;
            opacity: 0.85;
        }

        .cart-empty-state {
            text-align: center;
            padding: 2.5rem 1rem;
        }

        .cart-empty-icon {
            color: rgba(236, 72, 153, 0.5);
            margin: 0 auto 0.75rem;
            display: block;
        }

        .cart-empty-state .cart-empty {
            padding: 0;
            color: #e2e8f0;
            font-weight: 600;
        }

        .cart-empty-sub {
            margin: 1.25rem 0 0.75rem;
            font-size: 0.8125rem;
            color: #94a3b8;
        }

        .cart-empty-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .cart-empty-link {
            display: block;
            padding: 0.7rem 0.9rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.04);
            color: #e2e8f0;
            font-size: 0.875rem;
            text-decoration: none;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .cart-empty-link:hover {
            border-color: rgba(236, 72, 153, 0.4);
            background: rgba(236, 72, 153, 0.08);
            color: #fff;
        }
