/* === Style-6 Specificity Fixes & Logo Update === */

/* 1. White Background for the entire card */
.tp-product-item-s6 {
    background-color: #ffffff !important;
    position: relative;
    /* Establish stacking context for absolute badges */
    margin-bottom: 30px;
    padding: 10px;
}

/* Margin and background on grid thumb */
.tp-product-item-s6 .tp-product-s6-thumb {
    margin-top: 60px;
    background-color: #ffffff !important;
}

.tp-product-item-s6-list .tp-product-list-thumb {
    background-color: #ffffff !important;
}

/* 2. Black line separating image and title */
.tp-product-item-s6 .tp-product-s6-divider {
    border-top: 2px solid #000000 !important;
    opacity: 1;
    margin-top: 10px;
    /* margin-bottom: 20px; */
    margin-left: 30px;
    margin-right: 30px;
}

.tp-product-item-s6 .tp-product-s6-content h3.tp-product-s6-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.tp-product-item-s6 .tp-product-s6-installment-all-logos {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

.tp-product-item-s6 .tp-product-s6-installment-logos {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

/* ---- Action Buttons Row ---- */
.tp-product-item-s6 .tp-product-s6-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    /* Push to bottom */
}

.tp-product-item-s6 .tp-product-s6-view-details-btn {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.tp-product-item-s6 .tp-product-s6-view-details-btn:hover {
    color: #0a6ebd;
}

.tp-product-item-s6 .tp-product-s6-buy-now-btn {
    background: #1a3c61;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    /* In case it's an <a> tag */
    display: inline-block;
}

.tp-product-item-s6 .tp-product-s6-buy-now-btn:hover {
    background: #0a6ebd;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Layout & Centering ---- */
.tp-product-item-s6 .tp-product-s6-content {
    align-items: center;
    text-align: center;
}

.tp-product-item-s6 .tp-product-s6-price-row {
    justify-content: center;
    flex-direction: column;
}

.tp-product-item-s6 .tp-product-s6-prices {
    justify-content: center;
    width: 100%;
}

.tp-product-item-s6 .tp-product-s6-name-wrap {
    text-align: center;
    width: 100%;
}

/* ---- Installment Box ---- */
.tp-product-item-s6 .tp-product-s6-installment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f3f3f3;
    border-radius: 16px;
    padding: 10px 12px;
    margin: 12px 0;
    width: 100%;
}

.tp-product-item-s6 .tp-product-s6-installment-text {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1a1a2e;
    margin: 0 0 8px 0 !important;
    text-align: center;
}

.tp-product-item-s6 .tp-product-s6-installment-logos {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ---- Action Buttons Hover Updates ---- */
.tp-product-item-s6 .tp-product-s6-buy-now-btn {
    border: 1px solid #1a3c61 !important;
}

.tp-product-item-s6 .tp-product-s6-buy-now-btn:hover {
    background: #ffffff !important;
    color: #1a3c61 !important;
    border: 1px solid #1a3c61 !important;
}

/* ---- Custom Price Layout ---- */
.tp-product-item-s6 .tp-product-s6-price-row {
    display: flex;
    flex-direction: row;
    /* Horizontal */
    align-items: center;
    justify-content: space-evenly;
    gap: 4px;
    /* margin-bottom: 12px; */
    width: 99%;
    flex-wrap: nowrap;
    /* Force single line */
}

.tp-product-item-s6 .tp-product-s6-new-price-container {
    background-color: #daf9fb;
    border-radius: 20px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-product-item-s6 .tp-product-s6-new-price-value {
    color: #e52e06;
    font-size: 14px;
    font-weight: 800;
}

.tp-product-item-s6 .tp-product-s6-new-price-value .woocommerce-Price-currencySymbol,
.tp-product-item-s6 .tp-product-s6-new-price-value .currency-symbol {
    color: #1a1a2e;
    margin-inline-end: 2px;
}

.tp-product-item-s6 .tp-product-s6-old-price-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    /* Keep "Instead of" and old price together */
    gap: 3px;
    flex-shrink: 1;
}

.tp-product-item-s6 .tp-product-s6-instead-text {
    font-size: 12px;
    color: #777;
    font-weight: 600;
    white-space: nowrap;
    /* Prevent breaking */
}

.tp-product-item-s6 .tp-product-s6-old-price-value-wrap {
    position: relative;
    display: inline-block;
    color: #000;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    /* Prevent breaking */
}

.tp-product-item-s6 .tp-product-s6-old-price-value-wrap::before,
.tp-product-item-s6 .tp-product-s6-old-price-value-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    /* left: -2%; */
    right: -4%;
    width: 70%;
    height: 1px;
    background-color: #d81b1b;
    /* Vibrant, distinct red */
    border-radius: 0.5px;
    /* Rounded, soft tips like a marker/brush */
    box-shadow: 0px 1px 2px rgba(216, 27, 27, 0.2);
    /* Slight red glow for emphasis */
    z-index: 1;
}

.tp-product-item-s6 .tp-product-s6-old-price-value-wrap::before {
    transform: translateY(-50%) rotate(24deg);
}

.tp-product-item-s6 .tp-product-s6-old-price-value-wrap::after {
    transform: translateY(-50%) rotate(-24deg);
}

.tp-product-item-s6 .tp-product-s6-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
}

.tp-product-item-s6 .tp-product-s6-brand img {
    max-width: 60px;
    max-height: 30px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- Actions Row (Buttons) ---- */
.tp-product-item-s6 .tp-product-s6-btn-group {
    width: 100%;
    margin-top: auto;
}

.tp-product-item-s6 .tp-product-s6-actions-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

/* Form / Wrapper for half width */
.tp-product-item-s6 .tp-product-s6-action-btn-half {
    flex: 1;
    display: flex;
    min-width: 0;
    /* Prevents flex overflow */
}

/* Shared Button Properties */
.tp-product-item-s6 .tp-product-s6-add-to-cart-btn,
.tp-product-item-s6 .tp-product-s6-buy-now-btn {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 40px !important;
    padding: 0 4px !important;
    line-height: 1.1 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Button inner span to prevent overflow */
.tp-product-item-s6 .tp-product-s6-add-to-cart-btn span,
.tp-product-item-s6 .tp-product-s6-buy-now-btn span {
    display: inline-block;
    word-break: break-word;
}

/* Add to Cart Customization */
.tp-product-item-s6 .tp-product-s6-add-to-cart-btn {
    gap: 6px;
    color: #000000;
    background: #ffffff;
    border: 1px solid #000000 !important;
}

.tp-product-item-s6 .tp-product-s6-add-to-cart-btn svg {
    color: #000000;
    flex-shrink: 0;
}

.tp-product-item-s6 .tp-product-s6-add-to-cart-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ---- Top Badges & Icons ---- */
.tp-product-item-s6 .tp-product-s6-badges-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Take up top space */
    pointer-events: none;
    z-index: 2;
}

/* Left Side: Discount Tag */
.tp-product-item-s6 .tp-product-s6-discount-badge {
    position: absolute;
    top: 36px;
    left: 8px;
    /* Start a bit inside so string hangs left */
    color: #ffffff;
    padding: 3px 8px 3px 18px;
    /* Padding accommodates the hole */
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.15));
    z-index: 3;
    direction: ltr !important;
}

/* Red Tag Shape */
.tp-product-item-s6 .tp-product-s6-discount-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e53935;
    /* Bright red */
    border-radius: 0 5px 5px 0;
    /* Rounded right corners */
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
    z-index: -1;
}

/* The connecting string line */
.tp-product-item-s6 .tp-product-s6-discount-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -8px;
    /* extends out left */
    width: 16px;
    /* reaches into the red tag under the hole */
    height: 1.5px;
    background-color: #1a1a2e;
    /* dark string color */
    z-index: 1;
    /* over the red background */
}

/* The white hole */
.tp-product-item-s6 .tp-product-s6-discount-num::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -13px;
    /* align exactly within the pointy area of the red tag */
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 2;
    /* over the string line */
}

/* Numeric text */
.tp-product-item-s6 .tp-product-s6-discount-num {
    position: relative;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    margin-right: 4px;
    z-index: 3;
}

/* Stacked percent and OFF */
.tp-product-item-s6 .tp-product-s6-discount-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 3;
}

.tp-product-item-s6 .tp-product-s6-discount-percent {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.tp-product-item-s6 .tp-product-s6-discount-off {
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

/* Left Side: Share Button */
.tp-product-item-s6 .tp-product-s6-share-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    color: #1a1a2e;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable clicks */
    z-index: 3;
    transition: color 0.3s ease, transform 0.3s ease;
}

.tp-product-item-s6 .tp-product-s6-share-btn:hover {
    color: #e52e06;
    transform: translateY(-2px);
}

/* Right Side: Product Badges */
.tp-product-item-s6 .tp-product-s6-labels-right {
    position: absolute;
    top: 36px;
    right: 0;
    /* Flush securely against the right edge */
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.tp-product-item-s6 .tp-product-s6-label {
    /* The background and color are typically injected via DB inline styles */
    padding: 4px 12px 4px 16px;
    border-radius: 20px 0 0 20px;
    /* Pill on the left, flat on the right */
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

.tp-product-item-s6 .tp-product-s6-label.s6-out-stock {
    background-color: #daf9fb !important;
    color: #1a1a2e !important;
}

/* ---- Hover Actions ---- */
.tp-product-item-s6 .tp-product-s6-actions {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tp-product-item-s6:hover .tp-product-s6-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================================
   Product Card – Style 6 (Base Styles – moved from theme.css)
   ======================================================== */

/* Card wrapper */
.tp-product-item-s6 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tp-product-item-s6:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

/* ---- Thumb ---- */
.tp-product-item-s6 .tp-product-s6-thumb {
    width: 100%;
    display: block;
    overflow: hidden;
    background: #f8f9fa;
}

.tp-product-item-s6 .tp-product-s6-thumb img,
.tp-product-item-s6 .tp-product-s6-thumb a img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    /* padding: 12px; */
    background-color: #ffffff !important;
}

.tp-product-item-s6:hover .tp-product-s6-thumb img,
.tp-product-item-s6:hover .tp-product-s6-thumb a img {
    transform: scale(1.04);
}

/* Icon buttons on image */
.tp-product-s6-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.tp-product-s6-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, color 0.2s;
}

.tp-product-s6-icon-btn:hover,
.tp-product-s6-icon-btn.active {
    background: #daf9fb;
    color: #1a1a2e;
}

/* ---- Divider ---- */
.tp-product-s6-divider {
    margin: 0;
    border: none;
    border-top: 1.5px solid #e8ecf0;
}

/* ---- Content ---- */
.tp-product-s6-content {
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ---- Product Name with rounded bg ---- */
.tp-product-s6-name-wrap {
    background: #daf9fb;
    border-radius: 10px;
    padding: 8px 12px;
}

.tp-product-s6-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: #1a1a2e;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-product-s6-title a {
    color: inherit;
    text-decoration: none;
}

.tp-product-s6-title a:hover {
    color: #0a6ebd;
}

/* ---- Price Row (brand + prices) ---- */
.tp-product-s6-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tp-product-s6-brand {
    flex-shrink: 0;
}

.tp-product-s6-brand img {
    max-height: 28px;
    width: auto;
    object-fit: contain;
}

.tp-product-s6-brand-name {
    font-weight: 700;
    font-size: 12px;
    color: #1a1a2e;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.tp-product-s6-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* New price */
.tp-product-s6-prices .tp-product-s6-price.new-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Old price (strikethrough) */
.tp-product-s6-prices .tp-product-s6-price.old-price {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

/* Override from product-price include class names */
.tp-product-s6-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-product-s6-price-wrapper .new-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.tp-product-s6-price-wrapper .old-price {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

/* ---- Installment Section ---- */
.tp-product-s6-installment {
    background: #f8fbff;
    border-radius: 10px;
    padding: 8px 12px;
}

.tp-product-s6-installment-text {
    font-size: 11px;
    color: #666;
    margin: 0 0 6px;
    text-align: center;
}

.tp-product-s6-installment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tp-product-s6-installment-logos img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

/* ---- Action Buttons ---- */
.tp-product-s6-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* Buy Now (filled dark) */
.tp-product-s6-btn-buy {
    flex: 1;
    background: #1a1a2e;
    color: #fff !important;
    border: 2px solid #1a1a2e;
    border-radius: 50px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tp-product-s6-btn-buy:hover {
    background: #0a6ebd;
    border-color: #0a6ebd;
    transform: translateY(-1px);
}

/* Add to Cart (outline) */
.tp-product-s6-btn-cart {
    flex: 1;
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #d0d8e4;
    border-radius: 50px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.tp-product-s6-btn-cart:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
    transform: translateY(-1px);
}

/* ---- List layout ---- */
.tp-product-item-s6-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    margin-bottom: 20px;
}

.tp-product-item-s6-list .tp-product-list-thumb img {
    height: 200px;
    object-fit: contain;
    padding: 12px;
}

/* RTL support */
[dir="rtl"] .tp-product-s6-actions {
    left: auto;
    right: 10px;
}

/* [dir="rtl"] .tp-product-s6-price-row {
    flex-direction: row-reverse;
} */

/* ============================================================
   Style 6 – Responsive Breakpoints
   ============================================================ */

/* ---- Tablet Large: 769px – 991px ---- */
@media only screen and (min-width: 769px) and (max-width: 991px) {

    /* Card */
    .tp-product-item-s6 {
        margin-bottom: 20px;
        padding: 8px;
    }

    /* Thumb image height */
    .tp-product-item-s6 .tp-product-s6-thumb img,
    .tp-product-item-s6 .tp-product-s6-thumb a img {
        height: 180px;
    }

    /* Product title */
    .tp-product-item-s6 .tp-product-s6-content h3.tp-product-s6-title,
    .tp-product-s6-title {
        font-size: 12px !important;
    }

    /* New price */
    .tp-product-item-s6 .tp-product-s6-new-price-value {
        font-size: 13px;
    }

    /* Instead-of text & old price */
    .tp-product-item-s6 .tp-product-s6-instead-text,
    .tp-product-item-s6 .tp-product-s6-old-price-value-wrap {
        font-size: 11px;
    }

    /* Discount badge number */
    .tp-product-item-s6 .tp-product-s6-discount-num {
        font-size: 16px;
    }

    /* Action buttons */
    .tp-product-item-s6 .tp-product-s6-add-to-cart-btn,
    .tp-product-item-s6 .tp-product-s6-buy-now-btn {
        font-size: 11px !important;
        min-height: 36px;
        padding: 0 3px !important;
    }

    /* Installment text */
    .tp-product-item-s6 .tp-product-s6-installment-text {
        font-size: 11px !important;
    }

    /* Installment logo */
    .tp-product-item-s6 .tp-product-s6-installment-all-logos {
        max-height: 32px;
    }

    /* Divider margin */
    .tp-product-item-s6 .tp-product-s6-divider {
        margin-left: 16px;
        margin-right: 16px;
    }

    /* List layout: keep horizontal but shrink */
    .tp-product-item-s6-list .tp-product-list-thumb img {
        height: 160px;
    }
}

/* ---- Tablet Small / Landscape Mobile: 481px – 768px ---- */
@media only screen and (max-width: 768px) {

    /* Card */
    .tp-product-item-s6 {
        margin-bottom: 16px;
        padding: 6px;
        border-radius: 12px;
    }

    /* Thumb image */
    .tp-product-item-s6 .tp-product-s6-thumb {
        margin-top: 50px;
    }

    .tp-product-item-s6 .tp-product-s6-thumb img,
    .tp-product-item-s6 .tp-product-s6-thumb a img {
        height: 160px;
    }

    /* Content padding */
    .tp-product-s6-content {
        padding: 10px 10px 14px;
        gap: 8px;
    }

    /* Name wrap */
    .tp-product-s6-name-wrap {
        padding: 6px 10px;
        border-radius: 8px;
    }

    /* Product title */
    .tp-product-item-s6 .tp-product-s6-content h3.tp-product-s6-title,
    .tp-product-s6-title {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Price row */
    .tp-product-item-s6 .tp-product-s6-price-row {
        gap: 3px;
        width: 100%;
    }

    /* New price */
    .tp-product-item-s6 .tp-product-s6-new-price-value {
        font-size: 13px;
    }

    /* Instead-of & old price */
    .tp-product-item-s6 .tp-product-s6-instead-text {
        font-size: 10px;
    }

    .tp-product-item-s6 .tp-product-s6-old-price-value-wrap {
        font-size: 10px;
    }

    /* Discount badge */
    .tp-product-item-s6 .tp-product-s6-discount-badge {
        top: 30px;
        left: 6px;
        padding: 2px 6px 2px 14px;
    }

    .tp-product-item-s6 .tp-product-s6-discount-num {
        font-size: 15px;
        margin-right: 3px;
    }

    .tp-product-item-s6 .tp-product-s6-discount-percent {
        font-size: 11px;
    }

    .tp-product-item-s6 .tp-product-s6-discount-off {
        font-size: 7px;
    }

    /* Share button */
    .tp-product-item-s6 .tp-product-s6-share-btn {
        top: 8px;
        left: 8px;
    }

    /* Labels right */
    .tp-product-item-s6 .tp-product-s6-labels-right {
        top: 30px;
    }

    .tp-product-item-s6 .tp-product-s6-label {
        font-size: 11px;
        padding: 3px 10px 3px 12px;
    }

    /* Installment */
    .tp-product-item-s6 .tp-product-s6-installment {
        padding: 8px 10px;
        margin: 8px 0;
        border-radius: 12px;
    }

    .tp-product-item-s6 .tp-product-s6-installment-text {
        font-size: 11px !important;
        margin: 0 0 6px 0 !important;
    }

    .tp-product-item-s6 .tp-product-s6-installment-all-logos {
        max-height: 30px;
    }

    /* Action buttons */
    .tp-product-item-s6 .tp-product-s6-actions-row {
        gap: 5px;
    }

    /* Stack buy/cart buttons vertically */
    .tp-product-item-s6 .tp-product-s6-btn-group {
        flex-direction: column;
        gap: 6px;
    }

    .tp-product-item-s6 .tp-product-s6-actions-row {
        flex-direction: column !important;
        gap: 6px;
    }

    .tp-product-item-s6 .tp-product-s6-action-btn-half {
        width: 100%;
        flex: unset;
    }

    .tp-product-item-s6 .tp-product-s6-add-to-cart-btn,
    .tp-product-item-s6 .tp-product-s6-buy-now-btn {
        font-size: 12px !important;
        min-height: 40px;
        padding: 0 10px !important;
        border-radius: 30px !important;
        width: 100%;
    }

    /* Divider */
    .tp-product-item-s6 .tp-product-s6-divider {
        margin-left: 12px;
        margin-right: 12px;
        margin-top: 8px;
    }

    /* Brand logo */
    .tp-product-item-s6 .tp-product-s6-brand img {
        max-width: 48px;
        max-height: 24px;
    }

    /* Wishlist/compare icon buttons (from base theme.css) */
    .tp-product-s6-icon-btn {
        width: 30px;
        height: 30px;
    }

    /* List layout: stack vertically */
    .tp-product-item-s6-list {
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .tp-product-item-s6-list .tp-product-list-thumb img {
        height: 150px;
        padding: 8px;
    }
}

/* ---- Mobile Small: ≤ 480px ---- */
@media only screen and (max-width: 480px) {

    /* Card */
    .tp-product-item-s6 {
        margin-bottom: 12px;
        padding: 5px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    }

    /* Thumb */
    .tp-product-item-s6 .tp-product-s6-thumb {
        margin-top: 44px;
    }

    .tp-product-item-s6 .tp-product-s6-thumb img,
    .tp-product-item-s6 .tp-product-s6-thumb a img {
        height: 130px;
    }

    /* Content */
    .tp-product-s6-content {
        padding: 8px 8px 10px;
        gap: 6px;
    }

    .tp-product-s6-name-wrap {
        padding: 5px 8px;
        border-radius: 7px;
    }

    /* Title */
    .tp-product-item-s6 .tp-product-s6-content h3.tp-product-s6-title,
    .tp-product-s6-title {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    /* Price row – allow wrapping on very small screens */
    .tp-product-item-s6 .tp-product-s6-price-row {
        flex-wrap: wrap;
        gap: 2px;
        width: 100%;
        justify-content: center;
    }

    /* New price */
    .tp-product-item-s6 .tp-product-s6-new-price-value {
        font-size: 12px;
    }

    /* Instead-of & old price */
    .tp-product-item-s6 .tp-product-s6-instead-text {
        font-size: 9px;
    }

    .tp-product-item-s6 .tp-product-s6-old-price-value-wrap {
        font-size: 9px;
    }

    /* Discount badge – shrink */
    .tp-product-item-s6 .tp-product-s6-discount-badge {
        top: 26px;
        left: 4px;
        padding: 1px 5px 1px 12px;
    }

    .tp-product-item-s6 .tp-product-s6-discount-num {
        font-size: 13px;
        margin-right: 2px;
    }

    .tp-product-item-s6 .tp-product-s6-discount-percent {
        font-size: 10px;
    }

    .tp-product-item-s6 .tp-product-s6-discount-off {
        font-size: 6px;
    }

    /* Share button */
    .tp-product-item-s6 .tp-product-s6-share-btn {
        top: 6px;
        left: 6px;
    }

    .tp-product-item-s6 .tp-product-s6-share-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Labels right */
    .tp-product-item-s6 .tp-product-s6-labels-right {
        top: 26px;
    }

    .tp-product-item-s6 .tp-product-s6-label {
        font-size: 10px;
        padding: 2px 8px 2px 10px;
    }

    /* Installment */
    .tp-product-item-s6 .tp-product-s6-installment {
        padding: 6px 8px;
        margin: 6px 0;
        border-radius: 10px;
    }

    .tp-product-item-s6 .tp-product-s6-installment-text {
        font-size: 10px !important;
        margin: 0 0 4px 0 !important;
    }

    .tp-product-item-s6 .tp-product-s6-installment-all-logos {
        max-height: 24px;
    }

    /* Action buttons */
    .tp-product-item-s6 .tp-product-s6-actions-row {
        gap: 4px;
    }

    /* Stack buy/cart buttons vertically */
    .tp-product-item-s6 .tp-product-s6-btn-group {
        flex-direction: column;
        gap: 5px;
    }

    .tp-product-item-s6 .tp-product-s6-actions-row {
        flex-direction: column !important;
        gap: 5px;
    }

    .tp-product-item-s6 .tp-product-s6-action-btn-half {
        width: 100%;
        flex: unset;
    }

    .tp-product-item-s6 .tp-product-s6-add-to-cart-btn,
    .tp-product-item-s6 .tp-product-s6-buy-now-btn {
        font-size: 11px !important;
        min-height: 38px;
        padding: 0 8px !important;
        border-radius: 25px !important;
        width: 100%;
    }

    .tp-product-item-s6 .tp-product-s6-add-to-cart-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Divider */
    .tp-product-item-s6 .tp-product-s6-divider {
        margin-left: 8px;
        margin-right: 8px;
        margin-top: 6px;
    }

    /* Brand logo */
    .tp-product-item-s6 .tp-product-s6-brand img {
        max-width: 40px;
        max-height: 20px;
    }

    /* Wishlist/compare icon buttons */
    .tp-product-s6-icon-btn {
        width: 26px;
        height: 26px;
    }

    .tp-product-s6-icon-btn svg {
        width: 13px;
        height: 13px;
    }

    /* List layout */
    .tp-product-item-s6-list {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .tp-product-item-s6-list .tp-product-list-thumb img {
        height: 120px;
        padding: 6px;
    }
}

/* ---- Keep badges in fixed LTR positions on responsive (prevent RTL flip) ---- */
@media only screen and (max-width: 768px) {

    /* Force discount badge to stay on LEFT regardless of page direction */
    .tp-product-item-s6 .tp-product-s6-discount-badge {
        left: 6px !important;
        right: auto !important;
    }

    /* Force share button to stay on LEFT regardless of page direction */
    .tp-product-item-s6 .tp-product-s6-share-btn {
        left: 8px !important;
        right: auto !important;
    }

    /* Force product labels to stay on RIGHT regardless of page direction */
    .tp-product-item-s6 .tp-product-s6-labels-right {
        right: 0 !important;
        left: auto !important;
        align-items: flex-end !important;
    }

    .tp-product-item-s6 .tp-product-s6-label {
        border-radius: 20px 0 0 20px !important;
    }
}

@media only screen and (max-width: 480px) {

    .tp-product-item-s6 .tp-product-s6-discount-badge {
        left: 4px !important;
        right: auto !important;
    }

    .tp-product-item-s6 .tp-product-s6-share-btn {
        left: 6px !important;
        right: auto !important;
    }

    .tp-product-item-s6 .tp-product-s6-labels-right {
        right: 0 !important;
        left: auto !important;
    }
}