/* Theme 3 — Product detail (iHerb-style layout, only existing fields) */
.t3-pdp-page {
    background: #f5f5f5;
    padding-bottom: 40px;
}

.t3-pdp-page #breadCrumbs {
    padding: 14px 0 10px;
    font-size: 13px;
    color: #666;
}

.t3-pdp-page #breadCrumbs a {
    color: #0a7a2f;
    text-decoration: none;
}

.t3-pdp-page #breadCrumbs a:hover {
    text-decoration: underline;
}

.t3-pdp-page #breadCrumbs .last {
    color: #222;
}

.t3-pdp-page .product-detail-container.t3-pdp-layout {
    background: transparent;
    box-shadow: none;
    margin-bottom: 24px;
    overflow: visible;
}

.t3-pdp-page .product-summary-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    align-items: flex-start;
}

.t3-pdp-page .image-fixed {
    flex: 0 0 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    padding: 16px;
}

.t3-pdp-page .product-summary-image {
    text-align: center;
}

.t3-pdp-page .product-summary-image img,
.t3-pdp-page #iherb-product-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 420px;
    margin: 0 auto;
    object-fit: contain;
}

.t3-pdp-page .thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-start;
}

.t3-pdp-page .thumbnail-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 3px;
    background: #fff;
    cursor: pointer;
}

.t3-pdp-page .thumbnail-item.selected,
.t3-pdp-page .thumbnail-item:hover {
    border-color: #0a7a2f;
}

.t3-pdp-page .thumbnail-item img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.t3-pdp-page .t3-pdp-main-copy {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.t3-pdp-page .t3-pdp-summary {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    min-width: 0;
}

.t3-pdp-page #product-summary-header h1 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.3;
    margin: 0 0 8px;
    color: #1a1a1a;
    font-weight: 700;
}

.t3-pdp-page .t3-pdp-brand {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.t3-pdp-page .t3-pdp-brand a {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 600;
}

.t3-pdp-page .t3-pdp-brand a:hover {
    text-decoration: underline;
}

.t3-pdp-page .t3-pdp-status-row {
    margin: 10px 0 12px;
}

.t3-pdp-page .t3-pdp-stock-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 0;
}

.t3-pdp-page .t3-pdp-stock-badge.is-in {
    color: #0a7a2f;
}

.t3-pdp-page .t3-pdp-stock-badge.is-out {
    color: #c8232c;
}

.t3-pdp-page .t3-pdp-short-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 14px;
}

.t3-pdp-page .t3-pdp-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eee;
}

.t3-pdp-page .t3-pdp-specs li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.t3-pdp-page .t3-pdp-specs li span:first-child {
    color: #777;
}

.t3-pdp-page .t3-pdp-specs li span:last-child {
    color: #222;
    font-weight: 600;
}

.t3-pdp-page .t3-pdp-buybox {
    width: 100%;
}

.t3-pdp-page .product-action-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 18px;
}

.t3-pdp-page .t3-pdp-price__row {
    margin-bottom: 4px;
}

.t3-pdp-page .discount-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.t3-pdp-page .t3-pdp-price__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.t3-pdp-page .list-price.is-cut {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.t3-pdp-page .percent-off {
    color: #c8232c;
    font-size: 13px;
    font-weight: 600;
}

.t3-pdp-page .t3-pdp-shipping {
    font-size: 13px;
    color: #555;
    margin: 8px 0 14px;
}

.t3-pdp-page .t3-pdp-buybox-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t3-pdp-page .t3-pdp-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    width: fit-content;
}

.t3-pdp-page .t3-pdp-qty button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f3f3;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.t3-pdp-page .t3-pdp-qty input {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.t3-pdp-page .t3-pdp-add-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 24px;
    background: #f5a623;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.t3-pdp-page .t3-pdp-add-btn:hover:not(:disabled) {
    background: #e09410;
}

.t3-pdp-page .t3-pdp-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.t3-pdp-page .t3-pdp-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.t3-pdp-page .t3-pdp-order-btn,
.t3-pdp-page .t3-pdp-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.t3-pdp-page .t3-pdp-order-btn {
    background: #fff;
    border: 1px solid #0a7a2f;
    color: #0a7a2f;
}

.t3-pdp-page .t3-pdp-whatsapp-btn {
    background: #25d366;
    border: 1px solid #25d366;
    color: #fff;
}

.t3-pdp-page .t3-pdp-whatsapp-btn:hover {
    background: #1ebe57;
    color: #fff;
    text-decoration: none;
}

.t3-pdp-page .t3-pdp-mobile-image {
    margin: 12px 0;
}

.t3-pdp-page .t3-pdp-tabs-wrap {
    margin-top: 20px;
}

.t3-pdp-tabs {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
}

.t3-pdp-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}

.t3-pdp-tabs__btn {
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.t3-pdp-tabs__btn.is-active {
    color: #0a7a2f;
    border-bottom-color: #0a7a2f;
    background: #fff;
}

.t3-pdp-tabs__panel {
    padding: 20px;
}

.t3-pdp-tabs__panel[hidden] {
    display: none !important;
}

.t3-pdp-tabs__panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.t3-pdp-page .hidden-window-sm {
    display: none !important;
}

.t3-pdp-page .hidden-window-lg,
.t3-pdp-page .hidden-window-md {
    display: block;
}

@media (min-width: 992px) {
    .t3-pdp-page .hidden-window-sm {
        display: block !important;
    }

    .t3-pdp-page .hidden-window-lg,
    .t3-pdp-page .hidden-window-md,
    .t3-pdp-page .t3-pdp-mobile-image {
        display: none !important;
    }

    .t3-pdp-page .product-detail-container.t3-pdp-layout {
        display: grid;
        grid-template-columns: minmax(260px, 34%) minmax(0, 1fr) 300px;
        grid-template-areas:
            "image copy buy"
            "image tabs tabs";
        column-gap: 20px;
        row-gap: 16px;
        align-items: start;
        padding: 0 16px;
    }

    .t3-pdp-page .t3-pdp-layout .product-summary-main {
        display: contents;
    }

    .t3-pdp-page .t3-pdp-layout .image-fixed {
        grid-area: image;
        position: sticky;
        top: 100px;
    }

    .t3-pdp-page .t3-pdp-layout .t3-pdp-main-copy {
        display: contents;
    }

    .t3-pdp-page .t3-pdp-layout .t3-pdp-summary {
        grid-area: copy;
    }

    .t3-pdp-page .t3-pdp-layout .t3-pdp-buybox {
        grid-area: buy;
        width: 300px;
        position: sticky;
        top: 100px;
    }

    .t3-pdp-page .t3-pdp-layout .t3-pdp-tabs-wrap {
        grid-area: tabs;
        margin-top: 0;
    }
}

/* Reviews / tags */
.t3-pdp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t3-pdp-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 16px;
    background: #f3f6f1;
    color: #0a7a2f;
    text-decoration: none;
    font-size: 13px;
}

.t3-pdp-review-form-wrap {
    background: #fff;
    border: 1px solid #e6eadf;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(16, 42, 24, 0.05);
}

.t3-pdp-review-form__lead {
    margin: 0 0 16px;
    color: #5b6454;
    font-size: 14px;
}

.t3-pdp-review-form .form-group {
    margin-bottom: 16px;
}

.t3-pdp-review-form label,
.t3-pdp-review-form__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2418;
    font-size: 14px;
}

.t3-pdp-review-form__label em {
    font-style: normal;
    font-weight: 400;
    color: #7a8470;
}

.t3-pdp-review-form .form-control {
    width: 100%;
    border: 1px solid #d5dccb;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.t3-pdp-review-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.t3-pdp-review-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.t3-review-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.t3-review-star {
    border: 0;
    background: none;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: #d8ddcf;
    cursor: pointer;
}

.t3-review-star.is-on,
.t3-review-star:hover,
.t3-review-star:hover ~ .t3-review-star {
    color: #f5b301;
}

.t3-review-photo__hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #66705d;
}

/* Keep native file control — Chrome breaks when ::-webkit-file-upload-button is restyled */
.t3-review-file {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 16px;
    line-height: normal;
    opacity: 1;
    position: static;
    pointer-events: auto;
}

.t3-review-upload__name {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #66705d;
}

.t3-review-preview {
    display: block;
    max-width: 160px;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #e6eadf;
}

.t3-review-preview[hidden] {
    display: none !important;
}

.btn-submit-review {
    background: #0a7a2f;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.btn-submit-review:hover {
    background: #086627;
}

@media (max-width: 640px) {
    .t3-pdp-review-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .t3-pdp-page .product-detail-container.t3-pdp-layout {
        padding: 0 12px;
    }

    .t3-pdp-page .t3-pdp-cta-row {
        grid-template-columns: 1fr;
    }
}
