/**
 * AllChemists WooCommerce Custom Styles
 * Single Product Page - Clean Layout Fix
 *
 * @package AllChemists
 * @since 1.0.0
 */

/* ==========================================================================
   HARD OVERFLOW FIX — must be first
   ========================================================================== */
.single-product #page,
.single-product #content,
.single-product .site-content,
.single-product .col-full,
.single-product #primary,
.single-product .site-main,
.single-product .type-product,
.single-product div.product,
.sp-container,
.sp-main-grid,
.sp-gallery-col,
.sp-summary-col,
.sp-below-fold {
    max-width: 100%;
    box-sizing: border-box;
}

/* Kill WooCommerce default float layout completely */
.single-product div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.single-product div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Remove WooCommerce clearfix pseudo-elements that break grid */
.single-product div.product::before,
.single-product div.product::after,
.woocommerce div.product::before,
.woocommerce div.product::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   Global overflow fix
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.single-product {
    overflow-x: hidden;
}

/* ==========================================================================
   Single Product Container
   ========================================================================== */
.single-product-page {
    background: #fff;
}

.single-product-container {
    width: 100%;
}

/* Main wrapper container */
.sp-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.sp-breadcrumb {
    margin-bottom: 25px;
}

.sp-bc-nav {
    font-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.sp-bc-nav a {
    color: #4dc42a;
    text-decoration: none;
    transition: color 0.2s;
}

.sp-bc-nav a:hover {
    color: #0e3175;
}

.sp-bc-sep {
    color: #bbb;
    margin: 0 4px;
}

/* ==========================================================================
   Main Grid: Image | Summary
   ========================================================================== */
.sp-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 42px;
    align-items: start;
    margin-bottom: 60px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Gallery Column
   ========================================================================== */
.sp-gallery-col {
    width: 100%;
    min-width: 0;   /* CRITICAL: prevents grid child from overflowing */
    box-sizing: border-box;
    overflow: hidden;
}

/* WooCommerce gallery wrapper */
.sp-gallery-col .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.sp-gallery-col .woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
}

/* Main product image */
.sp-gallery-col .woocommerce-product-gallery__image {
    margin: 0 0 12px 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8eef5;
    box-shadow: 0 10px 30px rgba(14, 49, 117, 0.08);
}

.sp-gallery-col .woocommerce-product-gallery__image a {
    display: block;
}

.sp-gallery-col .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px;
    object-fit: contain;
    display: block;
    padding: 20px;
    border-radius: 14px;
}

/* Thumbnails */
.sp-gallery-col .flex-control-nav {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sp-gallery-col .flex-control-nav li {
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.25s;
    background: #f8f9fa;
}

.sp-gallery-col .flex-control-nav li:hover,
.sp-gallery-col .flex-control-nav li.flex-active {
    border-color: #4dc42a;
}

.sp-gallery-col .flex-control-nav li img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    display: block;
    padding: 5px;
    opacity: 0.75;
    transition: opacity 0.25s;
}

.sp-gallery-col .flex-control-nav li:hover img,
.sp-gallery-col .flex-control-nav li.flex-active img {
    opacity: 1;
}

/* Sale badge */
.sp-gallery-col .onsale {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    margin: 0;
}

/* Zoom icon */
.sp-gallery-col .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}

.sp-gallery-col .woocommerce-product-gallery__trigger:hover {
    background: #fff;
}

.sp-gallery-col .woocommerce-product-gallery__trigger img {
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    max-height: none !important;
}

/* ==========================================================================
   Summary Column
   ========================================================================== */
.sp-summary-col {
    width: 100%;
    min-width: 0;   /* CRITICAL: prevents grid child from overflowing */
    box-sizing: border-box;
    position: sticky;
    top: 24px;
}

.sp-summary-col .summary {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(14, 49, 117, 0.08);
}

/* Product Title */
.sp-summary-col .product_title,
.single-product .product_title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0e3175 !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.3 !important;
}

/* Star Rating */
.sp-summary-col .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.sp-summary-col .star-rating {
    color: #ffc107;
    font-size: 15px;
}

.sp-summary-col .woocommerce-review-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.sp-summary-col .woocommerce-review-link:hover {
    color: #4dc42a;
}

/* Price */
.sp-summary-col .price {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #4dc42a !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap;
}

.sp-summary-col .price del {
    color: #aaa !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.sp-summary-col .price ins {
    text-decoration: none !important;
}

/* Stock */
.sp-summary-col .stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sp-summary-col .stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.sp-summary-col .stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Short Description */
.sp-summary-col .woocommerce-product-details__short-description {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eee;
}

.sp-summary-col .woocommerce-product-details__short-description p {
    margin: 0 0 10px 0;
}

/* Add to Cart */
.sp-summary-col .cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.sp-summary-col .quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.sp-summary-col .quantity input[type="number"] {
    width: 65px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
    background: transparent;
}

.sp-summary-col .quantity input[type="number"]::-webkit-outer-spin-button,
.sp-summary-col .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sp-summary-col .single_add_to_cart_button,
.single-product .single_add_to_cart_button {
    background: #4dc42a !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    letter-spacing: 0.3px;
    text-transform: none !important;
    height: 50px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 220px;
}

.sp-summary-col .single_add_to_cart_button:hover {
    background: #3da821 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 196, 42, 0.3);
}

.sp-summary-col .single_add_to_cart_button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Variations */
.sp-summary-col .variations {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.sp-summary-col .variations td,
.sp-summary-col .variations th {
    padding: 6px 0;
    vertical-align: middle;
}

.sp-summary-col .variations label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    padding-right: 15px;
}

.sp-summary-col .variations select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e2e2;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.sp-summary-col .variations select:focus {
    border-color: #4dc42a;
    outline: none;
}

.sp-summary-col .reset_variations {
    color: #e74c3c;
    text-decoration: none;
    font-size: 12px;
    margin-top: 6px;
    display: inline-block;
}

/* Product Meta (SKU, Categories, Tags) */
.sp-summary-col .product_meta {
    padding: 18px 0 0;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}

.sp-confidence-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.sp-confidence-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px;
    background: #f7fbf6;
    border: 1px solid #dff1da;
    border-radius: 12px;
    color: #245a1d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.sp-confidence-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 999px;
    background: #4dc42a;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.sp-summary-col .product_meta > span {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.sp-summary-col .product_meta .label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.sp-summary-col .product_meta a {
    color: #4dc42a;
    text-decoration: none;
    transition: color 0.2s;
}

.sp-summary-col .product_meta a:hover {
    color: #0e3175;
}

/* ==========================================================================
   Below Fold: Tabs + Related
   ========================================================================== */
.sp-below-fold {
    width: 100%;
}

/* Tabs */
.sp-below-fold .woocommerce-tabs {
    margin-bottom: 60px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(14, 49, 117, 0.06);
    overflow: hidden;
}

.sp-below-fold .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e8eef5;
    flex-wrap: wrap;
    background: #f8fafc;
}

.sp-below-fold .woocommerce-tabs ul.tabs li {
    margin: 0;
    position: relative;
}

.sp-below-fold .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 28px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
    position: relative;
    bottom: -2px;
    white-space: nowrap;
}

.sp-below-fold .woocommerce-tabs ul.tabs li.active a,
.sp-below-fold .woocommerce-tabs ul.tabs li a:hover {
    color: #4dc42a;
    border-bottom-color: #4dc42a;
}

.sp-below-fold .woocommerce-tabs .panel {
    padding: 35px;
    background: #ffffff;
    border-radius: 0;
    border: none;
}

.sp-below-fold .woocommerce-tabs .panel h2 {
    font-size: 22px;
    color: #0e3175;
    margin: 0 0 18px 0;
}

.sp-below-fold .woocommerce-tabs .panel p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* Reviews panel */
.sp-below-fold #reviews {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.sp-below-fold #reviews h2 {
    font-size: 22px;
    color: #0e3175;
    margin-bottom: 20px;
}

.sp-below-fold .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.sp-below-fold .commentlist .comment {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.sp-below-fold .comment_container {
    display: flex;
    gap: 18px;
}

.sp-below-fold .comment-text {
    flex: 1;
    min-width: 0;
}

.sp-below-fold .comment-text .meta strong {
    color: #0e3175;
    font-size: 15px;
}

.sp-below-fold .comment-text .description p {
    color: #666;
    line-height: 1.7;
    margin: 8px 0 0;
}

/* Attributes table */
.sp-below-fold table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.sp-below-fold table.shop_attributes th,
.sp-below-fold table.shop_attributes td {
    padding: 11px 14px;
    border-bottom: 1px solid #e2e2e2;
    text-align: left;
    font-size: 14px;
}

.sp-below-fold table.shop_attributes th {
    background: #f0f0f0;
    font-weight: 600;
    color: #0e3175;
    width: 30%;
}

.sp-below-fold table.shop_attributes td {
    color: #555;
}

/* ==========================================================================
   Related / Upsell Products
   ========================================================================== */
.sp-below-fold .related.products,
.sp-below-fold .upsells.products {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8eef5;
}

.sp-below-fold .related.products > h2,
.sp-below-fold .upsells.products > h2 {
    font-size: 26px;
    color: #0e3175;
    margin-bottom: 28px;
    text-align: center;
}

.sp-below-fold .related.products ul.products,
.sp-below-fold .upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .sp-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sp-summary-col {
        position: static;
    }

    .sp-gallery-col .woocommerce-product-gallery__image img {
        max-height: 380px;
    }

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

@media (max-width: 600px) {
    .sp-container {
        padding: 20px 15px 40px;
    }

    .sp-summary-col .summary {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .sp-confidence-strip {
        grid-template-columns: 1fr;
    }

    .sp-main-grid {
        gap: 20px;
    }

    .sp-summary-col .product_title,
    .single-product .product_title {
        font-size: 22px !important;
    }

    .sp-summary-col .price {
        font-size: 24px !important;
    }

    .sp-summary-col .cart {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-summary-col .single_add_to_cart_button {
        width: 100%;
        justify-content: center;
    }

    .sp-below-fold .woocommerce-tabs ul.tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .sp-below-fold .woocommerce-tabs ul.tabs li a {
        border-bottom: 1px solid #e2e2e2;
        border-left: 3px solid transparent;
        bottom: 0;
        padding: 12px 18px;
    }

    .sp-below-fold .woocommerce-tabs ul.tabs li.active a {
        border-left-color: #4dc42a;
        border-bottom-color: #e2e2e2;
        color: #4dc42a;
    }

    .sp-below-fold .woocommerce-tabs .panel {
        padding: 22px 16px;
        border-radius: 0 0 12px 12px;
    }

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

    .sp-gallery-col .flex-control-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .sp-below-fold .comment_container {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .sp-below-fold .related.products ul.products,
    .sp-below-fold .upsells.products ul.products {
        grid-template-columns: 1fr;
    }

    .sp-gallery-col .flex-control-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Critical: Override WooCommerce default float-based gallery layout
   These rules must come last to win specificity
   ========================================================================== */

/* WooCommerce sets float:left + width:48% on gallery — kill it */
.single-product div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* WooCommerce sets float:right + width:48% on summary — kill it */
.single-product div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* Remove any clearfix that breaks grid */
.single-product div.product::after,
.woocommerce div.product::after {
    display: none !important;
}

/* Ensure the product wrapper itself doesn't overflow */
.single-product div.product,
.woocommerce div.product {
    overflow: visible !important;
}

/* Fix woocommerce-wrapper double container on single product */
.single-product .woocommerce-wrapper {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.single-product .woocommerce-wrapper > .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Prevent any element from causing horizontal scroll */
.single-product-page,
.single-product-container,
.sp-container,
.sp-main-grid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Gallery image — ensure it fills its column properly */
.sp-gallery-col .woocommerce-product-gallery {
    max-width: 100%;
}

.sp-gallery-col .woocommerce-product-gallery .woocommerce-product-gallery__image:first-child {
    display: block !important;
}

/* ==========================================================================
   Final safety net — contain any WooCommerce injected wrapper on product page
   ========================================================================== */
.single-product .woocommerce,
.single-product #content > .woocommerce,
.single-product .site-main > .woocommerce {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Contain the product div itself */
.single-product .type-product {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ==========================================================================
   Shop Archive — Product Grid & Cards
   Matches front-page.php product card design exactly
   ========================================================================== */

/* Override WooCommerce default ul.products — use our grid */
ul.ac-products-grid,
.shop-archive-section ul.ac-products-grid,
.woocommerce ul.ac-products-grid,
.woocommerce-page ul.ac-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* Each product li */
ul.ac-products-grid li.product,
ul.ac-products-grid li.ac-product-card,
.shop-archive-section ul.ac-products-grid li.product {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    position: relative;
    min-width: 0 !important;
}

ul.ac-products-grid li.product:hover,
ul.ac-products-grid li.ac-product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    border-color: #e0e0e0 !important;
}

/* Inner wrapper */
.ac-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---- Image ---- */
.ac-card-image {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.ac-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ac-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

li.ac-product-card:hover .ac-card-image img {
    transform: scale(1.05);
}

/* Badges */
.ac-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    line-height: 1;
}

.ac-badge-sale {
    background: #e91e63;
    color: #ffffff;
}

.ac-badge-featured {
    background: #4dc42a;
    color: #ffffff;
}

/* Quick actions (wishlist) */
.ac-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-card-actions .yith-wcwl-add-to-wishlist,
.ac-card-actions .add_to_wishlist {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 16px;
    color: #888;
}

.ac-card-actions .add_to_wishlist:hover {
    background: #fff0f5;
    color: #e91e63;
}

/* ---- Info ---- */
.ac-card-info {
    padding: 16px 16px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-card-vendor {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

.ac-card-vendor a {
    color: #4dc42a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ac-card-vendor a:hover {
    color: #0e3175;
}

.ac-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.ac-card-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.ac-card-title a:hover {
    color: #4dc42a !important;
}

.ac-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.ac-card-rating .star-rating {
    font-size: 13px;
    color: #ffc107;
}

.ac-rating-count {
    color: #999;
    font-size: 12px;
}

.ac-card-price {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0e3175 !important;
    margin: 4px 0 0 !important;
    line-height: 1.2;
}

.ac-card-price del {
    font-size: 15px !important;
    color: #aaa !important;
    font-weight: 500 !important;
    margin-right: 6px;
}

.ac-card-price ins {
    text-decoration: none !important;
}

/* ---- Footer / Buttons ---- */
.ac-card-footer {
    padding: 10px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* Add to cart / Read more button */
.ac-card-footer .ac-btn-cart,
.ac-card-footer .button,
.ac-card-footer a.button,
.ac-card-footer .added_to_cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 16px !important;
    background: #ffffff !important;
    color: #0e3175 !important;
    border: 2px solid #0e3175 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box !important;
    line-height: 1 !important;
    text-align: center !important;
    margin: 0 !important;
}

.ac-card-footer .ac-btn-cart:hover,
.ac-card-footer .button:hover,
.ac-card-footer a.button:hover,
.ac-card-footer .added_to_cart:hover {
    background: #0e3175 !important;
    color: #ffffff !important;
}

/* Compare button */
.ac-card-footer .compare,
.ac-card-footer .yith-woocompare-add-button a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 38px !important;
    padding: 0 12px !important;
    background: transparent !important;
    color: #888 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.ac-card-footer .compare:hover,
.ac-card-footer .yith-woocompare-add-button a:hover {
    border-color: #4dc42a !important;
    color: #4dc42a !important;
}

/* ==========================================================================
   Shop Toolbar (result count + sorting)
   ========================================================================== */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shop-toolbar .woocommerce-result-count {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.shop-toolbar .woocommerce-ordering {
    margin: 0;
}

.shop-toolbar .woocommerce-ordering select {
    padding: 9px 14px;
    border: 2px solid #e2e2e2;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
}

.shop-toolbar .woocommerce-ordering select:focus {
    border-color: #4dc42a;
}

/* ==========================================================================
   Shop Pagination
   ========================================================================== */
.shop-pagination {
    margin-top: 40px;
    text-align: center;
}

.shop-pagination .woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.shop-pagination .woocommerce-pagination ul li {
    margin: 0;
}

.shop-pagination .woocommerce-pagination ul li a,
.shop-pagination .woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e8e8e8;
    transition: all 0.25s;
}

.shop-pagination .woocommerce-pagination ul li a:hover,
.shop-pagination .woocommerce-pagination ul li span.current {
    background: #4dc42a;
    color: #ffffff;
    border-color: #4dc42a;
}

/* ==========================================================================
   Consultation CTA
   ========================================================================== */
.shop-consultation-cta {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f0faf0 0%, #e8f4ff 100%);
    border-radius: 12px;
    border: 1px solid #d4edda;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    ul.ac-products-grid,
    .shop-archive-section ul.ac-products-grid,
    .woocommerce ul.ac-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 640px) {
    ul.ac-products-grid,
    .shop-archive-section ul.ac-products-grid,
    .woocommerce ul.ac-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .ac-card-title {
        font-size: 13px !important;
        min-height: 36px;
    }

    .ac-card-price {
        font-size: 18px !important;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    ul.ac-products-grid,
    .shop-archive-section ul.ac-products-grid,
    .woocommerce ul.ac-products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Product Card — content-product.php (.product-card-item)
   ========================================================================== */

/* Shop archive wrapper */
.shop-archive-wrapper {
    padding: 0;
}

.shop-archive-wrapper .container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Page header */
.shop-page-header {
    background: linear-gradient(135deg, #0a1628 0%, #0e3175 60%, #2d8a1e 100%);
    margin: -40px -15px 35px;
    padding: 50px 15px;
    text-align: center;
    border-radius: 0;
}

.shop-page-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
}

.shop-page-header .page-breadcrumb {
    justify-content: center;
}

/* Card item */
li.product-card-item {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
}

li.product-card-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    border-color: #e0e0e0 !important;
}

.pc-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image */
.pc-image {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.pc-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.pc-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 16px !important;
    display: block !important;
    transition: transform 0.4s ease !important;
    box-sizing: border-box !important;
    aspect-ratio: unset !important;
    background: transparent !important;
}

li.product-card-item:hover .pc-image img {
    transform: scale(1.05) !important;
}

/* Badge */
.pc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    line-height: 1;
}

.pc-badge.sale     { background: #e91e63; color: #fff; }
.pc-badge.featured { background: #4dc42a; color: #fff; }

/* Info */
.pc-info {
    padding: 14px 16px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pc-vendor {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

.pc-vendor a {
    color: #4dc42a;
    text-decoration: none;
    font-weight: 600;
}

.pc-vendor a:hover { color: #0e3175; }

.pc-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 40px;
}

.pc-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.pc-title a:hover { color: #4dc42a !important; }

.pc-rating { font-size: 13px; }

.pc-price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0e3175 !important;
    margin: 4px 0 0 !important;
    line-height: 1.2;
}

.pc-price del {
    font-size: 14px !important;
    color: #aaa !important;
    font-weight: 500 !important;
    margin-right: 5px;
}

.pc-price ins { text-decoration: none !important; }

/* Footer / Button */
.pc-footer {
    padding: 8px 14px 14px;
    margin-top: auto;
}

.pc-footer .button,
.pc-footer a.button,
.pc-footer .added_to_cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    color: #0e3175 !important;
    border: 2px solid #0e3175 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.pc-footer .button:hover,
.pc-footer a.button:hover,
.pc-footer .added_to_cart:hover {
    background: #0e3175 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .pc-title { font-size: 13px !important; }
    .pc-price  { font-size: 17px !important; }
}

@media (max-width: 400px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   FINAL FIX — ul.products.ac-grid
   loop-start.php override se yeh class aayegi
   ========================================================================== */
ul.products.ac-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    width: 100% !important;
    clear: none !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Kill WooCommerce clearfix on this grid */
ul.products.ac-grid::before,
ul.products.ac-grid::after {
    display: none !important;
    content: none !important;
}

/* Each card */
ul.products.ac-grid li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
    min-width: 0 !important;
}

ul.products.ac-grid li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    border-color: #e0e0e0 !important;
}

@media (max-width: 1024px) {
    ul.products.ac-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 700px) {
    ul.products.ac-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}
@media (max-width: 400px) {
    ul.products.ac-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Quick Comparison Table — WPC Smart Compare
   ========================================================================== */

section.woosc-quick-table {
    margin: 40px 0;
    padding: 0;
}

section.woosc-quick-table h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0e3175 !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woosc-quick-table-products {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.woosc-quick-table .woosc_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    background: transparent !important;
}

.woosc-quick-table .woosc_table thead th.th-label {
    width: 130px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.woosc-quick-table .woosc_table thead th.col {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-bottom: none !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 16px 12px !important;
    text-align: center !important;
    vertical-align: top !important;
}

.woosc-quick-table .woosc_table thead th.col a {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0e3175 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
}

.woosc-quick-table .woosc_table thead th.col a:hover {
    color: #4dc42a !important;
}

.woosc-quick-table .woosc_table tbody tr:last-child td.col {
    border-radius: 0 0 16px 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.woosc-quick-table .woosc_table tbody td.td-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 8px 10px 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.woosc-quick-table .woosc_table tbody td.col {
    background: #ffffff !important;
    border-left: 1px solid #f0f0f0 !important;
    border-right: 1px solid #f0f0f0 !important;
    border-top: 1px solid #f5f5f5 !important;
    border-bottom: none !important;
    padding: 10px 12px !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    color: #333 !important;
}

.woosc-quick-table .woosc_table tbody tr.tr-even td.col {
    background: #fafafa !important;
}

.woosc-quick-table .woosc_table td.col img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 120px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
}

.woosc-quick-table .woosc_table td.col .price,
.woosc-quick-table .woosc_table td.col .woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #4dc42a !important;
}

.woosc-quick-table .woosc_table td.col .price del {
    font-size: 13px !important;
    color: #aaa !important;
    font-weight: 500 !important;
}

.woosc-quick-table .woosc_table td.col .stock.in-stock {
    color: #155724 !important;
    background: #d4edda !important;
    padding: 3px 10px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.woosc-quick-table .woosc_table td.col .stock.out-of-stock {
    color: #721c24 !important;
    background: #f8d7da !important;
    padding: 3px 10px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.woosc-quick-table .woosc_table td.col .button,
.woosc-quick-table .woosc_table td.col a.button,
.woosc-quick-table .woosc_table td.col .add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    background: #ffffff !important;
    color: #0e3175 !important;
    border: 2px solid #0e3175 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    white-space: nowrap !important;
    height: auto !important;
    margin: 0 !important;
    width: auto !important;
}

.woosc-quick-table .woosc_table td.col .button:hover,
.woosc-quick-table .woosc_table td.col a.button:hover {
    background: #0e3175 !important;
    color: #ffffff !important;
}

.woosc-quick-table .woosc_table td.col .star-rating {
    margin: 0 auto !important;
    float: none !important;
    display: inline-block !important;
}

.woosc-quick-table .woosc_table th.th-placeholder,
.woosc-quick-table .woosc_table td.td-placeholder {
    background: transparent !important;
    border: none !important;
}

@media (max-width: 768px) {
    .woosc-quick-table .woosc_table thead th.th-label { width: 80px !important; }
    .woosc-quick-table .woosc_table thead th.col,
    .woosc-quick-table .woosc_table tbody td.col { padding: 8px !important; }
    section.woosc-quick-table h2 { font-size: 20px !important; }
}

/* Single product final polish */
.single-product .sp-summary-col .summary.entry-summary {
    padding: 30px 34px 32px !important;
}

.single-product .sp-summary-col .product_title,
.single-product .sp-summary-col .price,
.single-product .sp-summary-col .stock,
.single-product .sp-summary-col .woocommerce-product-details__short-description,
.single-product .sp-summary-col .cwginstock-subscribe-form {
    text-align: left !important;
}

.single-product .sp-summary-col .woocommerce-product-details__short-description ul,
.single-product .sp-summary-col .woocommerce-product-details__short-description ol {
    margin-left: 0;
    padding-left: 24px;
}

.single-product .sp-summary-col .cwginstock-subscribe-form {
    max-width: 460px;
    margin: 22px 0 0 !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form .panel,
.single-product .sp-summary-col .cwginstock-subscribe-form .panel-body,
.single-product .sp-summary-col .cwginstock-subscribe-form .row,
.single-product .sp-summary-col .cwginstock-subscribe-form [class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

.single-product .sp-summary-col .cwginstock-panel-heading h4 {
    text-align: left !important;
    margin: 0 0 12px !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form .form-group,
.single-product .sp-summary-col .cwginstock-subscribe-form .center-block {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form input[type="text"],
.single-product .sp-summary-col .cwginstock-subscribe-form input[type="email"],
.single-product .sp-summary-col .cwginstock-subscribe-form input[type="tel"] {
    text-align: left !important;
}

.single-product .sp-summary-col .cwgstock_button {
    display: inline-flex !important;
    justify-content: center;
    width: auto !important;
    min-width: 180px;
}

@media (max-width: 600px) {
    .single-product .sp-summary-col .summary.entry-summary {
        padding: 22px 18px 24px !important;
    }

    .single-product .sp-summary-col .cwgstock_button {
        width: 100% !important;
    }
}

/* Back in stock form: theme styling */
.single-product .sp-summary-col .cwginstock-subscribe-form {
    width: 100% !important;
    max-width: 430px !important;
    margin: 22px 0 18px !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form .cwginstock-panel-primary,
.single-product .sp-summary-col .cwginstock-subscribe-form .panel-primary {
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #dbe8f4 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(14, 49, 117, 0.08) !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form .cwginstock-panel-heading,
.single-product .sp-summary-col .cwginstock-subscribe-form .panel-heading {
    padding: 16px 18px !important;
    background: #f7fbf6 !important;
    border: 0 !important;
    border-bottom: 1px solid #dff1da !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form .cwginstock-panel-heading h4,
.single-product .sp-summary-col .cwginstock-subscribe-form .panel-heading h4 {
    color: #0e3175 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-align: left !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form .cwginstock-panel-body,
.single-product .sp-summary-col .cwginstock-subscribe-form .panel-body {
    padding: 18px !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form .form-group {
    margin-bottom: 12px !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form input[type="text"],
.single-product .sp-summary-col .cwginstock-subscribe-form input[type="email"],
.single-product .sp-summary-col .cwginstock-subscribe-form input[type="tel"] {
    width: 100% !important;
    height: 46px !important;
    margin: 0 0 12px !important;
    padding: 11px 14px !important;
    background: #ffffff !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 10px !important;
    color: #25364a !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    box-shadow: none !important;
}

.single-product .sp-summary-col .cwginstock-subscribe-form input[type="text"]:focus,
.single-product .sp-summary-col .cwginstock-subscribe-form input[type="email"]:focus,
.single-product .sp-summary-col .cwginstock-subscribe-form input[type="tel"]:focus {
    border-color: #4dc42a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(77, 196, 42, 0.16) !important;
}

.single-product .sp-summary-col .cwgstock_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 180px !important;
    height: 46px !important;
    padding: 12px 24px !important;
    background: #4dc42a !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(77, 196, 42, 0.26) !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.single-product .sp-summary-col .cwgstock_button:hover,
.single-product .sp-summary-col .cwgstock_button:focus {
    background: #3da821 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px rgba(77, 196, 42, 0.32) !important;
}

.single-product .sp-summary-col .cwgstock_output {
    margin-top: 10px !important;
    font-size: 13px !important;
}

.single-product .sp-summary-col .woosc-btn,
.single-product .sp-summary-col .woosw-btn,
.single-product .sp-summary-col .woosw-btn a,
.single-product .sp-summary-col a.woosc-btn,
.single-product .sp-summary-col a.woosw-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    margin: 0 8px 8px 0 !important;
    padding: 9px 16px !important;
    background: #ffffff !important;
    color: #0e3175 !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.single-product .sp-summary-col .woosc-btn:hover,
.single-product .sp-summary-col .woosw-btn:hover,
.single-product .sp-summary-col .woosw-btn a:hover {
    background: #f7fbf6 !important;
    border-color: #4dc42a !important;
    color: #245a1d !important;
}

/* Single product lower tabs: clean readable section */
.single-product .sp-below-fold .woocommerce-tabs {
    margin-top: 12px !important;
    margin-bottom: 52px !important;
    background: #ffffff !important;
    border: 1px solid #e4edf6 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(14, 49, 117, 0.06) !important;
    overflow: hidden !important;
}

.single-product .sp-below-fold .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 14px !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border: 0 !important;
    border-bottom: 1px solid #e4edf6 !important;
    list-style: none !important;
}

.single-product .sp-below-fold .woocommerce-tabs ul.tabs::before,
.single-product .sp-below-fold .woocommerce-tabs ul.tabs::after,
.single-product .sp-below-fold .woocommerce-tabs ul.tabs li::before,
.single-product .sp-below-fold .woocommerce-tabs ul.tabs li::after {
    content: none !important;
    display: none !important;
}

.single-product .sp-below-fold .woocommerce-tabs ul.tabs li {
    float: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.single-product .sp-below-fold .woocommerce-tabs ul.tabs li a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #dbe6f0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    position: static !important;
}

.single-product .sp-below-fold .woocommerce-tabs ul.tabs li.active a,
.single-product .sp-below-fold .woocommerce-tabs ul.tabs li a:hover,
.single-product .sp-below-fold .woocommerce-tabs ul.tabs li a:focus {
    background: #4dc42a !important;
    color: #ffffff !important;
    border-color: #4dc42a !important;
    box-shadow: 0 8px 18px rgba(77, 196, 42, 0.22) !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel {
    padding: 34px 42px 42px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #4b5563 !important;
    text-align: left !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel,
.single-product .sp-below-fold .woocommerce-tabs .panel * {
    text-align: left !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel h2,
.single-product .sp-below-fold .woocommerce-tabs .panel h3,
.single-product .sp-below-fold .woocommerce-tabs .panel h4 {
    color: #0e3175 !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel h2 {
    margin: 0 0 22px !important;
    font-size: 26px !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel h3 {
    margin: 28px 0 12px !important;
    font-size: 20px !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel h4 {
    margin: 22px 0 10px !important;
    font-size: 17px !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel p,
.single-product .sp-below-fold .woocommerce-tabs .panel li {
    max-width: 980px;
    color: #4f5661 !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel p {
    margin: 0 0 18px !important;
}

.single-product .sp-below-fold .woocommerce-tabs .panel ul,
.single-product .sp-below-fold .woocommerce-tabs .panel ol {
    max-width: 980px;
    margin: 0 0 22px 0 !important;
    padding-left: 24px !important;
}

.single-product .sp-below-fold .woocommerce-tabs table.shop_attributes {
    margin-top: 8px !important;
    border: 1px solid #e4edf6 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .single-product .sp-below-fold .woocommerce-tabs ul.tabs {
        gap: 6px !important;
        padding: 12px !important;
    }

    .single-product .sp-below-fold .woocommerce-tabs ul.tabs li a {
        min-height: 38px !important;
        padding: 9px 13px !important;
        font-size: 13px !important;
    }

    .single-product .sp-below-fold .woocommerce-tabs .panel {
        padding: 24px 18px 30px !important;
    }

    .single-product .sp-below-fold .woocommerce-tabs .panel h2 {
        font-size: 22px !important;
    }
}

/* Quick Comparison final layout */
.single-product section.woosc-quick-table {
    max-width: 1216px !important;
    margin: 54px auto 10px !important;
    padding: 0 8px !important;
}

.single-product section.woosc-quick-table h2 {
    margin: 0 0 22px !important;
    color: #0e3175 !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

.single-product .woosc-quick-table-products {
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    border-radius: 16px !important;
    -webkit-overflow-scrolling: touch;
}

.single-product .woosc-quick-table .woosc_table {
    width: 100% !important;
    min-width: 980px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e4edf6 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 28px rgba(14, 49, 117, 0.06) !important;
}

.single-product .woosc-quick-table.label-column-no .woosc_table .th-label,
.single-product .woosc-quick-table.label-column-no .woosc_table .td-label,
.single-product .woosc-quick-table .woosc_table .th-placeholder,
.single-product .woosc-quick-table .woosc_table .td-placeholder {
    display: none !important;
}

.single-product .woosc-quick-table .woosc_table thead th.col {
    height: 108px !important;
    padding: 20px 18px 16px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-right: 1px solid #e8eef5 !important;
    border-bottom: 1px solid #e8eef5 !important;
    border-radius: 0 !important;
    vertical-align: middle !important;
}

.single-product .woosc-quick-table .woosc_table thead th.col:last-child,
.single-product .woosc-quick-table .woosc_table tbody td.col:last-child {
    border-right: 0 !important;
}

.single-product .woosc-quick-table .woosc_table thead th.col a {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #0e3175 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.single-product .woosc-quick-table .woosc_table tbody td.col {
    min-height: 54px !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-right: 1px solid #e8eef5 !important;
    border-bottom: 1px solid #edf2f7 !important;
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.single-product .woosc-quick-table .woosc_table tbody tr:nth-child(even) td.col {
    background: #fbfcfe !important;
}

.single-product .woosc-quick-table .woosc_table tbody tr:last-child td.col {
    border-bottom: 0 !important;
    border-radius: 0 !important;
}

.single-product .woosc-quick-table .woosc_table tbody tr.tr-image td.col {
    height: 174px !important;
    padding: 18px !important;
    background: #ffffff !important;
}

.single-product .woosc-quick-table .woosc_table td.col img {
    width: 100% !important;
    max-width: 150px !important;
    height: 126px !important;
    max-height: 126px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.single-product .woosc-quick-table .woosc_table tbody tr.tr-sku td.col {
    color: #334155 !important;
    font-size: 14px !important;
}

.single-product .woosc-quick-table .woosc_table tbody tr.tr-price td.col {
    height: 64px !important;
}

.single-product .woosc-quick-table .woosc_table td.col .price,
.single-product .woosc-quick-table .woosc_table td.col .woocommerce-Price-amount {
    color: #4dc42a !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.single-product .woosc-quick-table .woosc_table td.col .price del,
.single-product .woosc-quick-table .woosc_table td.col del {
    color: #8a94a6 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    margin-right: 6px !important;
}

.single-product .woosc-quick-table .woosc_table td.col .price ins,
.single-product .woosc-quick-table .woosc_table td.col ins {
    text-decoration: none !important;
}

.single-product .woosc-quick-table .woosc_table td.col .stock,
.single-product .woosc-quick-table .woosc_table td.col .stock.in-stock,
.single-product .woosc-quick-table .woosc_table td.col .stock.out-of-stock {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.single-product .woosc-quick-table .woosc_table td.col .stock.in-stock {
    background: #dff4dc !important;
    color: #1f6f18 !important;
}

.single-product .woosc-quick-table .woosc_table td.col .stock.out-of-stock {
    background: #f8d2d7 !important;
    color: #9b111e !important;
}

.single-product .woosc-quick-table .woosc_table tbody tr.tr-add_to_cart td.col {
    height: 66px !important;
}

.single-product .woosc-quick-table .woosc_table tbody tr.tr-add_to_cart td p,
.single-product .woosc-quick-table .woosc_table tbody tr.tr-add_to_cart td .add_to_cart_inline {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.single-product .woosc-quick-table .woosc_table td.col .button,
.single-product .woosc-quick-table .woosc_table td.col a.button,
.single-product .woosc-quick-table .woosc_table td.col .add_to_cart_button {
    min-width: 124px !important;
    min-height: 40px !important;
    padding: 10px 18px !important;
    background: #ffffff !important;
    color: #0e3175 !important;
    border: 2px solid #0e3175 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.single-product .woosc-quick-table .woosc_table td.col .button:hover,
.single-product .woosc-quick-table .woosc_table td.col a.button:hover,
.single-product .woosc-quick-table .woosc_table td.col .add_to_cart_button:hover {
    background: #0e3175 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.single-product .woosc-quick-table .woosc_table td.col:empty,
.single-product .woosc-quick-table .woosc_table td.col:has(> .woosc-empty) {
    color: #94a3b8 !important;
}

@media (max-width: 768px) {
    .single-product section.woosc-quick-table {
        margin-top: 36px !important;
        padding: 0 !important;
    }

    .single-product section.woosc-quick-table h2 {
        font-size: 22px !important;
    }

    .single-product .woosc-quick-table .woosc_table {
        min-width: 760px !important;
    }

    .single-product .woosc-quick-table .woosc_table thead th.col {
        padding: 16px 12px !important;
    }

    .single-product .woosc-quick-table .woosc_table tbody td.col {
        padding: 12px 10px !important;
    }
}
