/* =========================================================
   TOPMODS PRODUCT V2 — PHASE 1 PREMIUM
========================================================= */

:root{
    --tm-red:#e30613;
    --tm-red-dark:#c80010;
    --tm-bg:#f5f5f2;
    --tm-soft:#f1efea;
    --tm-card:#fff;
    --tm-text:#111;
    --tm-muted:#666;
    --tm-border:rgba(0,0,0,.08);
}

body.tm-product-v2-page{
    background:var(--tm-bg);
}

.tm-product-main{
    background:var(--tm-bg);
    min-height:100vh;
}

/* Breadcrumbs */

.tm-product-breadcrumbs{
    padding:26px 48px 8px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    color:#777;
    font-size:12px;
    font-weight:700;
}

.tm-product-breadcrumbs a{
    color:#555;
    text-decoration:none;
}

.tm-product-breadcrumbs strong{
    color:#111;
}

/* Main Layout */

.tm-product-hero-v2{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);
    gap:44px;
    padding:24px 48px 58px;
    align-items:start;
}

/* Gallery */

.tm-product-gallery-v2{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    gap:18px;
}

.tm-product-thumbs-v2{
    order:1;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.tm-product-thumbs-v2 button{
    width:96px;
    height:96px;
    background:#fff;
    border:1px solid var(--tm-border);
    border-radius:14px;
    padding:9px;
    cursor:pointer;
    overflow:hidden;
    transition:.18s ease;
}

.tm-product-thumbs-v2 button:hover,
.tm-product-thumbs-v2 button.is-active{
    border-color:var(--tm-red);
    box-shadow:0 0 0 3px rgba(227,6,19,.10);
}

.tm-product-thumbs-v2 img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.tm-product-main-image-v2{
    order:2;
    min-height:660px;
    background:#fff;
    border:1px solid var(--tm-border);
    border-radius:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
    box-shadow:0 22px 55px rgba(0,0,0,.08);
}

.tm-product-main-image-v2:before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 50% 20%, rgba(227,6,19,.055), transparent 34%),
        linear-gradient(180deg,#fff,#fafafa);
    pointer-events:none;
}

.tm-product-main-image-v2 img{
    position:relative;
    z-index:1;
    width:100%;
    height:610px;
    object-fit:contain;
    padding:44px;
    box-sizing:border-box;
}

.tm-product-image-brand{
    position:absolute;
    top:22px;
    left:22px;
    z-index:2;
    background:#111;
    color:#fff;
    padding:9px 13px;
    border-radius:999px;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.tm-product-zoom{
    position:absolute;
    right:22px;
    bottom:22px;
    z-index:2;
    width:48px;
    height:48px;
    border:0;
    border-radius:999px;
    background:#fff;
    color:#111;
    font-size:22px;
    font-weight:900;
    box-shadow:0 12px 32px rgba(0,0,0,.14);
    cursor:pointer;
}

/* Summary */

.tm-product-summary-v2{
    position:sticky;
    top:24px;
    background:#fff;
    border:1px solid var(--tm-border);
    border-radius:22px;
    padding:34px;
    box-shadow:0 22px 55px rgba(0,0,0,.08);
}

.tm-product-brand-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:16px;
}

.tm-product-brand-v2,
.tm-official-partner-badge{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 12px;
    border-radius:999px;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.tm-product-brand-v2{
    background:#111;
    color:#fff;
}

.tm-official-partner-badge{
    background:#f8f7f4;
    color:#111;
    border:1px solid rgba(0,0,0,.10);
}

.tm-product-summary-v2 h1{
    margin:0 0 16px;
    color:#111;
    font-size:42px;
    line-height:1.05;
    font-weight:950;
    letter-spacing:-.045em;
}

.tm-product-rating-v2{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:24px;
    margin-bottom:18px;
    color:#777;
    font-size:13px;
}

.tm-product-price-v2{
    color:#111;
    font-size:42px;
    font-weight:950;
    line-height:1;
    margin-bottom:6px;
}

.tm-product-price-v2 *{
    color:#111 !important;
}

.tm-product-vat-v2{
    margin:0 0 22px;
    color:#777;
    font-size:13px;
}

.tm-product-short-description{
    color:#444;
    font-size:14px;
    line-height:1.7;
    margin-bottom:24px;
}

/* Phase 1 Trust Cards */

.tm-product-service-icons{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:24px 0;
}

.tm-product-service-icons > div{
    background:#f8f7f4;
    border:1px solid rgba(0,0,0,.07);
    border-radius:14px;
    padding:16px 14px;
    min-height:118px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.tm-icon{
    width:34px;
    height:34px;
    border-radius:999px;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:12px;
}

.tm-icon svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.tm-product-service-icons strong{
    display:block;
    color:#111;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    margin-bottom:5px;
}

.tm-product-service-icons small{
    display:block;
    color:#666;
    font-size:11px;
    line-height:1.35;
}

/* Compatibility */

.tm-product-compatible-box{
    display:block;
    background:linear-gradient(135deg,#f8f7f4,#efebe2);
    border:1px solid rgba(0,0,0,.08);
    border-left:4px solid var(--tm-red);
    border-radius:16px;
    padding:18px;
    margin:24px 0;
}

.tm-compat-head span{
    display:block;
    color:#777;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-bottom:5px;
}

.tm-compat-head strong{
    display:block;
    color:#111;
    font-size:15px;
    font-weight:950;
    margin-bottom:14px;
}

.tm-compat-search{
    width:100%;
    height:50px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:10px;
    padding:0 15px;
    background:#fff;
    color:#111;
    font-size:14px;
    font-weight:800;
    box-sizing:border-box;
}

.tm-compat-result{
    margin-top:12px;
}

.tm-compat-success,
.tm-compat-warning{
    padding:14px;
    border-radius:10px;
    font-size:13px;
    line-height:1.5;
}

.tm-compat-success{
    background:#edf8f1;
    color:#145c2e;
    border:1px solid #ccebd6;
}

.tm-compat-success strong{
    display:block;
    margin-top:5px;
}

.tm-compat-warning{
    background:#fff7e8;
    color:#7a4b00;
    border:1px solid #f1d39a;
}

/* Buy Row */

.tm-product-buy-row{
    display:grid;
    grid-template-columns:112px 1fr;
    gap:14px;
    margin:24px 0 16px;
}

.tm-product-quantity .quantity{
    width:100%;
}

.tm-product-quantity input{
    width:100% !important;
    height:58px !important;
    border:1px solid rgba(0,0,0,.12) !important;
    border-radius:10px !important;
    text-align:center;
    font-weight:900;
    font-size:15px;
}

.tm-add-to-cart-v2{
    width:100%;
    min-height:58px;
    background:var(--tm-red) !important;
    color:#fff !important;
    border:0 !important;
    border-radius:10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:13px !important;
    font-weight:950 !important;
    text-transform:uppercase !important;
    letter-spacing:.03em;
    text-decoration:none !important;
    box-shadow:0 16px 34px rgba(227,6,19,.25);
    transition:.18s ease;
}

.tm-add-to-cart-v2:hover{
    background:var(--tm-red-dark) !important;
    transform:translateY(-2px);
}

/* After Cart Trust */

.tm-after-cart-trust{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin:14px 0 18px;
}

.tm-after-cart-trust span{
    min-height:36px;
    padding:0 10px;
    border-radius:9px;
    background:#fafafa;
    border:1px solid rgba(0,0,0,.07);
    color:#444;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}

/* Secondary */

.tm-product-secondary-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:16px 0 24px;
}

.tm-product-secondary-actions a{
    min-height:48px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:10px;
    background:#fff;
    color:#111;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    text-decoration:none;
    transition:.18s ease;
}

.tm-product-secondary-actions a:hover{
    color:var(--tm-red);
    border-color:var(--tm-red);
}

/* Meta */

.tm-product-meta-v2{
    border-top:1px solid rgba(0,0,0,.08);
    padding-top:18px;
    color:#666;
    font-size:13px;
    line-height:1.9;
}

.tm-product-meta-v2 strong{
    color:#111;
}

/* Tabs */

.tm-product-tabs-v2{
    margin:0 48px 58px;
}

.tm-tabs-nav-v2{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#fff;
    border:1px solid var(--tm-border);
    border-radius:16px 16px 0 0;
    overflow:hidden;
}

.tm-tabs-nav-v2 button{
    height:64px;
    border:0;
    background:#fff;
    color:#555;
    cursor:pointer;
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
    border-right:1px solid rgba(0,0,0,.07);
}

.tm-tabs-nav-v2 button:last-child{
    border-right:0;
}

.tm-tabs-nav-v2 button.is-active{
    background:#111;
    color:#fff;
}

.tm-tabs-content-v2{
    background:#fff;
    border:1px solid var(--tm-border);
    border-top:0;
    border-radius:0 0 16px 16px;
    padding:38px;
    box-shadow:0 16px 42px rgba(0,0,0,.06);
}

.tm-tab-panel-v2{
    display:none;
    color:#333;
    line-height:1.75;
}

.tm-tab-panel-v2.is-active{
    display:block;
}

/* Compatibility Tab */

.tm-compat-list{
    display:grid;
    grid-template-columns:repeat(6,minmax(120px,1fr));
    gap:28px;
    margin-top:28px;
}

.tm-compat-group h4{
    margin:0 0 12px;
    color:#111;
    font-size:18px;
    font-weight:950;
    text-transform:uppercase;
    padding-bottom:10px;
    border-bottom:2px solid var(--tm-red);
}

.tm-compat-group span{
    display:block;
    padding:7px 0;
    color:#333;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    border-bottom:1px solid rgba(0,0,0,.07);
}

/* Fits Perfectly / Related */

.tm-related-products-v2{
    padding:0 48px 60px;
}

.tm-section-head-v2{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:26px;
}

.tm-section-head-v2 h2{
    margin:0;
    color:#111;
    font-size:32px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:-.03em;
}

.tm-section-head-v2 a{
    color:#111;
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
    text-decoration:none;
}

.tm-section-head-v2 a:hover{
    color:var(--tm-red);
}

.tm-related-products-v2 ul.products{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:24px !important;
    margin:0 !important;
    padding:0 !important;
}

.tm-related-products-v2 ul.products:before,
.tm-related-products-v2 ul.products:after{
    display:none !important;
}

.tm-related-products-v2 ul.products li.product{
    width:auto !important;
    float:none !important;
    margin:0 !important;
    padding:22px !important;
    background:#fff !important;
    border:1px solid var(--tm-border) !important;
    border-radius:16px !important;
    box-shadow:0 16px 38px rgba(0,0,0,.06) !important;
    text-align:center !important;
    overflow:hidden !important;
}

.tm-related-products-v2 ul.products li.product img{
    width:100% !important;
    height:230px !important;
    object-fit:contain !important;
    margin:0 auto 16px !important;
}

.tm-related-products-v2 ul.products li.product .woocommerce-loop-product__title,
.tm-related-products-v2 ul.products li.product h2,
.tm-related-products-v2 ul.products li.product h3{
    color:#111 !important;
    font-size:15px !important;
    line-height:1.35 !important;
    font-weight:850 !important;
}

.tm-related-products-v2 ul.products li.product .price{
    color:var(--tm-red) !important;
    font-weight:950 !important;
}

.tm-related-products-v2 ul.products li.product .button{
    width:auto !important;
    min-height:42px !important;
    padding:0 20px !important;
    background:var(--tm-red) !important;
    color:#fff !important;
    border-radius:8px !important;
    font-size:12px !important;
    font-weight:950 !important;
    text-transform:uppercase !important;
}

.tm-related-products-v2 ul.products li.product .button:hover{
    background:var(--tm-red-dark) !important;
}

/* Footer */

.tm-product-footer-strip-v2{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#fff;
    border-top:1px solid var(--tm-border);
}

.tm-product-footer-strip-v2 div{
    padding:32px 24px;
    text-align:center;
    border-right:1px solid var(--tm-border);
}

.tm-product-footer-strip-v2 strong{
    display:block;
    color:#111;
    font-size:13px;
    font-weight:950;
    text-transform:uppercase;
    margin-bottom:8px;
}

.tm-product-footer-strip-v2 span{
    color:#666;
    font-size:13px;
}

/* Mobile Sticky Buy Bar */

.tm-mobile-buy-bar{
    display:none;
}

/* Responsive */

@media(max-width:1500px){
    .tm-product-service-icons{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:1400px){
    .tm-product-hero-v2{
        grid-template-columns:1fr;
    }

    .tm-product-summary-v2{
        position:relative;
        top:auto;
    }

    .tm-related-products-v2 ul.products{
        grid-template-columns:repeat(3,1fr) !important;
    }
}

@media(max-width:1100px){
    .tm-product-hero-v2,
    .tm-product-breadcrumbs,
    .tm-product-tabs-v2,
    .tm-related-products-v2{
        margin:0;
        padding-left:28px;
        padding-right:28px;
    }

    .tm-product-gallery-v2{
        grid-template-columns:1fr;
    }

    .tm-product-thumbs-v2{
        order:2;
        flex-direction:row;
        overflow:auto;
        padding-bottom:6px;
    }

    .tm-product-thumbs-v2 button{
        flex:0 0 84px;
        width:84px;
        height:84px;
    }

    .tm-product-main-image-v2{
        order:1;
    }

    .tm-tabs-nav-v2{
        grid-template-columns:repeat(2,1fr);
    }

    .tm-compat-list{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:767px){
    body.tm-product-v2-page{
        padding-bottom:92px;
    }

    .tm-product-breadcrumbs{
        padding-top:18px;
        font-size:11px;
    }

    .tm-product-hero-v2{
        padding-top:18px;
        gap:22px;
    }

    .tm-product-main-image-v2{
        min-height:360px;
        border-radius:18px;
    }

    .tm-product-main-image-v2 img{
        height:330px;
        padding:24px;
    }

    .tm-product-summary-v2{
        padding:24px;
        border-radius:18px;
    }

    .tm-product-summary-v2 h1{
        font-size:29px;
    }

    .tm-product-price-v2{
        font-size:34px;
    }

    .tm-product-service-icons,
    .tm-after-cart-trust,
    .tm-product-buy-row,
    .tm-product-secondary-actions{
        grid-template-columns:1fr;
    }

    .tm-product-service-icons > div{
        min-height:auto;
        flex-direction:row;
        align-items:center;
        gap:12px;
    }

    .tm-icon{
        margin-bottom:0;
        flex:0 0 34px;
    }

    .tm-product-quantity{
        width:100%;
    }

    .tm-tabs-nav-v2{
        grid-template-columns:1fr;
    }

    .tm-tabs-content-v2{
        padding:24px;
    }

    .tm-compat-list,
    .tm-related-products-v2 ul.products,
    .tm-product-footer-strip-v2{
        grid-template-columns:1fr !important;
    }

    .tm-mobile-buy-bar{
        display:flex;
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:999990;
        background:#fff;
        border-top:1px solid rgba(0,0,0,.10);
        box-shadow:0 -12px 35px rgba(0,0,0,.14);
        padding:12px 14px;
        gap:12px;
        align-items:center;
    }

    .tm-mobile-buy-bar-price{
        flex:0 0 auto;
        color:#111;
        font-size:18px;
        font-weight:950;
    }

    .tm-mobile-buy-bar button{
        flex:1;
        height:50px;
        background:var(--tm-red);
        color:#fff !important;
        border:0;
        border-radius:10px;
        font-size:12px;
        font-weight:950;
        text-transform:uppercase;
        display:flex;
        align-items:center;
        justify-content:center;
    }
}