/* Synergymax New Product Page (SMAX Style) */

.single-product-smax {
    background-color: var(--smax-bg);
    background: linear-gradient(0deg, rgba(203, 213, 218, 1) 0%, rgba(203, 213, 218, 1) 90%, rgba(203, 213, 218, 0) 98%);
    background: linear-gradient(0deg, rgba(203, 213, 218, 1) 0%, rgba(203, 213, 218, 0.7) 90%, rgba(203, 213, 218, 0) 98%);
    padding: 40px 20px;
}

.smax-product-layout {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    gap: 40px;
    align-items: center;
}

.smax-column {
    flex: 1;
    min-width: 0;
}

/* Col 1: Info (Left) */
.smax-col-info {
    flex: 0 0 clamp(280px, 28vw, 450px);
    max-width: clamp(280px, 28vw, 450px);
}

.smax-breadcrumbs {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
}

.smax-category-label {
    font-size: 22px;
    font-weight: 800;
    color: #1a2b33;
    margin-bottom: 5px;
    opacity: 0.9;
}

.smax-brand {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    opacity: 0.7;
}

.smax-title {
    font-size: clamp(36px, 4.5vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 30px;
    text-transform: uppercase;
    color: #1a2b33;
}

/* Color Swatch Row */
.smax-color-swatch-container {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #dde6e9;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.smax-color-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--smax-text);
}

.smax-color-swatch-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.smax-short-description {
    margin-bottom: 40px;
}

/* Accordions */
.smax-full-width-accordions {
    max-width: 1600px;
    margin: 50px auto;
}

.smax-accordions {
    display: flex;
    flex-direction: column;
}

.smax-accordion-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.smax-accordion-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.smax-accordion-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.smax-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--smax-text);
    border-bottom: 2px solid var(--smax-text);
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-top: -6px;
}

.smax-accordion-item.active .smax-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.smax-accordion-content {
    padding: 0 0 25px;
    display: none;
}

.smax-accordion-item.active .smax-accordion-content {
    display: block;
}

/* Col 2: Image (Center) */
.smax-col-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.smax-main-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pulse/Wave Layer Background */
.smax-image-bg-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-image: url('../img/Torus.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Animation placeholder - user will add image manually but we can add pulse animation */
    pointer-events: none;
}

.smax-main-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Vertical Gallery (Thumbnails) */
.smax-vertical-gallery {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    z-index: 5;
}

.smax-gallery-strip {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.smax-gallery-item {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.smax-gallery-item.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.smax-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smax-gallery-nav {
    background: #e9eff2;
    color: #7d8e98;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.smax-gallery-nav:hover {
    background: #dde5e9;
    color: #1a1a1a;
}

/* Chevron Icons */
.smax-gallery-nav svg {
    display: block;
    pointer-events: none;
    width: 16px;
    height: auto;
}

/* Col 3: Actions (Right) */
.smax-col-actions {
    flex: 0 0 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2vw;
}

.smax-actions-inner {
    background: transparent;
}

.smax-cart-container {
    margin-top: 20px;
}

/* Variation Swatches Styling (Volume) */
.smax-cart-container .variations {
    width: 100%;
    border: none;
}

.smax-cart-container .variations td {
    padding: 0;
    display: block;
}

.smax-cart-container .variations td.label {
    display: block !important;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0;
    font-size: 14px;
    color: #444;
}

.smax-cart-container .ux-swatches {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.smax-cart-container .ux-swatch {
    width: 60px !important;
    height: 38px !important;
    border-radius: 20px !important;
    background-color: #dee6e9;
    color: #748894;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s !important;
}

.smax-cart-container .ux-swatch:hover {
    background-color: #cfdde2;
    color: #748894;
}

.smax-cart-container .ux-swatch.selected {
    background-color: #748894;
    color: #dee6e9;
}

.smax-cart-container .single_variation_wrap>.woocommerce-variation,
.smax-cart-container .reset_variations,
.smax-cart-container .variations th.label {
    display: none !important;
}

/* Quantity and Add to Cart Row */
.smax-cart-container .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0px;
}

.smax-cart-container .quantity {
    border-radius: 25px;
    padding: 0;
    display: flex;
    align-items: center;
}

.smax-cart-container .quantity input.qty {
    border: none;
    width: 35px;
    text-align: center;
    font-weight: 700;
    background: transparent;
    font-size: 16px;
}

.smax-cart-container .single_add_to_cart_button {
    background: var(--smax-primary-gradient) !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: none !important;
    border: none !important;
    flex: 1;
    white-space: nowrap;
    min-height: 3.3rem;
}

.smax-cart-container .form-flat input:not([type=submit]),
.smax-cart-container .form-flat select,
.smax-cart-container .form-flat textarea {
    background-color: #fff;
    border-color: #fff;
    border-radius: 99px;
    box-shadow: none;
    color: currentColor !important;
    min-height: 3.3rem;
    background-color: #dee6e9;
    border-color: #dee6e9;
}

.smax-cart-container .ux-quantity.form-flat .ux-quantity__button:hover {
    background-color: #7d8e98 !important;
    border-color: #7d8e98 !important;
    color: #dee6e9 !important;
    text-shadow: none !important;
}

/* Price */
.smax-price-container {
    margin-top: 40px;
}

.smax-price-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.smax-main-price {
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
}

.smax-main-price span.amount {
    color: var(--fs-color-base);
    font-weight: 700;
    white-space: nowrap;
}

.smax-main-price ins {
    text-decoration: none;
}

/* Wholesale Section */
.smax-wholesale-notice {
    margin-top: 50px;
}

.smax-wholesale-button {
    display: inline-block;
    margin-top: 10px;
    background: #7d8e98;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}

.smax-wholesale-button:hover {
    background: #6a7a84;
}

/* Footer Section */
.smax-product-footer {
    max-width: 1600px;
    margin: 0 auto;
}

.smax-section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 50px;
    text-align: center;
    text-transform: none;
}

/* /* --- Review Section Styles (SMAX) --- */

.smax-reviews-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smax-header-stars .star-rating {
    font-size: 14px;
    width: 6.5em;
    /* WC default width for stars */
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.smax-reviews-accordion .smax-accordion-content {
    background: #e0e5e9;
    padding: 30px 20px !important;
    border-radius: 20px;
    margin-bottom: 20px;
}

.smax-reviews-container {
    max-width: 800px;
    margin-right: 0;
}

.smax-reviews-container .woocommerce-Reviews.row {
    flex-direction: column;
}

/* Hide standard WC titles inside our container if they clash */
.smax-reviews-container .woocommerce-Reviews-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left;
    color: #333;
}

.smax-reviews-container .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smax-reviews-container .commentlist li.review {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    /* Ensure no flex-row here */
}

/* Hide Avatar */
.smax-reviews-container .review .avatar {
    display: none;
}

/* Review Author Info */
.smax-reviews-container .review .meta {
    margin-bottom: 12px;
    line-height: 1.2;
}

.smax-reviews-container .review .woocommerce-review__author {
    font-weight: 700;
    font-size: 18px;
    color: var(--smax-text);
    display: block;
}

.smax-reviews-container .review .woocommerce-review__published-date {
    font-size: 13px;
    color: #999;
    display: block;
    margin-top: 5px;
}

/* Stars in Review Card (Top Right) */
.smax-reviews-container .star-rating {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 14px;
    color: #ffb400;
}

.smax-reviews-container .comment-text .description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Review Images Row */
.smax-review-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.smax-review-image-link {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    border: 1px solid #eee;
}

.smax-review-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Add Review Form (Centered Section) --- */
.smax-reviews-container #review_form_wrapper {
    background: #fff;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    text-align: center;
}

.smax-reviews-container .comment-reply-title {
    display: block;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: none;
    color: var(--smax-text);
}

/* Stars in review form — Flatsome uses ::after with fl-icons \e005 */
.smax-reviews-container p.stars {
    text-align: center;
    margin-bottom: 25px;
}

.smax-reviews-container p.stars>span {
    display: inline-flex !important;
    justify-content: center;
    gap: 6px !important;
}

.smax-reviews-container p.stars span a {
    overflow: visible !important;
    margin-left: 0 !important;
    border: none;
}

/* Force ONE star per link (Flatsome sets star-2=2 stars, star-3=3 etc.) */
.smax-reviews-container p.stars span a::after,
.smax-reviews-container p.stars span a.star-1::after,
.smax-reviews-container p.stars span a.star-2::after,
.smax-reviews-container p.stars span a.star-3::after,
.smax-reviews-container p.stars span a.star-4::after,
.smax-reviews-container p.stars span a.star-5::after {
    content: "\e005" !important;
    font-size: 32px !important;
    color: #ddd;
    margin-left: 0 !important;
}

/* Hover: fill all stars in the row */
.smax-reviews-container p.stars span:hover a::after {
    color: #ffb400 !important;
}

/* Un-fill stars after the hovered one */
.smax-reviews-container p.stars span a:hover~a::after {
    color: #ddd !important;
}

/* Selected state: color ALL stars, then un-color those AFTER active */
.smax-reviews-container p.stars.selected span a::after {
    color: #ffb400 !important;
}

.smax-reviews-container p.stars.selected span a.active~a::after {
    color: #ddd !important;
}

/* Hide standard WC labels/placeholders if needed */
.smax-reviews-container label {
    margin-bottom: 10px;
}

/* Form Fields */
.smax-reviews-container .comment-form-comment {
    margin-bottom: 20px;
    position: relative;
}

.smax-reviews-container textarea {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    font-size: 15px;
    min-height: 130px;
    background: #fdfdfd;
}

.smax-char-counter {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 12px;
    color: #bbb;
    pointer-events: none;
}

/* Photo Upload Button */
.smax-review-upload-wrapper {
    margin-bottom: 25px;
}

.smax-review-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.smax-review-upload-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.smax-upload-icon {
    width: 35px;
    height: 35px;
    background: #ffebe5;
    color: #a36b4f;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.smax-upload-text {
    font-weight: 700;
    font-size: 15px;
    color: var(--smax-text);
}

.smax-file-preview {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.smax-preview-item {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.smax-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Submit Button */
.smax-reviews-container .form-submit {
    margin-top: 20px;
}

.smax-reviews-container .submit {
    background: var(--smax-primary-gradient) !important;
    color: #fff !important;
    border-radius: 40px !important;
    padding: 15px 80px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer;
    width: auto;
    display: inline-block;
}

.smax-related-products .product-section {
    border-top: none;
}

.smax-related-products .product-section-title {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .smax-product-layout {
        flex-direction: column;
        gap: 20px;
    }

    .smax-column {
        max-width: 100% !important;
    }

    .smax-col-info {
        order: 1;
        flex: auto;
    }

    .smax-col-image {
        order: 2;
        padding: 0;
    }

    .smax-col-actions {
        order: 3;
    }

    .smax-title {
        font-size: 36px;
    }
}

/* Responsive Reviews */
@media (max-width: 768px) {
    .smax-reviews-container #review_form_wrapper {
        padding: 25px;
    }

    .smax-reviews-container .star-rating {
        position: static;
        margin-bottom: 15px;
    }
}