/* Product page — main styles (from productpage-1.html <head> block). */
html {
    scroll-behavior: smooth;
}

        /* =========================================
           Breymen Beth Stacking context isolation (Divi-safe)
           ========================================= */
        .pp-product-isolation-wrapper {
            position: relative;
            isolation: isolate;
            display: block;
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            clear: both;
        }

        /* =========================================
           1. PREMIUM SAAS VARIABLES & RESET
           ========================================= */
        #pp-app-wrapper {
            --primary: #0F172A;
            --primary-dark: #020617;
            --text-dark: #1E293B;
            --text-light: #475569;
            --bg-light: #F8FAFC;
            --bg-hover: #E2E8F0;
            --white: #FFFFFF;
            --border: #E2E8F0;
            --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
            --shadow-btn: 0 4px 15px rgba(0, 0, 0, 0.12);
            --radius: 8px;
            --radius-lg: 16px;
            --accent-main: #8B5CF6;
            --accent-hover: #7C3AED;
            --accent-press: #5B21B6;
            --accent-soft: rgba(139, 92, 246, 0.1);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --star-gold: #F59E0B;
            --pp-mobile-bottom-safe: 0px;

            font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            color: var(--text-dark);
            background: transparent;
            line-height: 1.6;
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
            position: relative;
            z-index: auto;
            isolation: auto;
            display: block;
            overflow-x: hidden;
        }
        /* Sticky can be blocked if an ancestor has overflow != visible (desktop only) */
        @media (min-width: 901px) {
            #pp-app-wrapper {
                overflow: visible !important;
            }
        }
        #pp-app-wrapper * { box-sizing: border-box; }
        #pp-app-wrapper p { margin-bottom: 16px; }

        /* =========================================
           2. BREADCRUMBS (top of product column)
           ========================================= */
        .pp-breadcrumbs {
            width: 100%;
            margin-bottom: 20px;
        }
        .pp-content-main {
            min-width: 0;
            max-width: 100%;
        }
        .pp-breadcrumbs .woocommerce-breadcrumb,
        #pp-app-wrapper .woocommerce-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-light);
            margin: 0;
            flex-wrap: wrap;
            padding: 0;
        }
        .woocommerce-breadcrumb a {
            color: var(--text-dark);
            background: var(--bg-light);
            text-decoration: none;
            font-weight: 600;
            padding: 6px 14px;
            border-radius: 20px;
            transition: var(--transition);
            white-space: nowrap;
            border: 1px solid var(--border);
        }
        .woocommerce-breadcrumb a:hover {
            background: var(--bg-hover);
            color: var(--primary);
            border-color: #cbd5e1;
        }
        .woocommerce-breadcrumb span.current {
            color: var(--accent-main);
            font-weight: 700;
            background: var(--accent-soft);
            padding: 6px 14px;
            border-radius: 20px;
            white-space: nowrap;
            border: 1px solid rgba(139, 92, 246, 0.2);
        }

        /* =========================================
           3. MAIN GRID (fix blowout: min-width 0)
           ========================================= */
        .pp-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            grid-template-rows: max-content 1fr;
            column-gap: 48px;
            row-gap: 28px;
            align-items: start;
            margin-bottom: 32px;
            width: 100%;
        }
        .pp-gallery-col {
            grid-column: 1;
            grid-row: 1;
            min-width: 0;
            max-width: 100%;
        }
        .pp-content-col {
            grid-column: 2;
            grid-row: 1 / span 2;
            min-width: 0;
            max-width: 100%;
        }
        /* Sticky buy column (desktop only) */
        @media (min-width: 901px) {
            #pp-app-wrapper .pp-content-col {
                position: sticky !important;
                top: 120px !important;
                align-self: flex-start !important;
            }
        }
        .pp-gallery-wrap {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow-soft);
            margin-bottom: 0;
            position: relative;
        }
        .pp-main-image {
            width: 100%;
            height: auto;
            max-height: 500px;
            object-fit: contain;
            border-radius: var(--radius);
            display: block;
        }
        .pp-main-image {
         width: 100%;
         aspect-ratio: 1 / 1; /* Change to 4/3 or 16/9 depending on your product images */
         object-fit: cover;
         border-radius: var(--radius-lg);
        }
        .pp-thumb-row {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            overflow-x: auto;
            padding-bottom: 4px;
            scrollbar-width: thin;
        }
        .pp-thumb {
            width: 64px;
            height: 64px;
            border-radius: var(--radius);
            cursor: pointer;
            border: 2px solid transparent;
            object-fit: cover;
            background: var(--bg-light);
            transition: var(--transition);
            flex-shrink: 0;
        }
        .pp-thumb.active {
            border-color: var(--accent-main);
            transform: scale(1.05);
        }

        /* =========================================
           4. PRODUCT CONTENT
           ========================================= */
        .pp-badge-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .pp-badge {
            background: var(--accent-soft);
            color: var(--accent-main);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 4px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .pp-badge::before {
            content: "";
            width: 12px;
            height: 12px;
            display: inline-block;
            flex-shrink: 0;
            background-color: currentColor;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l7 3v6c0 5-3.4 9.7-7 11-3.6-1.3-7-6-7-11V5l7-3zm0 5a3 3 0 100 6 3 3 0 000-6zm0 8c-2.4 0-4.4 1-5.5 2.6.9 1.3 2.5 2.6 5.5 3.8 3-1.2 4.6-2.5 5.5-3.8-1.1-1.6-3.1-2.6-5.5-2.6z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2l7 3v6c0 5-3.4 9.7-7 11-3.6-1.3-7-6-7-11V5l7-3zm0 5a3 3 0 100 6 3 3 0 000-6zm0 8c-2.4 0-4.4 1-5.5 2.6.9 1.3 2.5 2.6 5.5 3.8 3-1.2 4.6-2.5 5.5-3.8-1.1-1.6-3.1-2.6-5.5-2.6z'/%3E%3C/svg%3E");
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-position: center;
            mask-position: center;
        }
        .pp-btn-demo-inline {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent-soft);
            color: var(--accent-main);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 4px 12px;
            border-radius: 20px;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }
        .pp-btn-demo-inline:hover {
            background: var(--accent-main);
            color: white;
            transform: translateY(-1px);
        }
        .pp-btn-demo-inline svg {
            width: 12px;
            height: 12px;
            fill: currentColor;
        }

        .pp-title {
            font-size: 34px;
            font-weight: 800;
            color: var(--primary);
            margin: 0 0 12px 0;
            line-height: 1.2;
            letter-spacing: -0.5px;
        }

        .pp-rating-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .pp-rating-row.pp-rating-row--hidden {
            display: none !important;
        }
        .star-rating {
            position: relative;
            display: inline-block;
            font-size: 15px;
            color: #ddd;
            letter-spacing: 2px;
            line-height: 1;
            font-family: star, sans-serif;
        }
        .star-rating::before {
            content: "★★★★★";
            color: #ddd;
        }
        .star-rating span {
            position: absolute;
            top: 0;
            left: 0;
            overflow: hidden;
            color: var(--star-gold);
        }
        .star-rating span::before {
            content: "★★★★★";
        }
        #pp-app-wrapper .star-rating {
            color: #ddd !important;
        }
        #pp-app-wrapper .star-rating::before {
            color: #ddd !important;
        }
        #pp-app-wrapper .star-rating span,
        #pp-app-wrapper .star-rating span::before,
        #pp-app-wrapper #product-star-rating span,
        #pp-app-wrapper #product-star-rating span::before {
            color: var(--star-gold) !important;
        }
        .woocommerce #pp-app-wrapper .star-rating span,
        .woocommerce-page #pp-app-wrapper .star-rating span::before {
            color: var(--star-gold) !important;
        }
        .pp-review-link {
            color: var(--text-light);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            font-size: 14px;
        }
        .pp-review-link:hover {
            color: var(--accent-main);
            text-decoration: underline;
        }

        .pp-price-box {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 20px;
            display: flex !important;
            align-items: baseline !important;
            gap: 10px !important;
            flex-wrap: wrap;
            line-height: 1;
        }
        .pp-price-box * { color: var(--primary) !important; }

        .pp-excerpt {
            font-size: 15px;
            color: var(--text-light);
            line-height: 1.6;
            margin-bottom: 32px;
            background: var(--bg-light);
            padding: 16px 20px;
            border-left: 3px solid var(--accent-main);
            border-radius: 0 var(--radius) var(--radius) 0;
        }

        .pp-features {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 32px;
        }
        .pp-feature-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px; /* Tighter top & bottom padding makes the card shorter */
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            transition: var(--transition);
        }
        .pp-feature-card:hover {
            border-color: var(--accent-main);
            box-shadow: var(--shadow-soft);
            transform: translateY(-2px);
        }
        .pp-feature-icon {
            width: 24px;
            height: 24px;
            fill: var(--accent-main);
            flex-shrink: 0;
        }
        /* Group the text and tightly control the gap between them */
        .pp-feature-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2px !important; /* This creates exactly 2px of space between title and text */
        }
        .pp-feature-text h4 { 
            margin: 0 !important; 
            padding: 0 !important;
            font-size: 14px; 
            color: var(--primary); 
            font-weight: 700; 
            line-height: 1 !important; /* Absolute minimum height */
        }
        .pp-feature-text p { 
            margin: 0 !important; 
            padding: 0 !important;
            font-size: 12px; 
            color: var(--text-light); 
            line-height: 1.1 !important; /* Very tight line height */
        }

        /* Hide redundant variation price duplicate above qty */
        #pp-app-wrapper .woocommerce-variation-price {
            display: none !important;
        }

        /* =========================================
           WooCommerce notices (variation errors)
           ========================================= */
        #pp-app-wrapper .woocommerce-error,
        #pp-app-wrapper .woocommerce-message,
        #pp-app-wrapper .woocommerce-info {
            list-style: none !important;
            margin: 0 0 16px 0 !important;
            padding: 14px 18px !important;
            border-radius: var(--radius) !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            line-height: 1.5 !important;
            border: 1px solid transparent !important;
            box-shadow: none !important;
        }
        #pp-app-wrapper .woocommerce-error {
            background: #FEF2F2 !important;
            color: #991B1B !important;
            border-color: #FECACA !important;
        }
        #pp-app-wrapper .woocommerce-error::before {
            display: none !important;
        }
        #pp-app-wrapper .woocommerce-message {
            background: #F0FDF4 !important;
            color: #166534 !important;
            border-color: #BBF7D0 !important;
        }
        #pp-app-wrapper .woocommerce-message::before {
            display: none !important;
        }
        #pp-app-wrapper .woocommerce-info {
            background: #EFF6FF !important;
            color: #1E40AF !important;
            border-color: #BFDBFE !important;
        }
        #pp-app-wrapper .woocommerce-info::before {
            display: none !important;
        }

        /* =========================================
           Add to cart area — block layout (no push-right)
           ========================================= */
        .pp-action-area {
            border-top: 1px solid var(--border);
            padding-top: 20px;
            margin-top: 0;
            width: 100%;
            max-width: 100%;
        }
        #pp-app-wrapper .woocommerce div.product form.cart,
        #pp-app-wrapper form.cart {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            float: none !important;
        }
        #pp-app-wrapper .woocommerce div.product form.cart .variations {
            width: 100%;
            margin-bottom: 16px;
        }
        #pp-app-wrapper .woocommerce div.product form.cart .variations select {
            width: 100%;
            max-width: 100%;
            padding: 14px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background: var(--bg-light);
            font-size: 14px;
            font-weight: 500;
        }
        #pp-app-wrapper .woocommerce div.product form.cart .single_variation_wrap {
            width: 100%;
        }
        #pp-app-wrapper .woocommerce-variation-add-to-cart,
        #pp-app-wrapper .woocommerce div.product form.cart .variations_button {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: stretch !important;
            gap: 12px !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        #pp-app-wrapper .woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity,
        #pp-app-wrapper .woocommerce div.product form.cart .variations_button .quantity {
            margin: 0 !important;
        }

        /* Premium quantity [ − ] [ + ] */
        #pp-app-wrapper .woocommerce .quantity {
            display: block !important;
            margin: 0 !important;
        }
        #pp-app-wrapper .pp-qty-control {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            background: var(--bg-light);
            max-width: 100%;
            margin: 0 !important;
            width: min(100%, 520px);
            display: flex;
        }
        /* qty input stretches to fill the full-width control */
        #pp-app-wrapper .pp-qty-control .qty {
            flex: 1 1 auto !important;
            width: auto !important;
            min-width: 0 !important;
            max-width: none !important;
        }
        /* centre the quantity wrapper so it aligns with the add-to-cart button */
        #pp-app-wrapper .woocommerce .quantity,
        #pp-app-wrapper form.cart .quantity {
            display: flex !important;
            justify-content: center !important;
            width: 100% !important;
            margin: 0 0 12px 0 !important;
        }
        #pp-app-wrapper .pp-qty-btn {
            width: 48px;
            min-width: 44px;
            border: none;
            background: var(--white);
            color: var(--primary);
            font-size: 20px;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        #pp-app-wrapper .pp-qty-btn:hover {
            background: var(--bg-hover);
            color: var(--accent-main);
        }
        #pp-app-wrapper .pp-qty-btn:focus-visible {
            outline: 2px solid var(--accent-main);
            outline-offset: 2px;
            z-index: 1;
        }
        #pp-app-wrapper .pp-qty-control .qty {
            width: 56px !important;
            min-width: 48px !important;
            max-width: 72px !important;
            height: 52px !important;
            padding: 0 4px !important;
            text-align: center !important;
            border: none !important;
            border-left: 1px solid var(--border) !important;
            border-right: 1px solid var(--border) !important;
            border-radius: 0 !important;
            background: var(--white) !important;
            font-size: 16px !important;
            font-weight: 600 !important;
            color: var(--primary) !important;
            appearance: textfield;
            -moz-appearance: textfield;
        }
        #pp-app-wrapper .pp-qty-control .qty::-webkit-outer-spin-button,
        #pp-app-wrapper .pp-qty-control .qty::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* Premium Add to Cart — cart icon via ::before, no Divi chevron */
        #pp-app-wrapper .woocommerce div.product form.cart button.single_add_to_cart_button,
        #pp-app-wrapper .woocommerce div.product form.cart button.single_add_to_cart_button.alt,
        #pp-app-wrapper button.single_add_to_cart_button.button.alt {
            flex: 1 1 80% !important;
            min-height: 56px !important;
            min-width: 0 !important;
            padding: 14px 22px !important;
            background: linear-gradient(180deg, var(--accent-main) 0%, var(--accent-hover) 100%) !important;
            color: var(--white) !important;
            border: none !important;
            border-radius: 14px !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.06em !important;
            line-height: 1.2 !important;
            white-space: nowrap !important;
            cursor: pointer !important;
            transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
            box-shadow: var(--shadow-btn) !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 12px !important;
            position: relative !important;
            overflow: visible !important;
            width: min(100%, 520px) !important;
            max-width: 100% !important;
        }
        /* Shopping cart icon (always visible) */
        #pp-app-wrapper button.single_add_to_cart_button::before {
            content: "" !important;
            display: inline-block !important;
            width: 22px !important;
            height: 22px !important;
            flex-shrink: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            background-color: currentColor !important;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.94-2.13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20.1 4H5.21L4.27 2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") !important;
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.94-2.13h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20.1 4H5.21L4.27 2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") !important;
            -webkit-mask-size: contain !important;
            mask-size: contain !important;
            -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
            -webkit-mask-position: center !important;
            mask-position: center !important;
            vertical-align: middle !important;
        }
        /* Strip Divi / theme pseudo arrows (the stray “>”) */
        #pp-app-wrapper .woocommerce div.product form.cart button.single_add_to_cart_button::after,
        #pp-app-wrapper button.single_add_to_cart_button::after,
        #pp-app-wrapper button.et_pb_button.single_add_to_cart_button::after,
        #pp-app-wrapper button.et_pb_button.single_add_to_cart_button::before,
        .et_pb_module #pp-app-wrapper button.single_add_to_cart_button::after,
        .et_pb_code #pp-app-wrapper button.single_add_to_cart_button::after,
        body.woocommerce #pp-app-wrapper button.single_add_to_cart_button::after,
        body.woocommerce-page #pp-app-wrapper button.single_add_to_cart_button::after {
            display: none !important;
            content: none !important;
            visibility: hidden !important;
            width: 0 !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            background: none !important;
        }
        #pp-app-wrapper .woocommerce div.product form.cart button.single_add_to_cart_button:hover,
        #pp-app-wrapper button.single_add_to_cart_button:hover {
            background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent-press) 100%) !important;
            transform: translateY(-1px);
            box-shadow: 0 8px 22px rgba(91, 33, 182, 0.35) !important;
        }
        #pp-app-wrapper .woocommerce div.product form.cart button.single_add_to_cart_button:active {
            background: var(--accent-press) !important;
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(91, 33, 182, 0.3) !important;
        }
        #pp-app-wrapper .bundle_form .bundle_wrap,
        #pp-app-wrapper .bundle_form .bundle_data,
        #pp-app-wrapper .bundle_form .bundle_price,
        #pp-app-wrapper .bundle_form .bundle_button {
            width: 100% !important;
        }
        #pp-app-wrapper .bundle_form .bundle_button,
        #pp-app-wrapper .bundle_form .woocommerce-variation-add-to-cart {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            gap: 12px !important;
            flex-wrap: wrap !important;
            margin-top: 8px !important;
        }
        #pp-app-wrapper .bundle_form .bundle_button .quantity,
        #pp-app-wrapper .bundle_form .woocommerce-variation-add-to-cart .quantity {
            display: flex !important;
            align-items: center !important;
            margin: 0 !important;
        }

        /* Full-width button row on narrow rows */
        @media (max-width: 520px) {
            #pp-app-wrapper .woocommerce-variation-add-to-cart,
            #pp-app-wrapper .woocommerce div.product form.cart .variations_button {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 10px !important;
            }
            #pp-app-wrapper button.single_add_to_cart_button,
            #pp-app-wrapper .woocommerce div.product form.cart button.single_add_to_cart_button {
                flex: 1 1 auto !important;
                width: 100% !important;
                min-height: 58px !important;
                padding: 14px 16px !important;
                font-size: 15px !important;
            }
            #pp-app-wrapper .pp-qty-control {
                width: 100%;
                justify-content: space-between;
            }
            #pp-app-wrapper .pp-qty-control .qty {
                flex: 1 !important;
                max-width: none !important;
            }
        }

        /* Dynamic SKU */
        .pp-sku-row {
            margin-top: 14px;
            font-size: 13px;
            color: var(--text-light);
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 6px;
        }
        .pp-sku-label {
            font-weight: 700;
            color: var(--text-dark);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-size: 11px;
        }

        /* =========================================
           Premium Product Bundles UI
           ========================================= */
        #pp-app-wrapper .bundle_form .bundled_products,
        #pp-app-wrapper .bundle_form table.bundled_products {
            width: 100% !important;
            border: none !important;
            background: transparent !important;
            border-collapse: separate !important;
            border-spacing: 0 !important;
            margin: 0 0 8px 0 !important;
        }
        #pp-app-wrapper .bundle_form table.bundled_products tbody {
            display: flex !important;
            flex-direction: column !important;
            gap: 10px !important;
        }
        #pp-app-wrapper .bundle_form table.bundled_products tr[class*="bundled_item"] {
            display: flex !important;
            flex-wrap: nowrap !important;
            align-items: flex-start !important;
            gap: 10px 14px !important;
            padding: 12px 14px !important;
            background: var(--white) !important;
            border: 1px solid var(--border) !important;
            border-radius: var(--radius) !important;
            box-shadow: var(--shadow-soft) !important;
        }
        #pp-app-wrapper .bundle_form table.bundled_products tr td {
            border: none !important;
            padding: 0 !important;
            display: block !important;
        }
        #pp-app-wrapper .bundle_form .bundled_product_images,
        #pp-app-wrapper .bundle_form td.bundled_item_images_column {
            flex: 0 0 auto !important;
            width: 60px !important;
            max-width: 60px !important;
        }
        #pp-app-wrapper .bundle_form .bundled_product_images img,
        #pp-app-wrapper .bundle_form td.bundled_item_images_column img {
            width: 60px !important;
            height: 60px !important;
            object-fit: cover !important;
            border-radius: 8px !important;
            display: block !important;
        }
        #pp-app-wrapper .bundle_form .bundled_product_title,
        #pp-app-wrapper .bundle_form td.bundled_item_details_col {
            flex: 1 1 160px !important;
            min-width: 0 !important;
            width: calc(100% - 74px) !important;
        }
        #pp-app-wrapper .bundle_form .bundled_product_title h4,
        #pp-app-wrapper .bundle_form .bundled_product_title .item_title,
        #pp-app-wrapper .bundle_form td.bundled_item_details_col .item_title {
            margin: 0 0 4px 0 !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            color: var(--primary) !important;
            line-height: 1.35 !important;
        }
        #pp-app-wrapper .bundle_form .bundled_product_title a,
        #pp-app-wrapper .bundle_form td.bundled_item_details_col a {
            color: var(--accent-main) !important;
            text-decoration: none !important;
            font-weight: 600 !important;
            word-break: break-word !important;
        }
        #pp-app-wrapper .bundle_form .bundled_product_title a:hover {
            text-decoration: underline !important;
        }
        /* Non-table bundle summaries (some templates) */
        /* Hide pp-qty-control inside individual bundled item rows (duplicates of the main bundle qty) */
        #pp-app-wrapper .bundle_form table.bundled_products tr[class*="bundled_item"] .pp-qty-control,
        #pp-app-wrapper .bundle_form .bundled_product_summary .pp-qty-control {
            display: none !important;
        }

        #pp-app-wrapper .bundle_form .bundled_product.bundled_product_summary,
        #pp-app-wrapper .bundle_form .product.bundled_product_summary {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: flex-start !important;
            gap: 10px 14px !important;
            padding: 12px 14px !important;
            margin-bottom: 10px !important;
            background: var(--white) !important;
            border: 1px solid var(--border) !important;
            border-radius: var(--radius) !important;
            clear: both !important;
        }
        #pp-app-wrapper .bundle_form .bundled_product_summary .bundled_product_images {
            margin: 0 !important;
        }

        .pp-trust-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            flex-wrap: wrap;
            gap: 12px;
        }
        .pp-trust-text { font-size: 12px; font-weight: 600; color: var(--text-light); display: flex; align-items: center; gap: 6px; line-height: 1.3; }
        .pp-payment-icons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
        .pp-payment-icons img {
            height: 28px !important;
            width: auto !important;
            max-width: 180px !important;
            object-fit: contain;
            opacity: 0.75;
            transition: var(--transition);
        }
        .pp-payment-icons img:hover { opacity: 1; }

        /* =========================================
           RELATED PRODUCTS (custom cards, max 2 cols)
           Injected after .pp-trust-row
           ========================================= */
        .pp-related-products {
            margin-top: 22px;
            width: 100%;
        }
        .pp-related-title {
            margin: 0 0 12px 0;
            font-size: 16px;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: -0.2px;
        }
        .pp-related-products .related.products {
            margin: 0 !important;
            padding: 0 !important;
        }
        .pp-related-products .related.products > h2 {
            display: none !important; /* keep UI clean; cards only */
        }
        .pp-related-products .related.products ul.products {
            margin: 0 !important;
            padding: 0 !important;
            list-style: none !important;
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 15px;
            align-items: stretch !important;
        }
        /* Hard limit to 2 products (even if shortcode returns more) */
        .pp-related-products .related.products ul.products > li.product:nth-child(n+3) {
            display: none !important;
        }

        /* Silence common Woo label warnings in this mini-grid */
        .pp-related-products label[for] {
            display: none !important;
        }
        .pp-related-products .related.products ul.products li.product {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 12px 10px 12px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: var(--shadow-soft);
            transition: none !important;
            margin: 0 !important;
            clear: none !important;
            float: none !important;
            width: 100% !important;
            min-height: 0;
        }
        .pp-related-products .related.products ul.products li.product:hover {
            box-shadow: var(--shadow-soft) !important;
            transform: none !important;
            border-color: var(--border) !important;
        }
        .pp-related-products .related.products ul.products li.product a {
            text-decoration: none !important;
        }
        .pp-related-products .related.products ul.products li.product.first,
        .pp-related-products .related.products ul.products li.product.last,
        .pp-related-products .related.products ul.products li.product:nth-child(n) {
            clear: none !important;
            float: none !important;
            margin: 0 !important;
            width: 100% !important;
        }
        .pp-related-products .related.products ul.products li.product .et_overlay,
        .pp-related-products .related.products ul.products li.product .et_shop_image .et_overlay {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
        }
        .pp-related-products .related.products ul.products li.product .et_shop_image:before,
        .pp-related-products .related.products ul.products li.product a.woocommerce-LoopProduct-link:before,
        .pp-related-products .related.products ul.products li.product a.woocommerce-LoopProduct-link:after {
            display: none !important;
            content: none !important;
        }
        .pp-related-products .related.products ul.products li.product .woocommerce-loop-product__title {
            font-family: inherit;
            font-size: 12px;
            font-weight: 700;
            color: var(--primary);
            margin: 6px 0 6px 0;
            line-height: 1.2;
        }
        .pp-related-products .related.products ul.products li.product .price {
            font-family: inherit;
            font-size: 13px;
            font-weight: 800;
            color: var(--primary);
            line-height: 1.2;
            margin: 0 0 8px 0;
            display: block;
        }
        .pp-related-products .related.products ul.products li.product .price del {
            font-size: 12px;
            font-weight: 600;
            color: #94a3b8;
            margin-right: 8px;
        }
        .pp-related-products .related.products ul.products li.product .price ins {
            font-weight: 800;
            text-decoration: none;
        }
        .pp-related-products .related.products ul.products li.product img {
            border-radius: 10px;
            width: 100%;
            height: auto;
            object-fit: contain;
            aspect-ratio: 1 / 1;
            max-height: none;
            margin: 0 auto 8px auto;
            display: block;
            transform: none !important;
            transition: none !important;
            background: #fff;
        }
        .pp-related-products .related.products ul.products li.product .et_shop_image {
            display: block;
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 10px;
            overflow: hidden;
            background: #fff;
            margin: 0 0 8px 0;
        }
        .pp-related-products .related.products ul.products li.product .et_shop_image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            margin: 0;
            display: block;
        }

        /* Purple button like shop tiles */
        .pp-related-products .related.products ul.products li.product .button,
        .pp-related-products .related.products ul.products li.product a.button,
        .pp-related-products .related.products ul.products li.product button.button {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 100% !important;
            background: #efe8ff !important;
            color: #7642e9 !important;
            border: 1px solid #d9c8ff !important;
            border-radius: 10px !important;
            padding: 9px 10px !important;
            font-weight: 800 !important;
            font-size: 12px !important;
            line-height: 1.1 !important;
            text-transform: none !important;
            letter-spacing: 0.01em !important;
            box-shadow: none !important;
            margin-top: auto !important;
        }
        .pp-related-products .related.products ul.products li.product .button:hover,
        .pp-related-products .related.products ul.products li.product a.button:hover,
        .pp-related-products .related.products ul.products li.product button.button:hover {
            background: #efe8ff !important;
            color: #7642e9 !important;
            transform: none !important;
        }
        .pp-related-products .related.products ul.products li.product .nhs-cart-icon-btn .dashicons,
        .pp-related-products .related.products ul.products li.product .nhs-cart-icon-btn span,
        .pp-related-products .related.products ul.products li.product .button .dashicons,
        .pp-related-products .related.products ul.products li.product .button span {
            color: #7642e9 !important;
            font-size: 18px !important;
            line-height: 1 !important;
        }
        .pp-related-products .related.products ul.products li.product .added_to_cart {
            display: none !important;
        }
        .pp-related-products .related.products ul.products li.product .nhs-loop-rating.custom-shop-rating {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center;
            gap: 6px;
            margin: 0 0 8px 0;
            width: 100%;
        }
        .pp-related-products .related.products ul.products li.product .nhs-loop-rating .shop-rating-count {
            display: inline-block !important;
            color: var(--text-light);
            font-size: 12px;
            line-height: 1;
        }
        .pp-related-products .related.products ul.products li.product .nhs-loop-rating .star-rating {
            margin: 0 !important;
            float: none !important;
            line-height: 1 !important;
        }

        .pp-related-footer {
            margin-top: 12px;
            display: flex;
            justify-content: center;
        }
        .pp-related-more-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            background: linear-gradient(180deg, #8B5CF6, #7C3AED);
            color: #fff !important;
            border: 1px solid #7C3AED;
            border-radius: 12px;
            padding: 12px 14px;
            font-weight: 900;
            text-decoration: none !important;
            box-shadow: 0 10px 22px rgba(124, 58, 237, 0.18);
            transition: var(--transition);
            max-width: 320px;
        }
        .pp-related-more-btn:hover {
            transform: translateY(-2px);
            background: linear-gradient(180deg, #7C3AED, #6D28D9);
        }

        @media (max-width: 768px) {
            .pp-related-products .related.products ul.products {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px;
            }
            .pp-related-products .related.products ul.products li.product {
                padding: 10px 10px 8px 10px;
            }
            .pp-related-products .related.products ul.products li.product img {
                max-height: none;
            }
            .pp-related-products .related.products ul.products li.product .woocommerce-loop-product__title {
                font-size: 11px;
                line-height: 1.18;
            }
            .pp-related-products .related.products ul.products li.product .price {
                font-size: 12px;
                margin-bottom: 6px;
            }
        }

        /* =========================================
           5. TABS
           ========================================= */
        .pp-tabs-wrapper {
            grid-column: 1;
            grid-row: 2;
            margin-top: 10px;
            padding-top: 4px;
            clear: both;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            scroll-margin-top: 24px;
        }

        .pp-tab-header {
            display: flex;
            flex-wrap: nowrap;
            gap: 6px;
            margin-bottom: 16px;
            width: 100%;
            max-width: 100%;
        }
        .pp-tab-btn {
            background: var(--bg-light);
            border: 1px solid var(--border);
            padding: 9px 10px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex: 1 1 0;
            min-width: 0;
            white-space: nowrap;
            text-align: center;
            line-height: 1.2;
        }
        .pp-tab-btn:focus-visible {
            outline: 2px solid var(--accent-main);
            outline-offset: 2px;
        }
        .pp-tab-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            color: var(--accent-main);
        }
        .pp-tab-icon svg {
            width: 15px;
            height: 15px;
            fill: currentColor;
        }
        .pp-tab-btn:hover {
            background: var(--bg-hover);
            color: var(--primary);
            border-color: #cbd5e1;
        }
        .pp-tab-btn:hover .pp-tab-icon { color: var(--accent-hover); }
        .pp-tab-btn.active {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary);
            box-shadow: var(--shadow-soft);
        }
        .pp-tab-btn.active .pp-tab-icon { color: #c4b5fd; }

        @media (min-width: 901px) and (max-width: 1049px) {
            .pp-tab-btn {
                padding: 8px 6px;
                font-size: 11px;
                gap: 5px;
                letter-spacing: -0.01em;
            }
            .pp-tab-icon,
            .pp-tab-icon svg {
                width: 14px;
                height: 14px;
            }
            .pp-tab-header { gap: 5px; }
        }

        @media (min-width: 1100px) {
            .pp-tab-btn {
                padding: 10px 16px;
                font-size: 13px;
                gap: 8px;
            }
            .pp-tab-icon,
            .pp-tab-icon svg {
                width: 16px;
                height: 16px;
            }
            .pp-tab-header { gap: 10px; }
        }

        .pp-accordion-btn {
            display: none;
            width: 100%;
            text-align: left;
            background: var(--bg-light);
            border: 1px solid var(--border);
            padding: 16px 20px;
            border-radius: var(--radius);
            font-size: 15px;
            font-weight: 700;
            color: var(--primary);
            cursor: pointer;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0;
            transition: var(--transition);
        }
        .pp-accordion-btn .pp-tab-icon {
            color: var(--accent-main);
        }
        .pp-accordion-btn .pp-accordion-label {
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }
        .pp-accordion-btn .pp-accordion-label .pp-tab-icon {
            width: 20px;
            height: 20px;
        }
        .pp-accordion-btn .pp-accordion-label .pp-tab-icon svg {
            width: 20px;
            height: 20px;
        }
        .pp-accordion-btn.active {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary);
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            margin-bottom: 0;
        }
        .pp-accordion-btn.active .pp-tab-icon { color: #c4b5fd; }
        .pp-accordion-btn .pp-accordion-chevron {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            fill: currentColor;
            transition: transform 0.3s ease;
        }
        .pp-accordion-btn.active .pp-accordion-chevron { transform: rotate(180deg); }

        .pp-tab-body {
            display: none;
            animation: appFadeIn 0.3s ease-out forwards;
            color: var(--text-dark);
            font-size: 15px;
            line-height: 1.7;
            background: var(--white);
            border: 1px solid #e9edf5;
            border-radius: 14px;
            box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
            padding: 16px 18px;
        }
        .pp-tab-body.active {
            display: block;
        }

        .pp-tab-body #reviews {
            background: var(--white);
            border-radius: var(--radius-lg);
        }
        .pp-tab-body #reviews .commentlist {
            list-style: none;
            padding: 0;
        }
        .pp-tab-body #reviews .commentlist li.review {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            transition: var(--transition);
        }
        .pp-tab-body #reviews .commentlist li.review:hover {
            box-shadow: var(--shadow-soft);
        }
        /* Empty reviews state (no comments yet) */
        .pp-tab-body #reviews .woocommerce-noreviews {
            background: rgba(139, 92, 246, 0.06);
            border: 1px solid rgba(139, 92, 246, 0.18);
            border-radius: 12px;
            padding: 16px 18px;
            color: var(--text-light);
            font-weight: 600;
            margin: 0 0 18px 0;
        }
        .pp-tab-body #reviews a.woocommerce-review-link {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, #8B5CF6, #7C3AED);
            color: #fff !important;
            border: 1px solid #7C3AED;
            border-radius: 12px;
            padding: 10px 14px;
            font-weight: 800;
            text-decoration: none !important;
            box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18);
            transition: var(--transition);
            white-space: nowrap;
        }
        .pp-tab-body #reviews a.woocommerce-review-link:hover {
            transform: translateY(-2px);
            background: linear-gradient(180deg, #7C3AED, #6D28D9);
        }
        .pp-tab-body .star-rating,
        .pp-tab-body .woocommerce-product-rating .star-rating,
        .pp-tab-body .stars a,
        .comment-form-rating .stars a {
            color: var(--star-gold) !important;
        }
        .pp-tab-body .star-rating span::before,
        .pp-tab-body .woocommerce-product-rating .star-rating span::before {
            color: var(--star-gold) !important;
        }
        .pp-tab-body #review_form_wrapper {
            margin-top: 30px;
            background: var(--bg-light);
            padding: 28px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
        }
        .pp-tab-body #review_form_wrapper .comment-reply-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 20px;
            display: block;
        }
        .pp-tab-body .comment-form input,
        .pp-tab-body .comment-form textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--white);
            font-family: inherit;
            transition: var(--transition);
        }
        .pp-tab-body .comment-form input:focus,
        .pp-tab-body .comment-form textarea:focus {
            outline: none;
            border-color: var(--accent-main);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }
        .pp-tab-body .form-submit input {
            background: linear-gradient(180deg, #8B5CF6, #7C3AED);
            color: white;
            border: 1px solid #7C3AED;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 0.01em;
            line-height: 1.2 !important;
            box-shadow: 0 6px 18px rgba(124, 58, 237, 0.26);
            cursor: pointer;
            transition: var(--transition);
        }
        .pp-tab-body .form-submit input:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }
        .pp-tab-body .form-submit input:focus-visible {
            outline: 2px solid #c4b5fd;
            outline-offset: 2px;
        }
        #pp-app-wrapper .pp-tab-body #reviews #review_form #respond .form-submit input#submit,
        #pp-app-wrapper .pp-tab-body #reviews #review_form #respond .form-submit input.submit,
        #pp-app-wrapper .pp-tab-body #reviews #review_form #respond .form-submit input[type="submit"] {
            background: linear-gradient(180deg, #8B5CF6, #7C3AED) !important;
            color: #fff !important;
            border: 1px solid #7C3AED !important;
            border-radius: 12px !important;
            padding: 12px 24px !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            line-height: 1.2 !important;
            letter-spacing: 0.01em !important;
            box-shadow: 0 6px 18px rgba(124, 58, 237, 0.26) !important;
            text-shadow: none !important;
            min-height: auto !important;
            left: auto !important;
        }
        #pp-app-wrapper .pp-tab-body #reviews #review_form #respond .form-submit input#submit:hover,
        #pp-app-wrapper .pp-tab-body #reviews #review_form #respond .form-submit input.submit:hover,
        #pp-app-wrapper .pp-tab-body #reviews #review_form #respond .form-submit input[type="submit"]:hover {
            background: linear-gradient(180deg, #7C3AED, #6D28D9) !important;
            color: #fff !important;
            border-color: #6D28D9 !important;
            transform: translateY(-1px);
        }

        /* Clear distinction between original and discounted price */
        .pp-price-box del,
        .pp-price-box del span,
        .pp-price-box .price del,
        .pp-price-box .price del .amount {
            color: #94a3b8 !important;
            font-size: 20px !important;
            font-weight: 600 !important;
            line-height: 1 !important;
            vertical-align: baseline !important;
            display: inline-block !important;
            text-decoration-thickness: 2px;
            margin-right: 8px;
            overflow: visible !important;
        }
        .pp-price-box ins,
        .pp-price-box ins span,
        .pp-price-box .price ins,
        .pp-price-box .price ins .amount {
            color: var(--primary) !important;
            text-decoration: none !important;
            font-weight: 800 !important;
            line-height: 1 !important;
        }

        @keyframes appFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

        /* Sale badge */
        .woocommerce span.onsale,
        .woocommerce-page span.onsale,
        .single-product .onsale {
            position: absolute !important;
            top: 15px !important;
            left: 15px !important;
            right: auto !important;
            margin: 0 !important;
            z-index: 2 !important;
            background: var(--white) !important;
            color: var(--accent-main) !important;
            font-family: inherit !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 1px !important;
            line-height: 1.2 !important;
            padding: 5px 12px !important;
            border-radius: 20px !important;
            min-height: auto !important;
            min-width: auto !important;
            border: 1.5px solid var(--accent-main) !important;
            box-shadow: 0 4px 8px rgba(139, 92, 246, 0.1) !important;
        }

        /* =========================================
           6. MOBILE
           ========================================= */
        @media (max-width: 900px) {
            #pp-app-wrapper {
                padding-bottom: calc(20px + var(--pp-mobile-bottom-safe) + env(safe-area-inset-bottom, 0px));
                display: block;
                overflow-x: hidden;
            }

            .pp-grid {
                display: flex;
                flex-direction: column;
                gap: 0;
                margin-bottom: 20px;
            }

            /* Breadcrumbs first, then gallery, then rest of product column (display:contents lifts children) */
            .pp-content-col {
                display: contents;
            }
            .pp-breadcrumbs {
                order: 1;
                width: 100%;
                max-width: 100%;
                margin-bottom: 12px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
                white-space: nowrap;
            }
            .pp-breadcrumbs::-webkit-scrollbar {
                height: 4px;
            }
            .pp-breadcrumbs .woocommerce-breadcrumb,
            #pp-app-wrapper .pp-breadcrumbs .woocommerce-breadcrumb {
                flex-wrap: nowrap !important;
                white-space: nowrap;
                width: max-content;
                min-width: min-content;
                max-width: none;
                color: #94a3b8;
                padding-bottom: 2px;
            }
            .pp-breadcrumbs .woocommerce-breadcrumb a {
                color: #64748b;
                background: transparent;
                border: none;
                padding: 2px 6px;
                font-weight: 500;
            }
            .pp-breadcrumbs .woocommerce-breadcrumb a:hover {
                color: #475569;
                background: rgba(148, 163, 184, 0.15);
            }
            .pp-breadcrumbs .woocommerce-breadcrumb span.current {
                color: #64748b;
                background: transparent;
                border: none;
                font-weight: 600;
                padding: 2px 6px;
            }

            .pp-gallery-col { order: 2; width: 100%; max-width: 100%; }
            .pp-content-main {
                order: 3;
                width: 100%;
                max-width: 100%;
                margin-top: 24px;
            }
            .pp-tabs-wrapper { order: 4; width: 100%; max-width: 100%; margin-top: 16px; }

            .pp-title {
                font-size: 28px;
                margin-bottom: 8px;
            }
            .pp-price-box {
                font-size: 26px;
                margin-bottom: 12px;
            }
            .pp-rating-row {
                margin-bottom: 8px;
            }
            .pp-excerpt {
                margin-bottom: 20px;
                padding: 12px 16px;
            }
            .pp-features {
                grid-template-columns: 1fr;
                gap: 12px;
                margin-bottom: 24px;
            }

            .pp-tab-header { display: none; }
            .pp-accordion-btn { display: flex; margin-bottom: 0; }
            .pp-tab-body {
                padding: 0;
                border: none;
                margin-bottom: 0;
                overflow: hidden;
            }
            .pp-tab-body.active {
                padding: 20px 16px;
                border: 1px solid var(--border);
                border-top: none;
                border-bottom-left-radius: var(--radius);
                border-bottom-right-radius: var(--radius);
                margin-bottom: 12px;
                background: var(--white);
            }

            .pp-trust-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .pp-badge-row {
                margin-bottom: 8px;
            }
            #pp-app-wrapper .pp-action-area .quantity {
                display: block !important;
                width: 100% !important;
            }
            #pp-app-wrapper .pp-action-area .pp-qty-control {
                display: flex !important;
                width: 100% !important;
                max-width: 100% !important;
            }
            #pp-app-wrapper .pp-action-area .pp-qty-btn {
                width: 56px !important;
                min-width: 56px !important;
            }
            #pp-app-wrapper .pp-action-area .pp-qty-control .qty {
                flex: 1 1 auto !important;
                width: auto !important;
                max-width: none !important;
            }
            #pp-app-wrapper .bundle_form table.bundled_products tr[class*="bundled_item"] {
                display: grid !important;
                grid-template-columns: 56px minmax(0, 1fr) !important;
                align-items: start !important;
                gap: 8px 10px !important;
            }
            #pp-app-wrapper .bundle_form td.bundled_item_images_column,
            #pp-app-wrapper .bundle_form .bundled_product_images {
                width: 56px !important;
                max-width: 56px !important;
                grid-column: 1 !important;
            }
            #pp-app-wrapper .bundle_form td.bundled_item_details_col,
            #pp-app-wrapper .bundle_form .bundled_product_title {
                width: 100% !important;
                grid-column: 2 !important;
                min-width: 0 !important;
            }
            #pp-app-wrapper .bundle_form .bundled_product_title h4,
            #pp-app-wrapper .bundle_form .bundled_product_title .item_title,
            #pp-app-wrapper .bundle_form td.bundled_item_details_col .item_title {
                font-size: 11px !important;
                line-height: 1.2 !important;
                margin: 0 0 1px 0 !important;
                word-break: break-word !important;
            }
            #pp-app-wrapper .bundle_form .bundled_product_title a,
            #pp-app-wrapper .bundle_form td.bundled_item_details_col a {
                font-size: 11px !important;
                line-height: 1.2 !important;
                word-break: break-word !important;
            }
            #pp-app-wrapper .bundle_form .bundled_product_title_inner,
            #pp-app-wrapper .bundle_form .bundled_product_title_link {
                display: block !important;
                margin: 0 !important;
            }
            .pp-tab-body {
                padding: 14px 12px;
                border-radius: 12px;
            }
        }

        @media (max-width: 480px) {
            .pp-title { font-size: 24px; }
            .pp-price-box { font-size: 22px; }
        }
        @media screen and (max-width: 992px) {
            #pp-app-wrapper .bundle_form .bundled_product.product,
            #pp-app-wrapper .bundle_form .bundled_product.bundled_product_summary,
            #pp-app-wrapper .bundle_form table.bundled_products tr[class*="bundled_item"] {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important; /* Stops it from breaking to a new line */
                align-items: center !important;
                gap: 10px !important;
            }
            #pp-app-wrapper .bundle_form .bundled_product_images,
            #pp-app-wrapper .bundle_form td.bundled_item_images_column {
                flex: 0 0 56px !important;
                width: 56px !important;
                max-width: 56px !important;
                margin-bottom: 0 !important;
            }
            #pp-app-wrapper .bundle_form .bundled_product_images figure {
                margin: 0 !important;
            }
            #pp-app-wrapper .bundle_form td.bundled_item_details_col,
            #pp-app-wrapper .bundle_form .bundled_product_title {
                flex: 1 1 auto !important;
                min-width: 0 !important;
                text-align: left !important;
                margin: 0 !important;
                padding-right: 10px !important;
            }
            
            /* Forces title left and cart right */
            #pp-app-wrapper .bundle_form .bundled_product .details {
                flex: 1 1 auto !important;
                min-width: 0 !important;
                margin: 0 !important;
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: space-between !important;
                width: 100% !important;
            }
            
            /* Apply line-clamp ONLY to the parent container */
            #pp-app-wrapper .bundle_form .bundled_product_title h4 {
                display: -webkit-box !important;
                -webkit-line-clamp: 2;
                line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden !important;
                margin: 0 !important;
            }

            /* Make text and link inline so the icon flows naturally at the end of the text */
            #pp-app-wrapper .bundle_form .bundled_product_title_inner,
            #pp-app-wrapper .bundle_form .bundled_product_title .item_title,
            #pp-app-wrapper .bundle_form td.bundled_item_details_col .item_title,
            #pp-app-wrapper .bundle_form .bundled_product_title_link,
            #pp-app-wrapper .bundle_form .bundled_product_title a,
            #pp-app-wrapper .bundle_form td.bundled_item_details_col a {
                display: inline !important;
                white-space: normal !important;
                word-break: break-word !important;
                font-size: 13px !important;
                line-height: 1.3 !important;
                margin: 0 !important;
            }

            /* Adds a tiny gap so the icon doesn't touch the last letter */
            #pp-app-wrapper .bundle_form .bundled_product_title_link {
                margin-left: 5px !important;
            }
        }
        
        /* =========================================
           MAKE ENTIRE BUNDLE TILE CLICKABLE (All Devices)
           ========================================= */
        #pp-app-wrapper .bundle_form .bundled_product.bundled_product_summary,
        #pp-app-wrapper .bundle_form table.bundled_products tr[class*="bundled_item"] {
            position: relative !important;
            transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        }

        #pp-app-wrapper .bundle_form .bundled_product.bundled_product_summary:hover,
        #pp-app-wrapper .bundle_form table.bundled_products tr[class*="bundled_item"]:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
            border-color: var(--accent-main) !important;
            cursor: pointer !important;
        }

        /* Removes invisible walls so the link can stretch over the whole box */
        #pp-app-wrapper .bundle_form .bundled_product .details,
        #pp-app-wrapper .bundle_form .bundled_product_title,
        #pp-app-wrapper .bundle_form .bundled_product_title_link,
        #pp-app-wrapper .bundled_product_permalink {
            position: static !important; 
        }

        /* Stretches the link to cover the entire tile invisibly */
        #pp-app-wrapper .bundled_product_permalink::after {
            content: "" !important;
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 99 !important;
        }
    
@media (max-width: 900px) {
    .pp-related-products {
        order: 5 !important;
        width: 100%;
    }
}


.pp-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

.pp-related-products ul.products li.product {
    width: 100% !important;
    float: none !important;
}


@media (max-width: 768px) {
    .pp-related-products .related.products ul.products li.product {
        padding: 8px !important;
        border-radius: 10px;
    }
    .pp-related-products .related.products ul.products li.product img {
        max-height: none;
    }
    .pp-related-products .woocommerce-loop-product__title {
        font-size: 10.5px !important;
        line-height: 1.15;
    }
    .pp-related-products .price {
        font-size: 11px !important;
    }
    .pp-related-products .button {
        padding: 6px !important;
        font-size: 11px !important;
    }
}


/* Fix related product title size (override H2 safely) */
.pp-related-products .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.25;
    margin: 6px 0;
    min-height: 32px;
}

@media (max-width: 768px) {
    .pp-related-products .woocommerce-loop-product__title {
        font-size: 11px !important;
        line-height: 1.15;
        letter-spacing: -0.2px;
        min-height: 28px;
    }
}

/* Equal height + alignment fix */
.pp-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    align-items: stretch !important;
}

.pp-related-products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/* Image consistency */
.pp-related-products li.product img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: none;
    background: #fff;
}

/* Push price to bottom */
.pp-related-products .price {
    margin-top: auto;
}


/* FORCE 2 columns properly (fix uneven stacking) */
.pp-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.pp-related-products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Ensure container is full width */
.pp-related-products {
    width: 100% !important;
}

/* Clamp titles to 2 lines */
.pp-related-products .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Subtle hover animation */
.pp-related-products ul.products li.product {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pp-related-products ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

</style>

<style id="related-products-fix">
/* ===== RELATED PRODUCTS GRID FIX ===== */
.pp-related-products .related.products ul.products::before,
.pp-related-products .related.products ul.products::after{
    display:none !important;
    content:none !important;
}

.pp-related-products .related.products ul.products{
    display:grid !important;
    grid-template-columns:repeat(2,1fr) !important;
    gap:16px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

.pp-related-products ul.products li.product{
    float:none !important;
    clear:none !important;
    width:100% !important;
    margin:0 !important;
}

.pp-related-products ul.products li.product:nth-child(n+3){
    display:none !important;
}

/* ===== RELATED PRODUCT TITLE SIZE ===== */
.pp-related-products .woocommerce-loop-product__title{
    font-size:13px !important;
    font-weight:600 !important;
    line-height:1.25 !important;
    margin:6px 0 !important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* ===== CENTER RELATED TITLE ===== */
.pp-related-title{
    text-align:center;
    font-size:16px;
    font-weight:800;
    color:#7642e9;
    margin:0 0 14px 0;
}

/* ===== MOVE TABS UP (DESKTOP) ===== */
/* Removed */
/* ================================
   RELATED PRODUCTS LAYOUT FIX
================================ */

.pp-related-products .related.products ul.products::before,
.pp-related-products .related.products ul.products::after {
    display: none !important;
    content: none !important;
}

/* Force 2-column layout */
.pp-related-products .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch;
}

/* Remove WooCommerce float system */
.pp-related-products ul.products li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Ensure only 2 products show */
.pp-related-products ul.products li.product:nth-child(n+3) {
    display: none !important;
}

/* ================================
   RELATED PRODUCT CARD STYLE
================================ */

.pp-related-products ul.products li.product {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}

/* Shop-like hover */
.pp-related-products ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, .18);
}

/* Image styling */
.pp-related-products ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 8px;
    width: 100%;
    height: auto;
}

/* ================================
   PRODUCT TITLE (Fix huge H2)
================================ */

.pp-related-products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin: 8px 0 4px 0 !important;
    letter-spacing: 0 !important;

    /* keep cards equal height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price style */
.pp-related-products li.product .price {
    font-size: 14px;
    font-weight: 600;
}

/* ================================
   RELATED TITLE
================================ */

.pp-related-title {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #7642e9;
    margin: 0 0 14px 0;
}

/* ================================
   MOVE TABS UP (DESKTOP)
================================ */

/* Removed */

/* ================================
   MOBILE (Fixed for 2 Columns)
================================ */

@media (max-width: 768px) {
    /* Maintain 2 columns on mobile */
    .pp-related-products .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; /* Slightly smaller gap for mobile screens */
    }

    /* Keep product cards aligned */
    .pp-related-products ul.products li.product {
        justify-content: space-between;
        height: 100%;
        padding: 8px; /* Slightly less padding to save space */
    }
    
    .pp-related-products li.product .woocommerce-loop-product__title {
        font-size: 13px !important; /* Slightly smaller text for mobile grid */
    }
}

/* ========================================
   Dynamic ACF Features List Styling 
======================================== */
.pp-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 !important; /* Space above and below the whole list */
    display: flex;
    flex-direction: column;
    gap: 8px !important; /* Space between the lines of text */
}

.pp-features-list li {
    display: flex;
    align-items: center; 
    gap: 6px !important; /* Space between the checkmark and the text */
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3 !important; /* Tighter line height */
    margin: 0 !important; 
    padding: 0 !important;
}

/* Force hide any hidden Divi/WooCommerce default dots */
.pp-features-list li::before, 
.pp-features-list li::after {
    display: none !important;
}

.pp-features-list li svg {
    color: var(--accent-main);
    flex-shrink: 0;
    width: 18px; /* Locked size so they align perfectly */
    height: 18px;
    margin-top: -2px; /* Slight optical adjustment to center with text */
}
