/* 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;
    }
}

/* Theme-like product carousel */
.tks-product-carousel {
    position: relative;
}

.tks-product-carousel .carousel-track {
    position: relative;
    background: #f3f3f3;
    aspect-ratio: 1;
}

.tks-product-carousel .carousel-slide {
    display: none;
    height: 100%;
}

.tks-product-carousel .carousel-slide.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tks-carousel-prev,
.tks-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.tks-carousel-prev { left: 8px; }
.tks-carousel-next { right: 8px; }

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

/* Collapsible rows (match theme behavior) */
.product-collapsible-row.active .product-collapsible-row__content,
.product-collapsible-row.active_by_default .product-collapsible-row__content {
    position: relative !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-top: 16px;
}

.product-collapsible-row__title {
    cursor: pointer;
    user-select: none;
}

/* Okendo-style star rating */
.tks-oke-sr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
}

.tks-oke-stars {
    display: inline-flex;
    gap: 2px;
    color: #111;
}

.tks-oke-stars svg {
    width: 16px;
    height: 16px;
}

/* Reviews section */
.tks-product-reviews-section {
    padding: 48px 0;
    border-top: 1px solid var(--line, #e5e5e5);
    margin-top: 24px;
}

.tks-reviews-list {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.tks-review-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--line, #eee);
}

.tks-review-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tks-review-verified {
    font-size: 12px;
    color: var(--muted, #666);
}

.tks-review-card__title {
    font-size: 1rem;
    margin: 0 0 8px;
}

.tks-review-card__body {
    line-height: 1.6;
    margin: 0 0 8px;
}

.tks-review-card__meta {
    font-size: 13px;
    color: var(--muted, #666);
}

/* Recommendations */
.product-recommendations {
    padding: 48px 0 72px;
    border-top: 1px solid var(--line, #e5e5e5);
}

.tks-rec-grid {
    margin-top: 24px;
}

/* Share icons */
.product-share-icons {
    margin-top: 20px;
}

.product-share-icons-list {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.tks-share-copy {
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

/* FAQ block from descriptionHtml */
.tks-product-faq {
    padding: 32px 0;
}

.tks-product-faq .faq-container {
    width: 100%;
}

.tks-product-faq .faq-item.active .faq-answer {
    display: block;
}

.tks-product-faq .faq-question {
    width: 100%;
    text-align: left;
    background: #fff;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

body.store-theme-active:not(.tks-product-scraped) .main-product.section-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

body.store-theme-active #productMain {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Scraped product pages from aeromats.com */
body.tks-product-scraped #productMain {
    display: block;
    max-width: 100%;
    padding: 0;
}

body.tks-product-scraped .main-product {
    --theme-product-summary-width-mobile: 420px;
    --theme-product-summary-width: clamp(420px, 36vw, 640px);
}

body.tks-product-scraped .main-product.section-product {
    display: block;
}

body.tks-product-scraped .main-product-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

@media (min-width: 991px) {
    body.tks-product-scraped .main-product-container {
        flex-direction: row;
        gap: clamp(30px, 3vw, 70px);
    }
}

body.tks-product-scraped .carousel-wrapper {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 991px) {
    body.tks-product-scraped .carousel-wrapper {
        width: calc(100% - var(--theme-product-summary-width));
        max-width: 1200px;
    }
}

body.tks-product-scraped .product-summary {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 991px) {
    body.tks-product-scraped .product-summary {
        flex: 0 0 var(--theme-product-summary-width);
        max-width: var(--theme-product-summary-width);
    }
}

body.tks-product-scraped .product-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.03);
}

body.tks-product-scraped .carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

body.tks-product-scraped .product-carousel .carousel-slide {
    display: none;
    min-width: 100%;
    box-sizing: border-box;
}

body.tks-product-scraped .product-carousel:not([data-tks-carousel-wired="1"]) .carousel-slide:first-child,
body.tks-product-scraped .product-carousel .carousel-slide.is-active {
    display: block;
    flex: 0 0 100%;
}

body.tks-product-scraped .product-carousel[data-tks-carousel-wired="1"] .carousel-slide:first-child:not(.is-active) {
    display: none;
}

body.tks-product-scraped .product-carousel .carousel-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

body.tks-product-scraped .carousel-button {
    position: absolute;
    bottom: 10px;
    z-index: 2;
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.tks-product-scraped .carousel-button.prev {
    right: 70px;
}

body.tks-product-scraped .carousel-button.next {
    right: 20px;
}

body.tks-product-scraped .carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

body.tks-product-scraped .carousel-thumbnails .thumbnail {
    cursor: pointer;
    flex: 0 0 auto;
}

body.tks-product-scraped .carousel-thumbnails .thumbnail.active {
    opacity: 0.8;
}

body.tks-product-scraped .carousel-thumbnails .thumbnail img {
    width: 100px;
    height: auto;
    border-radius: 4px;
    aspect-ratio: 1;
    object-fit: cover;
}

body.tks-product-scraped #imageModal {
    display: none !important;
}

body.tks-product-scraped .main-product.has-animation .product-summary > *,
body.tks-product-scraped .main-product.has-animation .product-summary > form > * {
    opacity: 1 !important;
    animation: none !important;
}

@media (max-width: 990px) {
    body.tks-product-scraped .carousel-thumbnails {
        display: none;
    }
}

body.tks-product-scraped .product-collapsible-row.active .product-collapsible-row__content,
body.tks-product-scraped .product-collapsible-row.active_by_default .product-collapsible-row__content {
    position: relative !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.tks-product-scraped .section-product-recommendations {
    display: none;
}

body.tks-product-scraped .section-product-recommendations.tks-rec-ready {
    display: block !important;
    --theme-products-recommendations-gap: 24px;
    --theme-products-recommendations-columns-count: 4;
}

body.tks-product-scraped .section-product-recommendations-container {
    max-width: min(100%, 1440px);
    margin: 0 auto;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
}

body.tks-product-scraped .tks-product-recommendations-slot {
    width: 100%;
}

body.tks-product-scraped .section-product-recommendations-header {
    margin-bottom: 20px;
}

body.tks-product-scraped .section-product-recommendations-header__heading {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

/* Match live aeromats.com — carousel root keeps product-recommendations-list; ul is only splide__list */
body.tks-product-scraped .tks-product-rec-splide.product-recommendations-list {
    width: 100%;
}

body.tks-product-scraped .tks-product-rec-splide .product-recommendations-product__image {
    position: relative;
}

body.tks-product-scraped .tks-product-rec-splide .product-recommendations-product__image img {
    width: 100%;
}

@media (max-width: 900px) {
    body.store-theme-active:not(.tks-product-scraped) .main-product.section-product {
        grid-template-columns: 1fr;
    }
}

/* Okendo reviews widget — CSS vars + layout (scraped HTML lacks runtime oke-css-vars) */
body.tks-product-scraped {
    --oke-widget-spaceAbove: 20px;
    --oke-widget-spaceBelow: 20px;
    --oke-starRating-spaceAbove: 0;
    --oke-starRating-spaceBelow: 0;
    --oke-button-backgroundColor: #000;
    --oke-button-backgroundColorHover: #000;
    --oke-button-backgroundColorActive: #000;
    --oke-button-textColor: #fff;
    --oke-button-textColorHover: #272d45;
    --oke-button-textColorActive: #fff;
    --oke-button-borderColor: #dbdde4;
    --oke-button-borderColorHover: #dbdde4;
    --oke-button-borderColorActive: #000;
    --oke-button-borderRadius: 4px;
    --oke-button-borderWidth: 1px;
    --oke-button-fontWeight: 700;
    --oke-button-fontSize: var(--oke-text-regular, 14px);
    --oke-button-fontFamily: inherit;
    --oke-border-color: #e5e5eb;
    --oke-border-width: 1px;
    --oke-text-primaryColor: #000;
    --oke-text-secondaryColor: #9f8669;
    --oke-text-small: 16px;
    --oke-text-regular: 16px;
    --oke-text-large: 24px;
    --oke-text-fontFamily: inherit;
    --oke-avatar-size: 48px;
    --oke-avatar-backgroundColor: #e5e5eb;
    --oke-avatar-placeholderTextColor: #000;
    --oke-highlightColor: #000;
    --oke-shadingColor: #f7f7f8;
    --oke-productImageSize: 48px;
    --oke-attributeBar-shadingColor: #9a9db1;
    --oke-attributeBar-backgroundColor: #d3d4dd;
    --oke-attributeBar-markerColor: #000;
    --oke-filter-backgroundColor: #fff;
    --oke-filter-backgroundColorActive: #676986;
    --oke-filter-borderColor: #dbdde4;
    --oke-filter-borderColorActive: #676986;
    --oke-filter-textColor: #000;
    --oke-filter-textColorActive: #fff;
    --oke-filter-borderRadius: 100px;
    --oke-filter-searchHighlightColor: #999;
    --oke-mediaGrid-chevronColor: #676986;
    --oke-stars-foregroundColor: #ffcf2a;
    --oke-stars-backgroundColor: #e5e5e5;
    --oke-stars-borderWidth: 0;
}

body.tks-product-scraped .oke-w,
body.tks-product-scraped oke-modal {
    --oke-title-fontWeight: 600;
    --oke-title-fontSize: var(--oke-text-regular, 14px);
    --oke-title-fontFamily: inherit;
    --oke-bodyText-fontWeight: 400;
    --oke-bodyText-fontSize: var(--oke-text-regular, 14px);
    --oke-bodyText-fontFamily: inherit;
}

body.tks-product-scraped .shopify-section:has([data-oke-widget]) {
    padding-top: var(--oke-widget-spaceAbove, 20px);
    padding-bottom: var(--oke-widget-spaceBelow, 20px);
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
    max-width: min(100%, 1440px);
    margin-left: auto;
    margin-right: auto;
}

body.tks-product-scraped [data-oke-widget] {
    width: 100%;
}

body.tks-product-scraped .okeReviews.oke-w {
    width: 100%;
}

body.tks-product-scraped .oke-sr {
    margin-bottom: 16px;
}

/* Purchase controls — variant picker, quantity label, add to cart */
body.tks-product-scraped .product-summary__variant-picker,
body.tks-product-scraped product-options.product-summary__variant-picker {
    width: 100%;
    margin: 16px 0 8px;
}

body.tks-product-scraped .product-option-picker {
    margin-bottom: 16px;
}

body.tks-product-scraped .product-option-picker-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

body.tks-product-scraped .product-option-picker__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.tks-product-scraped .product-option-picker__list-item {
    list-style: none;
    cursor: pointer;
}

body.tks-product-scraped .product-option-picker__list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.tks-product-scraped .product-option-picker__list-item .product-option-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    min-height: auto;
}

body.tks-product-scraped .product-option-picker__list-item .product-option-label svg {
    display: none;
}

/* Size / text pills — outline only when selected */
body.tks-product-scraped .product-option-picker:not(.has-swatches) .product-option-label__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 4px 14px;
    border: 1px solid var(--line, #ccc);
    border-radius: 20px;
    background: #fff;
    color: inherit;
}

body.tks-product-scraped .product-option-picker:not(.has-swatches) .product-option-picker__list-item.chosen .product-option-label__value,
body.tks-product-scraped .product-option-picker:not(.has-swatches) .product-option-picker__list-item.is-selected .product-option-label__value {
    border-color: #000;
    background: #fff;
    color: inherit;
}

body.tks-product-scraped .product-option-picker:not(.has-swatches) .product-option-picker__list-item.chosen .product-option-label svg,
body.tks-product-scraped .product-option-picker:not(.has-swatches) .product-option-picker__list-item.is-selected .product-option-label svg {
    display: block;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    padding: 3px;
    background: #000;
    color: #fff;
    border-radius: 50%;
}

/* Color swatches — circle only, no box fill */
body.tks-product-scraped .product-option-picker.has-swatches .product-option-picker__list-item {
    position: relative;
}

body.tks-product-scraped .product-option-picker.has-swatches .product-option-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--product-swatch-value, #ccc);
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

body.tks-product-scraped .product-option-picker.has-swatches .product-option-label {
    position: static;
    height: auto;
    padding: 0;
}

body.tks-product-scraped .product-option-picker.has-swatches .product-option-label__value:empty {
    display: none;
}

body.tks-product-scraped .product-option-picker.has-swatches .product-option-picker__list-item.chosen .product-option-swatch,
body.tks-product-scraped .product-option-picker.has-swatches .product-option-picker__list-item.is-selected .product-option-swatch {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

body.tks-product-scraped .product-option-picker.has-swatches .product-option-picker__list-item.chosen .product-option-label svg,
body.tks-product-scraped .product-option-picker.has-swatches .product-option-picker__list-item.is-selected .product-option-label svg {
    display: block;
    position: absolute;
    top: -4px;
    left: 20px;
    width: 18px;
    height: 18px;
    padding: 3px;
    background: #000;
    color: #fff;
    border-radius: 50%;
}

body.tks-product-scraped .product-variants-selector-select {
    display: none;
}

body.tks-product-scraped .product-summary__action {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

body.tks-product-scraped .product-summary__qty {
    width: 100%;
}

body.tks-product-scraped .product-summary__qty label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.tks-product-scraped .product-quantity-picker {
    display: inline-flex;
    align-items: stretch;
    height: 52px;
    border: 1px solid var(--line, #ddd);
    max-width: 160px;
}

body.tks-product-scraped .product-quantity-picker__minus,
body.tks-product-scraped .product-quantity-picker__plus,
body.tks-product-scraped .qty-minus,
body.tks-product-scraped .qty-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    line-height: 1;
}

body.tks-product-scraped .product-quantity-picker__input,
body.tks-product-scraped .product-quantity-picker-input {
    width: 56px;
    border: none;
    border-left: 1px solid var(--line, #ddd);
    border-right: 1px solid var(--line, #ddd);
    text-align: center;
    font: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
}

body.tks-product-scraped .product-quantity-picker__input::-webkit-outer-spin-button,
body.tks-product-scraped .product-quantity-picker__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.tks-product-scraped .product-summary__add-to-cart,
body.tks-product-scraped #AddToCart {
    flex: 1;
    min-width: 200px;
    min-height: 52px;
    padding: 12px 24px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

body.tks-product-scraped .product-summary__add-to-cart:disabled,
body.tks-product-scraped #AddToCart:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
