        /* CSS VARIABLES - DEFAULT DARK THEME (#000000 canvas, #0d0d0d surface, #141414 card, #222222 border) */
        :root {
            --bg-main: #000000;
            --bg-surface: #0d0d0d;
            --bg-card: #000;
            --text-main: #FFFFFF !important;
            --text-muted: #A0A0A0 !important;
            --border-color: #222222;
            --text-primary: var(--text-main);
            --text-secondary: var(--text-muted);
        }

        /* ТЁМНАЯ ТЕМА (dark) */
        [data-theme="dark"], body.dark-theme, body.dark, html.dark, html.theme-dark, html.dark-theme {
            --bg-main: #000000;
            --bg-surface: #0d0d0d;
            --bg-card: #000;
            --text-main: #FFFFFF !important;
            --text-muted: #A0A0A0 !important;
            --border-color: #222222;
            --text-primary: var(--text-main);
            --text-secondary: var(--text-muted);
        }

        /* СВЕТЛАЯ ТЕМА (light) */
        [data-theme="light"], body.light-theme, html:not(.dark):not(.theme-dark):not(.dark-theme):not([data-theme="dark"]) {
            --bg-main: #F5F5F7;
            --bg-surface: #F5F5F7;
            --bg-card: #FFFFFF;
            --text-main: #111111 !important;
            --text-muted: #555555 !important;
            --border-color: #E5E5E5;
            --text-primary: var(--text-main);
            --text-secondary: var(--text-muted);
        }

        a, a:visited, a:hover, a:active {
            color: inherit !important;
            text-decoration: none !important;
        }

        /* БАЗОВА ПІДКЛАДКА */
        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            overflow-x: hidden;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
        }

        body {
            background-color: var(--bg-main) !important;
            color: var(--text-main) !important;
            transition: background-color 0.15s ease, color 0.15s ease;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 1. TOP BAR */
        .store-top-bar {
            margin: 16px auto 20px auto;
            max-width: 1240px;
            padding: 0 16px;
            box-sizing: border-box;
            width: 100%;
        }

        .store-top-bar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
            padding: 10px 20px;
            box-sizing: border-box;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .user-profile-compact {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
            text-decoration: none;
        }

        .user-profile-compact .user-avatar-badge {
            width: 32px;
            height: 32px;
            background-color: #1D5D3B;
            color: #FFFFFF;
            font-weight: 800;
            font-family: monospace;
            font-size: 14px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .user-profile-compact .user-display-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main) !important;
            line-height: 1;
            white-space: nowrap;
        }

        /* РАСТЯНУТАЯ ПОИСКОВАЯ СТРОКА */
        .store-search-form,
        .search-bar,
        .search-container {
            display: flex;
            align-items: center;
            flex: 1;
            width: 100%;
            gap: 8px;
            margin: 0;
            background: transparent !important;
            box-sizing: border-box;
        }

        .store-search-form .store-search-input,
        .search-input {
            flex: 1;
            width: 100%;
            height: 40px;
            padding: 0 14px;
            border: 1px solid var(--border-color) !important;
            border-radius: 2px;
            color: var(--text-main) !important;
            background-color: var(--bg-surface) !important;
            outline: none;
            box-sizing: border-box;
            font-size: 14px;
            transition: border-color 0.15s ease;
        }

        .store-search-form .store-search-input:focus,
        .search-input:focus {
            border-color: #1D5D3B !important;
        }

        .store-search-form .store-search-btn {
            width: 40px;
            height: 40px;
            padding: 0;
            background: #1D5D3B;
            color: #FFFFFF;
            font-weight: 700;
            border: none;
            border-radius: 2px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.15s ease;
            flex-shrink: 0;
        }

        .store-search-form .store-search-btn,
        .store-search-form .store-search-btn:hover,
        .store-search-form .store-search-btn:focus,
        .store-search-form .store-search-btn:active {
            background: #1D5D3B !important;
            color: #FFFFFF !important;
            filter: none !important;
        }

        .store-action-icons {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .action-icon-btn {
            width: 40px;
            height: 40px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-color) !important;
            border-radius: 2px;
            background: var(--bg-card) !important;
            cursor: pointer;
            font-size: 16px;
            color: var(--text-muted) !important;
            text-decoration: none;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }

        .action-icon-btn.action-cart-btn {
            width: 44px;
            height: 40px;
        }

        .action-icon-btn.action-cart-btn .cart-svg-icon {
            width: 23px !important;
            height: 23px !important;
        }

        .action-icon-btn:hover {
            border-color: #1D5D3B !important;
            color: #2E8B57 !important;
        }

        .action-icon-btn .badge-count {
            position: absolute;
            top: -5px;
            right: -5px;
            min-width: 17px;
            height: 17px;
            padding: 0 4px;
            background-color: #1D5D3B;
            color: #FFFFFF;
            font-size: 10px;
            font-weight: 800;
            font-family: monospace;
            line-height: 17px;
            text-align: center;
            border-radius: 9999px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
        }

        @media (max-width: 768px) {
            .store-top-bar-container {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }
            .store-search-form {
                order: 2;
            }
            .user-profile-compact {
                order: 1;
            }
            .store-action-icons {
                order: 3;
                justify-content: flex-end;
            }
        }

        /* 2. PRODUCT PAGE CONTAINER */
        .pd-page-container {
            max-width: 1480px;
            margin: 0 auto;
            padding: 0 12px 60px 12px;
            box-sizing: border-box;
            width: 100%;
            flex: 1;
        }

        /* Хлебные крошки */
        .pd-breadcrumbs-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 18px;
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .pd-breadcrumbs {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-muted) !important;
            flex-wrap: wrap;
            min-width: 0;
        }

        .pd-back-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-weight: 700;
            color: #2E8B57;
            text-decoration: none;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.15s ease;
            white-space: nowrap;
        }

        .pd-back-btn:hover {
            background: rgba(29, 93, 59, 0.1);
        }

        .pd-crumb-sep {
            color: var(--border-color) !important;
            font-size: 12px;
            user-select: none;
        }

        .pd-crumb-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: var(--text-muted) !important;
            font-weight: 500;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.15s ease;
        }

        .pd-crumb-link:hover {
            color: var(--text-main) !important;
        }

        .pd-crumb-current {
            color: var(--text-main) !important;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 380px;
        }

        html.dark .pd-crumb-current {
            color: #FFFFFF !important;
        }

        /* Табы навигации по товару */
        .pd-nav-tabs {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0 16px;
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
            margin-bottom: 24px;
            overflow-x: auto;
        }

        .pd-tab-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 18px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted) !important;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .pd-tab-btn:hover {
            color: #2E8B57 !important;
        }

        .pd-tab-btn.active {
            color: #2E8B57 !important;
            border-bottom-color: #1D5D3B !important;
        }

        .pd-tab-badge {
            padding: 1px 6px;
            font-size: 10px;
            font-weight: 800;
            font-family: monospace;
            border-radius: 9999px;
            background: rgba(29, 93, 59, 0.15);
            color: #2E8B57;
        }

        /* 3. HERO 2-COLUMN GRID (PRODUCT MAIN VIEW) */
        .product-main-view,
        .pd-hero-grid {
            display: grid !important;
            grid-template-columns: 500px 1fr !important;
            gap: 32px !important;
            align-items: start !important;
            margin-bottom: 32px !important;
            position: relative !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }

        @media (max-width: 1024px) {
            .product-main-view,
            .pd-hero-grid {
                grid-template-columns: 1fr !important;
                gap: 24px !important;
            }
        }

        /* Left Column: Media Gallery & Benefits */
        .pd-media-col {
            position: relative !important;
            width: 100% !important;
            max-width: 500px !important;
            margin: 0 auto !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .pd-main-img-box {
            position: relative !important;
            width: 100% !important;
            max-width: 500px !important;
            aspect-ratio: 1 / 1 !important;
            height: auto !important;
            min-height: unset !important;
            max-height: unset !important;
            background: #FFFFFF !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 12px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            overflow: hidden !important;
            cursor: zoom-in;
            padding: 16px !important;
            box-sizing: border-box !important;
            margin: 0 auto !important;
            touch-action: pan-y !important;
        }

        .pd-main-img {
            max-width: 100% !important;
            max-height: 100% !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            margin: auto !important;
            display: block !important;
            transition: transform 0.25s ease-out !important;
            will-change: transform;
            user-select: none;
            pointer-events: none;
        }

        .pd-slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: #FFFFFF;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            z-index: 10;
        }

        .pd-slider-btn:hover {
            background: #1D5D3B;
            border-color: #1D5D3B;
        }

        .pd-slider-btn.prev {
            left: 12px;
        }

        .pd-slider-btn.next {
            right: 12px;
        }


        /* Стрілки галереї: без кружків, на краях зникають */
        html:not(#_):not(#__) .pd-slider-btn{background:transparent !important;border:0 !important;backdrop-filter:none !important;box-shadow:none !important;color:#111 !important;width:30px;height:44px;border-radius:0 !important;text-shadow:0 0 4px #fff}
        html:not(#_):not(#__) .pd-slider-btn svg{width:24px !important;height:24px !important;stroke-width:2.2 !important;filter:drop-shadow(0 0 3px #fff)}
        html:not(#_):not(#__) .pd-slider-btn:hover{background:transparent !important;color:#1D5D3B !important}
        html:not(#_):not(#__) .pd-slider-btn.prev{left:6px}
        html:not(#_):not(#__) .pd-slider-btn.next{right:6px}
        html.dark:not(#_):not(#__) .pd-slider-btn,html[data-theme="dark"]:not(#_):not(#__) .pd-slider-btn{color:#fff !important}
        html.dark:not(#_):not(#__) .pd-slider-btn svg,html[data-theme="dark"]:not(#_):not(#__) .pd-slider-btn svg{filter:drop-shadow(0 0 3px #000)}
        .pd-img-counter {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background: rgba(0, 0, 0, 0.65);
            color: #FFFFFF;
            font-family: monospace;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 4px;
            pointer-events: none;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .pd-thumbs-row {
            display: flex !important;
            gap: 10px !important;
            margin-top: 14px !important;
            overflow-x: auto !important;
            padding-bottom: 4px !important;
            width: 100% !important;
            box-sizing: border-box !important;
            scrollbar-width: thin !important;
            -webkit-overflow-scrolling: touch !important;
        }

        .pd-thumb-btn {
            flex: 0 0 calc((100% - 50px) / 6) !important;
            min-width: 58px !important;
            max-width: 76px !important;
            aspect-ratio: 1 / 1 !important;
            height: auto !important;
            min-height: unset !important;
            max-height: unset !important;
            flex-shrink: 0 !important;
            border-radius: 8px !important;
            border: 1.5px solid var(--border-color) !important;
            background: #FFFFFF !important;
            padding: 4px !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            overflow: hidden !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

        .pd-thumb-btn.active {
            border-color: #1D5D3B !important;
            box-shadow: 0 0 0 1.5px #1D5D3B !important;
        }

        .pd-thumb-btn:hover:not(.active) {
            border-color: #1D5D3B !important;
            opacity: 0.9 !important;
        }

        .pd-thumb-img {
            max-width: 100% !important;
            max-height: 100% !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            margin: 0 auto !important;
            display: block !important;
            pointer-events: none !important;
        }

        /* FULLSCREEN LIGHTBOX */
        .pd-lightbox {
            position: fixed !important;
            inset: 0 !important;
            z-index: 100000 !important;
            background: rgba(0, 0, 0, 0.92) !important;
            backdrop-filter: blur(10px) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 24px !important;
            box-sizing: border-box !important;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease-in-out !important;
        }

        .pd-lightbox.active {
            opacity: 1 !important;
            pointer-events: auto !important;
        }

        .pd-lightbox-content {
            position: relative !important;
            max-width: 90vw !important;
            max-height: 85vh !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: #FFFFFF !important;
            border-radius: 14px !important;
            padding: 20px !important;
            box-sizing: border-box !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
        }

        .pd-lightbox-img {
            max-width: 78vw !important;
            max-height: 72vh !important;
            object-fit: contain !important;
            display: block !important;
            border-radius: 8px !important;
            user-select: none !important;
        }

        .pd-lightbox-close {
            position: absolute !important;
            top: 24px !important;
            right: 24px !important;
            width: 46px !important;
            height: 46px !important;
            border-radius: 50% !important;
            background: rgba(255, 255, 255, 0.12) !important;
            border: 1px solid rgba(255, 255, 255, 0.22) !important;
            color: #FFFFFF !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: background 0.15s ease, transform 0.15s ease !important;
            z-index: 100002 !important;
        }

        .pd-lightbox-close:hover {
            background: rgba(255, 255, 255, 0.25) !important;
            transform: scale(1.06) !important;
        }

        .pd-lightbox-arrow {
            position: absolute !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            width: 50px !important;
            height: 50px !important;
            border-radius: 50% !important;
            background: rgba(0, 0, 0, 0.65) !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            color: #FFFFFF !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            z-index: 100002 !important;
        }

        .pd-lightbox-arrow:hover {
            background: #1D5D3B !important;
            border-color: #1D5D3B !important;
            transform: translateY(-50%) scale(1.08) !important;
        }

        .pd-lightbox-arrow.prev {
            left: 24px !important;
        }

        .pd-lightbox-arrow.next {
            right: 24px !important;
        }

        .pd-lightbox-counter {
            position: absolute !important;
            bottom: -38px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            color: rgba(255, 255, 255, 0.85) !important;
            font-family: monospace !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            letter-spacing: 1px !important;
            white-space: nowrap !important;
        }

        .pd-sku {
            display: none !important;
        }

        /* Right Column: Buy & Info */
        .pd-buy-col {
            display: flex !important;
            flex-direction: column !important;
            gap: 14px !important;
            position: relative !important;
            min-width: 0 !important;
        }

        .pd-meta-header {
            display: flex !important;
            flex-direction: column !important;
            gap: 2px !important;
        }

        .pd-sku {
            font-family: monospace;
            font-size: 12px;
            color: var(--text-muted) !important;
        }

        .pd-stock-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 700;
            color: #2E8B57;
        }

        .pd-title,
        h1.pd-title,
        #pdTitle {
            position: static !important;
            top: auto !important;
            right: auto !important;
            bottom: auto !important;
            left: auto !important;
            transform: none !important;
            display: block !important;
            width: auto !important;
            max-width: 100% !important;
            height: auto !important;
            font-size: 26px !important;
            font-weight: 700 !important;
            line-height: 1.3 !important;
            color: var(--text-main) !important;
            margin: 8px 0 !important;
            text-align: left !important;
            box-sizing: border-box !important;
            z-index: auto !important;
        }

        html.dark #pdTitle,
        html.theme-dark #pdTitle,
        html.dark-theme #pdTitle,
        html[data-theme="dark"] #pdTitle,
        body.dark #pdTitle,
        body.dark-theme #pdTitle,
        body.theme-dark #pdTitle,
        [data-theme="dark"] #pdTitle,
        html.dark .pd-title,
        html.theme-dark .pd-title,
        html.dark-theme .pd-title,
        html[data-theme="dark"] .pd-title,
        body.dark .pd-title,
        body.dark-theme .pd-title,
        body.theme-dark .pd-title,
        [data-theme="dark"] .pd-title {
            color: #FFFFFF !important;
        }

        html:not(.dark):not(.theme-dark):not(.dark-theme):not([data-theme="dark"]) #pdTitle,
        html:not(.dark):not(.theme-dark):not(.dark-theme):not([data-theme="dark"]) .pd-title {
            color: #111111 !important;
        }

        .pd-rating-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }

        .pd-stars {
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .pd-rating-val {
            font-weight: 800;
            font-family: monospace;
            color: var(--text-main) !important;
        }

        .pd-rating-count {
            color: var(--text-muted) !important;
            font-size: 12px;
            cursor: pointer;
        }

        .pd-rating-count:hover {
            color: #2E8B57 !important;
            text-decoration: underline;
        }

        /* Price Card */
        .pd-parts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:6px 0 10px;font-size:14px;color:#52525b}
        .pd-parts[hidden]{display:none}
        .pd-parts b{color:#18181b;font-weight:600}
        .pd-parts-tiles{display:flex;gap:8px;width:100%}
          .pd-parts-tile{position:relative;width:54px;height:44px;margin-top:10px;border:1px solid #d4d4d8;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:visible}
        .pd-parts-tile img{width:40px;margin-bottom:6px;height:auto;display:block}
        .pd-parts-tile span.nm{font-size:10px;margin-bottom:8px;font-weight:700;color:#1D5D3B;text-align:center;line-height:1.1}
        .pd-parts-tile i{position:absolute;right:-1px;bottom:-1px;min-width:19px;height:19px;padding:0 4px;border-radius:9px 0 7px 0;background:#fff;border:1px solid #d4d4d8;font:700 12px/17px Inter,sans-serif;font-style:normal;color:#18181b;text-align:center}
        .pd-parts-tile>svg,.pd-parts-tile>.pd-paw{position:absolute;left:50%;top:-12px;transform:translateX(-50%);margin:0 !important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.18))}
        .pd-parts-tile>svg{width:46px;height:46px}
        .pd-paw{display:block;width:46px;height:46px}
        .pd-paw img{width:46px;height:46px;object-fit:contain;margin:0 !important;display:block}
        .pd-paw b{position:absolute;left:0;right:0;bottom:6px;text-align:center;color:#fff;-webkit-text-stroke:.7px #fff;font:italic 900 15px/1 Arial,Helvetica,sans-serif;transform:rotate(-12deg);transform-origin:50% 50%;padding-left:3px}
        .pd-parts-tag{display:inline-flex;align-items:center;gap:6px;border:1px solid #d4d4d8;border-radius:6px;padding:3px 8px;background:#fff;color:#18181b;font-size:12px;font-weight:600;white-space:nowrap}
        .pd-parts-tag img{height:14px;width:auto;display:block}
        html.dark .pd-parts{color:#a1a1aa}
        html.dark .pd-parts b{color:#fff}
        .pd-price-card {
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 6px !important;
            padding: 14px 18px !important;
        }

        .pd-old-price-line {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 4px;
        }

        .pd-old-price {
            font-family: monospace;
            font-size: 15px;
            color: var(--text-muted) !important;
            text-decoration: line-through;
        }

        .pd-discount-badge {
            font-family: monospace;
            font-size: 11px;
            font-weight: 800;
            background: #EF4444;
            color: #FFFFFF;
            padding: 2px 6px;
            border-radius: 2px;
        }

        .pd-price {
            font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
            font-size: 32px !important;
            font-weight: 700 !important;
            color: var(--text-main) !important;
            line-height: 1;
            margin-bottom: 16px;
        }

        html.dark .pd-price {
            color: #FFFFFF !important;
        }

        .pd-action-btns {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .pd-buy-btn {
            flex: 1;
            height: 50px;
            background: #1D5D3B !important;
            border-color: #1D5D3B !important;
            color: #FFFFFF !important;
            font-weight: 800;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-radius: 4px;
            border: 1px solid #1D5D3B;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.15s ease;
        }

        .pd-buy-btn:hover {
            background: #236f47 !important;
            border-color: #236f47 !important;
        }

        .pd-buy-btn.in-cart {
            background: #18181B;
            border-color: #3F3F46;
            color: #E4E4E7 !important;
        }

        .pd-buy-btn.in-cart:hover {
            background: #DC2626 !important;
            border-color: #DC2626 !important;
            color: #FFFFFF !important;
        }

        html.dark .pd-buy-btn.in-cart {
            background: #18181B;
            border-color: rgba(255, 255, 255, 0.18);
            color: #F4F4F5 !important;
        }

        html.dark .pd-buy-btn.in-cart:hover {
            background: #DC2626 !important;
            border-color: #DC2626 !important;
            color: #FFFFFF !important;
        }

        .pd-buy-btn svg, .pd-buy-btn svg *, .pd-bundle-buy-btn svg, .pd-bundle-buy-btn svg *, .rec-card-btn svg, .rec-card-btn svg * {
            fill: none !important;
            stroke: currentColor !important;
        }
        /* ПРИНУДИТЕЛЬНЫЙ БЕЛЫЙ ЦВЕТ И ИКОНКИ ДЛЯ ВСЕХ ЗЕЛЕНЫХ КНОПОК */
        .pd-buy-btn:not(.in-cart),
        .pd-buy-btn:not(.in-cart) *,
        .pd-buy-btn:not(.in-cart) span,
        .pd-buy-btn:not(.in-cart) svg,
        .pd-add-review-btn,
        .pd-add-review-btn *,
        .pd-add-review-btn span,
        .pd-add-review-btn svg,
        .pd-bundle-buy-btn,
        .pd-bundle-buy-btn *,
        button[class*="bg-[#1D5D3B]"],
        button[class*="bg-[#1D5D3B]"] *,
        a[class*="bg-[#1D5D3B]"],
        a[class*="bg-[#1D5D3B]"] *,
        button[class*="bg-[#1D5D3B]"],
        button[class*="bg-[#1D5D3B]"] *,
        a[class*="bg-[#1D5D3B]"],
        a[class*="bg-[#1D5D3B]"] * {
            color: #FFFFFF !important;
            fill: currentColor !important;
            stroke: currentColor !important;
        }

        .pd-icon-action-btn {
            width: 50px;
            height: 50px;
            border-radius: 4px;
            border: 1px solid var(--border-color) !important;
            background: var(--bg-card) !important;
            color: var(--text-muted) !important;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }

        .pd-icon-action-btn:hover {
            border-color: #1D5D3B !important;
            color: #2E8B57 !important;
        }


        html:not(#_):not(#__) .pd-icon-action-btn.active-heart,html:not(#_):not(#__) .pd-icon-action-btn.active{color:#111 !important;border-color:#111 !important;background:rgba(0,0,0,.06) !important}
        html:not(#_):not(#__) .pd-icon-action-btn.active-heart svg,html:not(#_):not(#__) .pd-icon-action-btn.active svg{color:#111 !important;stroke:#111 !important}
        html:not(#_):not(#__) .pd-icon-action-btn.active-heart svg{fill:#111 !important}
        html.dark:not(#_):not(#__) .pd-icon-action-btn.active-heart,html.dark:not(#_):not(#__) .pd-icon-action-btn.active{color:#fff !important;border-color:#fff !important;background:rgba(255,255,255,.1) !important}
        html.dark:not(#_):not(#__) .pd-icon-action-btn.active-heart svg,html.dark:not(#_):not(#__) .pd-icon-action-btn.active svg{color:#fff !important;stroke:#fff !important}
        html.dark:not(#_):not(#__) .pd-icon-action-btn.active-heart svg{fill:#fff !important}
        .pd-icon-action-btn.active-heart {
            color: #EF4444 !important;
            border-color: #EF4444 !important;
            background: rgba(239, 68, 68, 0.08) !important;
        }

        /* Delivery Card (Nova Poshta Only) - Compact 48px rows */
        .pd-delivery-card {
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 6px;
            padding: 12px 14px !important;
            display: flex;
            flex-direction: column;
            gap: 8px !important;
        }

        .pd-delivery-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 6px !important;
            border-bottom: 1px solid var(--border-color) !important;
        }

        .pd-delivery-list {
            display: flex;
            flex-direction: column;
            gap: 6px !important;
        }

        .pd-delivery-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 6px 10px !important;
            min-height: 48px !important;
            box-sizing: border-box !important;
            border-radius: 4px;
            background: var(--bg-surface) !important;
            border: 1px solid var(--border-color) !important;
            transition: background 0.15s ease;
        }

        .pd-delivery-row:hover {
            background: rgba(29, 93, 59, 0.08) !important;
        }

        .pd-delivery-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .np-logo-svg {
            width: 20px !important;
            height: 20px !important;
            flex-shrink: 0;
            display: block;
        }

        .muvio-m-pickup-wrap {
            width: auto !important;
            height: auto !important;
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            margin: 0 !important;
            flex-shrink: 0 !important;
        }

        .muvio-m-pickup-icon {
            width: 28px !important;
            height: 28px !important;
            min-width: 28px !important;
            min-height: 28px !important;
            color: #1D5D3B !important;
            fill: #1D5D3B !important;
            display: block !important;
            transition: color 0.15s ease, fill 0.15s ease !important;
        }

        html.dark .muvio-m-pickup-icon,
        html.theme-dark .muvio-m-pickup-icon,
        [data-theme="dark"] .muvio-m-pickup-icon,
        .dark-theme .muvio-m-pickup-icon {
            color: #FFFFFF !important;
            fill: #FFFFFF !important;
        }

        html.light .muvio-m-pickup-icon,
        html.theme-light .muvio-m-pickup-icon,
        [data-theme="light"] .muvio-m-pickup-icon,
        .light-theme .muvio-m-pickup-icon {
            color: #1D5D3B !important;
            fill: #1D5D3B !important;
        }

        .pd-delivery-info {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

        .pd-delivery-name {
            font-size: 12.5px !important;
            font-weight: 700;
            color: #111111 !important;
            line-height: 1.25;
            white-space: normal;
        }

        html.dark .pd-delivery-name,
        html.theme-dark .pd-delivery-name,
        [data-theme="dark"] .pd-delivery-name,
        body.dark .pd-delivery-name {
            color: #FFFFFF !important;
        }

        html.light .pd-delivery-name,
        html.theme-light .pd-delivery-name,
        [data-theme="light"] .pd-delivery-name,
        body.light .pd-delivery-name {
            color: #111111 !important;
        }

        .pd-delivery-sub {
            font-size: 11px !important;
            color: #555555 !important;
            line-height: 1.35;
            white-space: normal;
        }

        html.dark .pd-delivery-sub,
        html.theme-dark .pd-delivery-sub,
        [data-theme="dark"] .pd-delivery-sub,
        body.dark .pd-delivery-sub {
            color: #9CA3AF !important;
        }

        .pd-delivery-price {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted) !important;
            text-align: right;
            white-space: nowrap;
            font-family: monospace;
            flex-shrink: 0;
        }

        html.dark .pd-delivery-price {
            color: #CBD5E1 !important;
        }

        .pd-delivery-price.free {
            color: #2E8B57 !important;
            font-weight: 800;
        }

        /* Conditions (Payment & Warranty) - Compact 48-52px tiles */
        .pd-conditions-grid {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 8px !important;
        }

        @media (max-width: 640px) {
            .pd-conditions-grid {
                grid-template-columns: 1fr !important;
            }
        }

        .pd-condition-item {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            padding: 8px 12px !important;
            min-height: 48px !important;
            box-sizing: border-box !important;
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
        }

        html.dark .pd-condition-item {
            background: #0d0d0d !important;
            border-color: #222222 !important;
        }

        .pd-cond-icon {
            width: 32px !important;
            height: 32px !important;
            border-radius: 4px;
            background: rgba(29, 93, 59, 0.12);
            color: #2E8B57;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .pd-cond-title {
            font-size: 12px !important;
            font-weight: 700;
            color: var(--text-main) !important;
            line-height: 1.2;
            margin-bottom: 1px;
        }

        html.dark .pd-cond-title {
            color: #FFFFFF !important;
        }

        .pd-cond-text {
            font-size: 10.5px !important;
            color: var(--text-muted) !important;
            line-height: 1.25;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0;
        }

        html.dark .pd-cond-text {
            color: #A0A0A0 !important;
        }

        /* Lower Sections */
        .pd-section {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid var(--border-color);
            clear: both;
            width: 100%;
            box-sizing: border-box;
        }

        html.dark .pd-section {
            border-top-color: #222222 !important;
        }

        .pd-bundle-section {
            margin-top: 32px !important;
            padding-top: 24px !important;
            clear: both !important;
            width: 100% !important;
            box-sizing: border-box !important;
            border-top: 1px solid var(--border-color) !important;
        }

        .pd-bundle-layout {
            display: grid !important;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
            gap: 16px !important;
            width: 100% !important;
        }

        .pd-section-header {
            margin-bottom: 16px;
        }

        .pd-section-title {
            font-size: 20px;
            font-weight: 800;
            color: var(--text-main) !important;
            margin: 0;
        }

        /* Description with read more */
        .pd-desc-wrapper {
            position: relative;
            overflow: hidden;
            max-height: 120px;
            transition: max-height 0.3s ease;
        }

        .pd-desc-wrapper.expanded {
            max-height: 1600px !important;
        }

        .pd-desc-content {
            font-size: 14px;
            line-height: 1.7;
            color: var(--text-main) !important;
        }

        .pd-desc-fade {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 48px;
            background: linear-gradient(to bottom, transparent, var(--bg-main));
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .pd-desc-wrapper.expanded .pd-desc-fade {
            opacity: 0;
        }

        .pd-read-more-btn {
            margin-top: 10px;
            background: none;
            border: none;
            color: #2E8B57;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            padding: 4px 0;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .pd-read-more-btn:hover {
            text-decoration: underline;
        }

        /* Dot-leader Specs Table */
        .pd-specs-table {
            display: flex;
            flex-direction: column;
            gap: 2px;
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
            padding: 16px 20px;
        }

        .pd-spec-row {
            display: flex;
            align-items: baseline;
            padding: 8px 0;
            font-size: 13px;
        }

        .pd-spec-key {
            color: var(--text-muted) !important;
            flex-shrink: 0;
            font-weight: 500;
        }

        .pd-spec-dots {
            flex: 1;
            margin: 0 8px;
            border-bottom: 1px dotted var(--border-color) !important;
            height: 1px;
            align-self: flex-end;
            margin-bottom: 4px;
        }

        .pd-spec-val {
            color: var(--text-main) !important;
            font-weight: 700;
            text-align: right;
        }

        /* Reviews block */
        .pd-reviews-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .pd-review-card {
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
            padding: 16px 18px;
        }

        .pd-review-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .pd-review-author {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main) !important;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pd-review-verified {
            font-size: 11px;
            color: #2E8B57;
            font-weight: 600;
        }

        .pd-review-date {
            font-size: 11px;
            font-family: monospace;
            color: var(--text-muted) !important;
        }

        .pd-review-delete {
            display: flex;
            align-items: center;
            background: none;
            border: none;
            cursor: pointer;
            padding: 2px;
            color: var(--text-muted);
            opacity: 0.5;
            transition: opacity 0.15s, color 0.15s;
        }
        .pd-review-delete:hover { opacity: 1; color: #e05; }
        .pd-review-delete svg { width: 14px; height: 14px; }

        .pd-review-text {
            font-size: 13px;
            color: var(--text-muted) !important;
            line-height: 1.5;
        }

        .pd-add-review-btn {
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
            padding: 8px 14px !important;
            background-color: #1D5D3B !important;
            border: 1px solid #1D5D3B !important;
            border-radius: 4px !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            color: #FFFFFF !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
        }

        .pd-add-review-btn:hover {
            background-color: #236f47 !important;
            border-color: #236f47 !important;
            color: #FFFFFF !important;
        }

        /* Similar Products Grid */
        .pd-similar-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 16px;
        }

        .pd-similar-card {
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
            padding: 14px;
            text-decoration: none;
            transition: all 0.15s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .pd-similar-card:hover {
            border-color: #1D5D3B !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        }

        .pd-similar-img-box {
            width: 100%;
            height: 150px;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin-bottom: 10px;
            overflow: hidden;
            background: var(--bg-surface) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 4px;
            padding: 8px;
            box-sizing: border-box;
        }

        .pd-similar-img {
            max-width: 100% !important;
            max-height: 100% !important;
            object-fit: contain !important;
            margin: 0 auto !important;
            display: block !important;
            transition: transform 0.2s ease;
        }

        .pd-similar-card:hover .pd-similar-img {
            transform: scale(1.05);
        }

        .pd-similar-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main) !important;
            line-height: 1.3;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .pd-similar-price {
            font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
            font-size: 17px !important;
            font-weight: 700 !important;
            color: var(--text-main) !important;
        }

        /* Strict Theme Consistency Components */
        .delivery-block,
        .tabs-container,
        .frequently-bought-together,
        .product-specs,
        .search-wrapper {
            background: var(--bg-card) !important;
            border-color: var(--border-color) !important;
            color: var(--text-main) !important;
        }

        /* Тост-сповіщення */
        #ecomToast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background-color: #111111;
            color: #FFFFFF;
            padding: 12px 18px;
            border-radius: 2px;
            border-left: 4px solid #1D5D3B;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
            z-index: 1000;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 10px;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
        }

        #ecomToast, #ecomToast span { color: #FFFFFF !important; }
        html:not(#_):not(#__):not(#___):not(#____) #ecomToast, html:not(#_):not(#__):not(#___):not(#____) #ecomToast span { color: #FFFFFF !important; }
        #ecomToast.show {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

/* ===== reviewModalTheme ===== */
        .rv-thumb { position: relative; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(128,128,128,0.35); }
        .rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
        .rv-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px; font-size: 13px; border-radius: 9px; background: rgba(0,0,0,0.65); color: #fff; border: 0; cursor: pointer; padding: 0; }
        .pd-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
        .pd-review-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(128,128,128,0.35); cursor: zoom-in; }
        [data-theme="light"] #reviewPhotoBtn { color: #374151 !important; border-color: #D1D5DB !important; background: #FFFFFF !important; }
        /* Модальне вікно відгуку: читабельне в обох темах */
        [data-theme="light"] #reviewModalBackdrop { background: rgba(17,24,39,0.55) !important; }
        [data-theme="light"] #reviewModalBackdrop > div { background: #FFFFFF !important; border: 1px solid #E5E7EB !important; color: #111827 !important; }
        [data-theme="light"] #reviewModalBackdrop h3,
        [data-theme="light"] #reviewModalBackdrop #reviewModalAuthorName { color: #111827 !important; }
        [data-theme="light"] #reviewModalBackdrop p,
        [data-theme="light"] #reviewModalBackdrop label { color: #4B5563 !important; }
        [data-theme="light"] #reviewModalBackdrop button[aria-label="Закрити"] { color: #6B7280 !important; }
        [data-theme="light"] #reviewModalBackdrop button[type="button"][onclick="closeReviewModal()"]:not([aria-label]) { color: #374151 !important; border-color: #D1D5DB !important; background: #FFFFFF !important; }
        [data-theme="light"] #reviewModalBackdrop #reviewTextInput { background: #FFFFFF !important; color: #111827 !important; border: 1px solid #D1D5DB !important; }
        #reviewModalBackdrop button[type="submit"] { background: #1D5D3B !important; color: #FFFFFF !important; }
        #reviewModalBackdrop button[type="submit"] span { color: #FFFFFF !important; }
