/* Unified product detail — identical on every clone site (no per-site theme CSS) */
body.tks-unified-layout #productMain {
    font-family: var(--font-body);
    color: var(--text);
}

.tks-product-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    padding: 8px 0 72px;
    align-items: start;
}

.tks-product-breadcrumb {
    padding: 20px 0 8px;
    font-size: 12px;
    color: var(--muted);
}

.tks-product-breadcrumb a:hover {
    text-decoration: underline;
}

.tks-product-media .product-gallery-main {
    background: #f3f3f3;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tks-product-media .product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: min(78vh, 820px);
}

.tks-product-media .product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tks-product-media .product-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.tks-product-media .product-gallery-thumb.active {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.tks-product-media .product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tks-product-page .product-detail__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: 0.01em;
}

.tks-product-page .product-detail__price {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.tks-product-page .product-detail__desc {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.tks-option-block {
    margin: 20px 0;
}

.tks-option-label {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

.tks-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tks-size-btn {
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.3;
    min-height: 44px;
    cursor: pointer;
    transition: 0.15s;
    font-family: var(--font-body);
}

.tks-size-btn.is-selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

.tks-size-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tks-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tks-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tks-swatch-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--swatch, #ccc);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tks-color-swatch.is-selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000;
}

.tks-qty-wrap {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line);
}

.tks-qty-btn {
    width: 40px;
    font-size: 18px;
    background: #fff;
    cursor: pointer;
}

.tks-qty-input {
    width: 56px;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    padding: 12px 4px;
    font-family: var(--font-body);
}

.tks-product-page .product-add-row {
    flex-wrap: wrap;
    margin-top: 24px;
}

.tks-product-page .tks-add-to-cart {
    flex: 1;
    min-width: 200px;
}

.tks-product-page .product-meta-list {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

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