.taee-product-detail-page {
    background: #fff;
    padding-bottom: 32px;
}

.taee-product-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    color: #7a838d;
}

.taee-product-breadcrumbs a,
.taee-product-breadcrumbs span {
    color: inherit;
    text-decoration: none;
}

.taee-product-breadcrumbs a:hover {
    color: var(--primary);
}

.taee-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 42px;
    align-items: start;
    padding: 18px 0 34px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    direction: ltr;
}

.taee-product-media {
    grid-column: 1;
}

.taee-product-info {
    grid-column: 2;
    direction: rtl;
}

.taee-product-media {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0;
    direction: ltr;
}

.taee-product-thumbnails {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 82px !important;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
    scrollbar-width: thin;
}

.taee-product-thumb {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px;
    padding: 6px !important;
    border: 1px solid #e3e8ec !important;
    border-radius: 12px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.taee-product-thumb:hover,
.taee-product-thumb.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(239, 23, 55, .08);
}

.taee-product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 7px;
}

.taee-product-thumb--video {
    flex-direction: column;
    gap: 4px;
    color: #26313a;
}

.taee-product-thumb--video > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
}

.taee-product-thumb--video i {
    position: static !important;
    margin: 0 !important;
    color: #fff !important;
}

.taee-product-main-media {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative !important;
    width: 100% !important;
    min-height: 500px !important;
    border: 0;
    border-radius: 0;
    background: #fff;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
}

.taee-product-main-media > img,
.taee-product-main-video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 500px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.taee-product-main-media > img {
    cursor: zoom-in;
}

.taee-product-main-video[hidden] {
    display: none !important;
}

.taee-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.taee-product-info__head {
    padding-bottom: 0;
    border-bottom: 0;
}

.taee-product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 10px;
}

.taee-product-title-row h1 {
    margin: 0;
    color: #111;
    font-weight: 900;
}

.taee-product-brand-logo {
    flex: 0 0 auto;
    width: 118px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taee-product-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.taee-product-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #666;
}

.taee-product-rating-row .stars-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.taee-product-rating-row .stars-wrapper i {
    color: #ffb400 !important;
}

.taee-product-rating-row strong {
    color: #222;
}

.taee-product-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 22px;
    color: #555;
}

.taee-product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.taee-product-meta-item b {
    color: #555;
    font-weight: 700;
}

.taee-product-meta-item a {
    color: #1f6fd6;
    text-decoration: none;
    font-weight: 800;
}

.taee-product-meta-divider {
    width: 1px;
    height: 24px;
    background: #dfe3e6;
}

.taee-product-meta-item .is-available,
.taee-product-meta-item .is-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.taee-product-meta-item .is-available {
    color: #2ca44f;
}

.taee-product-meta-item .is-unavailable {
    color: var(--primary);
}

.taee-product-meta-item .fa-circle {
    font-size: .55em;
}

/* Keep the stock indicator color independent from global Font Awesome/theme rules. */
.taee-product-meta-item .is-available .fa-circle {
    color: #2ca44f !important;
}

.taee-product-meta-item .is-unavailable .fa-circle {
    color: var(--primary) !important;
}

.taee-product-quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.taee-product-quick-actions a,
.taee-product-quick-actions button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e4e8eb;
    border-radius: 10px;
    background: #fff;
    color: #59636c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.taee-product-quick-actions a:hover,
.taee-product-quick-actions button:hover,
.taee-product-quick-actions .is-active {
    border-color: var(--primary);
    color: var(--primary);
}

.taee-product-quick-actions i {
    position: static !important;
    margin: 0 !important;
    color: currentColor !important;
}

.taee-product-short-description {
    color: #3f454b;
    padding-bottom: 22px;
    border-bottom: 1px solid #eceff1;
}

.taee-product-short-description p:last-child {
    margin-bottom: 0;
}

.taee-product-purchase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.taee-product-status-row {
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f6f8f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.taee-product-status-row > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.taee-product-status-row .is-available {
    color: #178b57;
}

.taee-product-status-row .is-unavailable {
    color: var(--primary);
}

.taee-product-variety h5 {
    margin-bottom: 9px;
    font-weight: 800;
}

.taee-product-variety__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.taee-product-variety .variant-option {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #dfe4e8;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.taee-product-variety .variant-option input {
    display: none;
}

.taee-product-variety .variant-option:hover,
.taee-product-variety .variant-option.is-selected {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(239, 23, 55, .08) !important;
}

.taee-product-variety__color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #cfd6db;
}

.taee-product-price-card {
    padding: 16px;
    border: 1px solid #e7ebee;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taee-product-price-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.taee-product-current-price {
    margin: 0;
    color: var(--primary) !important;
    font-size: clamp(1.55rem, 2.15vw, 1.9rem) !important;
    line-height: 1.35;
    font-weight: 900;
    white-space: nowrap;
}

.taee-product-discount-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.taee-product-old-price {
    margin-inline-start: auto;
    color: #8c969e;
    font-size: .96rem;
    font-weight: 700;
    white-space: nowrap;
}

.taee-product-old-price del,
.taee-product-price-card del {
    color: #8c969e;
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #7c858d;
}

.taee-product-buy-row {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.taee-product-counter {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.taee-product-counter .product-counter-inner {
    min-height: 52px;
}

.taee-product-main-action {
    flex: 1 1 auto;
    width: auto;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    text-decoration: none !important;
    cursor: pointer;
}

.taee-product-main-action:disabled,
.taee-product-main-action.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.taee-product-main-action i {
    position: static !important;
    margin: 0 !important;
    color: #fff !important;
}

.taee-product-trust-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    background: #f6f8f9;
}

.taee-product-trust-item {
    min-width: 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: right;
    background: transparent;
}

.taee-product-trust-item + .taee-product-trust-item {
    border-inline-start: 1px solid #e3e7ea;
}

.taee-product-trust-item > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.taee-product-trust-item strong {
    color: #30373d;
    font-weight: 800;
}

.taee-product-trust-item small {
    color: #8a949c;
}

.taee-product-trust-row i {
    position: static !important;
    margin: 0 !important;
    color: var(--primary) !important;
}

#product-tabs-card {
    margin-top: 24px !important;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
}

#product-tabs-card .nav-tabs {
    border: 0;
    background: #fff;
}

#product-tabs-card .nav-tabs a {
    font-weight: 800;
}

#product-tabs-content .card,
#product-tabs-content .tab-pane {
    border-radius: 14px;
}

.taee-product-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.taee-product-section-heading h2,
.taee-product-section-heading span {
    margin: 0;
}

.taee-product-section-heading h2 {
    font-weight: 900;
}

.taee-product-section-heading span {
    color: #7b858d;
}

.taee-product-faq {
    margin-top: 28px;
}

.taee-product-faq__list {
    display: grid;
    gap: 9px;
}

.taee-product-faq__item {
    border: 1px solid #e5eaed;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.taee-product-faq__item summary {
    min-height: 56px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.taee-product-faq__item summary::-webkit-details-marker {
    display: none;
}

.taee-product-faq__item summary i {
    transition: transform .18s ease;
}

.taee-product-faq__item[open] summary i {
    transform: rotate(180deg);
}

.taee-product-faq__answer {
    padding: 0 16px 16px;
    color: #5e6871;
}

.dark .taee-product-detail-page,
.dark .taee-product-hero,
.dark .taee-product-main-media {
    background: #fff;
}

.dark .taee-product-detail-page,
.dark .taee-product-title-row h1,
.dark .taee-product-variety h5 {
    color: #171b1f;
}

.dark .taee-product-short-description,
.dark .taee-product-meta-line,
.dark .taee-product-meta-item b {
    color: #4f5962;
}

@media (max-width: 991px) {
    .taee-product-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .taee-product-media,
    .taee-product-info {
        grid-column: 1;
    }

    .taee-product-info {
        grid-row: 1;
    }

    .taee-product-media {
        grid-row: 2;
    }

    .taee-product-main-media {
        min-height: 420px !important;
    }
}

@media (max-width: 767px) {
    .taee-product-detail-page .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .taee-product-hero {
        padding: 8px 0 24px;
        border-radius: 0;
        gap: 18px;
    }

    .taee-product-media {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto;
    }

    .taee-product-main-media {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-height: 340px !important;
    }

    .taee-product-thumbnails {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-height: none;
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }

    .taee-product-thumb {
        flex: 0 0 66px;
        width: 66px !important;
        min-width: 66px;
        height: 66px !important;
    }

    .taee-product-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .taee-product-title-row {
        align-items: flex-start;
    }

    .taee-product-brand-logo {
        width: 92px;
        height: 48px;
    }

    .taee-product-meta-line {
        gap: 10px;
    }

    .taee-product-meta-divider {
        display: none;
    }

    .taee-product-buy-row {
        gap: 8px;
    }

    .taee-product-trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .taee-product-trust-item:nth-child(3) {
        border-inline-start: 0;
    }

    .taee-product-trust-item:nth-child(n+3) {
        border-top: 1px solid #e3e7ea;
    }
}

/* Keep product zoom inside the main media frame. The legacy ezPlus window is
   disabled on this redesigned page; taee-product-detail.js provides an inner
   hover zoom instead. */
/* This stylesheet is loaded only on the product-detail page, so the
   legacy ezPlus layers can be disabled directly without relying on :has(). */
.zoomContainer,
.zoomWindowContainer,
.zoomWindow,
.zoomLens {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.taee-product-main-media {
    max-width: 100% !important;
    overflow: hidden !important;
    isolation: isolate;
    contain: paint;
}

.taee-product-main-media > img {
    transform-origin: center center;
    transition: transform .16s ease;
    will-change: transform;
}

.taee-product-main-media.is-inner-zooming > img {
    transform: scale(1.55);
}

/* Neutralize legacy product-detail geometry while keeping its functional JS. */
.taee-product-detail-page #product-card {
    margin-top: 0 !important;
    color: inherit;
}

.taee-product-detail-page #product-card #product-images {
    max-width: 100% !important;
    padding: 0 !important;
    border-left: 0 !important;
    overflow: visible !important;
}

.taee-product-detail-page #product-card #product-images #product-image {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
}

.taee-product-detail-page #product-card #product-images #product-thumbnails {
    height: auto !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.taee-product-detail-page #product-card #product-body {
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
}


/* ==========================================================================
   Product detail: responsive layout + related slider + FAQ/help (2026-09-15)
   ========================================================================== */

.taee-product-detail-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

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

.taee-product-hero,
.taee-product-media,
.taee-product-info,
.taee-product-purchase,
.taee-product-buy-row,
.taee-product-price-card,
#product-tabs-card,
#product-tabs-content,
.taee-related-products,
.taee-product-help-section {
    min-width: 0;
    max-width: 100%;
}

/* Neutralize the legacy counter rule that forces width:100% below 1024px. */
.taee-product-buy-row .taee-product-counter {
    width: 138px !important;
    min-width: 0 !important;
    flex: 0 0 138px !important;
    margin: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.taee-product-buy-row .taee-product-counter .product-counter-inner {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 8px;
    border: 1px solid #e4e8eb;
    border-radius: 12px;
    background: #fff;
    justify-content: space-between !important;
}

.taee-product-buy-row .taee-product-counter input[type="number"] {
    width: 38px !important;
    min-width: 38px !important;
    margin: 0 4px !important;
    padding: 0 !important;
    font-size: 1rem !important;
}

.taee-product-buy-row .taee-product-counter .count-plus,
.taee-product-buy-row .taee-product-counter .count-minus {
    flex: 0 0 30px;
    margin: 0 !important;
}

.taee-product-buy-row .taee-product-main-action,
.taee-product-buy-row .add-to-cart-btn {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    white-space: normal;
    line-height: 1.5;
}

/* The old ezPlus layers are intentionally disabled. The new zoom is entirely
   contained inside .taee-product-main-media and never leaves the gallery. */
.zoomContainer,
.zoomWindowContainer,
.zoomWindow,
.zoomLens {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.taee-product-main-media {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    contain: paint;
    touch-action: pan-y;
}

.taee-product-main-media > #taee-product-image-img {
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    transition: transform .18s ease-out;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.taee-product-main-media.is-inner-zooming > #taee-product-image-img {
    transition: transform .035s linear;
}

/* Related products */
.taee-related-products {
    margin-top: 34px;
    padding-top: 4px;
}

.taee-related-products__heading {
    align-items: center;
}

.taee-related-products__heading > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.taee-related-products__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.taee-related-products__controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.taee-related-products__controls button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e7ea;
    border-radius: 9px;
    background: #fff;
    color: #4c565f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.taee-related-products__controls button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff7f8;
}

.taee-related-products__controls i,
.taee-related-products__all i {
    position: static !important;
    margin: 0 !important;
    color: currentColor !important;
}

.taee-related-products__all {
    min-height: 38px;
    padding: 7px 13px;
    /* border: 1px solid #660033; */
    border-radius: 9px;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.taee-related-products__viewport {
    width: 100%;
    overflow: hidden;
}

.taee-related-products__track {
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    direction: rtl;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.taee-related-products__track::-webkit-scrollbar {
    display: none;
}

.taee-related-products__track > .product-outer {
    float: none !important;
    flex: 0 0 calc((100% - 60px) / 6) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-align: start;
}

.taee-related-products__track .theme-product-card,
.taee-related-products__track > .product-outer > .product {
    width: 100% !important;
    height: 100%;
    min-width: 0;
    margin: 0 !important;
    border: 1px solid #e7ebee;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.taee-related-products__track .product__image {
    width: 100% !important;
    height: 165px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.taee-related-products__track .product__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 8px;
}

.taee-related-products__track .product__body {
    width: 100%;
    min-width: 0;
}

.taee-related-products__track .product-link h5 {
    min-height: 3.2em;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.6;
}

/* FAQ + support */
.taee-product-help-section {
    margin-top: 28px;
    margin-bottom: 34px;
}

.taee-product-help-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, .82fr);
    grid-template-areas: "faq support";
    gap: 18px;
    align-items: stretch;
    direction: ltr;
}

.taee-product-help-layout .taee-product-faq {
    grid-area: faq;
    min-width: 0;
    margin: 0;
    direction: rtl;
}

.taee-product-support-card {
    grid-area: support;
    min-width: 0;
    padding: 24px 22px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #f7f9fa;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.taee-product-support-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #171b1f;
    font-size: 2.1rem;
}

.taee-product-support-card__icon i,
.taee-product-support-card__button i {
    position: static !important;
    margin: 0 !important;
    color: currentColor !important;
}

.taee-product-support-card h3 {
    margin: 0 0 7px;
    color: #20262b;
    font-size: 1.12rem;
    font-weight: 900;
}

.taee-product-support-card p {
    margin: 0 0 16px;
    color: #6e7880;
    line-height: 1.9;
}

.taee-product-support-card__button {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 900;
    text-decoration: none !important;
}

.taee-product-support-card__phone {
    margin-top: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.taee-product-support-card__phone span {
    color: #89939a;
    font-size: .82rem;
}

.taee-product-support-card__phone strong {
    color: #20262b;
    font-size: 1rem;
    direction: ltr;
}

.taee-product-faq__empty {
    min-height: 82px;
    padding: 18px;
    border: 1px solid #e5eaed;
    border-radius: 10px;
    background: #fff;
    color: #6e7880;
    display: flex;
    align-items: center;
    line-height: 1.9;
}

.taee-product-faq__item {
    border-radius: 8px;
}

.taee-product-faq__item summary {
    min-height: 56px;
    padding: 13px 16px;
}

.taee-product-faq__item summary i {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #313940;
    transition: transform .18s ease, color .18s ease;
}

.taee-product-faq__item[open] summary i {
    transform: rotate(45deg);
    color: var(--primary);
}

.taee-product-faq__answer {
    border-top: 1px solid #f0f2f4;
    padding: 14px 16px 16px;
    line-height: 1.95;
}

@media (max-width: 1199px) {
    .taee-related-products__track > .product-outer {
        flex-basis: calc((100% - 48px) / 5) !important;
    }
}

@media (max-width: 1024px) {
    .taee-product-buy-row .taee-product-counter {
        width: 132px !important;
        flex-basis: 132px !important;
    }
}

@media (max-width: 991px) {
    .taee-product-hero {
        display: flex !important;
        flex-direction: column;
        gap: 22px;
        direction: rtl;
    }

    .taee-product-media {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
    }

    .taee-product-info {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
    }

    .taee-product-main-media {
        min-height: 0 !important;
        aspect-ratio: 1 / 1;
        max-height: 520px;
    }

    .taee-product-main-media > img,
    .taee-product-main-video {
        max-height: 520px !important;
    }

    .taee-related-products__track > .product-outer {
        flex-basis: calc((100% - 24px) / 3) !important;
    }

    .taee-product-help-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "faq"
            "support";
    }

    .taee-product-support-card {
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .taee-product-detail-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .taee-product-breadcrumbs {
        padding: 11px 0;
        gap: 6px !important;
        font-size: .78rem;
    }

    .taee-product-hero {
        gap: 16px;
        padding-bottom: 20px;
    }

    .taee-product-media {
        gap: 9px !important;
    }

    .taee-product-main-media {
        aspect-ratio: 1 / .92;
        min-height: 0 !important;
    }

    .taee-product-main-media > img,
    .taee-product-main-video {
        max-height: none !important;
        padding: 6px;
    }

    .taee-product-info {
        gap: 14px;
    }

    .taee-product-title-row {
        gap: 12px;
        margin-bottom: 8px;
    }

    .taee-product-title-row h1 {
        font-size: 1.32rem;
        line-height: 1.75;
    }

    .taee-product-rating-row {
        margin-bottom: 14px;
        flex-wrap: wrap;
    }

    .taee-product-meta-line {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 12px;
        margin-bottom: 15px;
    }

    .taee-product-meta-item {
        min-width: 0;
        flex-wrap: wrap;
    }

    .taee-product-meta-item:last-child {
        grid-column: 1 / -1;
    }

    .taee-product-quick-actions {
        flex-wrap: wrap;
    }

    .taee-product-short-description {
        padding-bottom: 16px;
        font-size: .92rem;
        line-height: 1.95;
    }

    .taee-product-price-card {
        padding: 13px;
    }

    .taee-product-price-row {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .taee-product-current-price {
        font-size: 1.45rem !important;
    }

    .taee-product-old-price {
        margin-inline-start: auto;
    }

    .taee-product-buy-row {
        width: 100%;
        min-width: 0;
        gap: 8px;
        align-items: stretch;
    }

    .taee-product-buy-row .taee-product-counter {
        width: 124px !important;
        flex: 0 0 124px !important;
    }

    .taee-product-buy-row .taee-product-main-action,
    .taee-product-buy-row .add-to-cart-btn {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        font-size: .86rem;
        gap: 6px;
    }

    .taee-product-trust-row {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
    }

    .taee-product-trust-item {
        min-width: 0;
        padding: 8px 6px;
        justify-content: flex-start;
        gap: 7px;
    }

    .taee-product-trust-item strong {
        font-size: .82rem;
    }

    .taee-product-trust-item small {
        font-size: .72rem;
    }

    #product-tabs-card {
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 10px;
        scrollbar-width: none;
    }

    #product-tabs-card::-webkit-scrollbar {
        display: none;
    }

    #product-tabs-card .nav-tabs {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
    }

    #product-tabs-card .nav-tabs li,
    #product-tabs-card .nav-tabs a {
        white-space: nowrap;
    }

    #product-tabs-content,
    #product-tabs-content .tab-content,
    #product-tabs-content .tab-pane,
    #product-tabs-content .aten,
    #product-tabs-content .aten * {
        max-width: 100%;
    }

    #product-tabs-content .aten img,
    #product-tabs-content img,
    #product-tabs-content video,
    #product-tabs-content iframe {
        max-width: 100% !important;
        height: auto !important;
    }

    #product-tabs-content table {
        max-width: 100%;
    }

    #product-tabs-content #specs .card {
        max-width: 100%;
        overflow-x: auto !important;
    }

    #product-tabs-content .product-media-section .d-flex {
        flex-wrap: wrap;
        gap: 12px;
    }

    #product-tabs-content .product-media-section .btn {
        width: 100%;
        margin: 0 !important;
    }

    #review .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    #review .col-lg-3 {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    #product-review-form > .btn,
    #product-review-form > a.btn {
        width: calc(100% - 30px) !important;
        max-width: 360px;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .taee-related-products {
        margin-top: 26px;
    }

    .taee-related-products__heading {
        flex-direction: column;
        align-items: stretch;
    }

    .taee-related-products__actions {
        width: 100%;
        justify-content: space-between;
    }

    .taee-related-products__track > .product-outer {
        flex-basis: calc((100% - 12px) / 2) !important;
    }

    .taee-related-products__track .product__image {
        height: 145px !important;
    }

    .taee-product-help-section {
        margin-top: 24px;
    }

    .taee-product-support-card {
        padding: 20px 16px;
    }
}

@media (max-width: 420px) {
    .taee-product-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .taee-product-brand-logo {
        width: 72px;
        height: 40px;
    }

    .taee-product-meta-line {
        grid-template-columns: 1fr;
    }

    .taee-product-meta-item:last-child {
        grid-column: auto;
    }

    .taee-product-buy-row .taee-product-counter {
        width: 112px !important;
        flex-basis: 112px !important;
    }

    .taee-product-buy-row .taee-product-counter .product-counter-inner {
        padding: 0 4px;
    }

    .taee-product-buy-row .taee-product-counter input[type="number"] {
        width: 30px !important;
        min-width: 30px !important;
        margin: 0 2px !important;
    }

    .taee-product-buy-row .taee-product-main-action,
    .taee-product-buy-row .add-to-cart-btn {
        padding-right: 8px !important;
        padding-left: 8px !important;
        font-size: .8rem;
    }

    .taee-product-trust-row {
        grid-template-columns: 1fr;
    }

    .taee-product-trust-item + .taee-product-trust-item,
    .taee-product-trust-item:nth-child(3) {
        border-inline-start: 0;
        border-top: 1px solid #e3e7ea;
    }

    .taee-related-products__track {
        gap: 10px;
    }

    .taee-related-products__track > .product-outer {
        flex-basis: calc((100% - 10px) / 2) !important;
    }

    .taee-related-products__track .product__image {
        height: 125px !important;
    }
}

/* ========================================================================== 
   Product gallery thumbnails: keep the media slider visible on tablet/mobile.
   Legacy bundle.min.css hides #product-thumbnails below 1024px.
   ========================================================================== */
@media (max-width: 1024px) {
    .taee-product-detail-page #product-card #product-images #product-thumbnails.taee-product-thumbnails {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        height: auto !important;
        min-height: 72px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        direction: rtl !important;
        gap: 9px !important;
        padding: 4px 2px 7px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        position: relative !important;
        z-index: 4;
    }

    .taee-product-detail-page #product-card #product-images #product-thumbnails.taee-product-thumbnails::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .taee-product-detail-page #product-card #product-images #product-thumbnails.taee-product-thumbnails .product-thumbnail.taee-product-thumb {
        visibility: visible !important;
        display: flex !important;
        opacity: 1 !important;
        flex: 0 0 70px !important;
        width: 70px !important;
        min-width: 70px !important;
        height: 70px !important;
        scroll-snap-align: start;
        direction: ltr;
    }
}

@media (max-width: 767px) {
    .taee-product-detail-page .taee-product-media {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
    }

    .taee-product-detail-page .taee-product-main-media {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .taee-product-detail-page #product-card #product-images #product-thumbnails.taee-product-thumbnails {
        grid-column: 1 !important;
        grid-row: 2 !important;
        min-height: 66px !important;
        gap: 8px !important;
        padding-top: 6px !important;
    }

    .taee-product-detail-page #product-card #product-images #product-thumbnails.taee-product-thumbnails .product-thumbnail.taee-product-thumb {
        flex-basis: 62px !important;
        width: 62px !important;
        min-width: 62px !important;
        height: 62px !important;
        padding: 5px !important;
        border-radius: 10px !important;
    }
}
