/* =========================================================
   THE KINGS MART — Premium Product Page
   ========================================================= */

.tkm-product-page {
    --tkm-blue: #0874f9;
    --tkm-blue-dark: #0558bd;
    --tkm-dark: #071426;
    --tkm-text: #17263a;
    --tkm-muted: #68788b;
    --tkm-border: #e1e9f2;
}

/* Main product layout */

.tkm-product-main {
    align-items: start;
    gap: 46px;
}

.tkm-product-info-panel {
    position: relative;
    padding: 32px;
    border: 1px solid var(--tkm-border);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.08),
            transparent 28%
        ),
        #ffffff;
    box-shadow: 0 22px 60px rgba(25, 64, 109, 0.1);
}

.dark .tkm-product-info-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.13),
            transparent 30%
        ),
        #0b1b2e;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

/* Product heading */

.tkm-product-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--tkm-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tkm-product-page-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: var(--tkm-blue);
}

.tkm-product-page-title {
    margin: 0;
    color: var(--tkm-text);
    font-size: clamp(29px, 3.2vw, 43px);
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.14;
}

.dark .tkm-product-page-title {
    color: #ffffff;
}

.tkm-product-page-code {
    display: inline-flex;
    margin-top: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f0f5fb;
    color: #66778b;
    font-size: 12px;
    font-weight: 800;
}

.dark .tkm-product-page-code {
    background: #10253d;
    color: #a9b9cb;
}

/* Price panel */

.tkm-product-page-price-box {
    margin-top: 25px;
    padding: 22px 23px;
    border: 1px solid rgba(8, 116, 249, 0.16);
    border-radius: 17px;
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.12),
            transparent 35%
        ),
        linear-gradient(145deg, #ffffff, #f5f9fe);
}

.dark .tkm-product-page-price-box {
    border-color: rgba(80, 160, 255, 0.18);
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.17),
            transparent 36%
        ),
        linear-gradient(145deg, #10243b, #0b1a2c);
}

.tkm-product-page-price-label {
    display: block;
    margin-bottom: 4px;
    color: var(--tkm-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tkm-product-page-price {
    display: block;
    color: var(--tkm-blue);
    font-size: clamp(31px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
}

.tkm-product-page-stock {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.tkm-product-page-stock::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.tkm-product-page-stock.is-in {
    background: #eafaf1;
    color: #177b46;
}

.tkm-product-page-stock.is-in::before {
    background: #22a75a;
    box-shadow: 0 0 0 5px rgba(34, 167, 90, 0.12);
}

.tkm-product-page-stock.is-out {
    background: #fff0f0;
    color: #bd3030;
}

.tkm-product-page-stock.is-out::before {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.dark .tkm-product-page-stock.is-in {
    background: rgba(34, 167, 90, 0.14);
    color: #7ae0a5;
}

.dark .tkm-product-page-stock.is-out {
    background: rgba(239, 68, 68, 0.14);
    color: #ff9a9a;
}

/* Short product description */

.tkm-product-page-summary {
    margin-top: 24px;
    color: var(--tkm-muted);
    font-size: 15px;
    line-height: 1.8;
}

.dark .tkm-product-page-summary {
    color: #a9b9ca;
}

/* Purchase area */

.tkm-product-purchase-box {
    margin-top: 25px;
    padding: 22px;
    border: 1px solid var(--tkm-border);
    border-radius: 17px;
    background: #f8fbff;
}

.dark .tkm-product-purchase-box {
    border-color: rgba(255, 255, 255, 0.1);
    background: #0e2036;
}

.tkm-product-purchase-box .btn-primary {
    min-height: 50px;
    border-radius: 11px;
    background: linear-gradient(135deg, #1186ff, #0558bd);
    box-shadow: 0 13px 30px rgba(8, 116, 249, 0.26);
}

.tkm-product-purchase-box .btn-primary.btn-lg {
    width: 100%;
    min-height: 56px;
    justify-content: center;
}

.tkm-product-purchase-box .btn-primary:hover {
    background: linear-gradient(135deg, #2795ff, #044ca4);
}

/* Trust cards */

.tkm-product-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 20px;
}

.tkm-product-trust-item {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--tkm-border);
    border-radius: 13px;
    background: #ffffff;
}

.dark .tkm-product-trust-item {
    border-color: rgba(255, 255, 255, 0.1);
    background: #0c1d31;
}

.tkm-product-trust-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #eaf4ff;
    color: var(--tkm-blue);
    font-size: 18px;
}

.dark .tkm-product-trust-icon {
    background: rgba(8, 116, 249, 0.16);
}

.tkm-product-trust-item strong {
    display: block;
    color: var(--tkm-text);
    font-size: 12px;
    font-weight: 900;
}

.dark .tkm-product-trust-item strong {
    color: #ffffff;
}

.tkm-product-trust-item span {
    display: block;
    margin-top: 2px;
    color: var(--tkm-muted);
    font-size: 10px;
    line-height: 1.4;
}

.dark .tkm-product-trust-item span {
    color: #9eafc2;
}

/* Product features */

.tkm-product-features {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--tkm-border);
}

.dark .tkm-product-features {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.tkm-product-features h3 {
    margin-bottom: 13px;
    color: var(--tkm-text);
    font-size: 15px;
    font-weight: 900;
}

.dark .tkm-product-features h3 {
    color: #ffffff;
}

/* Responsive */

@media (min-width: 1024px) {
    .tkm-product-info-panel {
        position: sticky;
        top: 105px;
    }
}

@media (max-width: 767px) {
    .tkm-product-info-panel {
        margin: 0 13px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .tkm-product-trust-grid {
        grid-template-columns: 1fr;
    }

    .tkm-product-page-price {
        font-size: 32px;
    }
}

/* =========================================================
   TKM Product Page — Premium Gallery
   ========================================================= */

.tkm-product-gallery {
    position: relative;
    min-width: 0;
}

.tkm-product-gallery-main {
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e9f2;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 50% 34%,
            rgba(8, 116, 249, 0.12),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f3f8fd
        );
    box-shadow: 0 22px 60px rgba(25, 64, 109, 0.1);
}

.dark .tkm-product-gallery-main {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(
            circle at 50% 34%,
            rgba(8, 116, 249, 0.16),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #10243b,
            #0a1828
        );
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.tkm-product-gallery-badge {
    position: absolute;
    z-index: 5;
    top: 17px;
    left: 17px;
    padding: 8px 11px;
    border: 1px solid rgba(8, 116, 249, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0874f9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(27, 63, 104, 0.1);
    backdrop-filter: blur(9px);
}

.dark .tkm-product-gallery-badge {
    border-color: rgba(95, 170, 255, 0.22);
    background: rgba(7, 23, 42, 0.84);
    color: #76b9ff;
}

.tkm-product-gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.tkm-product-gallery-panel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 42px;
}

.tkm-product-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.tkm-product-gallery-stage:hover .tkm-product-gallery-image {
    transform: scale(1.035);
    filter: drop-shadow(0 24px 28px rgba(21, 57, 96, 0.16));
}

.tkm-product-gallery-zoom {
    position: absolute;
    z-index: 5;
    right: 17px;
    bottom: 17px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(8, 116, 249, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0874f9;
    box-shadow: 0 10px 25px rgba(25, 64, 109, 0.12);
    backdrop-filter: blur(9px);
}

.dark .tkm-product-gallery-zoom {
    border-color: rgba(95, 170, 255, 0.22);
    background: rgba(7, 23, 42, 0.86);
    color: #7bbcff;
}

.tkm-product-gallery-zoom svg {
    width: 21px;
    height: 21px;
}

.tkm-product-gallery-counter {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 18px;
    display: inline-flex;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(5, 18, 34, 0.72);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
}

.tkm-product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 17px;
    padding: 3px 1px 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tkm-product-thumbnail {
    position: relative;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    flex: 0 0 86px;
    overflow: hidden;
    padding: 7px;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dark .tkm-product-thumbnail {
    border-color: rgba(255, 255, 255, 0.1);
    background: #0c1d31;
}

.tkm-product-thumbnail:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 116, 249, 0.42);
}

.tkm-product-thumbnail.is-active {
    border-color: #0874f9;
    box-shadow:
        0 0 0 3px rgba(8, 116, 249, 0.12),
        0 10px 25px rgba(24, 67, 119, 0.12);
}

.tkm-product-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Premium lightbox refinements */

.tkm-product-page [x-teleport="body"] + * {
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .tkm-product-gallery {
        margin: 0 13px;
    }

    .tkm-product-gallery-main {
        border-radius: 18px;
    }

    .tkm-product-gallery-panel {
        padding: 28px;
    }

    .tkm-product-gallery-badge {
        top: 12px;
        left: 12px;
    }

    .tkm-product-gallery-zoom {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .tkm-product-thumbnail {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }
}

/* Purchase Panel Extras */

.tkm-purchase-info{
    display:grid;
    gap:14px;
    margin-bottom:20px;
}

.tkm-purchase-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    border:1px solid #e3ebf3;
    border-radius:14px;
    background:#fff;
}

.dark .tkm-purchase-item{
    background:#10243b;
    border-color:rgba(255,255,255,.08);
}

.tkm-purchase-icon{
    font-size:22px;
}

.tkm-purchase-item strong{
    display:block;
    font-weight:800;
}

.tkm-purchase-item span:last-child{
    display:block;
    margin-top:2px;
    font-size:13px;
    color:#6b7c90;
}

.tkm-purchase-security{
    margin-top:18px;
    display:flex;
    flex-direction:column;
    gap:10px;
    font-size:14px;
    font-weight:700;
    color:#5f7085;
}

.dark .tkm-purchase-security{
    color:#aebfd2;
}

/* TKM Product Page — Quantity Selector */

.tkm-cart-quantity-section {
    width: 100%;
}

.tkm-cart-quantity-label {
    display: block;
    margin-bottom: 8px;
    color: #5f7085;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.dark .tkm-cart-quantity-label {
    color: #aebfd2;
}

.tkm-cart-quantity-control {
    width: 100%;
    height: 52px;
    display: grid;
    grid-template-columns: 52px minmax(70px, 1fr) 52px;
    overflow: hidden;
    border: 1px solid #d8e2ed;
    border-radius: 12px;
    background: #ffffff;
}

.dark .tkm-cart-quantity-control {
    border-color: rgba(255, 255, 255, 0.12);
    background: #0c1d31;
}

.tkm-cart-quantity-button {
    display: grid;
    place-items: center;
    border: 0;
    background: #f3f7fc;
    color: #263548;
    font-size: 21px;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.tkm-cart-quantity-button:hover {
    background: #0874f9;
    color: #ffffff;
}

.dark .tkm-cart-quantity-button {
    background: #122842;
    color: #dce8f5;
}

.tkm-cart-quantity-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.tkm-cart-quantity-input {
    width: 100%;
    height: 100%;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid #d8e2ed;
    border-left: 1px solid #d8e2ed;
    background: transparent;
    color: #17263a;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    outline: none;
    box-shadow: none;
    appearance: textfield;
}

.tkm-cart-quantity-input::-webkit-inner-spin-button,
.tkm-cart-quantity-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.dark .tkm-cart-quantity-input {
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* =========================================================
   TKM Product Specifications
   ========================================================= */

.tkm-specifications {
    margin: 72px 0 40px;
    padding: 40px;
    border: 1px solid #e1e9f2;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.08),
            transparent 30%
        ),
        #ffffff;
    box-shadow: 0 22px 60px rgba(25, 64, 109, 0.08);
}

.dark .tkm-specifications {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.13),
            transparent 32%
        ),
        #0b1b2e;
}

.tkm-specifications-header {
    max-width: 680px;
    margin-bottom: 32px;
}

.tkm-specifications-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #0874f9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tkm-specifications-label::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #0874f9;
}

.tkm-specifications-header h2 {
    margin: 0;
    color: #17263a;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
}

.dark .tkm-specifications-header h2 {
    color: #ffffff;
}

.tkm-specifications-header p {
    margin: 12px 0 0;
    color: #68788b;
    font-size: 15px;
    line-height: 1.7;
}

.dark .tkm-specifications-header p {
    color: #a9b9ca;
}

.tkm-specifications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tkm-specification-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 17px;
    border: 1px solid #e1e9f2;
    border-radius: 15px;
    background: #f8fbff;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.dark .tkm-specification-item {
    border-color: rgba(255, 255, 255, 0.09);
    background: #10243b;
}

.tkm-specification-item:hover {
    transform: translateY(-4px);
    border-color: rgba(8, 116, 249, 0.4);
    box-shadow: 0 14px 32px rgba(25, 64, 109, 0.1);
}

.tkm-specification-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border-radius: 13px;
    background: #e7f2ff;
    color: #0874f9;
    font-size: 16px;
    font-weight: 900;
}

.dark .tkm-specification-icon {
    background: rgba(8, 116, 249, 0.16);
}

.tkm-specification-item span {
    display: block;
    margin-bottom: 4px;
    color: #758397;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.dark .tkm-specification-item span {
    color: #94a8bf;
}

.tkm-specification-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #17263a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.dark .tkm-specification-item strong {
    color: #ffffff;
}

.tkm-specifications-features {
    margin-top: 26px;
    padding: 25px;
    border: 1px solid #e1e9f2;
    border-radius: 16px;
    background: #ffffff;
}

.dark .tkm-specifications-features {
    border-color: rgba(255, 255, 255, 0.09);
    background: #0e2036;
}

.tkm-specifications-features h3 {
    margin: 0 0 16px;
    color: #17263a;
    font-size: 18px;
    font-weight: 900;
}

.dark .tkm-specifications-features h3 {
    color: #ffffff;
}

.tkm-specifications-features .html {
    color: #607187;
    font-size: 14px;
    line-height: 1.75;
}

.dark .tkm-specifications-features .html {
    color: #a9b9ca;
}

@media (max-width: 900px) {
    .tkm-specifications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tkm-specifications {
        margin: 52px 13px 30px;
        padding: 26px 19px;
        border-radius: 19px;
    }

    .tkm-specifications-grid {
        grid-template-columns: 1fr;
    }

    .tkm-specifications-features {
        padding: 20px;
    }
}

/* =========================================================
   TKM Product Page — Premium Information Tabs
   ========================================================= */

.tkm-product-tabs {
    margin: 54px 0 40px;
    padding: 38px;
    border: 1px solid #e1e9f2;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.07),
            transparent 28%
        ),
        #ffffff;
    box-shadow: 0 22px 60px rgba(25, 64, 109, 0.08);
}

.dark .tkm-product-tabs {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.12),
            transparent 30%
        ),
        #0b1b2e;
}

.tkm-product-tabs-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.tkm-product-tabs-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #0874f9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tkm-product-tabs-label::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #0874f9;
}

.tkm-product-tabs-heading h2 {
    margin: 0;
    color: #17263a;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
}

.dark .tkm-product-tabs-heading h2 {
    color: #ffffff;
}

.tkm-product-tabs-heading p {
    margin: 12px 0 0;
    color: #68788b;
    font-size: 15px;
    line-height: 1.7;
}

.dark .tkm-product-tabs-heading p {
    color: #a9b9ca;
}

.tkm-product-tabs-nav {
    display: flex;
    gap: 10px;
    padding: 7px;
    border: 1px solid #dfe8f2;
    border-radius: 15px;
    background: #f4f8fd;
}

.dark .tkm-product-tabs-nav {
    border-color: rgba(255, 255, 255, 0.09);
    background: #0e2036;
}

.tkm-product-tab-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 1;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #65768a;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tkm-product-tab-button:hover {
    color: #0874f9;
}

.tkm-product-tab-button.is-active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1186ff, #0558bd);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(8, 116, 249, 0.23);
}

.tkm-product-tab-icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
}

.tkm-product-tab-icon svg {
    width: 19px;
    height: 19px;
}

.tkm-product-tabs-content {
    margin-top: 22px;
}

.tkm-product-tab-panel {
    padding: 27px;
    border: 1px solid #e1e9f2;
    border-radius: 17px;
    background: #ffffff;
}

.dark .tkm-product-tab-panel {
    border-color: rgba(255, 255, 255, 0.09);
    background: #10243b;
}

.tkm-product-tab-panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e6edf5;
}

.dark .tkm-product-tab-panel-heading {
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

.tkm-product-tab-panel-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    flex: 0 0 47px;
    border-radius: 13px;
    background: #e9f4ff;
    font-size: 21px;
}

.dark .tkm-product-tab-panel-icon {
    background: rgba(8, 116, 249, 0.15);
}

.tkm-product-tab-panel-heading h3 {
    margin: 0;
    color: #17263a;
    font-size: 18px;
    font-weight: 900;
}

.dark .tkm-product-tab-panel-heading h3 {
    color: #ffffff;
}

.tkm-product-tab-panel-heading p {
    margin: 4px 0 0;
    color: #718096;
    font-size: 12px;
}

.dark .tkm-product-tab-panel-heading p {
    color: #9fb0c3;
}

.tkm-product-tab-body {
    color: #5f7085;
    font-size: 14px;
    line-height: 1.8;
}

.dark .tkm-product-tab-body {
    color: #b1c0d1;
}

.tkm-product-tab-body h1,
.tkm-product-tab-body h2,
.tkm-product-tab-body h3,
.tkm-product-tab-body h4 {
    color: #17263a;
    font-weight: 900;
}

.dark .tkm-product-tab-body h1,
.dark .tkm-product-tab-body h2,
.dark .tkm-product-tab-body h3,
.dark .tkm-product-tab-body h4 {
    color: #ffffff;
}

.tkm-product-tab-body ul,
.tkm-product-tab-body ol {
    padding-left: 22px;
}

.tkm-product-tab-body li {
    margin: 7px 0;
}

.tkm-product-tabs-mobile {
    display: none;
}

@media (max-width: 700px) {
    .tkm-product-tabs {
        margin: 45px 13px 30px;
        padding: 25px 18px;
        border-radius: 19px;
    }

    .tkm-product-tabs-nav {
        display: none;
    }

    .tkm-product-tabs-mobile {
        display: block;
    }

    .tkm-product-tabs-select {
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid #dce6f0;
        border-radius: 11px;
        background: #ffffff;
        color: #17263a;
        font-size: 14px;
        font-weight: 800;
    }

    .dark .tkm-product-tabs-select {
        border-color: rgba(255, 255, 255, 0.1);
        background: #10243b;
        color: #ffffff;
    }

    .tkm-product-tab-panel {
        padding: 21px 17px;
    }
}

/* =========================================================
   TKM Product Page — Related Products
   ========================================================= */

.tkm-related-products {
    width: 100%;
    margin: 58px 0 40px;
    padding: 40px;
    border: 1px solid #e1e9f2;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.08),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7faff
        );
    box-shadow: 0 22px 60px rgba(25, 64, 109, 0.08);
    box-sizing: border-box;
}

.dark .tkm-related-products {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.13),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #0b1b2e,
            #0d2036
        );
}

.tkm-related-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.tkm-related-products-header > div {
    max-width: 720px;
}

.tkm-related-products-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #0874f9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tkm-related-products-label::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #0874f9;
}

.tkm-related-products-header h2 {
    margin: 0;
    color: #17263a;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
}

.dark .tkm-related-products-header h2 {
    color: #ffffff;
}

.tkm-related-products-header p {
    margin: 12px 0 0;
    color: #68788b;
    font-size: 15px;
    line-height: 1.7;
}

.dark .tkm-related-products-header p {
    color: #a9b9ca;
}

.tkm-related-products-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid rgba(8, 116, 249, 0.24);
    border-radius: 11px;
    background: #eef6ff;
    color: #0874f9 !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.tkm-related-products-link:hover {
    transform: translateY(-2px);
    border-color: #0874f9;
    background: #0874f9;
    color: #ffffff !important;
}

.tkm-related-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.tkm-related-product-item {
    display: flex;
    min-width: 0;
    width: 100%;
}

.tkm-related-product-item > * {
    width: 100%;
    min-width: 0;
}

.tkm-related-product-item .tkm-product-card {
    width: 100%;
    height: 100%;
}

@media (max-width: 1100px) {
    .tkm-related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 850px) {
    .tkm-related-products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tkm-related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .tkm-related-products {
        margin: 45px 13px 30px;
        padding: 25px 18px;
        border-radius: 19px;
    }

    .tkm-related-products-grid {
        grid-template-columns: 1fr !important;
    }

    .tkm-related-products-link {
        width: 100%;
    }
}

/* =========================================================
   TKM Product Page — Mobile Sticky Purchase Bar
   ========================================================= */

.tkm-mobile-purchase-bar {
    display: none;
}

@media (max-width: 767px) {
    .tkm-mobile-purchase-bar {
        position: fixed;
        z-index: 45;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding:
            10px
            13px
            calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(19, 49, 85, 0.12);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 -14px 35px rgba(18, 53, 94, 0.16);
        backdrop-filter: blur(16px);
    }

    .dark .tkm-mobile-purchase-bar {
        border-top-color: rgba(255, 255, 255, 0.1);
        background: rgba(7, 20, 38, 0.94);
    }

    .tkm-mobile-purchase-content {
        width: min(100%, 680px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 13px;
        margin: 0 auto;
    }

    .tkm-mobile-purchase-price {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .tkm-mobile-purchase-price span {
        color: #738399;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.9px;
        text-transform: uppercase;
    }

    .tkm-mobile-purchase-price strong {
        overflow: hidden;
        color: #0874f9;
        font-size: 19px;
        font-weight: 900;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tkm-mobile-purchase-button {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px 17px;
        border: 0;
        border-radius: 11px;
        background: linear-gradient(135deg, #1287ff, #0558bd);
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.2px;
        box-shadow: 0 10px 24px rgba(8, 116, 249, 0.28);
        cursor: pointer;
    }

    .tkm-mobile-purchase-button svg {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
    }

    /* Prevent the bar from covering the bottom content */
    .tkm-product-page {
        padding-bottom: 82px;
    }
}


/* =========================================================
   TKM Product Page — Desktop Sticky Purchase Panel
   ========================================================= */

@media (min-width: 1024px) {

    .tkm-product-main{
        align-items:start;
    }

    .tkm-product-info-panel{
        position:sticky;
        top:110px;
        align-self:start;

        max-height:none;
        overflow:visible;

        transition:
            box-shadow .25s ease,
            transform .25s ease;
    }

    .tkm-product-info-panel:hover{
        box-shadow:0 28px 70px rgba(25,64,109,.15);
    }

}

/* Product gallery navigation */

.tkm-product-gallery-navigation {
    position: absolute;
    z-index: 7;
    top: 50%;
    right: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.tkm-product-gallery-arrow {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(8, 116, 249, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0874f9;
    box-shadow: 0 12px 28px rgba(19, 57, 101, 0.14);
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.tkm-product-gallery-arrow:hover {
    transform: scale(1.07);
    background: #0874f9;
    color: #ffffff;
    box-shadow: 0 15px 34px rgba(8, 116, 249, 0.28);
}

.tkm-product-gallery-arrow svg {
    width: 21px;
    height: 21px;
}

.dark .tkm-product-gallery-arrow {
    border-color: rgba(100, 175, 255, 0.22);
    background: rgba(7, 23, 42, 0.88);
    color: #83c1ff;
}

@media (max-width: 767px) {
    .tkm-product-gallery-navigation {
        right: 10px;
        left: 10px;
    }

    .tkm-product-gallery-arrow {
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   TKM Product Page — Premium Zoom Lightbox
   ========================================================= */

.tkm-lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(2, 8, 16, 0.9);
    backdrop-filter: blur(14px);
    touch-action: none;
}

.tkm-lightbox-toolbar {
    position: absolute;
    z-index: 15;
    top: 18px;
    right: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    pointer-events: none;
}

.tkm-lightbox-badge {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 20, 37, 0.72);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.tkm-lightbox-badge svg {
    width: 18px;
    height: 18px;
    color: #70b7ff;
}

.tkm-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: auto;
}

.tkm-lightbox-control {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(8, 20, 37, 0.72);
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.tkm-lightbox-control:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #0874f9;
}

.tkm-lightbox-control:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.tkm-lightbox-control svg {
    width: 19px;
    height: 19px;
}

.tkm-lightbox-close:hover {
    background: #dc2626 !important;
}

.tkm-lightbox-zoom-level {
    min-width: 55px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.tkm-lightbox-stage {
    position: absolute;
    inset: 75px 85px 70px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.tkm-lightbox-image-wrap {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    cursor: zoom-in;
    user-select: none;
}

.tkm-lightbox-image-wrap.is-zoomed {
    cursor: grab;
}

.tkm-lightbox-image-wrap.is-dragging {
    cursor: grabbing;
}

.tkm-lightbox-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    transition:
        transform 0.18s ease,
        opacity 0.2s ease;
}

.tkm-lightbox-image-wrap.is-dragging .tkm-lightbox-image {
    transition: none;
}

.tkm-lightbox-arrow {
    position: absolute;
    z-index: 15;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(8, 20, 37, 0.65);
    color: #ffffff;
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.tkm-lightbox-arrow:hover {
    background: #0874f9;
}

.tkm-lightbox-arrow.is-prev {
    left: 18px;
}

.tkm-lightbox-arrow.is-next {
    right: 18px;
}

.tkm-lightbox-arrow svg {
    width: 25px;
    height: 25px;
}

.tkm-lightbox-footer {
    position: absolute;
    z-index: 15;
    right: 18px;
    bottom: 17px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.tkm-lightbox-counter {
    display: inline-flex;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 20, 37, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.tkm-lightbox-help {
    display: flex;
    gap: 16px;
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .tkm-lightbox-toolbar {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .tkm-lightbox-badge {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 9px;
    }

    .tkm-lightbox-control {
        width: 38px;
        height: 38px;
    }

    .tkm-lightbox-zoom-level {
        display: none;
    }

    .tkm-lightbox-stage {
        inset: 64px 8px 64px;
    }

    .tkm-lightbox-arrow {
        top: auto;
        bottom: 10px;
        width: 43px;
        height: 43px;
        transform: none;
    }

    .tkm-lightbox-arrow.is-prev {
        left: 10px;
    }

    .tkm-lightbox-arrow.is-next {
        right: 10px;
    }

    .tkm-lightbox-footer {
        bottom: 15px;
    }

    .tkm-lightbox-help {
        display: none;
    }

    .tkm-lightbox-image {
        border-radius: 7px;
    }
}

/* Mobile lightbox gesture fix */

.tkm-lightbox-stage,
.tkm-lightbox-image-wrap,
.tkm-lightbox-image {
    touch-action: none;
}

@media (max-width: 767px) {
    .tkm-lightbox-image-wrap {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .tkm-lightbox-image {
        max-width: 100%;
        max-height: 100%;
        user-select: none;
        -webkit-user-select: none;
        -webkit-user-drag: none;
    }

    .tkm-lightbox-image-wrap.is-zoomed {
        cursor: grab;
    }

    .tkm-lightbox-image-wrap.is-dragging {
        cursor: grabbing;
    }
}

/* =========================================================
   TKM Product Page — Compatible Products
   ========================================================= */

.tkm-compatible-products {
    width: 100%;
    margin: 58px 0 40px;
    padding: 40px;
    border: 1px solid #dce7f2;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.09),
            transparent 27%
        ),
        linear-gradient(145deg, #ffffff, #f6faff);
    box-shadow: 0 22px 60px rgba(25, 64, 109, 0.08);
}

.dark .tkm-compatible-products {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 116, 249, 0.15),
            transparent 29%
        ),
        linear-gradient(145deg, #091a2d, #0d223b);
}

.tkm-compatible-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.tkm-compatible-products-header > div:first-child {
    max-width: 760px;
}

.tkm-compatible-products-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #0874f9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tkm-compatible-products-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #0874f9;
}

.tkm-compatible-products-header h2 {
    margin: 0;
    color: #17263a;
    font-size: clamp(28px, 4vw, 39px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
}

.dark .tkm-compatible-products-header h2 {
    color: #ffffff;
}

.tkm-compatible-products-header p {
    max-width: 720px;
    margin: 13px 0 0;
    color: #68788b;
    font-size: 15px;
    line-height: 1.7;
}

.dark .tkm-compatible-products-header p {
    color: #a9b9ca;
}

.tkm-compatible-products-count {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid rgba(8, 116, 249, 0.2);
    border-radius: 999px;
    background: #eaf4ff;
    color: #0874f9;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.dark .tkm-compatible-products-count {
    border-color: rgba(82, 160, 255, 0.2);
    background: rgba(8, 116, 249, 0.15);
    color: #8bc5ff;
}

.tkm-compatible-products-sections {
    display: grid;
    gap: 28px;
}

.tkm-compatible-products-group {
    padding: 25px;
    border: 1px solid #e0e9f3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.dark .tkm-compatible-products-group {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(9, 28, 49, 0.76);
}

.tkm-compatible-products-group-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.tkm-compatible-products-group-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eaf4ff, #d8ebff);
    color: #0874f9;
    font-size: 18px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .tkm-compatible-products-group-icon {
    background: rgba(8, 116, 249, 0.16);
}

.tkm-compatible-products-group-header span {
    display: block;
    margin-bottom: 4px;
    color: #0874f9;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.tkm-compatible-products-group-header h3 {
    margin: 0;
    color: #17263a;
    font-size: 21px;
    font-weight: 900;
}

.dark .tkm-compatible-products-group-header h3 {
    color: #ffffff;
}

.tkm-compatible-products-group-header p {
    margin: 6px 0 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
}

.dark .tkm-compatible-products-group-header p {
    color: #a9b9ca;
}

.tkm-compatible-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.tkm-compatible-product-item {
    min-width: 0;
    display: flex;
}

.tkm-compatible-product-item > * {
    width: 100%;
}

.tkm-compatible-product-item .tkm-product-card {
    width: 100%;
    height: 100%;
}

@media (max-width: 1100px) {
    .tkm-compatible-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .tkm-compatible-products-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tkm-compatible-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tkm-compatible-products {
        margin: 45px 13px 30px;
        padding: 25px 18px;
        border-radius: 19px;
    }

    .tkm-compatible-products-group {
        padding: 18px;
    }

    .tkm-compatible-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tkm-compatible-products-count {
        white-space: normal;
    }
}

/* =========================================================
   TKM Complete Repair Kit
   ========================================================= */

.tkm-repair-kit {
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid #dce7f2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(25, 64, 109, 0.08);
}

.dark .tkm-repair-kit {
    border-color: rgba(255, 255, 255, 0.1);
    background: #0b1d32;
}

.tkm-repair-kit-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    padding: 26px;
    border-bottom: 1px solid #e4ebf3;
    background:
        radial-gradient(
            circle at right top,
            rgba(8, 116, 249, 0.12),
            transparent 36%
        ),
        #f8fbff;
}

.dark .tkm-repair-kit-heading {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: #0d233c;
}

.tkm-repair-kit-eyebrow {
    color: #0874f9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.tkm-repair-kit-heading h3 {
    margin: 6px 0 0;
    color: #17263a;
    font-size: 24px;
    font-weight: 900;
}

.dark .tkm-repair-kit-heading h3 {
    color: #ffffff;
}

.tkm-repair-kit-heading p {
    max-width: 620px;
    margin: 7px 0 0;
    color: #6c7d91;
    font-size: 13px;
    line-height: 1.6;
}

.tkm-repair-kit-selected-count {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f3ff;
    color: #0874f9;
    font-size: 11px;
    font-weight: 900;
}

.tkm-repair-kit-items {
    display: grid;
    gap: 1px;
    background: #e7edf4;
}

.dark .tkm-repair-kit-items {
    background: rgba(255, 255, 255, 0.07);
}

.tkm-repair-kit-item {
    display: grid;
    grid-template-columns: auto 76px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 17px 22px;
    background: #ffffff;
    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.dark .tkm-repair-kit-item {
    background: #0b1d32;
}

.tkm-repair-kit-item.is-selected {
    background: #f2f8ff;
}

.dark .tkm-repair-kit-item.is-selected {
    background: rgba(8, 116, 249, 0.1);
}

.tkm-repair-kit-item.is-disabled {
    opacity: 0.68;
}

.tkm-repair-kit-check {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid #b8c7d8;
    border-radius: 8px;
    background: #ffffff;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.tkm-repair-kit-item.is-selected .tkm-repair-kit-check {
    border-color: #0874f9;
    background: #0874f9;
}

.tkm-repair-kit-check:disabled {
    cursor: not-allowed;
    background: #e7edf4;
}

.tkm-repair-kit-image {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e0e8f1;
    border-radius: 12px;
    background: #f7f9fc;
}

.tkm-repair-kit-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tkm-repair-kit-product {
    min-width: 0;
}

.tkm-repair-kit-product-label {
    color: #0874f9;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.tkm-repair-kit-product-name {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #17263a;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .tkm-repair-kit-product-name {
    color: #ffffff;
}

.tkm-repair-kit-product-code {
    display: block;
    margin-top: 3px;
    color: #7a899b;
    font-size: 10px;
}

.tkm-repair-kit-options-link {
    display: inline-flex;
    margin-top: 6px;
    color: #0874f9;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.tkm-repair-kit-price {
    color: #0874f9;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.tkm-repair-kit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 24px 26px;
    border-top: 1px solid #e3eaf2;
    background: #f8fbff;
}

.dark .tkm-repair-kit-summary {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: #0d233c;
}

.tkm-repair-kit-total-label {
    display: block;
    color: #75859a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tkm-repair-kit-total {
    display: block;
    margin-top: 4px;
    color: #0874f9;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.1;
}

.tkm-repair-kit-summary small {
    display: block;
    margin-top: 5px;
    color: #7a899b;
    font-size: 10px;
}

.tkm-repair-kit-button {
    min-height: 50px;
    min-width: 220px;
    padding: 13px 22px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1287ff, #0558bd);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(8, 116, 249, 0.27);
    cursor: pointer;
}

.tkm-repair-kit-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 650px) {
    .tkm-repair-kit-heading,
    .tkm-repair-kit-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .tkm-repair-kit-item {
        grid-template-columns: auto 62px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    .tkm-repair-kit-image {
        width: 62px;
        height: 62px;
    }

    .tkm-repair-kit-price {
        grid-column: 3;
    }

    .tkm-repair-kit-button {
        width: 100%;
    }
}

/* Repair-kit inline variant selector */

.tkm-repair-kit-variant-action {
    position: relative;
    z-index: 8;
    width: min(100%, 230px);
    margin-top: 9px;
}

.tkm-repair-kit-variant-action > div {
    width: 100%;
}

.tkm-repair-kit-variant-action .btn-primary {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 900;
}

/*
 * The existing popup is absolutely positioned above its button.
 * Give it enough width inside the repair-kit row.
 */
.tkm-repair-kit-variant-action
.flex.flex-col.gap-6.absolute {
    z-index: 40;
    width: min(330px, calc(100vw - 40px));
    min-width: 280px;
    box-shadow: 0 18px 50px rgba(17, 50, 91, 0.2);
}

@media (max-width: 650px) {
    .tkm-repair-kit-variant-action {
        width: 100%;
    }

    .tkm-repair-kit-variant-action
    .flex.flex-col.gap-6.absolute {
        right: auto;
        left: 0;
        width: min(320px, calc(100vw - 55px));
        min-width: 0;
    }
}