/* Stage 2 — internal pages REFRESH, Concept 02 v2, batch 06. */

/* Product detail. */
.th-product-detail .th-inner-shell,
.th-blog-page .th-inner-shell {
    max-width: 1420px;
}

.th-detail-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 26px;
    align-items: start;
}

.th-detail-gallery-card,
.th-detail-buy-card,
.th-detail-quick,
.th-detail-content,
.th-detail-related,
.th-blog-reading {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 20px;
    box-shadow: var(--th-shadow-sm);
}

.th-detail-gallery-card {
    position: sticky;
    top: 18px;
    padding: 20px;
}

.th-detail-gallery-card table {
    width: 100% !important;
    table-layout: fixed !important;
}

.th-detail-gallery-card table td:first-child {
    width: 78% !important;
}

.th-detail-gallery-card table td:last-child {
    width: 22% !important;
}

.th-detail-gallery-card #simpleGallery > a,
.th-detail-gallery-card #simpleGallery > a > img,
.th-detail-gallery-card #main_image,
.th-detail-gallery-card #main_image > img {
    display: block;
    width: 100% !important;
    max-height: 620px;
    margin: 0 !important;
    object-fit: contain;
    border: 0 !important;
    border-radius: 14px;
}

.th-detail-gallery-card .product-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.th-detail-gallery-card .product-gallery > div {
    width: auto !important;
    padding: 0 !important;
}

.th-detail-gallery-card .product-gallery img,
.th-detail-gallery-card .multiple-items img {
    display: block;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: 1px solid var(--th-line) !important;
    border-radius: 10px;
}

.th-detail-share {
    display: flex;
    justify-content: center;
    min-height: 32px;
    margin-top: 16px;
}

.th-detail-buy-card {
    padding: 34px;
}

.th-detail-kicker,
.th-blog-eyebrow,
.th-detail-section-heading > span,
.th-blog-date {
    color: var(--th-orange-hover);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.th-detail-buy-card h1 {
    margin: 10px 0 8px;
    color: var(--th-ink);
    font-size: clamp(28px, 2.45vw, 42px);
    font-weight: 500;
    line-height: 1.12;
}

.th-detail-ref {
    color: var(--th-muted);
    font-size: 13px;
}

.th-detail-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.th-detail-price-current {
    color: var(--th-orange-hover);
    font-size: 30px;
    font-weight: 500;
}

.th-detail-price-old {
    color: var(--th-muted);
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
}

.th-detail-price-old.th-detail-price-current {
    color: var(--th-orange-hover);
    font-size: 30px;
    font-weight: 500;
    text-decoration: none;
}

.th-detail-price .price.striked {
    color: var(--th-muted);
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
}

.th-detail-lead {
    margin: 20px 0;
    color: #3F4753;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.th-detail-lead iframe,
.th-detail-lead video,
.th-detail-video {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 18px 0;
    border: 0;
    border-radius: 14px;
}

.th-detail-lead img {
    max-width: 100% !important;
    height: auto !important;
}

.th-detail-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0 !important;
    margin-top: 8px;
}

.th-detail-form.single-item {
    height: auto !important;
    justify-content: flex-start !important;
}

.th-detail-field-label {
    margin-bottom: -5px;
    color: var(--th-ink);
    font-size: 13px;
    font-weight: 500;
}

.th-detail-form .form-control,
.th-detail-quick .form-control,
.th-detail-question .form-control {
    min-height: 46px;
    padding: 10px 13px;
    color: var(--th-ink);
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 11px;
    font-size: 14px;
    font-weight: 400;
}

.th-detail-combine {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0;
    padding: 14px;
    border: 1px solid var(--th-line);
    border-radius: 12px;
}

.th-detail-combine legend {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 5px;
    font-size: 13px;
    font-weight: 500;
}

.th-detail-combine label,
.th-detail-combine a {
    color: var(--th-muted);
    font-size: 13px;
    font-weight: 400;
}

.th-detail-spec {
    color: var(--th-orange-hover);
    font-size: 14px;
    font-weight: 400;
}

.th-detail-action-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    margin-top: 4px;
}

.th-detail-qty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--th-muted);
    font-size: 12px;
}

.th-detail-buy,
.th-detail-inquiry,
.th-detail-quick-button,
.th-detail-question-button,
.th-blog-card-cta,
.th-blog-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--th-orange) 0%, #FF7B12 100%);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 9px 22px rgba(227, 106, 0, .18);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.th-detail-buy:hover,
.th-detail-inquiry:hover,
.th-detail-quick-button:hover,
.th-detail-question-button:hover,
.th-blog-card-cta:hover,
.th-blog-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(227, 106, 0, .25);
}

.th-detail-call {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 14px 16px;
    color: var(--th-ink);
    background: var(--th-orange-soft);
    border-radius: 12px;
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
}

.th-detail-call > i {
    color: var(--th-orange-hover);
    font-size: 24px;
}

.th-detail-call span,
.th-detail-call small {
    display: block;
}

.th-detail-call small {
    margin-bottom: 2px;
    color: var(--th-muted);
    font-size: 12px;
    font-weight: 400;
}

.th-detail-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.th-detail-service-grid > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 14px;
}

.th-detail-service-grid i {
    flex: 0 0 auto;
    color: var(--th-orange-hover);
    font-size: 25px;
}

.th-detail-service-grid span,
.th-detail-service-grid strong,
.th-detail-service-grid small {
    display: block;
    min-width: 0;
}

.th-detail-service-grid strong {
    color: var(--th-ink);
    font-size: 13px;
    font-weight: 500;
}

.th-detail-service-grid small {
    margin-top: 3px;
    color: var(--th-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

.th-detail-quick,
.th-detail-content,
.th-detail-related {
    margin-top: 22px;
    padding: 30px;
}

.th-detail-quick {
    display: grid;
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 62%);
}

.th-detail-section-heading h2 {
    margin: 5px 0 0;
    color: var(--th-ink);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 500;
    line-height: 1.15;
}

.th-detail-section-heading p {
    margin: 8px 0 0;
    color: var(--th-muted);
    font-size: 14px;
    line-height: 1.5;
}

.th-detail-quick form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.th-detail-privacy {
    grid-column: 1 / -1;
    color: var(--th-muted);
    font-size: 12px;
    font-weight: 400;
}

.th-detail-content .th-detail-section-heading,
.th-detail-related .th-detail-section-heading {
    margin-bottom: 24px;
}

.th-detail-richtext {
    max-width: 1080px;
    color: #404854;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.72;
}

.th-detail-richtext img,
.th-detail-richtext iframe,
.th-detail-richtext table {
    max-width: 100% !important;
    height: auto !important;
}

.th-detail-richtext h1,
.th-detail-richtext h2,
.th-detail-richtext h3,
.th-detail-richtext h4 {
    margin: 28px 0 12px;
    color: var(--th-ink);
    font-weight: 500;
    line-height: 1.25;
}

.th-detail-richtext h1 { font-size: 26px; }
.th-detail-richtext h2 { font-size: 24px; }
.th-detail-richtext h3 { font-size: 20px; }

.th-detail-attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 900px;
    margin: 24px 0;
    overflow: hidden;
    background: var(--th-line);
    border: 1px solid var(--th-line);
    border-radius: 12px;
}

.th-detail-attributes > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    background: #fff;
    color: var(--th-muted);
    font-size: 13px;
}

.th-detail-attributes strong {
    color: var(--th-ink);
    font-weight: 500;
}

.th-detail-question {
    margin-top: 26px;
    padding: 16px 18px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 12px;
}

.th-detail-question summary {
    color: var(--th-ink);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.th-detail-question form {
    margin-top: 18px;
}

.th-detail-related .th-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Blog archive. */
.th-blog-hero {
    align-items: center;
}

.th-blog-hero h1 {
    margin-bottom: 5px;
}

.th-blog-hero p {
    margin: 0;
    color: var(--th-muted);
    font-size: 15px;
}

.th-blog-intro {
    margin: -4px 0 24px;
    padding: 18px 20px;
    color: var(--th-muted);
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.65;
}

.th-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: start;
}

.th-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.th-blog-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 18px;
    box-shadow: var(--th-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.th-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--th-shadow-md);
}

.th-blog-card-image {
    flex: 0 0 42%;
    min-height: 240px;
    overflow: hidden;
    background: var(--th-surface-soft);
}

.th-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.th-blog-card:hover .th-blog-card-image img {
    transform: scale(1.035);
}

.th-blog-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
}

.th-blog-card h2 {
    margin: 8px 0 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.th-blog-card h2 a {
    color: var(--th-ink);
    text-decoration: none;
}

.th-blog-card p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--th-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.th-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.th-blog-tags a,
.th-blog-tags .tag {
    padding: 4px 8px;
    color: var(--th-muted);
    background: var(--th-surface-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 400;
    text-decoration: none;
}

.th-blog-card-cta {
    min-height: 42px;
    margin-top: auto;
    padding: 10px 13px;
    font-size: 12px;
}

.th-blog-aside {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 16px;
}

.th-blog-aside h2,
.th-blog-aside h3 {
    margin: 0 0 8px;
    color: var(--th-ink);
    font-size: 16px;
    font-weight: 500;
}

.th-blog-aside a {
    color: var(--th-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}

.th-blog-aside a:hover {
    color: var(--th-orange-hover);
}

.th-blog-filter-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--th-line);
}

.th-blog-pagination {
    margin-top: 24px;
}

/* Blog article. */
.th-blog-reading {
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
}

.th-blog-reading > header {
    padding: 42px clamp(24px, 5vw, 70px) 32px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 72%);
    border-bottom: 1px solid var(--th-line);
}

.th-blog-reading h1 {
    max-width: 900px;
    margin: 10px 0 0;
    color: var(--th-ink);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
}

.th-blog-reading-content {
    padding: 36px clamp(24px, 5vw, 70px);
    color: #404854;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.78;
}

.th-blog-reading-content img,
.th-blog-reading-content iframe,
.th-blog-reading-content video,
.th-blog-reading-content table {
    max-width: 100% !important;
    height: auto !important;
}

.th-blog-reading-content h1,
.th-blog-reading-content h2,
.th-blog-reading-content h3,
.th-blog-reading-content h4 {
    margin: 32px 0 13px;
    color: var(--th-ink);
    font-weight: 500;
    line-height: 1.25;
}

.th-blog-reading-content h1 { font-size: 28px; }
.th-blog-reading-content h2 { font-size: 26px; }
.th-blog-reading-content h3 { font-size: 21px; }

.th-blog-article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 clamp(24px, 5vw, 70px) 32px;
}

.th-blog-article-gallery figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--th-line);
    border-radius: 14px;
}

.th-blog-article-gallery img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.th-blog-article-gallery figcaption {
    padding: 12px 14px;
    color: var(--th-ink);
    font-size: 13px;
    font-weight: 500;
}

.th-blog-article-gallery figcaption span {
    display: block;
    margin-top: 4px;
    color: var(--th-muted);
    font-size: 12px;
    font-weight: 400;
}

.th-blog-downloads {
    display: grid;
    gap: 10px;
    padding: 0 clamp(24px, 5vw, 70px) 32px;
}

.th-blog-downloads a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--th-ink);
    background: var(--th-surface-soft);
    border-radius: 12px;
    text-decoration: none;
}

.th-blog-downloads small {
    display: block;
    color: var(--th-muted);
    font-size: 11px;
}

.th-blog-reading > footer {
    padding: 0 clamp(24px, 5vw, 70px) 38px;
}

.th-blog-back {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .th-detail-overview { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); }
    .th-detail-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-detail-related .th-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .th-blog-layout { grid-template-columns: minmax(0, 1fr) 230px; }
    .th-blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .th-detail-overview,
    .th-detail-quick,
    .th-blog-layout {
        grid-template-columns: 1fr;
    }

    .th-detail-gallery-card {
        position: relative;
        top: auto;
        padding: 12px;
        border-radius: 16px;
    }

    .th-detail-gallery-card table,
    .th-detail-gallery-card table tbody,
    .th-detail-gallery-card table tr,
    .th-detail-gallery-card table td {
        display: block;
        width: 100% !important;
    }

    .th-detail-gallery-card table td:last-child {
        margin-top: 10px;
    }

    .th-detail-gallery-card .product-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .th-detail-buy-card { padding: 23px 20px; border-radius: 16px; }
    .th-detail-buy-card h1 { font-size: 28px; }
    .th-detail-price { margin: 18px 0; }
    .th-detail-price-current { font-size: 26px; }
    .th-detail-action-row { grid-template-columns: 74px minmax(0, 1fr); }
    .th-detail-buy { padding-inline: 12px; font-size: 13px; }
    .th-detail-service-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .th-detail-service-grid > div { align-items: flex-start; padding: 13px; }
    .th-detail-service-grid i { font-size: 21px; }
    .th-detail-quick,
    .th-detail-content,
    .th-detail-related { padding: 21px 18px; border-radius: 16px; }
    .th-detail-quick form { grid-template-columns: 1fr; }
    .th-detail-privacy { grid-column: auto; }
    .th-detail-attributes { grid-template-columns: 1fr; }
    .th-detail-related .th-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .th-blog-layout { gap: 18px; }
    .th-blog-grid { grid-template-columns: 1fr; gap: 14px; }
    .th-blog-card { flex-direction: column; border-radius: 15px; }
    .th-blog-card-image { flex-basis: auto; min-height: 0; aspect-ratio: 16 / 9; }
    .th-blog-card-copy { padding: 18px; }
    .th-blog-aside { position: relative; top: auto; order: -1; padding: 18px; }
    .th-blog-reading { border-radius: 16px; }
    .th-blog-reading > header { padding: 28px 20px 24px; }
    .th-blog-reading h1 { font-size: 30px; }
    .th-blog-reading-content { padding: 25px 20px; font-size: 15px; line-height: 1.7; }
    .th-blog-article-gallery { grid-template-columns: 1fr; padding: 0 20px 25px; }
    .th-blog-article-gallery img { height: auto; aspect-ratio: 4 / 3; }
    .th-blog-downloads { padding: 0 20px 25px; }
    .th-blog-reading > footer { padding: 0 20px 28px; }
}

@media (max-width: 420px) {
    .th-detail-service-grid { grid-template-columns: 1fr; }
    .th-detail-action-row { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
    .th-detail-buy { font-size: 12px; }
    .th-detail-related .th-catalog-grid { gap: 9px; }
    .th-blog-reading h1 { font-size: 27px; }
}
