/* =========================================================
   PERFORMANCE PATCH (LCP / CLS / INP)
========================================================= */

/* INP: no 300ms tap delay / double-tap zoom wait, no heavy tap flash */
a, button, .bottom-nav-item, .mobile-bottom-nav, .dropdown-btn, .category-card, .relationship-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* INP: fixed bar is its own layer; emoji icons never swallow the event target */
.bottom-nav-icon { pointer-events: none; }

/* CLS: reserve space before JS fills these in */
.hero-slider { min-height: 300px; }

/* Mobile / small mobile / small tablet (up to 1024px):
   the old fixed min-height (180px / 300px) was taller than the banner image,
   which left an empty gap under the slider. The space is now reserved with the
   banner's own aspect ratio instead, so there is no gap AND no layout shift.
   If your banner ratio is different, change 2.8 (width / height). */
@media (max-width: 1024px) {
    .hero-slider {
        min-height: 0;
        aspect-ratio: 2.8 / 1;
    }

    .hero-loading {
        min-height: calc(100vw / 2.8);
    }
}
.category-grid:empty { min-height: 420px; }
.testimonials-container:empty,
.testimonial-loading { min-height: 220px; }
.blog-loading { min-height: 260px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* LCP: hero image must paint immediately - no fade, no shimmer */
.hero-image, .hero-image.img-fade, .hero-image.img-loading, .hero-track img {
    animation: none !important;
    opacity: 1 !important;
}
/* Main-thread: infinite shimmer on every lazy image is costly - make it static */
img.img-loading { animation: none !important; }
/* Drop expensive will-change / GPU hints on non-moving elements */
.testimonials-container { will-change: auto; }
.shop-slider-track img, .hero-image { transform: none; }

/* INP: gift strips stand still for a moment right after a tap/click */
.rb-interacting .shop-slider-track {
    animation-play-state: paused;
}

/* RISHTABOX_CATEGORY_HUB_CSS_V1 */
.category-hub-container {
    padding-top: 20px;
    padding-bottom: 32px;
}

.category-hub-heading {
    margin-bottom: 22px;
}

.category-hub-heading h1 {
    margin: 0 0 8px;
}

.category-hub-heading p {
    margin: 0;
    color: #666;
}

.category-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.category-hub-card {
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    border: 1px solid #eadfe7;
    border-radius: 16px;
    background: #fff;
    color: #29212a;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font: inherit;
}

.category-hub-emoji {
    font-size: clamp(30px, 8vw, 48px);
    line-height: 1.2;
}

.category-hub-card-title {
    font-weight: 700;
    font-size: clamp(14px, 3.5vw, 17px);
}

.category-hub-card-subtitle {
    color: #716773;
    font-size: 12px;
    line-height: 1.4;
}

.category-hub-back {
    margin: 0 0 18px;
    padding: 9px 12px;
    border: 1px solid #e5dbe3;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.category-hub-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-hub-options-grid > .shop-card,
.category-hub-option {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.category-hub-options-grid > .shop-card img {
    max-width: 100%;
}

.category-hub-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #eadfe7;
    background: #fff;
    color: #29212a;
    cursor: pointer;
    font: inherit;
}

.category-hub-option-title {
    font-weight: 700;
}

.category-hub-option-description,
.category-hub-empty {
    color: #716773;
    font-size: 13px;
}

@media (min-width: 768px) {
    .category-hub-container {
        padding-top: 28px;
    }

    .category-hub-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .category-hub-options-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* RISHTABOX_COMPACT_ALL_HUB_CARDS_V1 */
/* Compact, consistent cards for all Category Hub options. */

.category-hub-options-grid {
    gap: 10px;
    grid-auto-rows: 1fr;
}

.category-hub-options-grid > .shop-card {
    border-radius: 10px;
}

.category-hub-options-grid > .shop-card > img {
    flex-basis: 95px;
    height: 95px;
    min-height: 95px;
    max-height: 95px;
}

.category-hub-options-grid > .shop-card > .category-card-content {
    min-height: 78px;
    padding: 8px;
}

.category-hub-options-grid > .shop-card .category-card-content h3 {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.3;
}

.category-hub-options-grid > .shop-card .category-card-content p {
    font-size: 11px;
    line-height: 1.3;
}

.category-hub-options-grid > .shop-card > .category-btn {
    width: calc(100% - 16px);
    min-height: 32px;
    margin: auto 8px 8px;
    padding: 6px;
    font-size: 12px;
}

.category-hub-option {
    min-height: 105px;
    padding: 12px 8px;
    gap: 6px;
    border-radius: 10px;
}

.category-hub-option-emoji {
    font-size: 26px;
}

.category-hub-option-title {
    font-size: 13px;
}

.category-hub-option-description {
    font-size: 11px;
}

@media (min-width: 768px) {
    .category-hub-options-grid > .shop-card > img {
        flex-basis: 125px;
        height: 125px;
        min-height: 125px;
        max-height: 125px;
    }

    .category-hub-options-grid > .shop-card > .category-card-content {
        min-height: 88px;
    }
}

/* RISHTABOX PRODUCT PAGE STANDARD POLISH */
#productPage {
    color: #24324a;
}

#productPage > .container > #productDetails {
    width: min(1320px, 94%) !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
    column-gap: clamp(24px, 3vw, 44px) !important;
    row-gap: 34px !important;
    margin: 28px auto 0 !important;
}

#productDetails > div:first-child,
#productDetails .rb-product-gallery {
    min-width: 0;
}

#productDetails .rb-product-gallery > .product-image,
#productDetails > div:first-child > .product-image {
    background: #fff !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 14px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    transition: box-shadow 180ms ease;
}

#productDetails .rb-product-gallery > .product-image:hover,
#productDetails > div:first-child > .product-image:hover {
    box-shadow: 0 8px 28px rgba(24, 43, 73, 0.07) !important;
}

#productDetails .product-info {
    padding: 4px 0 !important;
}

#productDetails .product-info h1 {
    color: #182b49 !important;
    font-size: clamp(25px, 2.2vw, 34px) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.45px;
    margin-bottom: 12px !important;
    overflow-wrap: anywhere;
}

#productDetails .product-rating {
    margin-bottom: 16px !important;
}

#productDetails .product-price {
    gap: 8px 12px !important;
    align-items: baseline !important;
    margin-bottom: 10px !important;
}

#productDetails .current-price {
    color: #172b4d !important;
    font-weight: 800 !important;
}

#productDetails .original-price {
    color: #7b8493 !important;
    text-decoration: line-through;
}

#productDetails .stock-status {
    margin-top: 8px !important;
    margin-bottom: 14px !important;
}

#productDetails .description {
    color: #59677d !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-top: 12px !important;
}

#productDetails .rb-product-features {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 20px 0 !important;
    border-color: #e9edf3 !important;
    border-radius: 12px !important;
    background: #f9fafc !important;
}

#productDetails .rb-feature {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 8px !important;
    border-top: 0 !important;
}

#productDetails .rb-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px;
    background: #fff;
}

#productDetails .rb-feature strong {
    display: block;
    font-size: 12px !important;
    line-height: 1.4;
}

#productDetails .rb-feature small {
    display: block;
    font-size: 11px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}

#productDetails .address-section,
#productDetails .delivery-info {
    padding: 17px !important;
    margin: 16px 0 !important;
    border: 1px solid #e4e9f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(24, 43, 73, 0.035);
}

#productDetails .address-section h3,
#productDetails .delivery-info h4 {
    color: #182b49 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    margin: 0 0 12px !important;
}

#productDetails .rb-delivery-check {
    padding: 12px;
    border-radius: 9px;
    background: #f7f9fc;
    border: 1px solid #edf0f5;
}

#productDetails .rb-delivery-check > label {
    display: block;
    color: #34445d;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 9px;
}

#productDetails #rbDeliveryPincode {
    flex: 1 1 150px;
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #fff;
    color: #182b49;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

#productDetails #rbDeliveryPincode:focus {
    outline: none;
    border-color: #526f9e;
    box-shadow: 0 0 0 3px rgba(82, 111, 158, 0.12);
}

#productDetails #rbCheckDeliveryButton {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

#productDetails #rbDeliveryResult {
    margin: 10px 0 0 !important;
    color: #59677d;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#productDetails .delivery-info > p {
    color: #526078;
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0 0 !important;
}

#productDetails .rb-quantity-row {
    gap: 12px !important;
    margin: 20px 0 !important;
}

#productDetails .rb-quantity-row > label {
    color: #34445d;
    font-size: 14px;
    font-weight: 650;
}

#productDetails .rb-quantity-control {
    border-color: #d8dee8 !important;
    border-radius: 8px !important;
}

#productDetails .rb-quantity-control button {
    min-width: 40px;
    border: 0 !important;
    background: #f5f7fa !important;
    color: #182b49 !important;
    cursor: pointer;
}

#productDetails .rb-quantity-control button:hover {
    background: #e9eef6 !important;
}

#productDetails .rb-quantity-control input {
    color: #182b49;
    font-size: 14px;
    background: #fff;
}

#productDetails .product-actions {
    gap: 12px !important;
    margin: 18px 0 22px !important;
}

#productDetails .product-actions button {
    min-height: 50px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: transform 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
}

#productDetails .product-actions button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(24, 43, 73, 0.12);
}

#productDetails .rb-product-description-panel,
#productDetails .product-reviews-section {
    border: 1px solid #e7ebf1 !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff !important;
}

#productDetails .rb-product-description-panel {
    margin-top: 4px !important;
}

#productDetails .rb-product-tabs {
    gap: 12px !important;
    padding: 0 12px;
    background: #fafbfd;
    border-bottom: 1px solid #e7ebf1 !important;
}

#productDetails .rb-product-tabs button {
    padding: 17px 12px 13px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

#productDetails .rb-product-tab-content {
    padding: 24px !important;
    color: #526078 !important;
    font-size: 14px;
    line-height: 1.8 !important;
    overflow-wrap: anywhere;
}

#productDetails .rb-product-tab-content h2 {
    margin-bottom: 12px !important;
    font-size: 20px !important;
    line-height: 1.4;
}

#productDetails .rb-product-tab-content li {
    margin-bottom: 6px;
}

#productDetails .product-reviews-section {
    padding: 24px !important;
    margin-top: 0 !important;
    box-sizing: border-box;
}

#productDetails .product-reviews-section h2,
#productDetails .reviews-header h2 {
    color: #182b49 !important;
    font-size: 22px !important;
    line-height: 1.4;
}

#productDetails input:not([type="checkbox"]):not([type="radio"]):not(#rbProductQuantity),
#productDetails select,
#productDetails textarea {
    max-width: 100%;
    box-sizing: border-box;
}

#productDetails textarea {
    min-height: 110px;
    resize: vertical;
}

#productDetails button:focus-visible,
#productDetails input:focus-visible,
#productDetails select:focus-visible,
#productDetails textarea:focus-visible {
    outline: 2px solid #526f9e;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    #productPage > .container > #productDetails {
        width: min(720px, 94%) !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
        margin-top: 20px !important;
    }

    #productDetails .rb-product-features {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #productDetails .rb-feature {
        border-top: 0 !important;
    }

    #productDetails .rb-feature + .rb-feature {
        border-top: 0 !important;
    }

    #productDetails .rb-product-description-panel,
    #productDetails .product-reviews-section {
        grid-column: 1 !important;
    }
}

@media (max-width: 600px) {
    #productPage > .container > #productDetails {
        width: 94% !important;
        gap: 20px !important;
        margin-top: 14px !important;
    }

    #productDetails .rb-product-gallery > .product-image,
    #productDetails > div:first-child > .product-image {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    #productDetails .product-info h1 {
        font-size: 23px !important;
        line-height: 1.35 !important;
    }

    #productDetails .rb-product-features {
        gap: 4px !important;
        padding: 8px !important;
        margin: 16px 0 !important;
    }

    #productDetails .rb-feature {
        gap: 6px !important;
        padding: 6px 3px !important;
    }

    #productDetails .rb-feature-icon {
        flex-basis: 34px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 20px !important;
    }

    #productDetails .rb-feature strong {
        font-size: 11px !important;
    }

    #productDetails .rb-feature small {
        font-size: 10px !important;
    }

    #productDetails .address-section,
    #productDetails .delivery-info {
        padding: 13px !important;
        border-radius: 10px !important;
    }

    #productDetails .rb-delivery-check {
        padding: 10px;
    }

    #productDetails .product-actions {
        gap: 9px !important;
    }

    #productDetails .product-actions button {
        flex: 1 1 130px !important;
        min-height: 46px !important;
        padding: 11px 10px !important;
        font-size: 13px !important;
    }

    #productDetails .rb-product-tabs {
        gap: 2px !important;
        padding: 0 5px;
    }

    #productDetails .rb-product-tabs button {
        padding: 14px 9px 11px !important;
        font-size: 12px !important;
    }

    #productDetails .rb-product-tab-content {
        padding: 18px 14px !important;
    }

    #productDetails .product-reviews-section {
        padding: 16px !important;
    }

    #productDetails .product-reviews-section h2,
    #productDetails .reviews-header h2 {
        font-size: 19px !important;
    }
}

@media (max-width: 360px) {
    #productDetails .rb-product-features {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 2px !important;
        padding: 6px 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #productDetails .rb-feature {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px !important;
    }

    #productDetails .rb-feature + .rb-feature {
        border-top: 1px solid #edf0f4 !important;
    }

    #productDetails .rb-feature small {
        font-size: 11px !important;
    }

    #productDetails .product-actions button {
        flex-basis: 100% !important;
    }
}

/* END RISHTABOX PRODUCT PAGE STANDARD POLISH */

/* RISHTABOX AMAZON STYLE SEARCH SUGGESTIONS */
.search-bar {
    position: relative;
    z-index: 1000;
}

.search-suggestions[hidden] {
    display: none !important;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 99999;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5d5dc;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: #292027;
    text-align: left;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #f1e8ec;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.search-suggestion-item:last-child {
    border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible {
    background: #fff4f7;
    outline: none;
}

.search-suggestion-image {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
    border-radius: 5px;
    background: #fff;
}

.search-suggestion-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.search-suggestion-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.search-suggestion-price {
    color: #4a2635;
    font-size: 14px;
    font-weight: 700;
}

.search-suggestion-empty {
    padding: 16px;
    color: #665761;
    font-size: 14px;
}

@media (max-width: 480px) {
    .search-suggestions {
        max-height: 60vh;
    }

    .search-suggestion-item {
        gap: 9px;
        padding: 9px 10px;
    }

    .search-suggestion-image {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .search-suggestion-name,
    .search-suggestion-price {
        font-size: 13px;
    }
}

/* RISHTABOX SEARCH ALL SCREEN OVERLAY FIX */
body > .search-suggestions {
    position: fixed !important;
    z-index: 2147483647 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    max-width: calc(100vw - 16px) !important;
    max-height: min(420px, 60vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid #e5d5dc !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22) !important;
}

body > .search-suggestions[hidden] {
    display: none !important;
}

body > .search-suggestions .search-suggestion-item {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body > .search-suggestions {
        max-height: 55vh !important;
        border-radius: 0 0 10px 10px !important;
    }
}

@media (max-width: 480px) {
    body > .search-suggestions {
        max-height: 50vh !important;
        font-size: 14px;
    }
}

/* RISHTABOX SEARCH RESULTS RESPONSIVE STANDARD */

/* Search results page */
#searchPage {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#searchPage #searchResultsTitle {
    padding: 16px 20px;
    margin: 0;
    color: #292027;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#searchPage #searchProductGrid {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

/* Product cards */
#searchPage #searchProductGrid .product-card {
    border: 1px solid #eee5e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(74, 38, 53, 0.07);
}

/* Keep product photos from taking over the page */
#searchPage #searchProductGrid .product-card img {
    max-width: 100%;
    box-sizing: border-box;
}

#searchPage #searchProductGrid .product-card .product-image,
#searchPage #searchProductGrid .product-card .product-img-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Tablet */
@media (max-width: 1024px) {
    #searchPage #searchProductGrid {
        padding: 12px;
    }

    #searchPage #searchResultsTitle {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    #searchPage {
        padding-bottom: 12px;
    }

    #searchPage #searchResultsTitle {
        padding: 12px 10px;
        font-size: 18px;
        text-align: center;
        line-height: 1.35;
    }

    #searchPage #searchProductGrid .product-card {
        border-radius: 8px;
    }

}

/* Small mobile */
@media (max-width: 360px) {

    #searchPage #searchResultsTitle {
        font-size: 16px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    #searchPage #searchProductGrid {
        gap: 20px;
        padding: 20px;
    }
}

/* RISHTABOX SEARCH PRODUCT STANDARD DIMENSIONS */
#searchPage #searchProductGrid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

#searchPage #searchProductGrid .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

#searchPage #searchProductGrid .product-card img {
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1024px) {
    #searchPage #searchProductGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    #searchPage #searchProductGrid .product-card img {
        height: 180px;
        max-height: 180px;
    }
}

@media (max-width: 600px) {
    #searchPage #searchProductGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }

    #searchPage #searchProductGrid .product-card img {
        height: 160px;
        max-height: 160px;
    }
}

@media (max-width: 360px) {
    #searchPage #searchProductGrid {
        gap: 7px;
        padding: 7px;
    }

    #searchPage #searchProductGrid .product-card img {
        height: 135px;
        max-height: 135px;
    }
}
/* RISHTABOX AMAZON STYLE RETURN TIMELINE */
/* RISHTABOX AMAZON STYLE RETURN TIMELINE */
.order-tracking-box {
    padding: 20px;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(25, 35, 55, 0.06);
}

.order-tracking-box .tracking-timeline {
    position: relative;
    padding: 8px 0 8px 0;
}

.order-tracking-box .tracking-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 54px;
    padding: 0 0 18px;
    box-sizing: border-box;
}

.order-tracking-box .tracking-step:last-child {
    min-height: 0;
    padding-bottom: 4px;
}

.order-tracking-box .tracking-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 50%;
    background: #eef0f4;
    color: #737b89;
    border: 2px solid #e1e5eb;
    font-size: 14px;
    font-weight: 700;
}

.order-tracking-box .tracking-step.current .tracking-icon {
    border: 3px solid #168653;
}

.order-tracking-box .tracking-step-content {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
    color: #283142;
    line-height: 1.45;
}

.order-tracking-box .tracking-step-content strong {
    display: block;
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.order-tracking-box .tracking-step-content p {
    display: inline-block;
    margin: 6px 0 0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Separate return journey visually from delivery tracking */
.order-tracking-box .return-tracking-section {
    position: relative;
    z-index: 2;
    margin: 10px 0 4px;
    padding: 16px 14px 12px;
    border: 1px solid #e7ebf1;
    border-radius: 12px;
}

.order-tracking-box .return-tracking-section h4 {
    position: relative;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.order-tracking-box .return-tracking-timeline {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Cover any inherited parent connector behind the section heading */
.order-tracking-box .return-tracking-section h4 {
    isolation: isolate;
}

.order-tracking-box .return-tracking-timeline .tracking-step {
    min-height: 52px;
    padding-bottom: 15px;
}

.order-tracking-box .return-tracking-timeline .tracking-step:last-child {
    padding-bottom: 0;
}

.order-tracking-box .return-tracking-timeline .tracking-step-content {
    padding-top: 5px;
}

/* Mobile spacing */
@media (max-width: 600px) {
    .order-tracking-box {
        padding: 14px;
        border-radius: 11px;
    }

    .order-tracking-box .tracking-step {
        gap: 11px;
        min-height: 49px;
        padding-bottom: 14px;
    }

    .order-tracking-box .tracking-icon {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
        font-size: 13px;
    }

    .order-tracking-box .tracking-step-content {
        padding-top: 4px;
    }

    .order-tracking-box .tracking-step-content strong {
        font-size: 13px;
    }

    .order-tracking-box .return-tracking-section {
        margin-top: 8px;
        padding: 13px 10px 11px;
    }

    .order-tracking-box .return-tracking-section h4 {
        margin-bottom: 14px;
        font-size: 14px;
    }
}

/* RESTORE ORIGINAL RISHTABOX PINK TIMELINE COLORS */
/* RESTORE ORIGINAL RISHTABOX PINK TIMELINE COLORS */
.order-tracking-box .tracking-step.completed .tracking-icon {
    background: #e94f87;
    border-color: #e94f87;
    color: #fff;
}

.order-tracking-box .tracking-step.current .tracking-icon {
    background: #fff;
    border-color: #e94f87;
    color: #e94f87;
    box-shadow: 0 0 0 4px rgba(233, 79, 135, 0.12);
}

.order-tracking-box .tracking-step-content p {
    background: #fff0f6;
    color: #c92f6b;
}

.order-tracking-box .return-tracking-section {
    background: #fff;
    border-color: #f0dce5;
}

.order-tracking-box .return-tracking-section h4 {
    color: #252b38;
}

.order-tracking-box .tracking-step:not(.completed):not(.current) .tracking-icon {
    background: #eeeef0;
    border-color: #e5e5e8;
    color: #777;
}

/* RISHTABOX ADMIN RETURN PINK THEME */
/* RISHTABOX ADMIN RETURN PINK THEME */
#returnRequestsContent {
    color: #263244;
}

#returnRequestsContent table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #f0dce5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

#returnRequestsContent th {
    padding: 12px 14px;
    background: #fff0f6;
    color: #8e2850;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid #f0dce5;
}

#returnRequestsContent td {
    padding: 12px 14px;
    border-bottom: 1px solid #f2edf0;
    vertical-align: top;
}

#returnRequestsContent tbody tr:last-child td {
    border-bottom: 0;
}

#returnRequestsContent tbody tr:hover {
    background: #fff9fb;
}

#returnRequestsContent select,
#returnRequestsContent textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e7c5d4;
    border-radius: 7px;
    padding: 9px 10px;
    background: #fff;
    color: #263244;
    font: inherit;
}

#returnRequestsContent select:focus,
#returnRequestsContent textarea:focus {
    outline: none;
    border-color: #e94f87;
    box-shadow: 0 0 0 3px rgba(233, 79, 135, 0.13);
}

#returnRequestsContent button {
    border-radius: 7px;
    border: 1px solid #e94f87;
    background: #e94f87;
    color: #fff;
    padding: 9px 14px;
    font-weight: 650;
    cursor: pointer;
}

#returnRequestsContent button:hover {
    background: #d83d76;
    border-color: #d83d76;
}

#returnRequestsContent button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    #returnRequestsContent {
        padding: 12px !important;
    }

    #returnRequestsContent table {
        font-size: 13px;
    }

    #returnRequestsContent th,
    #returnRequestsContent td {
        padding: 9px;
    }
}

/* RishtaBox product share button */
.product-card-image-wrapper {
    position: relative;
    overflow: hidden;
}
.rb-product-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.rb-product-share-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.rb-product-share-btn:hover {
    background: #f5f5f5;
}
.rb-product-share-btn:focus-visible {
    outline: 2px solid #2874f0;
    outline-offset: 2px;
}
@media (max-width: 600px) {
    .rb-product-share-btn {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }
    .rb-product-share-btn svg {
        width: 19px;
        height: 19px;
    }
}
/* Product detail page - Share Product button */
.rb-product-detail-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rb-product-detail-share-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.rb-product-detail-share-btn:hover {
    background: #f5f7fa;
    border-color: #aeb7c2;
}

.rb-product-detail-share-btn:focus-visible {
    outline: 2px solid #2874f0;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .rb-product-detail-share-btn {
        min-height: 42px;
        padding: 9px 14px;
    }
}
/* Share icon overlay on the product detail main image */
#productDetails .rb-product-detail-image-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

#productDetails .rb-product-detail-image-wrap > .product-image {
    display: block;
    width: 100%;
}

#productDetails .rb-product-detail-image-share {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
}


/* RISHTABOX FEATURES FORCE FOUR COLUMNS ALL SCREENS */
#productDetails .rb-product-features {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#productDetails .rb-product-features .rb-feature {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 0 !important;
    padding: 5px 1px !important;
    text-align: center !important;
    border-top: 0 !important;
}

#productDetails .rb-product-features .rb-feature strong {
    font-size: clamp(8px, 1.1vw, 12px) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
}

#productDetails .rb-product-features .rb-feature small {
    font-size: clamp(7px, 0.9vw, 10px) !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 480px) {
    #productDetails .rb-product-features {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 2px !important;
        padding: 6px 1px !important;
    }
}

@media (max-width: 360px) {
    #productDetails .rb-product-features {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    #productDetails .rb-product-features .rb-feature {
        flex-direction: column !important;
        padding: 3px 1px !important;
    }
}

/* RISHTABOX FLIPKART STYLE SQUARE PRODUCT IMAGE */
#productDetails .rb-product-detail-image-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
    background: #ffffff;
}

#productDetails .rb-product-detail-image-wrap > #rbProductMainImage,
#productDetails .rb-product-detail-image-wrap > #rbProductMainVideo {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
}

#productDetails .rb-product-detail-image-wrap > .rb-product-share-btn {
    z-index: 2;
}
/* END RISHTABOX FLIPKART STYLE SQUARE PRODUCT IMAGE */

/* RISHTABOX FORCE PRODUCT THUMBNAIL SCROLL */
#productDetails .rb-product-gallery {
    min-width: 0 !important;
    align-items: start !important;
}

#productDetails .rb-product-thumbnails {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overscroll-behavior: contain;
    scrollbar-width: auto !important;
    scrollbar-color: #a66b80 #f3e1e7;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto !important;
    pointer-events: auto !important;
    touch-action: auto !important;
    cursor: grab;
}

#productDetails .rb-product-thumbnail {
    flex-shrink: 0 !important;
    pointer-events: auto !important;
}

@media (min-width: 769px) {
    #productDetails .rb-product-thumbnails {
        flex-direction: column !important;
        width: 76px !important;
        max-height: min(480px, 65vh) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
    }
}

@media (max-width: 768px) {
    #productDetails .rb-product-gallery {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #productDetails .rb-product-thumbnails {
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 5px 2px 12px !important;
        scrollbar-width: auto !important;
        touch-action: pan-x pan-y !important;
    }
}
/* END RISHTABOX FORCE PRODUCT THUMBNAIL SCROLL */

/* RISHTABOX FINAL ALL DEVICE PRODUCT GALLERY */
#productDetails .rb-product-gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px !important;
    align-items: start !important;
    gap: 12px !important;
    min-width: 0 !important;
}

#productDetails .rb-product-detail-image-wrap {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

#productDetails .rb-product-detail-image-wrap > #rbProductMainImage,
#productDetails .rb-product-detail-image-wrap > #rbProductMainVideo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

#productDetails #rbProductThumbnails {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overscroll-behavior: contain !important;
    scrollbar-width: auto !important;
    scrollbar-color: #a66b80 #f3e1e7 !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: auto !important;
    pointer-events: auto !important;
}

#productDetails #rbProductThumbnails > .rb-product-thumbnail {
    flex-shrink: 0 !important;
    pointer-events: auto !important;
}

@media (min-width: 769px) {
    #productDetails #rbProductThumbnails {
        grid-column: 2 !important;
        grid-row: 1 !important;
        flex-direction: column !important;
        width: 76px !important;
        max-width: 76px !important;
        max-height: min(480px, 65vh) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: pan-y !important;
        cursor: grab;
    }
}

@media (max-width: 768px) {
    #productDetails .rb-product-gallery {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #productDetails .rb-product-detail-image-wrap {
        grid-column: 1 !important;
        grid-row: 1 !important;
        touch-action: pan-y pinch-zoom !important;
    }

    #productDetails #rbProductThumbnails {
        grid-column: 1 !important;
        grid-row: 2 !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 6px 3px 12px !important;
        touch-action: pan-x pan-y !important;
    }

    #productDetails #rbProductThumbnails > .rb-product-thumbnail {
        flex: 0 0 64px !important;
        width: 64px !important;
        min-width: 64px !important;
        height: 64px !important;
    }
}
/* END RISHTABOX FINAL ALL DEVICE PRODUCT GALLERY */


/* RISHTABOX GALLERY: FAST SWIPE AND SMOOTH THUMBNAIL SCROLL */
#productDetails .rb-product-detail-image-wrap {
    touch-action: pan-y pinch-zoom;
}

#productDetails #rbProductMainImage {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y pinch-zoom;
}

#productDetails #rbProductThumbnails {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
}

#productDetails #rbProductThumbnails .rb-product-thumbnail {
    flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}


/* RISHTABOX FINAL TOUCH SWIPE OVERRIDE */
#productDetails .rb-product-detail-image-wrap {
    touch-action: pan-y pinch-zoom;
}

#productDetails #rbProductMainImage {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

#productDetails #rbProductThumbnails {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

#productDetails #rbProductThumbnails .rb-product-thumbnail {
    flex-shrink: 0;
}


/* RISHTABOX PRODUCT THUMBNAIL CLICK OVERLAP FIX */
#productDetails .rb-product-gallery {
    position: relative;
    z-index: 5;
}

#productDetails #rbProductThumbnails {
    position: relative;
    z-index: 10;
    isolation: isolate;
}

#productDetails #rbProductThumbnails .rb-product-thumbnail {
    position: relative;
    z-index: 11;
    pointer-events: auto;
    touch-action: manipulation;
}

/* RISHTABOX PRODUCT GALLERY FLIP ARROWS */
#productDetails .rb-product-detail-image-wrap {
    position: relative;
}

#productDetails .rb-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(74, 38, 53, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #4a2635;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

#productDetails .rb-gallery-arrow-left {
    left: 10px;
}

#productDetails .rb-gallery-arrow-right {
    right: 10px;
}

#productDetails .rb-gallery-arrow:hover {
    background: #f3e1e7;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

#productDetails .rb-gallery-arrow:focus-visible {
    outline: 2px solid #e35486;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    #productDetails .rb-gallery-arrow {
        width: 36px;
        height: 44px;
        border-radius: 10px;
        font-size: 22px;
    }

    #productDetails .rb-gallery-arrow-left {
        left: 6px;
    }

    #productDetails .rb-gallery-arrow-right {
        right: 6px;
    }
}

/* RISHTABOX GALLERY ARROWS - WHITE BACKGROUND */
#productDetails .rb-gallery-arrow,
#productDetails .rb-gallery-arrow:visited,
#productDetails .rb-gallery-arrow:active,
#productDetails .rb-gallery-arrow:hover,
#productDetails .rb-gallery-arrow:disabled {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    box-shadow: none !important;
}
/* RISHTABOX GALLERY ARROWS - LIGHT PINK ALL STATES */
#productDetails .rb-gallery-arrow,
#productDetails .rb-gallery-arrow:visited,
#productDetails .rb-gallery-arrow:active,
#productDetails .rb-gallery-arrow:hover {
    background-color: #E51D78 !important;
    color: #FFFFFF !important;
}

#productDetails .rb-gallery-arrow:disabled {
    background-color: #E51D78 !important;
    opacity: 0.65;
}


/* RISHTABOX RESPONSIVE PRODUCT GRID - ALL DEVICES */
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 700px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 699px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .product-grid > .product-card {
        min-width: 0 !important;
        width: 100% !important;
    }

    .product-grid > .product-card img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* RISHTABOX PRODUCT CARDS - REMOVE UNWANTED EMPTY SPACE */
.product-grid > .product-card {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 10px !important;
    justify-content: flex-start !important;
    gap: 0 !important;
}

.product-grid > .product-card img {
    display: block;
    margin-bottom: 0 !important;
}

.product-grid > .product-card .product-card-content {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 0 !important;
}

.product-grid > .product-card h3 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
}

.product-grid > .product-card p {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}


/* RISHTABOX MAIN PRODUCT IMAGE - RESPONSIVE DISPLAY FIX */
#productDetails .rb-product-detail-image-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: 600px;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-sizing: border-box;
}

#productDetails #rbProductMainImage {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
    margin: 0 auto;
}

#productDetails #rbProductMainVideo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    #productDetails .rb-product-detail-image-wrap {
        width: 100%;
        max-width: 100%;
        max-height: 460px;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    #productDetails .rb-product-detail-image-wrap {
        max-height: 360px;
    }
}

/* RISHTABOX MAIN PRODUCT IMAGE - RESPONSIVE DISPLAY FIX */
#productDetails .rb-product-detail-image-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: 600px;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-sizing: border-box;
}

#productDetails #rbProductMainImage {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
    margin: 0 auto;
}

#productDetails #rbProductMainVideo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    #productDetails .rb-product-detail-image-wrap {
        width: 100%;
        max-width: 100%;
        max-height: 460px;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    #productDetails .rb-product-detail-image-wrap {
        max-height: 360px;
    }
}

/* RISHTABOX - LIGHT PINK DISCOUNT BADGES ALL DEVICES */
.product-card .discount,
.product-card .discount-badge,
.product-card .discount-label,
.product-card [class*="discount"],
.product-card [class*="off-badge"] {
    background: #E51D78 !important;
    background-color: #E51D78 !important;
    color: #FFFFFF !important;
    border-color: #E51D78 !important;
}


/* RISHTABOX PRODUCT DETAIL - LIGHT PINK DISCOUNT BADGE */
#productDetails .discount,
#productDetails .discount-badge,
#productDetails .discount-label,
#productDetails [class*="discount"],
#productDetails [class*="off-badge"],
#productDetails [class*="offer-badge"] {
    background: #E51D78 !important;
    background-color: #E51D78 !important;
    color: #FFFFFF !important;
    border-color: #E51D78 !important;
}

/* RB_CUSTOMER_ICON_SYSTEM_V1 */
.rb-store-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    vertical-align: -0.16em;
    pointer-events: none;
}

[data-rb-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bottom-nav-icon [data-rb-icon] {
    width: 1em;
    height: 1em;
}

.rb-feature-icon .rb-store-icon {
    width: 1em;
    height: 1em;
}

.tracking-icon .rb-store-icon {
    width: 17px;
    height: 17px;
}


/* RISHTABOX_PRODUCT_IMAGE_ZOOM_CSS_V1 */
#productDetails #rbProductMainImage {
    transform: scale(1);
    transform-origin: center center;
    transition: transform 180ms ease-out, transform-origin 80ms linear;
    cursor: zoom-in;
}

#productDetails #rbProductMainImage.rb-product-image-zoom-active {
    transform: scale(2) !important;
    cursor: zoom-out;
    z-index: 1;
}

#productDetails .rb-product-detail-image-wrap.rb-product-mobile-zoomed {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    #productDetails #rbProductMainImage {
        transition: none;
    }
}
/* END RISHTABOX_PRODUCT_IMAGE_ZOOM_CSS_V1 */

/* RISHTABOX PRODUCT IMAGE WHITE BACKGROUND */
.product-card .product-image,
.product-card .product-img-container,
#productDetails .product-image,
#productDetails .product-image img,
#productDetails #rbProductMainImage {
    background-color: #FFFFFF !important;
}






/* FINAL FIX: WHITE PRODUCT GALLERY ARROW BUTTONS */
#productDetails .rb-gallery-arrow,
#productDetails .rb-gallery-arrow:visited,
#productDetails .rb-gallery-arrow:active,
#productDetails .rb-gallery-arrow:hover,
#productDetails .rb-gallery-arrow:focus,
#productDetails .rb-gallery-arrow:disabled {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #E51D78 !important;
    border: 1px solid #E51D78 !important;
    box-shadow: none !important;
}



/* RISHTABOX - ADD TO CART BUTTON ON ALL PRODUCT CARDS */
.product-card .rb-best-seller-add-btn {
    display: block !important;
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 12px !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #E51D78 !important;
    border-radius: 8px !important;
    background: #E51D78 !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color .2s ease;
}

.product-card .rb-best-seller-add-btn:hover:not(:disabled) {
    background: #C91463 !important;
    border-color: #C91463 !important;
}

.product-card .rb-best-seller-add-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .product-card .rb-best-seller-add-btn {
        min-height: 38px !important;
        margin-top: 10px !important;
        padding: 9px 8px !important;
        font-size: 13px !important;
    }
}

/* RB_DETAIL_RATING_STRIP_AND_EMPTY_DISCOUNT_FIX */
/* Hide the discount badge when its inline style says there is no discount. */
#productDetails #rbProductDiscount[style*="display:none"] {
    display: none !important;
}
/* RB_UNIVERSAL_PRODUCT_CARD_BUTTON_ALIGNMENT_FIX */
.product-grid > .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: 100% !important;
    min-width: 0 !important;
}
.product-card .product-card-content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
}
.product-card .product-stock-status {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
}
.product-card .rb-best-seller-add-btn {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
@media (max-width: 600px) {
    .product-card .product-stock-status {
        min-height: 40px !important;
    }
}
/* END RB_UNIVERSAL_PRODUCT_CARD_BUTTON_ALIGNMENT_FIX */
/* RB_COMPACT_FESTIVAL_RELATIONSHIP_CATEGORY_SECTIONS */
#homePage #relationships,
#homePage #festivals,
#homePage #categories {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

#homePage #relationshipGrid,
#homePage #festivalGrid,
#homePage #categoryGrid {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

#homePage #relationships > .container,
#homePage #festivals > .container,
#homePage #categories > .container {
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
}

#homePage #relationships > .container h2,
#homePage #festivals > .container h2,
#homePage #categories > .container h2 {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    #homePage #relationships,
    #homePage #festivals,
    #homePage #categories {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    #homePage #relationships > .container,
    #homePage #festivals > .container,
    #homePage #categories > .container {
        padding-bottom: 10px !important;
    }
}
/* END RB_COMPACT_FESTIVAL_RELATIONSHIP_CATEGORY_SECTIONS */
/* RB_STANDARD_COMPACT_SECTION_HEIGHT_V2 */
/* Standard compact height for Festival, Relationship and Category sections */
#homePage #relationships,
#homePage #festivals,
#homePage #categories {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#homePage #relationships > .container,
#homePage #festivals > .container,
#homePage #categories > .container {
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
}

#homePage #relationships > .container h2,
#homePage #festivals > .container h2,
#homePage #categories > .container h2 {
    margin: 0 !important;
    line-height: 1.3 !important;
}

#homePage #relationshipGrid,
#homePage #festivalGrid,
#homePage #categoryGrid {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    #homePage #relationships,
    #homePage #festivals,
    #homePage #categories {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    #homePage #relationships > .container,
    #homePage #festivals > .container,
    #homePage #categories > .container {
        padding-bottom: 6px !important;
    }
}
/* END RB_STANDARD_COMPACT_SECTION_HEIGHT_V2 */
/* RB_EXTRA_COMPACT_ALL_SCREEN_MODES_V4 */
/* Compact section spacing on every screen size */
#homePage #relationships,
#homePage #festivals,
#homePage #categories {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#homePage #relationships > .container,
#homePage #festivals > .container,
#homePage #categories > .container {
    width: 100% !important;
    max-width: 1400px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 0 5px !important;
    box-sizing: border-box !important;
}

#homePage #relationships > .container h2,
#homePage #festivals > .container h2,
#homePage #categories > .container h2 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
}

#homePage #relationshipGrid,
#homePage #festivalGrid,
#homePage #categoryGrid {
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #homePage #relationships,
    #homePage #festivals,
    #homePage #categories {
        padding: 6px 8px !important;
    }

    #homePage #relationships > .container,
    #homePage #festivals > .container,
    #homePage #categories > .container {
        padding-bottom: 4px !important;
    }
}

@media (max-width: 480px) {
    #homePage #relationships,
    #homePage #festivals,
    #homePage #categories {
        padding: 5px 6px !important;
    }

    #homePage #relationships > .container,
    #homePage #festivals > .container,
    #homePage #categories > .container {
        padding-bottom: 3px !important;
    }
}
/* END RB_EXTRA_COMPACT_ALL_SCREEN_MODES_V4 */
/* RB_CORPORATE_GIFTING_COMPACT_ALL_MODES_V1 */
/* Compact Corporate Gifting section on desktop, tablet and mobile */
#homePage #corporateGifting {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

#homePage #corporateGifting > .container {
    width: 100% !important;
    max-width: 1400px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 0 5px !important;
    box-sizing: border-box !important;
}

#homePage #corporateGifting > .container h2 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
}

#homePage #corporateGiftingGrid {
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #homePage #corporateGifting {
        padding: 6px 8px !important;
    }

    #homePage #corporateGifting > .container {
        padding-bottom: 4px !important;
    }
}

@media (max-width: 480px) {
    #homePage #corporateGifting {
        padding: 5px 6px !important;
    }

    #homePage #corporateGifting > .container {
        padding-bottom: 3px !important;
    }
}
/* END RB_CORPORATE_GIFTING_COMPACT_ALL_MODES_V1 */
/* RB_SECTION_ALIGNMENT_FIX_ALL_MODES_V1 */
/* Consistent alignment for all four home sections */
#homePage #corporateGifting,
#homePage #relationships,
#homePage #festivals,
#homePage #categories {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#homePage #corporateGifting > .container,
#homePage #relationships > .container,
#homePage #festivals > .container,
#homePage #categories > .container {
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#homePage #corporateGifting > .container h2,
#homePage #relationships > .container h2,
#homePage #festivals > .container h2,
#homePage #categories > .container h2 {
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#homePage #corporateGiftingGrid,
#homePage #relationshipGrid,
#homePage #festivalGrid,
#homePage #categoryGrid {
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Keep cards aligned without changing slider/grid display modes */
#homePage #corporateGiftingGrid > *,
#homePage #relationshipGrid > *,
#homePage #festivalGrid > *,
#homePage #categoryGrid > * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #homePage #corporateGifting,
    #homePage #relationships,
    #homePage #festivals,
    #homePage #categories {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #homePage #corporateGifting > .container,
    #homePage #relationships > .container,
    #homePage #festivals > .container,
    #homePage #categories > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* END RB_SECTION_ALIGNMENT_FIX_ALL_MODES_V1 */
/* RB_CORPORATE_MOBILE_HEADING_OVERFLOW_FIX_V2 */
#homePage #corporateGifting,
#homePage #relationships,
#homePage #festivals,
#homePage #categories {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#homePage #corporateGifting > .container,
#homePage #relationships > .container,
#homePage #festivals > .container,
#homePage #categories > .container {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#homePage #corporateGifting > .container h2,
#homePage #relationships > .container h2,
#homePage #festivals > .container h2,
#homePage #categories > .container h2 {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#homePage #corporateGiftingGrid {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 480px) {
    #homePage #corporateGifting > .container h2 {
        font-size: clamp(18px, 5.2vw, 22px) !important;
        line-height: 1.3 !important;
        padding: 0 4px !important;
    }

    #homePage #relationships > .container h2,
    #homePage #festivals > .container h2,
    #homePage #categories > .container h2 {
        font-size: clamp(18px, 5vw, 22px) !important;
        line-height: 1.3 !important;
    }
}
/* END RB_CORPORATE_MOBILE_HEADING_OVERFLOW_FIX_V2 */
/* RB_WHATSAPP_TOOLTIP_OVERLAP_MOBILE_FIX_V1 */
/* Prevent floating WhatsApp tooltip from covering mobile section headings */
@media (max-width: 768px) {
    #rishtabox-whatsapp-chat {
        position: fixed !important;
        right: 8px !important;
        bottom: calc(var(--bottom-nav-height, 70px) + 8px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100vw - 16px) !important;
        z-index: 10001 !important;
    }

    #rishtabox-whatsapp-chat .rb-wa-tooltip {
        display: none !important;
    }

    #rishtabox-whatsapp-chat .rb-wa-button {
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 380px) {
    #rishtabox-whatsapp-chat {
        right: 6px !important;
        max-width: calc(100vw - 12px) !important;
    }

    #rishtabox-whatsapp-chat .rb-wa-button {
        max-width: calc(100vw - 18px) !important;
    }
}
/* END RB_WHATSAPP_TOOLTIP_OVERLAP_MOBILE_FIX_V1 */


/* RB_BEST_SELLER_UNIFORM_CARD_ALIGNMENT_V1 */
/* Equal-height Best Seller cards and bottom-aligned purchase buttons */
#bestSellerSection .product-grid,
#bestSellerSection .pinned-shop-grid,
#bestSellerSection .best-seller-grid {
    align-items: stretch !important;
}

#bestSellerSection .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#bestSellerSection .product-card .product-card-content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#bestSellerSection .product-card .product-stock-status {
    min-height: 40px !important;
    align-content: flex-start !important;
    box-sizing: border-box !important;
}

#bestSellerSection .product-card .rb-best-seller-add-btn {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

#bestSellerSection .product-card .product-card-content > button:last-child {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}
/* END RB_BEST_SELLER_UNIFORM_CARD_ALIGNMENT_V1 */
/* RB_BEST_SELLER_BUTTON_ONLY_ALIGNMENT_V3 */
/* Keep existing card dimensions; standardize only Best Sellers inner layout */
#bestSellerSection .product-card .product-card-content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#bestSellerSection .product-card .product-stock-status {
    min-height: 42px !important;
    box-sizing: border-box !important;
    align-content: flex-start !important;
}

#bestSellerSection .product-card .rb-best-seller-add-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    margin-top: auto !important;
    padding: 8px 10px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

@media (max-width: 600px) {
    #bestSellerSection .product-card .rb-best-seller-add-btn {
        min-height: 38px !important;
        padding: 7px 4px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}
/* END RB_BEST_SELLER_BUTTON_ONLY_ALIGNMENT_V3 */
/* RB_BEST_SELLER_CART_BUTTON_ALIGNMENT_V2 */
#bestSellerSection .product-card {
    display: flex !important;
    flex-direction: column !important;
}

#bestSellerSection .product-card .product-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

#bestSellerSection .product-card .rb-best-seller-add-btn {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
}
/* END RB_BEST_SELLER_CART_BUTTON_ALIGNMENT_V2 */

/* RB_BEST_SELLER_FINAL_ALIGNMENT_V4 */
/* Every card same height; name / rating / price / stock rows have fixed slots;
   Add to Cart always sits at the same bottom line on all devices.
   Keep this block LAST in the file. */
html body #bestSellerSection .product-grid,
html body #rbSaleProductsGrid {
    align-items: stretch !important;
}

html body #bestSellerSection .product-grid > .product-card,
html body #rbSaleProductsGrid > .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    padding-bottom: 10px !important;
}

html body #bestSellerSection .product-card-image-wrapper,
html body #rbSaleProductsGrid .product-card-image-wrapper {
    flex: 0 0 auto !important;
}

html body #bestSellerSection .product-card .product-card-content,
html body #rbSaleProductsGrid .product-card .product-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 8px 10px 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Brand: fixed slot (hidden brand still keeps the space) */
html body #bestSellerSection .product-card .product-brand,
html body #rbSaleProductsGrid .product-card .product-brand {
    min-height: 0 !important;
    margin: 0 !important;
}
html body #bestSellerSection .product-card .product-brand:empty,
html body #rbSaleProductsGrid .product-card .product-brand:empty {
    display: none !important;
}

/* Name: always exactly 2 lines tall */
html body #bestSellerSection .product-card h3,
html body #rbSaleProductsGrid .product-card h3 {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    min-height: calc(1.3em * 2) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
}

html body #bestSellerSection .product-card .product-rating,
html body #rbSaleProductsGrid .product-card .product-rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 20px !important;
    margin: 0 !important;
}

/* Price: fixed 2-row slot (price + original on row 1, discount pill on row 2 if needed) */
html body #bestSellerSection .product-card .product-price,
html body #rbSaleProductsGrid .product-card .product-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    gap: 4px 8px !important;
    min-height: 56px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Stock / delivery: fixed 2-row slot */
html body #bestSellerSection .product-card .product-stock-status,
html body #rbSaleProductsGrid .product-card .product-stock-status {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    gap: 6px !important;
    min-height: 62px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Add to Cart: pinned to the bottom, same line on every card */
html body #bestSellerSection .product-card .rb-best-seller-add-btn,
html body #rbSaleProductsGrid .product-card .rb-best-seller-add-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: auto 0 0 0 !important;
    padding: 0 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 600px) {
    html body #bestSellerSection .product-card .product-card-content,
    html body #rbSaleProductsGrid .product-card .product-card-content {
        padding: 8px 8px 0 !important;
        gap: 3px !important;
    }
    html body #bestSellerSection .product-card h3,
    html body #rbSaleProductsGrid .product-card h3 {
        font-size: 13px !important;
    }
    html body #bestSellerSection .product-card .product-price,
    html body #rbSaleProductsGrid .product-card .product-price {
        min-height: 54px !important;
    }
    html body #bestSellerSection .product-card .product-stock-status,
    html body #rbSaleProductsGrid .product-card .product-stock-status {
        min-height: 60px !important;
    }
    html body #bestSellerSection .product-card .rb-best-seller-add-btn,
    html body #rbSaleProductsGrid .product-card .rb-best-seller-add-btn {
        height: 38px !important;
        min-height: 38px !important;
        font-size: 13px !important;
    }
}
/* END RB_BEST_SELLER_FINAL_ALIGNMENT_V4 */

/* RB_BEST_SELLER_FIXED_SLOTS_V5 */
/* Deterministic card layout: same image size, same row heights, same button line
   on every device (desktop, tablet, phone, small phone). Keep this block LAST. */
html body #bestSellerSection .product-grid > .product-card,
html body #rbSaleProductsGrid > .product-card {
    align-self: stretch !important;
    height: auto !important;
    overflow: hidden !important;
}

/* Same image box on every card */
html body #bestSellerSection .product-card .product-card-image-wrapper,
html body #rbSaleProductsGrid .product-card .product-card-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
}
html body #bestSellerSection .product-card .product-card-image-wrapper img,
html body #rbSaleProductsGrid .product-card .product-card-image-wrapper img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
}

/* Fixed-height rows (not min-height) so every card ends up identical */
html body #bestSellerSection .product-card h3,
html body #rbSaleProductsGrid .product-card h3 {
    height: calc(1.3em * 2) !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
}
html body #bestSellerSection .product-card .product-rating,
html body #rbSaleProductsGrid .product-card .product-rating {
    height: 20px !important;
    flex: 0 0 auto !important;
}
html body #bestSellerSection .product-card .product-price,
html body #rbSaleProductsGrid .product-card .product-price {
    height: 56px !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
}
html body #bestSellerSection .product-card .product-stock-status,
html body #rbSaleProductsGrid .product-card .product-stock-status {
    height: 62px !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
}
html body #bestSellerSection .product-card .rb-best-seller-add-btn,
html body #rbSaleProductsGrid .product-card .rb-best-seller-add-btn {
    margin: auto 0 0 0 !important;
    flex: 0 0 auto !important;
}

@media (max-width: 600px) {
    html body #bestSellerSection .product-card .product-price,
    html body #rbSaleProductsGrid .product-card .product-price {
        height: 54px !important;
    }
    html body #bestSellerSection .product-card .product-stock-status,
    html body #rbSaleProductsGrid .product-card .product-stock-status {
        height: 60px !important;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    html body #bestSellerSection .product-card h3,
    html body #rbSaleProductsGrid .product-card h3 {
        font-size: 12px !important;
    }
    html body #bestSellerSection .product-card .product-price,
    html body #rbSaleProductsGrid .product-card .product-price {
        height: 50px !important;
        font-size: 12px !important;
    }
    html body #bestSellerSection .product-card .rb-best-seller-add-btn,
    html body #rbSaleProductsGrid .product-card .rb-best-seller-add-btn {
        height: 36px !important;
        min-height: 36px !important;
        font-size: 12px !important;
    }
}
/* END RB_BEST_SELLER_FIXED_SLOTS_V5 */

/* RB_BEST_SELLER_COMPACT_PREMIUM_V6 */
/* Shorter, premium-looking cards for every screen size. Keep this block LAST. */
html body #bestSellerSection .product-card .product-card-image-wrapper,
html body #rbSaleProductsGrid .product-card .product-card-image-wrapper {
    aspect-ratio: 5 / 4 !important;
}
html body #bestSellerSection .product-card .product-card-content,
html body #rbSaleProductsGrid .product-card .product-card-content {
    gap: 3px !important;
    padding: 8px 10px 0 !important;
}
html body #bestSellerSection .product-card h3,
html body #rbSaleProductsGrid .product-card h3 {
    font-size: 13.5px !important;
    height: calc(1.3em * 2) !important;
}
html body #bestSellerSection .product-card .product-rating,
html body #rbSaleProductsGrid .product-card .product-rating {
    height: 18px !important;
}
html body #bestSellerSection .product-card .product-price,
html body #rbSaleProductsGrid .product-card .product-price {
    height: 46px !important;
    gap: 3px 6px !important;
}
html body #bestSellerSection .product-card .product-stock-status,
html body #rbSaleProductsGrid .product-card .product-stock-status {
    height: 48px !important;
    gap: 4px !important;
}
html body #bestSellerSection .product-card .rb-free-delivery,
html body #rbSaleProductsGrid .product-card .rb-free-delivery {
    padding: 2px 8px !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
}

/* Premium slim Add to Cart */
html body #bestSellerSection .product-card .rb-best-seller-add-btn,
html body #rbSaleProductsGrid .product-card .rb-best-seller-add-btn {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    margin: auto 0 2px 0 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .3px !important;
}
html body #bestSellerSection .product-grid > .product-card,
html body #rbSaleProductsGrid > .product-card {
    padding-bottom: 8px !important;
}

@media (max-width: 600px) {
    html body #bestSellerSection .product-card .product-card-content,
    html body #rbSaleProductsGrid .product-card .product-card-content {
        padding: 6px 8px 0 !important;
        gap: 2px !important;
    }
    html body #bestSellerSection .product-card h3,
    html body #rbSaleProductsGrid .product-card h3 {
        font-size: 12.5px !important;
    }
    html body #bestSellerSection .product-card .product-price,
    html body #rbSaleProductsGrid .product-card .product-price {
        height: 44px !important;
    }
    html body #bestSellerSection .product-card .product-stock-status,
    html body #rbSaleProductsGrid .product-card .product-stock-status {
        height: 46px !important;
    }
    html body #bestSellerSection .product-card .rb-best-seller-add-btn,
    html body #rbSaleProductsGrid .product-card .rb-best-seller-add-btn {
        height: 34px !important;
        min-height: 34px !important;
        font-size: 12.5px !important;
    }
}

@media (max-width: 380px) {
    html body #bestSellerSection .product-card .product-price,
    html body #rbSaleProductsGrid .product-card .product-price {
        height: 42px !important;
    }
    html body #bestSellerSection .product-card .product-stock-status,
    html body #rbSaleProductsGrid .product-card .product-stock-status {
        height: 44px !important;
    }
    html body #bestSellerSection .product-card .rb-best-seller-add-btn,
    html body #rbSaleProductsGrid .product-card .rb-best-seller-add-btn {
        height: 32px !important;
        min-height: 32px !important;
        font-size: 12px !important;
    }
}
/* END RB_BEST_SELLER_COMPACT_PREMIUM_V6 */
/* RB_REL_FEST_CAT_FULL_WIDTH_LIKE_CORPORATE_V1 */
/* Corporate Gifting grid is max-width:100% (RB_CORPORATE_MOBILE_HEADING_OVERFLOW_FIX_V2).
   Relationship, Festival and Category were still capped at 1400px, so their
   cards were cut ~100px inside each screen edge. Give them the same width. */
#homePage #relationships,
#homePage #festivals,
#homePage #categories {
    min-width: 0 !important;
    max-width: 100% !important;
}

#homePage #relationships > .container,
#homePage #festivals > .container,
#homePage #categories > .container {
    min-width: 0 !important;
    max-width: 100% !important;
}

#homePage #relationshipGrid,
#homePage #festivalGrid,
#homePage #categoryGrid {
    min-width: 0 !important;
    max-width: 100% !important;
}
/* END RB_REL_FEST_CAT_FULL_WIDTH_LIKE_CORPORATE_V1 */