/* ==========================================================================
   TEAM MIKE THEME — SINGLE PRODUCT PAGE
   File consigliato:
   themes/teammike_theme/assets/css/product.css

   Nessuna dipendenza W3CSS.
   Bootstrap viene usato solo dalla gallery esistente ed è stilizzato
   localmente all'interno di .tm-product-page.
   ========================================================================== */

.tm-product-page {
    --tm-product-bg: #050505;
    --tm-product-surface: #0d0d0d;
    --tm-product-surface-2: #151515;
    --tm-product-white: #ffffff;
    --tm-product-light: #f5f5f5;
    --tm-product-muted: #a5a5a5;
    --tm-product-muted-dark: #686868;
    --tm-product-red: #ef1010;
    --tm-product-red-hover: #ff2929;
    --tm-product-red-soft: rgba(239,16,16,.12);
    --tm-product-border: rgba(255,255,255,.10);
    --tm-product-border-strong: rgba(255,255,255,.17);
    --tm-product-radius: 24px;
    --tm-product-radius-sm: 14px;
    --tm-product-shadow: 0 28px 75px rgba(0,0,0,.34);

    width: 100%;
    overflow: hidden;
    background: var(--tm-product-bg);
    color: var(--tm-product-white);
    font-family: Montserrat, Arial, sans-serif;
    line-height: 1.55;
}

.tm-product-page *,
.tm-product-page *::before,
.tm-product-page *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   HERO / PRODUCT
   ========================================================================== */

.tm-product-page .tm-product-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(64px,7vw,108px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 24%, rgba(239,16,16,.16), transparent 30%),
        radial-gradient(circle at 12% 84%, rgba(239,16,16,.045), transparent 29%),
        linear-gradient(135deg,#050505 0%,#0a0a0a 54%,#080808 100%);
}

.tm-product-page .tm-product-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .15;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom,transparent,#000 15%,#000 88%,transparent);
}

.tm-product-page .tm-product-hero::after {
    content: "TEAM MIKE";
    position: absolute;
    left: -26px;
    bottom: -14px;
    z-index: -2;
    color: rgba(255,255,255,.018);
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(5.5rem,12vw,12rem);
    line-height: .8;
    font-weight: 700;
    letter-spacing: -.03em;
    white-space: nowrap;
    pointer-events: none;
}

.tm-product-page .tm-product-hero__decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tm-product-page .tm-product-hero__decor--one {
    width: 390px;
    height: 390px;
    top: -140px;
    right: -120px;
    border: 1px solid rgba(239,16,16,.16);
    box-shadow:
        0 0 0 42px rgba(239,16,16,.022),
        0 0 0 84px rgba(239,16,16,.011);
}

.tm-product-page .tm-product-hero__decor--two {
    width: 210px;
    height: 210px;
    left: 42%;
    bottom: -145px;
    background: rgba(239,16,16,.05);
}

.tm-product-page .tm-product-layout {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
    gap: clamp(34px,6vw,78px);
    align-items: start;
}

/* ==========================================================================
   MEDIA
   ========================================================================== */

.tm-product-page .tm-product-media-column {
    min-width: 0;
}

.tm-product-page .tm-product-main-image {
    overflow: hidden;
    border: 1px solid var(--tm-product-border);
    border-radius: 24px;
    background: #090909;
    box-shadow: var(--tm-product-shadow);
}

.tm-product-page .tm-product-main-image__inner {
    min-height: clamp(400px,46vw,620px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ==========================================================================
   GALLERY — Bootstrap markup esistente, styling locale
   ========================================================================== */

.tm-product-page .tm-product-gallery {
    margin-top: 14px;
}

.tm-product-page .tm-product-gallery .gallery-wrapper {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
    margin-left: -6px;
    margin-right: -6px;
}

.tm-product-page .tm-product-gallery .image-gallery {
    margin-bottom: 0 !important;
}

.tm-product-page .tm-product-gallery .card.image-gallery {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--tm-product-border);
    border-radius: 14px;
    background: #101010;
    box-shadow: none;
    cursor: pointer;
    transition:
        transform 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease;
}

.tm-product-page .tm-product-gallery .card.image-gallery:hover {
    transform: translateY(-3px);
    border-color: rgba(239,16,16,.30);
    box-shadow: 0 12px 26px rgba(0,0,0,.23);
}

.tm-product-page .tm-product-gallery img.card-img-top.image-gallery {
    display: block;
    width: 100%;
    height: 108px;
    object-fit: cover;
    border-radius: 0;
}

/* ==========================================================================
   PRODUCT INFO
   ========================================================================== */

.tm-product-page .tm-product-info-column {
    position: sticky;
    top: 105px;
    min-width: 0;
    padding: clamp(26px,3vw,38px);
    border: 1px solid var(--tm-product-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%,rgba(239,16,16,.07),transparent 28%),
        linear-gradient(180deg,#111,#0b0b0b);
    box-shadow: var(--tm-product-shadow);
}

.tm-product-page .tm-product-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #f2f2f2;
    font-size: .78rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tm-product-page .tm-product-kicker > span {
    width: 31px;
    height: 2px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--tm-product-red);
}

.tm-product-page .tm-product-title {
    margin: 0 0 13px;
    color: #fff;
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(2.35rem,4.3vw,4rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.tm-product-page .tm-product-type {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid var(--tm-product-border);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: #d2d2d2;
    font-size: .75rem;
    line-height: 1;
    font-weight: 700;
}

.tm-product-page .tm-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 25px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--tm-product-border);
}

.tm-product-page .tm-product-price strong {
    color: #fff;
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(2rem,3.3vw,2.9rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
}

.tm-product-page .tm-product-price span {
    color: var(--tm-product-muted);
    font-size: .82rem;
    font-weight: 750;
    text-transform: uppercase;
}

.tm-product-page .tm-product-purchase-note {
    margin: 22px 0 0;
    color: var(--tm-product-muted);
    font-size: .93rem;
    line-height: 1.67;
}

/* ==========================================================================
   ACTIONS
   ========================================================================== */

.tm-product-page .tm-product-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    margin-top: 27px;
}

.tm-product-page .tm-product-btn {
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 14px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: .88rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    transition:
        transform 170ms ease,
        background-color 170ms ease,
        border-color 170ms ease,
        color 170ms ease,
        box-shadow 170ms ease;
}

.tm-product-page .tm-product-btn--secondary {
    border: 1px solid var(--tm-product-border-strong);
    background: rgba(255,255,255,.04);
    color: #fff;
}

.tm-product-page .tm-product-btn--secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(239,16,16,.28);
    background: rgba(255,255,255,.075);
}

.tm-product-page .tm-product-btn--primary {
    border: 1px solid var(--tm-product-red);
    background: linear-gradient(135deg,var(--tm-product-red),#d80000);
    color: #fff;
    box-shadow: 0 12px 26px rgba(239,16,16,.20);
}

.tm-product-page .tm-product-btn--primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg,var(--tm-product-red-hover),var(--tm-product-red));
    box-shadow: 0 16px 32px rgba(239,16,16,.28);
}

.tm-product-page .tm-product-btn__icon {
    display: inline-flex;
}

.tm-product-page .tm-product-btn__icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* ==========================================================================
   AUTHOR
   ========================================================================== */

.tm-product-page .tm-product-author {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--tm-product-border);
}

.tm-product-page .tm-product-author__avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 2px solid rgba(255,255,255,.10);
    border-radius: 50%;
    object-fit: cover;
    background: #161616;
}

.tm-product-page .tm-product-author__content {
    min-width: 0;
}

.tm-product-page .tm-product-author__content span {
    display: block;
    margin-bottom: 3px;
    color: var(--tm-product-muted);
    font-size: .72rem;
    line-height: 1.2;
}

.tm-product-page .tm-product-author__content strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: .91rem;
    line-height: 1.3;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   DESCRIPTION
   ========================================================================== */

.tm-product-page .tm-product-description-section {
    padding: clamp(62px,7vw,94px) 0;
    background: linear-gradient(180deg,#f7f7f7,#eeeeee);
    color: #111;
}

.tm-product-page .tm-product-description-card {
    display: grid;
    grid-template-columns: minmax(240px,.65fr) minmax(0,1.35fr);
    gap: clamp(30px,5vw,72px);
    padding: clamp(28px,4vw,48px);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.055);
}

.tm-product-page .tm-product-section-kicker {
    display: block;
    margin-bottom: 11px;
    color: var(--tm-product-red);
    font-size: .78rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tm-product-page .tm-product-description-head h2 {
    margin: 0;
    color: #0b0b0b;
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(2.1rem,4vw,3.5rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.tm-product-page .tm-product-description-content {
    color: #606060;
    font-size: .97rem;
    line-height: 1.75;
}

.tm-product-page .tm-product-description-content p:first-child {
    margin-top: 0;
}

.tm-product-page .tm-product-description-content p:last-child {
    margin-bottom: 0;
}

.tm-product-page .tm-product-description-content h2,
.tm-product-page .tm-product-description-content h3,
.tm-product-page .tm-product-description-content h4 {
    color: #171717;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 800;
}

.tm-product-page .tm-product-description-content a {
    color: var(--tm-product-red);
    font-weight: 700;
}

/* ==========================================================================
   NOT FOUND
   ========================================================================== */

.tm-product-not-found {
    width: min(900px,calc(100% - 32px));
    margin: 50px auto;
    padding: 22px;
    border: 1px solid rgba(239,16,16,.18);
    border-radius: 14px;
    background: rgba(239,16,16,.08);
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
    .tm-product-page .tm-product-layout {
        grid-template-columns: 1fr;
    }

    .tm-product-page .tm-product-info-column {
        position: relative;
        top: auto;
    }

    .tm-product-page .tm-product-main-image__inner {
        min-height: clamp(360px,70vw,560px);
    }
}

@media (max-width: 767.98px) {
    .tm-product-page .tm-product-hero {
        padding: 44px 0 58px;
    }

    .tm-product-page .tm-product-hero::after {
        display: none;
    }

    .tm-product-page .tm-product-hero__decor--one {
        width: 270px;
        height: 270px;
        top: -110px;
        right: -150px;
    }

    .tm-product-page .tm-product-main-image,
    .tm-product-page .tm-product-info-column {
        border-radius: 19px;
    }

    .tm-product-page .tm-product-main-image__inner {
        min-height: 340px;
    }

    .tm-product-page .tm-product-title {
        font-size: clamp(2.1rem,10vw,3rem);
    }

    .tm-product-page .tm-product-info-column {
        padding: 24px 20px;
    }

    .tm-product-page .tm-product-actions {
        grid-template-columns: 1fr;
    }

    .tm-product-page .tm-product-description-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 25px 21px;
        border-radius: 18px;
    }

    .tm-product-page .tm-product-gallery img.card-img-top.image-gallery {
        height: 90px;
    }
}

@media (max-width: 430px) {
    .tm-product-page .tm-product-main-image__inner {
        min-height: 285px;
    }

    .tm-product-page .tm-product-gallery .col-md-3 {
        width: 50%;
    }

    .tm-product-page .tm-product-kicker {
        font-size: .7rem;
        letter-spacing: .13em;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.tm-product-page a:focus-visible,
.tm-product-page button:focus-visible {
    outline: 2px solid rgba(239,16,16,.92);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .tm-product-page *,
    .tm-product-page *::before,
    .tm-product-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
