/* ============================================
   SINGLE PRODUCT STYLES - Redesign
   ============================================ */

/* --- Top Section (Gallery + Summary) --- */
.single-product__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 50px;
}

/* === GALLERY === */
.single-product__gallery {
    position: relative;
}

.single-product__gallery .woocommerce-product-gallery {
    position: relative;
    width: 100% !important;
    float: none !important;
    overflow: visible !important;
}

.single-product__gallery .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
}

.single-product__gallery .woocommerce-product-gallery__wrapper {
    /* width controlled by FlexSlider inline styles -- do not override */
}

.single-product__gallery .woocommerce-product-gallery__image img {
    border-radius: var(--radius);
    width: 100% !important;
    height: auto;
    object-fit: contain;
    background: #f2f7f3;
    padding: 20px;
}

.single-product__gallery .woocommerce-product-gallery__image a {
    display: block;
}

.single-product__gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
    overflow: visible !important;
}

.single-product__gallery .flex-control-thumbs li {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px;
    flex-shrink: 0;
    float: none !important;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--color-border-tertiary, rgba(0, 0, 0, 0.08));
    background: #f2f7f3;
    transition: border-color 0.2s ease;
}

.single-product__gallery .flex-control-thumbs li:hover {
    border-color: rgba(45, 122, 79, 0.5);
}

.single-product__gallery .flex-control-thumbs img {
    width: 100% !important;
    max-width: 72px;
    height: 100% !important;
    object-fit: contain;
    padding: 4px;
    opacity: 0.85 !important;
    transition: opacity 0.2s ease;
}

.single-product__gallery .flex-control-thumbs img.flex-active {
    opacity: 1 !important;
}

.single-product__gallery .flex-control-thumbs li:has(img.flex-active) {
    border-color: #2d7a4f;
}

.single-product__gallery .flex-control-thumbs img:hover {
    opacity: 1 !important;
}

.single-product__gallery .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent, #6CD04E);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 6px;
    z-index: 5;
}

/* === SUMMARY === */

/* --- 1. Title --- */
.single-product__summary .product_title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #242424;
    line-height: 1.3;
}

/* --- 2. Trust Badges --- */
.sp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.sp-trust__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text, #5e5e5e);
    background: var(--bg-light, #f5f7f9);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.sp-trust__pill i {
    font-size: 10px;
    color: var(--primary-medium);
}

/* --- 3. Short Description --- */
.single-product__summary .woocommerce-product-details__short-description {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text, #5e5e5e);
    margin-bottom: 18px;
}

.single-product__summary .woocommerce-product-details__short-description p {
    margin-bottom: 0.6em;
}

.single-product__summary .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}
/* Product Highlights (short description redesign) */
.product-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-highlight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text, #5e5e5e);
    padding: 2px 0;
}

.product-highlight i {
    color: var(--primary-medium, #2d7a4f);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    width: 16px;
    text-align: center;
}

.product-highlight-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.5;
    padding: 8px 12px;
    margin-top: 4px;
    background: #fef9f0;
    border-left: 3px solid #e89952;
    border-radius: 0 6px 6px 0;
    color: var(--text, #5e5e5e);
}

.product-highlight-notice i {
    color: #e89952;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    width: 16px;
    text-align: center;
}

.product-highlight-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.product-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    background: var(--bg-light, #f5f7f9);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 20px;
    color: var(--text, #5e5e5e);
}

.product-highlight-badge i {
    color: var(--primary-medium, #2d7a4f);
    font-size: 12px;
}
.sp-microns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 10px;
}

.sp-micron-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 8px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font, inherit);
    text-align: center;
}

.sp-micron-btn:hover {
    border-color: var(--primary-medium);
}

.sp-micron-btn.is-active {
    border-color: var(--primary-medium);
    background: var(--primary-medium);
    color: #fff;
}

.sp-micron-btn.is-active .sp-micron-btn__num,
.sp-micron-btn.is-active .sp-micron-btn__unit,
.sp-micron-btn.is-active .sp-micron-btn__price {
    color: #fff;
}

.sp-micron-btn__num {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
    color: #242424;
}

.sp-micron-btn__unit {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-light, #888);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.sp-micron-btn__price {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-medium);
}

/* Non-default active (0.3, 0.2, 0.1): outlined green instead of filled */
.sp-micron-btn.is-active:not([data-slug="0-5-micron"]) {
    background: #f2f8f4;
    color: var(--primary-medium);
}

.sp-micron-btn.is-active:not([data-slug="0-5-micron"]) .sp-micron-btn__num,
.sp-micron-btn.is-active:not([data-slug="0-5-micron"]) .sp-micron-btn__unit,
.sp-micron-btn.is-active:not([data-slug="0-5-micron"]) .sp-micron-btn__price {
    color: var(--primary-medium);
}

/* --- 5. Dynamic Hint --- */
.sp-hint {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sp-hint i {
    font-size: 12px;
    margin-top: 1px;
    flex-shrink: 0;
}

.sp-hint--ok {
    background: #edf7f1;
    color: var(--primary-medium);
}

.sp-hint--warn {
    background: #fff8f0;
    color: #e65100;
}

.sp-hint:empty {
    display: none;
}

/* --- 6. Price (variable products: inside WC form) --- */
.single-product__summary .single_variation .woocommerce-variation-price .price,
.single-product__summary .single_variation .price {
    font-size: 26px;
    font-weight: 500;
    color: var(--primary-medium);
    margin-bottom: 4px;
}

.single-product__summary .single_variation .woocommerce-variation-price .price::after {
    content: ' \03C3\03C5\03BC\03C0. \03A6\03A0\0391';
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light, #888);
    vertical-align: baseline;
    margin-left: 6px;
}

.single-product__summary .single_variation .price del {
    font-size: 18px;
    color: var(--text-light, #888);
    font-weight: 400;
}

.single-product__summary .single_variation .price ins {
    text-decoration: none;
}

/* Price for simple products */
.sp-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border, #e0e0e0);
}

.sp-price-wrap .price,
.sp-price-wrap .price .woocommerce-Price-amount,
.sp-price-wrap .price .woocommerce-Price-amount bdi {
    font-size: 26px;
    font-weight: 500;
    color: var(--primary-medium) !important;
}

.sp-price-wrap .price del {
    font-size: 18px;
    color: var(--text-light, #888);
    font-weight: 400;
}

.sp-price-wrap .price ins {
    text-decoration: none;
}

.sp-vat {
    font-size: 11px;
    color: var(--text-light, #888);
}

/* --- 7. Cart Row --- */
/* Hide default variations table only on micron-only products (replaced by micron buttons) */
.has-micron-grid .single-product__summary .variations {
    display: none;
}

.has-micron-grid .single-product__summary .reset_variations {
    display: none;
}

/* Availability text inside variation form (micron products only) */
.has-micron-grid .single-product__summary .woocommerce-variation-availability {
    display: none;
}

/* Style variation dropdowns for multi-attribute products */
.single-product__summary .variations {
    margin-bottom: 16px;
}

.single-product__summary .variations td,
.single-product__summary .variations th {
    padding: 6px 0;
    border: none;
    vertical-align: middle;
}

.single-product__summary .variations label {
    font-size: 12px;
    font-weight: 600;
    color: #242424;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-product__summary .variations select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font, inherit);
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e5e5e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.single-product__summary .reset_variations {
    font-size: 11px;
    color: var(--text-light, #888);
    margin-top: 4px;
}

/* Cart form layout: stepper + button in grid */
.single-product__summary .woocommerce-variation-add-to-cart,
.single-product__summary form.cart:not(.variations_form) {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 20px;
}

.single-product__summary .quantity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.single-product__summary .quantity .qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    background: var(--bg-light, #f5f5f5);
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    font-family: var(--font);
}

.single-product__summary .quantity .qty-btn:hover {
    border-color: var(--primary-medium);
    color: var(--primary-medium);
}

.single-product__summary .quantity .qty {
    flex: 1;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    background: #fff;
    -moz-appearance: textfield;
    padding: 0;
    min-width: 0;
}

.single-product__summary .quantity .qty::-webkit-outer-spin-button,
.single-product__summary .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.single-product__summary .single_add_to_cart_button {
    padding: 14px 20px;
    background: var(--primary-medium);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
}

.single-product__summary .single_add_to_cart_button::before {
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    content: "\f217";
    margin-right: 6px;
}

.single-product__summary .single_add_to_cart_button:hover {
    background: #235f3d;
}

/* Variable product form wrapper: remove flex default */
.single-product__summary .variations_form .single_variation_wrap {
    display: contents;
}

/* Price element appears before qty+button visually */
.single-product__summary .variations_form .single_variation {
    margin-bottom: 14px;
}

/* Simple product form -- ensure same grid */
.single-product__summary form.cart:not(.variations_form) .quantity {
    grid-column: 1;
}

.single-product__summary form.cart:not(.variations_form) .single_add_to_cart_button {
    grid-column: 2;
}

/* --- 8. Meta --- */
.sp-meta-wrap {
    padding-top: 18px;
    border-top: 1px solid var(--border, #e0e0e0);
}

.sp-meta-wrap .product_meta {
    font-size: 11px;
    color: var(--text-light, #888);
}

.sp-meta-wrap .product_meta > span {
    display: block;
    margin-bottom: 6px;
}

.sp-meta-wrap .product_meta a {
    color: var(--primary-medium);
    transition: color 0.2s ease;
}

.sp-meta-wrap .product_meta a:hover {
    color: #1a5c38;
}

/* Meta icons via FA pseudo-elements */
.sp-meta-wrap .product_meta > span::before {
    font-family: "Font Awesome 7 Pro";
    font-weight: 400;
    margin-right: 5px;
    vertical-align: middle;
}

.sp-meta-wrap .sku_wrapper::before {
    content: "\f02a";
}

.sp-meta-wrap .posted_in::before {
    content: "\f07b";
}

.sp-meta-wrap .tagged_as::before {
    content: "\f02b";
}

/* === TABS === */
.single-product__tabs {
    margin-top: 20px;
}

.single-product__tabs .woocommerce-tabs {
    margin-bottom: 50px;
}

.single-product__tabs .wc-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--border, #e0e0e0);
    gap: 0;
}

.single-product__tabs .wc-tabs li {
    margin-bottom: -1px;
}

.single-product__tabs .wc-tabs li a {
    display: block;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light, #888);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.single-product__tabs .wc-tabs li a:hover {
    color: var(--primary-medium);
}

.single-product__tabs .wc-tabs li.active a {
    color: var(--primary-medium);
    border-bottom-color: var(--primary-medium);
}

/* Tab icons via FA pseudo-elements */
.single-product__tabs .wc-tabs li a::before {
    font-family: "Font Awesome 7 Pro";
    font-weight: 400;
    margin-right: 5px;
    vertical-align: middle;
}

.single-product__tabs .description_tab a::before {
    content: "\f15c";
}

.single-product__tabs .olympus_instructions_tab a::before {
    content: "\f02d";
}

.single-product__tabs .olympus_certifications_tab a::before {
    content: "\f0a3";
}

.single-product__tabs .olympus_replacement_tab a::before {
    content: "\f021";
}

.single-product__tabs .olympus_innovation_tab a::before {
    content: "\f0eb";
}

.single-product__tabs .additional_information_tab a::before {
    content: "\f05a";
}

.single-product__tabs .olympus_video_tab a::before {
    content: "\f03d";
}

.single-product__tabs .reviews_tab a::before {
    content: "\f005";
}

.single-product__tabs .woocommerce-Tabs-panel {
    padding: 10px 0;
}

/* Tab content headings */
.single-product__tabs .woocommerce-Tabs-panel h2 {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light, #888);
    margin-bottom: 8px;
}

/* Tab content paragraphs */
.single-product__tabs .woocommerce-Tabs-panel p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text, #5e5e5e);
}

/* Tab content lists as pills */
.single-product__tabs .woocommerce-Tabs-panel ul,
.single-product__tabs .woocommerce-Tabs-panel .shop_attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-product__tabs .woocommerce-Tabs-panel ul li {
    background: var(--bg-light, #f5f7f9);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    color: var(--text, #5e5e5e);
}

/* WC attributes table in Additional Info tab */
.single-product__tabs .shop_attributes {
    width: 100%;
    display: table;
}

.single-product__tabs .shop_attributes th,
.single-product__tabs .shop_attributes td {
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border, #e0e0e0);
    color: var(--text, #5e5e5e);
}

.single-product__tabs .shop_attributes th {
    font-weight: 600;
    color: var(--text-light, #888);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.06em;
    width: 140px;
}

.single-product__tabs .shop_attributes td p {
    margin: 0;
}

/* === RELATED PRODUCTS === */
.related.products,
.upsells.products,
section.related,
section.upsells {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border, #e0e0e0);
}

.related.products > h2,
.upsells.products > h2,
section.related > h2,
section.upsells > h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #242424;
}

/* Remove underline decoration from heading */
.related.products > h2::after,
.upsells.products > h2::after,
section.related > h2::after,
section.upsells > h2::after {
    display: none;
}

/* Grid */
.related.products ul.products,
.upsells.products ul.products,
section.related ul.products,
section.upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related.products ul.products::before,
.related.products ul.products::after,
.upsells.products ul.products::before,
.upsells.products ul.products::after {
    content: none !important;
    display: none !important;
}

/* Hide ΑΓΟΡΑ button in related/upsell cards */
.related.products .product-card__footer,
.upsells.products .product-card__footer {
    display: none;
}

/* Related cards: override border-radius to 10px */
.related.products li.product.product-card,
.upsells.products li.product.product-card {
    border-radius: 10px;
}

/* === WC BUTTON COLOR OVERRIDES === */
.woocommerce button.button.alt,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit.alt,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt,
.woocommerce a.button.alt:hover,
button[name="add-to-cart"] {
    background: var(--primary-medium) !important;
    color: #ffffff !important;
}

.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
button[name="add-to-cart"]:hover {
    background: #235f3d !important;
}

/* === REPLACEMENT CARTRIDGE CARD === */
.olympus-replacement-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 500px;
    padding: 16px;
    background: var(--bg-light, #f5f7f9);
    border-radius: 12px;
    border: 1px solid var(--border, #e0e0e0);
}

.olympus-replacement-card__image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 10px;
    background: #f2f7f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.olympus-replacement-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.olympus-replacement-card__body {
    flex: 1;
    min-width: 0;
}

.olympus-replacement-card__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #242424;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.35;
}

.olympus-replacement-card__title:hover {
    color: var(--primary-medium);
}

.olympus-replacement-card__price {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-medium);
    margin-bottom: 12px;
}

.olympus-replacement-card__price del {
    font-size: 14px;
    color: var(--text-light, #888);
    font-weight: 400;
}

.olympus-replacement-card__price ins {
    text-decoration: none;
}

.olympus-replacement-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    background: var(--primary-medium);
    color: #ffffff;
    text-decoration: none;
    transition: background 0.25s ease;
    font-family: var(--font, inherit);
    cursor: pointer;
    border: none;
}

.olympus-replacement-card__btn:hover {
    background: #235f3d;
    color: #ffffff;
}

.olympus-replacement-card__btn i {
    font-size: 12px;
}

/* === BREADCRUMB === */
.breadcrumbs--full {
    display: block;
}

.breadcrumbs--mobile {
    display: none;
    font-size: 12px;
    color: var(--text-light, #888);
    text-decoration: none;
    margin-bottom: 16px;
}

.breadcrumbs--mobile:hover {
    color: var(--primary-medium);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .single-product__top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .single-product__summary .product_title {
        font-size: 20px;
    }

    /* Tabs: horizontal scroll instead of wrapping */
    .single-product__tabs .wc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .single-product__tabs .wc-tabs::-webkit-scrollbar {
        display: none;
    }

    .single-product__tabs .wc-tabs li {
        flex-shrink: 0;
    }

    .single-product__tabs .wc-tabs li a {
        padding: 10px 14px;
        font-size: 10px;
    }

    /* Micron grid: 2x2 */
    .sp-microns {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Trust badges: 2x2 grid */
    .sp-trust {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    /* Price: smaller on mobile */
    .single-product__summary .single_variation .woocommerce-variation-price .price,
    .single-product__summary .single_variation .price,
    .sp-price-wrap .price {
        font-size: 22px;
    }

    /* Short description: no overflow */
    .single-product__summary .woocommerce-product-details__short-description {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* Breadcrumb: hide full, show mobile back link */
    .breadcrumbs--full {
        display: none;
    }

    .breadcrumbs--mobile {
        display: block;
    }

    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Replacement card: stack vertically */
    .olympus-replacement-card {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        gap: 14px;
    }

    .olympus-replacement-card__image {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .sp-trust__pill {
        font-size: 9px;
        padding: 2px 8px;
    }

    /* Micron buttons: tighter on small screens */
    .sp-micron-btn {
        padding: 8px 4px;
    }

    .sp-micron-btn__num {
        font-size: 16px;
    }

    /* Cart form: column layout on mobile */
    .single-product__summary .woocommerce-variation-add-to-cart,
    .single-product__summary form.cart:not(.variations_form) {
        grid-template-columns: 1fr;
    }

    .single-product__summary form.cart:not(.variations_form) .quantity {
        grid-column: auto;
    }

    .single-product__summary form.cart:not(.variations_form) .single_add_to_cart_button {
        grid-column: auto;
    }

    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* ============================================
   PRODUCT TAB CONTENT
   Scoped under .single-product__tabs .woocommerce-Tabs-panel
   to override default pill-style list items
   ============================================ */

/* --- Sections --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-section:first-child {
    padding-top: 0;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Section headings --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content h3 {
    font-size: 15px;
    font-weight: 500;
    color: #1a2a1e;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content h3 .section-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f0f7f2;
    color: #2d7a4f;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Desktop: bigger section numbers & headings --- */
@media (min-width: 900px) {
    .single-product__tabs .woocommerce-Tabs-panel .tab-content h3 {
        font-size: 17px;
        font-weight: 600;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .single-product__tabs .woocommerce-Tabs-panel .tab-content h3 .section-num {
        width: 30px;
        height: 30px;
        font-size: 13px;
        font-weight: 700;
        border-radius: 8px;
    }
    .single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-section {
        padding: 28px 0;
    }
    .single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-section:first-child {
        padding-top: 0;
    }
}

/* --- Paragraphs --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content p {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-intro {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.8;
}

/* --- Lists (override default pill layout) --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content ul li {
    display: block;
    position: relative;
    padding: 5px 0 5px 24px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
    background: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content ul li:last-child {
    border-bottom: none;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 7 Pro";
    font-weight: 400;
    font-size: 10px;
    color: #2d7a4f;
    position: absolute;
    left: 0;
    top: 7px;
}

/* --- Highlight boxes --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-note {
    background: #f5faf7;
    border-left: 3px solid #2d7a4f;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 14px 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: #333;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-note strong {
    font-weight: 500;
    color: #1a2a1e;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-warning {
    background: #fef8f0;
    border-left: 3px solid #e8a340;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 14px 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: #6b4e1f;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-warning strong {
    font-weight: 500;
}

/* --- Specs grid (definition list) --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-specs {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    margin: 8px 0 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-specs dt {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    background: #fafbfc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin: 0;
    display: flex;
    align-items: center;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-specs dd {
    font-size: 13px;
    font-weight: 300;
    color: #333;
    padding: 10px 14px;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-specs dt:last-of-type,
.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-specs dd:last-of-type {
    border-bottom: none;
}

/* --- Numbered steps --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-step {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-step:last-of-type {
    border-bottom: none;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f7f2;
    color: #2d7a4f;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-step-text {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: #555;
    padding-top: 3px;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-step-text strong {
    font-weight: 500;
    color: #1a2a1e;
}

/* --- Images --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content img {
    border-radius: 10px;
    margin: 12px 0;
    max-width: 100%;
    height: auto;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

/* --- CTA button --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2d7a4f;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-cta:hover {
    background: #235f3d;
    color: #fff;
}

/* --- Figure (thumbnail with lightbox) --- */
.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-figure {
    margin: 14px 0;
    text-align: left;
    display: inline-block;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-figure img {
    border-radius: 8px;
    max-height: 180px;
    width: auto;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
    transition: box-shadow 0.2s ease;
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-figure img:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-figure figcaption {
    font-size: 11px;
    font-weight: 300;
    color: #888;
    margin-top: 6px;
}

/* --- Tab image lightbox overlay --- */
.tab-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tab-lightbox-overlay.active {
    opacity: 1;
}

.tab-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.tab-lightbox-overlay .tab-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.tab-lightbox-overlay .tab-lightbox-close:hover {
    opacity: 1;
}

/* --- 2 Column Grid Layout (desktop) --- */
@media (min-width: 900px) {
    .single-product__tabs .woocommerce-Tabs-panel .tab-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 36px;
        align-items: start;
    }
    /* Intro (first section) spans full width */
    .single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-specs {
        grid-template-columns: 110px 1fr;
    }
    .single-product__tabs .woocommerce-Tabs-panel .tab-content .tab-images {
        grid-template-columns: 1fr;
    }
}
