
/* ============================================================
   TIMIMI V2 - PRODUCT DETAIL
   Builds on timimi-home.css
   ============================================================ */

.tm-pd {
    padding: 28px 0 110px;
    background: #fff;
}

.tm-pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    margin-bottom: 26px;
    color: var(--tm-muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.tm-pd-breadcrumb a {
    color: #5d969d;
}

.tm-pd-breadcrumb a:hover {
    color: var(--tm-pink-deep);
}

.tm-pd-main {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: clamp(42px, 6vw, 84px);
    align-items: start;
}

.tm-pd-gallery {
    min-width: 0;
}

.tm-pd-main-image {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(177,176,214,.26);
    border-radius: 30px;
    background: #fbfafc;
    box-shadow: 0 18px 46px rgba(73,93,97,.08);
}

.tm-pd-main-image__button {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 560px;
    padding: 28px;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    place-items: center;
}

.tm-pd-main-image__button img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 610px;
    object-fit: contain;
}

.tm-pd-zoom-hint {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid rgba(115,205,215,.32);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #63868b;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(73,93,97,.08);
}

.tm-pd-sale-badge {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--tm-pink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tm-pd-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.tm-pd-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--tm-line);
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tm-pd-thumb:hover {
    transform: translateY(-1px);
    border-color: var(--tm-blue);
}

.tm-pd-thumb.is-active {
    border-color: var(--tm-blue);
    box-shadow: 0 0 0 2px rgba(115,205,215,.18);
}

.tm-pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.tm-pd-summary {
    position: sticky;
    top: 132px;
}

.tm-pd-summary__top h1 {
    max-width: 650px;
    margin: 7px 0 15px;
    color: var(--tm-heading);
    font-family: "Nunito", "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(38px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.tm-pd-age-list {
    display: flex;
    gap: 8px;
    margin: 18px 0 0;
    flex-wrap: wrap;
}

.tm-pd-age-list span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ecebf7;
    color: #7a78aa;
    font-size: 12px;
    font-weight: 800;
}

.tm-pd-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.tm-pd-price strong {
    color: #486b70;
    font-size: 31px;
    font-weight: 800;
}

.tm-pd-price s {
    color: #a2aaad;
    font-size: 17px;
}

.tm-pd-price span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fde8ea;
    color: var(--tm-pink-deep);
    font-size: 12px;
    font-weight: 800;
}

.tm-pd-reference {
    margin-top: 7px;
    color: #9aa4a7;
    font-size: 12px;
}

.tm-pd-purchase {
    margin-top: 28px;
    padding: 26px;
    border: 1px solid rgba(115,205,215,.34);
    border-radius: 24px;
    background: #f2fafb;
}

.tm-pd-field {
    display: grid;
    gap: 8px;
}

.tm-pd-field > span,
.tm-pd-qty-row > label {
    color: #617377;
    font-size: 13px;
    font-weight: 800;
}

.tm-pd-field select {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 14px;
    border: 1px solid #d8e4e6;
    border-radius: 13px;
    background: #fff;
    color: var(--tm-ink);
    font: inherit;
    cursor: pointer;
}

.tm-pd-field select:focus,
.tm-pd-qty input:focus {
    outline: 3px solid rgba(115,205,215,.20);
    border-color: var(--tm-blue);
}

.tm-pd-qty-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 14px;
    margin-top: 19px;
}

.tm-pd-qty {
    display: grid;
    grid-template-columns: 38px 50px 38px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #d8e4e6;
    border-radius: 12px;
    background: #fff;
}

.tm-pd-qty button {
    border: 0;
    background: transparent;
    color: #66858a;
    font-size: 20px;
    cursor: pointer;
}

.tm-pd-qty button:hover {
    background: #edf8fa;
}

.tm-pd-qty input {
    width: 100%;
    border: 0;
    border-right: 1px solid #e3eaeb;
    border-left: 1px solid #e3eaeb;
    background: #fff;
    text-align: center;
    font: inherit;
    font-weight: 800;
    -moz-appearance: textfield;
}

.tm-pd-qty input::-webkit-inner-spin-button,
.tm-pd-qty input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tm-pd-stock {
    justify-self: end;
    color: #66a270;
    font-size: 12px;
    font-weight: 800;
}

.tm-pd-stock.is-low {
    color: var(--tm-pink-deep);
}

.tm-pd-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.tm-pd-add > span:last-child {
    display: flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.20);
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
}

.tm-pd-help {
    margin: 15px 0 0;
    color: var(--tm-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.tm-pd-help a {
    color: #5a9fa7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tm-pd-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 13px;
}

.tm-pd-perks span {
    min-height: 58px;
    padding: 12px;
    border: 1px solid var(--tm-line);
    border-radius: 15px;
    color: #77868a;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    display: grid;
    place-items: center;
}

.tm-pd-soldout {
    text-align: center;
}

.tm-pd-soldout strong {
    display: block;
    color: var(--tm-heading);
    font-size: 21px;
}

.tm-pd-soldout p {
    color: var(--tm-muted);
    line-height: 1.6;
}

.tm-pd-gifts {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--tm-line);
}

.tm-pd-gifts__list {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.tm-pd-gift {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    background: #fff7e9;
}

.tm-pd-gift img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
}

.tm-pd-gift span {
    display: grid;
    gap: 3px;
}

.tm-pd-gift strong {
    color: var(--tm-heading);
    font-size: 13px;
}

.tm-pd-gift small {
    color: #9b7d4f;
}

.tm-pd-content-section {
    margin-top: 92px;
    padding-top: 58px;
    border-top: 1px solid var(--tm-line);
}

.tm-pd-section-heading {
    max-width: 680px;
    margin-bottom: 28px;
}

.tm-pd-section-heading h2 {
    margin: 6px 0 0;
    color: var(--tm-heading);
    font-family: "Nunito", "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(34px, 3.8vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.tm-pd-description {
    max-width: 900px;
    color: #627075;
    font-size: 16px;
    line-height: 1.85;
}

.tm-pd-video {
    overflow: hidden;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #eef2f3;
    box-shadow: 0 16px 44px rgba(73,93,97,.10);
}

.tm-pd-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.tm-pd-recommended__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tm-pd-rec-card {
    overflow: hidden;
    border: 1px solid var(--tm-line);
    border-radius: 22px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tm-pd-rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 38px rgba(73,93,97,.10);
}

.tm-pd-rec-card__image {
    display: grid;
    aspect-ratio: 1.05 / 1;
    padding: 18px;
    background: #faf9fc;
    place-items: center;
}

.tm-pd-rec-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tm-pd-rec-card__body {
    padding: 18px 20px 20px;
}

.tm-pd-rec-card__body h3 {
    min-height: 45px;
    margin: 0 0 8px;
    color: var(--tm-heading);
    font-size: 16px;
    line-height: 1.35;
}

.tm-pd-rec-card__body div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tm-pd-rec-card__body strong {
    color: #496d72;
}

.tm-pd-rec-card__body s {
    color: #a4adb0;
    font-size: 12px;
}

.tm-pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    padding: 54px;
    align-items: center;
    justify-content: center;
    background: rgba(51,67,71,.88);
}

.tm-pd-lightbox.is-open {
    display: flex;
}

.tm-pd-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.tm-pd-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #53686d;
    font-size: 29px;
    cursor: pointer;
}

.tm-pd-not-found {
    min-height: 70vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px;
    padding: 40px;
    text-align: center;
}

@media (max-width: 980px) {
    .tm-pd {
        padding-top: 18px;
    }

    .tm-pd-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .tm-pd-summary {
        position: static;
    }

    .tm-pd-main-image__button {
        min-height: 480px;
    }

    .tm-pd-thumbs {
        grid-template-columns: repeat(6, minmax(64px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 640px) {
    .tm-pd {
        padding-bottom: 74px;
    }

    .tm-pd-breadcrumb {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .tm-pd-main {
        gap: 26px;
    }

    .tm-pd-main-image {
        border-radius: 22px;
    }

    .tm-pd-main-image__button {
        min-height: 360px;
        padding: 18px;
    }

    .tm-pd-zoom-hint {
        right: 12px;
        bottom: 12px;
    }

    .tm-pd-summary__top h1 {
        font-size: 38px;
    }

    .tm-pd-price strong {
        font-size: 27px;
    }

    .tm-pd-purchase {
        padding: 20px;
        border-radius: 20px;
    }

    .tm-pd-qty-row {
        grid-template-columns: 1fr auto;
    }

    .tm-pd-qty-row > label {
        grid-column: 1 / -1;
    }

    .tm-pd-stock {
        justify-self: end;
    }

    .tm-pd-perks {
        grid-template-columns: 1fr;
    }

    .tm-pd-thumbs {
        grid-template-columns: repeat(4, 72px);
    }

    .tm-pd-content-section {
        margin-top: 66px;
        padding-top: 42px;
    }

    .tm-pd-recommended__grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .tm-pd-rec-card__body {
        padding: 14px;
    }

    .tm-pd-rec-card__body h3 {
        font-size: 14px;
    }

    .tm-pd-lightbox {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .tm-pd-main-image__button {
        min-height: 315px;
    }

    .tm-pd-summary__top h1 {
        font-size: 34px;
    }
}
