.spw-shop {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.spw-banner {
    position: relative;

    border-radius: 0;
    margin-bottom: 28px;
    overflow: hidden;
    display: block;
}

.spw-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.spw-banner-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    margin: -12px 0 24px;
}

.spw-banner-mosaic-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f7;
    min-height: 120px;
}

.spw-banner-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spw-banner-mosaic-item.is-slot-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.spw-banner-mosaic-item.is-slot-2 {
    grid-column: 2;
    grid-row: 1;
}

.spw-banner-mosaic-item.is-slot-3 {
    grid-column: 3;
    grid-row: 1;
}

.spw-banner-mosaic-item.is-slot-4 {
    grid-column: 2;
    grid-row: 2;
}

.spw-banner-mosaic-item.is-slot-5 {
    grid-column: 3;
    grid-row: 2;
}

.spw-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-bottom: 24px;
}

.spw-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
}

.spw-tab {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.spw-tab.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.spw-products {
    min-height: 240px;
}

.spw-products.is-loading {
    opacity: 1 !important;
}

.spw-grid>.spw-card {
    transform-origin: center top;
}


.spw-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    justify-items: stretch;
}

.products[class*='wc-col'] {

    gap: 15px !important;
    padding: 20px !important;
}

.wc-col-4>* {
    flex: 0 0 24% !important;
    max-width: 24% !important;
}





.spw-grid .spw-card {
    position: relative;
}

.spw-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    height: 100%;
    opacity: 1 !important;
    width: 100%;
    max-width: 280px;
}

/* Apply shop card styling to all WooCommerce grids */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    padding: 0;
    text-align: left;
    width: 100%;
    max-width: 280px;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: contain;
    background: #f7f7f7;
    padding: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 19px;
    font-weight: 600;
    color: #000;
    padding: 10px 12px 0;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    padding: 6px 12px 12px;
    font-weight: 700;
    color: #111;
}

.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating {
    margin: 6px 12px;
    color: #DE7921;
}

@media (max-width: 1024px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .woocommerce ul.products li.product a img,
    .woocommerce-page ul.products li.product a img {
        height: 300px;
    }
}

@media (max-width: 768px) {

    .spw-banner-mosaic {
        grid-template-columns: 1.7fr 1fr 1fr;
        grid-template-rows: repeat(2, minmax(110px, 1fr));
        gap: 8px;
        margin-top: -10px;
    }
    .spw-banner-mosaic-item {
        border-radius: 8px;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .woocommerce ul.products li.product a img,
    .woocommerce-page ul.products li.product a img {
        height: 260px;
    }
}

@media (max-width: 480px) {

    .spw-banner-mosaic {
        grid-template-columns: 1.5fr 1fr 1fr;
        grid-template-rows: repeat(2, minmax(84px, 1fr));
        gap: 6px;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce-page ul.products li.product a img {
        height: 240px;
    }
}



.spw-card-media {
    position: relative;
    /* aspect-ratio: 3 / 4; */
    height: 350px !important;
    padding: 10px;

    background: #F7F7F7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.spw-card-category {
    position: absolute;
    right: 12px;
    left: auto;
    bottom: -2%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Block woocommerce cart */
.e-ct-outer .wp-block-woocommerce-cart {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
}

/* Block components product metadata */
.wp-block-woocommerce-cart-line-items-block tr .wc-block-components-product-metadata {
    display: none;
}

/* Division */
.wp-block-woocommerce-filled-cart-block .wp-block-woocommerce-cart-totals-block .wp-block-woocommerce-cart-order-summary-block {
    box-shadow: none !important;

}

/* Block checkout */
.e-ct-outer .wp-block-woocommerce-checkout .wc-block-checkout {
    padding: 25px !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
}

.wp-block-woocommerce-checkout .wc-block-checkout .wp-block-woocommerce-checkout-fields-block {
    padding-right: 10px;

}

/* Block components product metadata */
.wp-block-woocommerce-checkout-order-summary-cart-items-block div .wc-block-components-product-metadata {
    display: none !important;

}



.spw-card-badges {
    position: absolute;
    left: 13px !important;
    right: auto;
    top: 10px;
    display: flex;
    flex-direction: column;


    z-index: 999;

    gap: 6px;
    align-items: flex-start;
}

.spw-card-badges.is-left {
    left: 10px;
    right: auto;
    align-items: flex-start;
}

.spw-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    border-radius: 4px 4px 4px 0;
}

.spw-badge.is-sale {
    background: #c62828;
}

.spw-badge.is-featured {
    background: #2e7d32;
}

.spw-badge.is-trending {
    background: #1e88e5;
}

.spw-badge.is-new {
    background: #f59e0b;
}

.spw-card-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;

}

.spw-card-title {
    display: block;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
    font-family: "poppins", Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spw-card-price {
    font-weight: 700;
    color: #2f2f2f;

    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.spw-price-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spw-stock-inline {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: #e9f7ef;
    color: #1e7e34;
}

.spw-stock-inline.is-outofstock {
    background: #fdecea;
    color: #b00020;
}

.spw-stock-inline.is-onbackorder {
    background: #fff3cd;
    color: #8a6d3b;
}

.spw-stock-block {
    display: none;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: #e9f7ef;
    color: #1e7e34;
}

.spw-stock-block.is-outofstock {
    background: #fdecea;
    color: #b00020;
}

.spw-stock-block.is-onbackorder {
    background: #fff3cd;
    color: #8a6d3b;
}

.spw-cart-icon {
    margin-left: auto;
}

.spw-price-sale {
    font-weight: 700;
    color: #111;
}

.spw-price-regular {
    font-weight: 700;
}

.spw-card-rating {

    display: flex;
    align-items: center;
}

.spw-card-rating .star-rating {
    font-size: 14px;
    color: #DE7921;
}

.spw-rating-count {
    font-size: 12px;
    color: #555;
}

.spw-rating-meta {
    font-size: 12px;
    color: #555;
}

.spw-price-off {
    color: #d20a0a;
    font-weight: 700;
}

.spw-card-mrp {
    font-size: 12px;
    color: #666;
    text-decoration: line-through;

}

.spw-card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    line-height: 1;
}

.spw-stock {
    display: inline-block;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 999px;
    background-color: #22c55e20;
    color: #00ae40;
    border: 1px solid #22c55e40;
}

.spw-stock.is-outofstock {
    background: #b0002020;
    color: #b00020;
    border: 1px solid #b0002040;
}

.spw-stock.is-onbackorder {
    background: #fff3cd;
    color: #8a6d3b;
}

.spw-cart-icon {
    width: 34px;
    height: 34px;
    background: #f6c90e;
    /* background: #5649FF; */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.spw-cart-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: #f1b700;
}

.spw-cart-icon.is-clicked {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.spw-cart-icon-svg {
    width: 18px;
    height: 18px;
    fill: #000;
}

.spw-empty {
    padding: 40px 0;
    text-align: center;
    color: #777;
}

.woocommerce #add-cart-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.woocommerce #add-cart-popup:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.spw-cart-open>*:not(#add-cart-popup) {
    filter: blur(6px);
}

.woocommerce #add-cart-popup .add-cart-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: spw-pop-in 0.12s ease-out;
}

@keyframes spw-pop-in {
    from {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.8;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}


.spw-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.spw-pagination-info {
    font-weight: 400;
    color: #333;
}

.spw-pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.spw-page {
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 600;
}

.spw-page.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.spw-page.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Single Product Layout */
.spw-single {
    max-width: 1200px;
    margin: 20px auto 60px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    /* box-shadow: 0 12px 32px rgba(0,0,0,0.02); */

}

.spw-single-container {
    display: grid;
    grid-template-columns: 25% 47% 25%;
    gap: 16px;
    align-items: start;
}

.spw-single-gallery {
    /* background: #fff;
    border: 1px solid #eee;
    border-radius: 16px; */
    padding: 18px;
    /* box-shadow: 0 12px 32px rgba(0,0,0,0.06); */
    height: 100%;
    position: relative;
}

/* Side thumbnails gallery */
.spw-single-gallery .woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    position: relative;
}

.spw-single-gallery .woocommerce-product-gallery__wrapper img,
.spw-single-gallery .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main image area sizing */
.spw-single-gallery .woocommerce-product-gallery__wrapper {
    width: 100%;
}

.spw-single-gallery .woocommerce-product-gallery__image {
    width: 100%;
}

.spw-single-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 6px;
}


.spw-single-gallery .flex-control-nav.flex-control-thumbs,
.spw-single-gallery .flex-control-thumbs {
    order: 2;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    padding: 6px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spw-single-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar,
.spw-single-gallery .flex-control-thumbs::-webkit-scrollbar {
    height: 0;
    width: 0;
}

.spw-single-gallery .flex-control-nav.flex-control-thumbs li,
.spw-single-gallery .flex-control-thumbs li {
    width: 100px !important;
    height: 100px !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

.spw-single-gallery .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid #eee;
    border-radius: 10px;
    object-fit: cover;
}

.spw-single-gallery .flex-control-nav {
    display: block !important;
}

.spw-single-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.spw-preview-book-wrap {
    margin: 0;
    display: flex;
    justify-content: center;
    width: auto;
}

.spw-single-gallery .woocommerce-product-gallery>.spw-preview-book-wrap {
    position: absolute;
    right: -2px;
    bottom: 220px;
    z-index: 18;
}

.spw-preview-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    background: #ffffff;
    color: #161616;
    padding: 6px 10px;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.spw-preview-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.1);
}

.spw-preview-book-icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    font-weight: 700;
    color: #dc2626;
}

.spw-preview-book-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.spw-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
}

.spw-pdf-modal.is-open {
    display: block;
}

.spw-pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.spw-pdf-modal-panel {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    z-index: 2147483001;
}

.spw-pdf-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.spw-pdf-modal-content {
    width: 100%;
    height: 100%;
    background: #f1f2f6;
    padding: 56px 16px 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.spw-pdf-viewer-shell {
    width: clamp(280px, 34vw, 560px);
    max-width: 88vw;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.spw-pdf-viewer {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

body.spw-pdf-open {
    overflow: hidden;
}

.spw-single-summary {
    /* background: #fff;
    border: 1px solid #eee;
    border-radius: 16px; */
    padding: 18px;
    /* box-shadow: 0 12px 32px rgba(0,0,0,0.06); */

}

.spw-single-pricing {}

.p.stock.in-stock {
    background: #e9f7ef !important;
    color: #1e7e34 !important;
    border: 1px solid #e9f7ef40 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
}

.product_meta {

    gap: 0px !important;
    padding-top: 5px !important;
}


.spw-price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.spw-buy-now-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 14px;
    margin-top: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.spw-buy-now-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 10px;
}

.spw-buy-now-buttons {
    display: grid;
    gap: 9px;
}

.spw-buy-now-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: #111;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.spw-buy-now-btn:hover {
    transform: translateY(-1px);
}

.spw-buy-now-btn.is-amazon {
    background: linear-gradient(180deg, #ffd84e 0%, #f5be1a 100%);
}

.spw-buy-now-btn.is-flipkart {
    background: linear-gradient(180deg, #2f88ff 0%, #1366da 100%);
    color: #fff;
}

.spw-buy-now-btn.is-meesho {
    background: linear-gradient(180deg, #ff3f98 0%, #d70d79 100%);
    color: #fff;
}

.spw-buy-now-logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 30px;
}

.spw-buy-now-btn.is-amazon .spw-buy-now-logo {
    background: #1a202c;
}

.spw-buy-now-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 2px;
}

.spw-buy-now-copy small {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.95;
}

.spw-buy-now-copy strong {
    font-size: 20px;
    font-weight: 600;
}

.spw-price-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;

}


.spw-single-breadcrumbs {
    display: block !important;
}

.spw-price-card .price {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.spw-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.spw-price-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #111;
    font-size: 22px;
}

.spw-price-sale {
    font-weight: 700;
    color: #111;
}

.spw-price-off {
    color: #d20a0a;
    font-weight: 700;
    font-size: 16px;
}

.spw-price-stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e9f7ef;
    color: #1e7e34;
    font-weight: 700;
    font-size: 12px;
}

.spw-price-stock-pill.is-outofstock {
    background: #fdecea;
    color: #b00020;
}

.spw-price-stock-pill.is-onbackorder {
    background: #fff3cd;
    color: #8a6d3b;
}

.spw-price-cart-icon {
    margin-left: auto;
    width: 34px;
    height: 34px;
    background: #f6c90e;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.spw-price-cart-icon .spw-cart-icon-svg {
    width: 18px;
    height: 18px;
    fill: #111;
}

.spw-price-mrp {
    color: #777;
    text-decoration: line-through;
    font-size: 13px;
    margin-bottom: 10px;
}

.spw-price-cart .stock.in-stock {
    background: #e9f7ef !important;
    color: #1e7e34 !important;
    border: 1px solid #e9f7ef40 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center;
    margin-bottom: 10px;
}

.spw-price-cart .stock.in-stock:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1e7e34;
    border-radius: 50%;
    margin-right: 6px;
}

.spw-price-cart .stock.out-of-stock {
    background: #fdecea !important;
    color: #b00020 !important;
    border: 1px solid #fdecea !important;
}

.spw-price-cart .stock.out-of-stock:before {
    background: #b00020;
}

.spw-price-cart .button,
.spw-price-cart button {
    background: #f6c90e;
    color: #111;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.spw-price-cart .button:hover,
.spw-price-cart button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.spw-price-cart .quantity {
    border-radius: 999px;
    border: 1px solid #e6e6ef;
    background: #fff;
    padding: 8px 10px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 5px;

}

.spw-price-cart form.cart {
    display: flex;

    gap: 12px;
    flex-wrap: nowrap;
}

.spw-price-cart form.cart .single_add_to_cart_button {
    height: 48px;
}

.single-product .single_add_to_cart_button {
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
}

.single-product form.cart {

    gap: 8px !important;
}

.spw-price-cart .quantity .qty {
    width: 56px;
    height: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 500;
    color: #111;
    font-size: 16px;
    outline: none;
}

.spw-price-cart .quantity .minus,
.spw-price-cart .quantity .plus {
    width: 28px;
    height: 28px;
    border: none;
    background: #f2f3ff;
    color: #5a56f1;
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
    line-height: 28px;
    text-align: center;
}

.spw-price-cart .quantity .minus:hover,
.spw-price-cart .quantity .plus:hover {
    background: #e6e8ff;
}

@media (max-width: 640px) {

    .spw-price-cart .button,
    .spw-price-cart button {
        font-size: 14px;
        padding: 10px 14px;
    }

    .spw-price-cart .quantity {
        padding: 6px;
    }

    .spw-price-cart form.cart {
        flex-wrap: wrap;
    }

    .spw-price-cart form.cart .single_add_to_cart_button {
        width: 100%;
    }
}

.spw-price-meta {
    font-size: 13px;
    color: #666;
}

/* Move product meta below summary */
.spw-single-meta-inline {

    color: #555;
    font-size: 13px;
}

.spw-single-meta-inline .product_meta>span {
    display: block;
    margin-bottom: 8px;
}

/* Hide duplicate items in middle summary */
.spw-single-summary-inner .price,
.spw-single-summary-inner .cart,
.spw-single-summary-inner .stock,

.spw-single-summary-inner .woocommerce-breadcrumb {
    display: none !important;
}

.spw-single-breadcrumbs {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.spw-single-breadcrumbs .woocommerce-breadcrumb {
    font-size: 12px;
    color: #666;
}

.spw-single-breadcrumbs .woocommerce-breadcrumb a {
    color: #007185;
    text-decoration: none;
}

.spw-single-breadcrumbs .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Hide sale/discount badge on single product gallery */
.spw-single-gallery .onsale {
    display: none !important;
}

.spw-single-summary-inner .product_title {
    font-size: 24px;
    line-height: 1.3;
    margin: 0px 0 10px;
    font-weight: 500;
    color: #111;
    font-family: "Poppins", Arial, sans-serif;
}

.spw-single-summary-inner .woocommerce-product-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;

}

.spw-single-summary-inner .star-rating {
    color: #DE7921;
}

.spw-single-summary-inner .price {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: #111;
}

.spw-single-summary-inner .woocommerce-product-details__short-description {
    color: #444;

}

.spw-single-summary-inner .cart .button,
.spw-single-summary-inner .cart button {
    background: #f6c90e;
    color: #111;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
}

.spw-single-summary-inner .product_meta {

    font-size: 13px;
    color: #666;
}

.spw-single-meta-list {
    list-style: none;
    padding: 0;
    color: #444;
    font-size: 13px;
}

.spw-product-highlights {
    margin-top: 14px;
    border: 1px solid #ececf2;
    border-radius: 14px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.spw-product-highlight {
    padding: 14px 8px;
    text-align: center;
    border-right: 1px solid #ececf2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spw-product-highlight:last-child {
    border-right: 0;
}

.spw-product-highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0eeff;
    color: #7664ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spw-product-highlight-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.spw-product-highlight-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.spw-product-highlight-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #343434;
}



.spw-single-tabs {
    margin-top: 26px;

}

.woocommerce-tabs {
    padding-top: 20px !important;

}

.spw-single-tabs .woocommerce-tabs .tabs {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #eee;
    justify-content: center;
}


.spw-single-tabs .woocommerce-tabs .tabs li {
    margin: 0;
}

.spw-single-tabs .woocommerce-tabs .tabs li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 17px !important;
    border-radius: 999px;
    font-weight: 500;
    color: #000000 !important;
    background: #eeeeee;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
}

.spw-single-tabs .woocommerce-tabs .tabs li.active a,
.spw-single-tabs .woocommerce-tabs .tabs li a:hover {
    background: #5549ff;
    color: #ffffff !important;

}

.spw-single-tabs .woocommerce-Tabs-panel {
    padding: 18px 16px 20px;
}

.spw-single-tabs .woocommerce-Tabs-panel ul,
.spw-single-tabs .woocommerce-Tabs-panel ol {
    padding-left: 18px;
}

.spw-single-tabs .woocommerce-Tabs-panel li {
    margin-bottom: 8px;
}

/* Reviews layout: form left, reviews right */
#reviews {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

#reviews #review_form_wrapper {
    order: 1;
    flex: 1 1 45%;
}

#reviews #review_form_wrapper .comment-reply-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.spw-review-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #111;
}

.spw-review-summary .star-rating {
    color: #DE7921;
}

.spw-review-summary .star-rating span:before {
    color: #DE7921 !important;
}

#reviews .comment-text .star-rating span:before,
#reviews .comment_container .star-rating span:before {
    color: #DE7921 !important;
}

#reviews .comment-text .star-rating,
#reviews .comment_container .star-rating {
    color: #DE7921;
}

.spw-review-meta {
    font-size: 13px;
    color: #333;
}


#reviews #comments {
    order: 2;
    flex: 1 1 55%;
    border-left: 1px solid #eee;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
}

#reviews #comments .woocommerce-Reviews-title {
    flex: 0 0 auto;
}

#reviews #comments ol.commentlist {
    margin: 0;
    flex: 1 1 auto;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 8px;
}

@media (max-width: 992px) {
    #reviews {
        flex-direction: column;
    }

    #reviews #review_form_wrapper,
    #reviews #comments {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .spw-single-container {
        grid-template-columns: 1fr;
    }

    .spw-single-summary {
        position: static;
    }

    .spw-single-summary-inner .product_title {
        font-size: 22px;
    }

    .spw-single-pricing {
        position: static;
    }

    .spw-single {
        max-width: 100%;
        margin: 14px 12px 40px;
        padding: 14px;
    }

    .spw-single-gallery,
    .spw-single-summary,
    .spw-single-pricing {
        padding: 12px;
    }

    .spw-price-card {
        padding: 14px;
    }

    .spw-single-gallery .woocommerce-product-gallery__image img {
        max-height: 440px;
        padding: 6px;
    }
}

@media (max-width: 1024px) {
    .spw-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .spw-controls {
        flex-wrap: wrap;
    }

    .spw-tabs {
        width: 100%;
    }

    .spw-search {
        width: 100%;
    }


}

@media (max-width: 1200px) {
    .spw-shop {
        max-width: 100%;
        padding: 18px 14px 50px;
    }

    .spw-grid {
        gap: 14px;
    }

    .spw-card-media {
        height: auto !important;
    }
}

@media (max-width: 992px) {
    .spw-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .spw-card-media {
        height: 350px;
    }

    .spw-card-title {
        font-size: 14px;
        line-height: 18px;
    }

    .spw-card-body {
        padding: 10px 12px 14px;
    }

    .spw-product-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spw-product-highlight {
        border-right: 1px solid #ececf2;
        border-bottom: 1px solid #ececf2;
    }

    .spw-product-highlight:nth-child(2n) {
        border-right: 0;
    }

    .spw-product-highlight:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

@media (max-width: 768px) {
    .spw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .spw-card-media {
        height: 350px;
        padding: 8px;
    }

    .spw-controls {
        gap: 10px;
    }

    .spw-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .spw-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .spw-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .spw-single-breadcrumbs {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .spw-single-summary-inner .product_title {
        font-size: 20px;
    }

    .spw-single-summary-inner .woocommerce-product-details__short-description {
        font-size: 14px;
        line-height: 1.5;
        width: 100%;
    }

    .spw-price-main {
        font-size: 20px;
    }

    .spw-price-card-title {
        font-size: 16px;
    }

    .spw-single-tabs .woocommerce-tabs .tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .spw-single-tabs .woocommerce-tabs .tabs::-webkit-scrollbar {
        height: 0;
        width: 0;
    }

    .spw-single-tabs .woocommerce-tabs .tabs li a {
        font-size: 14px !important;
        padding: 8px 14px;
        white-space: nowrap;
    }

    .spw-single-gallery .woocommerce-product-gallery__image img {
        max-height: min(70vh, 420px);
        padding: 4px;
    }

    .spw-single-gallery .woocommerce-product-gallery>.spw-preview-book-wrap {
        right: 60px;
        bottom: 140px;
    }

    .spw-preview-book-btn {
        font-size: 10px;
        padding: 6px 10px;
    }

    .spw-pdf-close {
        width: 34px;
        height: 34px;
    }

    .spw-pdf-modal-content {
        padding: 52px 10px 10px;
    }

    .spw-pdf-viewer-shell {
        border-radius: 8px;
    }

    .spw-buy-now-copy strong {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .spw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .spw-card-media {
        height: auto !important;
    }

    .spw-card-title {
        font-size: 15px;
        line-height: 19px;
    }

    .spw-card-price {
        flex-wrap: wrap;
        gap: 6px;
    }

    .spw-cart-icon {
        width: 32px;
        height: 32px;
    }

    .spw-pagination-controls {
        flex-wrap: wrap;
        gap: 6px;
    }

    .spw-tabs {
        gap: 8px;
    }

    .spw-tab {
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .spw-card-category {
        right: 8px;
        font-size: 9px;
    }

    .spw-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .spw-card-rating {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .spw-stock-inline {
        display: none;
    }

    .spw-stock-block {
        display: inline-flex;
        margin-top: 6px;
    }

    .spw-card-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .spw-single {
        margin: 10px 8px 32px;
        padding: 12px;
        border-radius: 12px;
    }

    .spw-single-gallery .flex-control-nav.flex-control-thumbs li,
    .spw-single-gallery .flex-control-thumbs li {
        width: 72px !important;
        height: 72px !important;
    }

    .spw-price-row {
        gap: 6px;
    }

    .spw-price-cart form.cart {
        flex-wrap: wrap;
    }

    .spw-price-cart .quantity {
        width: 100%;
        justify-content: center;
    }

    .spw-price-cart form.cart .single_add_to_cart_button {
        width: 100%;
    }

    .spw-single-tabs .woocommerce-Tabs-panel {
        padding: 14px 8px 16px;
    }

    #reviews {
        gap: 16px;
    }

    #reviews #comments {
        border-left: none;
        padding-left: 0;
    }

    .spw-single-gallery .woocommerce-product-gallery__image img {
        max-height: min(68vh, 380px);
        padding: 4px;
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    .spw-card-media {
        height: 220px;
    }

    .spw-card-body {
        padding: 10px;
    }

    .spw-card-title {
        font-size: 14px;
    }

    .spw-price-left {
        flex-wrap: wrap;
    }

    .spw-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .spw-pagination-info {
        font-size: 13px;
    }

    .spw-page {
        padding: 5px 9px;
        font-size: 12px;
    }

    .spw-single-summary-inner .product_title {
        font-size: 18px;
    }

    .spw-price-main {
        font-size: 18px;
    }

    .spw-single-gallery {
        padding: 8px;
        width: 400px;
    }

    .spw-single-gallery .woocommerce-product-gallery__image img {
        max-height: min(66vh, 340px);
        padding: 2px;
        border-radius: 8px;
    }
}

.mixitup-hidden {
    opacity: 0 !important;
}

/* Checkout (Block) redesign */
.e-ct-outer .wp-block-woocommerce-checkout .wc-block-checkout {
    padding: 25px !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
}

.wp-block-woocommerce-checkout .wc-block-checkout .wp-block-woocommerce-checkout-fields-block {
    padding-right: 10px;
}

/* Cart: place quantity inline after title (theme default cart) */
@media (min-width: 768px) {
    .woocommerce-cart table.shop_table.cart tbody tr {
        position: relative;
    }

    .woocommerce-cart table.shop_table.cart td.product-name {
        position: relative;
        padding-right: 220px;
    }

    .woocommerce-cart table.shop_table.cart td.product-quantity {
        position: absolute;
        left: calc(100% + 12px);
        top: 0;
        width: auto;
        padding: 0;
        white-space: nowrap;
    }

    .woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

/* Skeleton loading */
.spw-loading .spw-card>* {
    visibility: hidden;
}

.spw-loading .spw-card {
    position: relative;
    min-height: 420px;
    background: #f3f4f6;
}

.spw-loading .spw-card:after,
.spw-loading .spw-single-gallery:after,
.spw-loading .spw-single-summary:after,
.spw-loading .spw-price-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: spw-shimmer 1.2s infinite;
}



@keyframes spw-shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ShopPage-W Custom Cart Styles */

.spw-cart-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Open Sans', sans-serif;
}

.spw-cart-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.spw-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.spw-empty-icon {
    margin-bottom: 20px;
    color: #ccc;
}

.spw-cart-empty h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #444;
}

.spw-cart-empty p {
    color: #666;
    margin-bottom: 25px;
}

/* Layout */
.spw-cart-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.spw-cart-items {
    flex: 1 1 65%;
    min-width: 300px;
}

.spw-cart-collaterals {
    flex: 1 1 30%;
    min-width: 280px;
}

/* Cart Table Overrides */
.spw-cart-items table.shop_table.cart {
    border: none;
    border-radius: 0;
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.spw-cart-items table.shop_table.cart thead th {
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #888;
    padding: 10px;
}

.spw-cart-items table.shop_table.cart tbody tr.cart_item {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.spw-cart-items table.shop_table.cart tbody tr.cart_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.spw-cart-items table.shop_table.cart td {
    border: none;
    padding: 20px;
    vertical-align: middle;
}

.spw-cart-items .product-remove .remove {
    color: #ff5f5f;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
    transition: color 0.2s;
}

.spw-cart-items .product-remove .remove:hover {
    background: none;
    color: #d00;
}

.spw-cart-items .product-thumbnail img {
    border-radius: 8px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.spw-cart-items .product-name a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.spw-cart-items .product-price {
    color: #555;
    font-weight: 500;
}

.spw-cart-items .product-subtotal {
    color: #222;
    font-weight: 700;
}

/* Quantity Input */
.spw-cart-items .quantity input.qty {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    width: 60px;
    text-align: center;
    font-weight: 600;
}

/* Coupon & Actions */
.spw-cart-items .actions {
    background: transparent;
    padding: 20px 0 !important;
}

.spw-cart-items .coupon {
    display: flex;
    gap: 10px;
    float: left;
}

.spw-cart-items .coupon input.input-text {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    width: 200px;
}

/* Buttons */
.spw-btn-primary {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.spw-btn-primary:hover {
    background-color: #000;
    color: #fff;
}

.spw-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.spw-btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Collaterals (Totals) */
.spw-cart-collaterals .cart_totals {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.spw-cart-collaterals .cart_totals h2 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.spw-cart-collaterals table.shop_table {
    width: 100%;
    margin-bottom: 20px;
    border: none;
}

.spw-cart-collaterals table.shop_table th {
    padding: 15px 0;
    color: #666;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #f9f9f9;
}

.spw-cart-collaterals table.shop_table td {
    padding: 15px 0;
    text-align: right;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f9f9f9;
}

.spw-cart-collaterals .order-total th,
.spw-cart-collaterals .order-total td {
    border-top: 2px solid #eee;
    padding-top: 20px;
    font-size: 1.2rem;
    color: #000;
    font-weight: 800;
}

.wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    transition: background 0.3s;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .spw-cart-collaterals {
        flex: 1 1 100%;
    }

    .spw-cart-items table.shop_table.cart .product-thumbnail {
        display: none;
    }

    .spw-cart-items .coupon {
        float: none;
        width: 100%;
        margin-bottom: 15px;
    }

    .spw-cart-items .coupon input.input-text {
        width: 100%;
        margin-bottom: 10px;
    }

    .spw-cart-items .coupon .button {
        width: 100%;
    }

    .spw-cart-items .actions .button {
        width: 100%;
        margin-top: 10px;
    }
}
