/* =========================================================
   RISHTABOX - DISCOUNT BADGE VISIBILITY FIX
========================================================= */
.discount {
    background: #e53935 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Fix unwanted page jumping during content updates */
html {
    overflow-anchor: none !important;
}

body {
    scroll-behavior: auto !important;
}

/* Dropdown opens only after clicking */
.nav-dropdown:hover > .dropdown-menu:not(.mobile-open) {
    display: none !important;
}

/* Position dropdown relative to its own button */

.nav-dropdown > .dropdown-menu.mobile-open {
    display: block !important;
    z-index: 99999;
}

/* Same animation speed for all homepage sliders */

/* RishtaBox: reduce slider-related scroll stutter */
.shop-slider-wrapper {
    max-width: 100%;
}

/* Pause animation when the slider is hovered (mouse devices only;
   on touch screens :hover sticks after a tap and froze the slider) */
@media (hover: hover) and (pointer: fine) {
    .shop-slider-wrapper:hover .shop-slider-track {
        animation-play-state: paused;
    }
}

/* Disable continuous motion when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .shop-slider-track {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }
}

/* My Orders - product name and image layout fix */
.order-details .order-items .cart-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
    width: 100%;
    box-sizing: border-box;
}

.order-details .order-items .cart-item > img {
    display: block;
    flex: 0 0 84px;
    width: 84px !important;
    height: 84px !important;
    max-width: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.order-details .order-items .cart-item-details {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    overflow-wrap: anywhere;
}

.order-details .order-items .cart-item-details h3 {
    display: block;
    position: static;
    width: 100%;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.order-details .order-items .cart-item-details p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
}

@media (max-width: 480px) {
    .order-details .order-items .cart-item {
        gap: 10px !important;
    }

    .order-details .order-items .cart-item > img {
        flex-basis: 76px;
        width: 76px !important;
        height: 76px !important;
        max-width: 76px;
    }

    .order-details .order-items .cart-item-details h3 {
        font-size: 14px;
    }
}

/* FIX: full blogs page grid; keep homepage blogs carousel unchanged */
#blogsPage #allBlogsContainer {
    overflow: visible;
    overflow-x: visible;
    overflow-y: visible;
    align-items: stretch;
    padding: 10px 0 30px;
}

@media (max-width: 900px) {
    #blogsPage #allBlogsContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 560px) {
    #blogsPage #allBlogsContainer {
        grid-template-columns: 1fr;
    }
}

/* Blogs page: fix header overlap and responsive layout */
#blogsPage.blog-page {
    position: relative;
    top: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    padding-top: 24px !important;
    min-height: 100vh;
    box-sizing: border-box;
}

#blogsPage #allBlogsContainer {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

#blogsPage #allBlogsContainer .blog-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: initial !important;
}

#blogsPage #allBlogsContainer .blog-infinite-scroll-sentinel {
    grid-column: 1 / -1;
}

/* Tablet */
@media (max-width: 1024px) {
    #blogsPage.blog-page {
        padding-top: 125px !important;
    }

    #blogsPage #allBlogsContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}

/* Mobile: two cards per row */
@media (max-width: 560px) {
    #blogsPage.blog-page {
        padding-top: 105px !important;
    }

    #blogsPage #allBlogsContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    #blogsPage #allBlogsContainer .blog-card,
    #blogsPage #allBlogsContainer .blog-image-wrapper,
    #blogsPage #allBlogsContainer .blog-card img {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* Laptop-only: remove excessive blank space on Blogs page */
@media (min-width: 1025px) {
    #blogsPage.blog-page {
        position: relative !important;
        margin-top: 0 !important;
        padding-top: 130px !important;
        top: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
        min-height: 100vh;
    }

    #blogsPage.blog-page .blog-page-header {
        margin-top: 0 !important;
    }
}

/* Back to Home: left aligned, other blog heading content centered */
#blogsPage .blog-page-header {
    text-align: center !important;
}

#blogsPage .blog-page-header .blog-back-btn {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto 16px 0 !important;
    text-align: left !important;
}

/* =========================================================
   MOBILE SPACING FIX - OVERRIDES ONLY
   Keeps header, hero/banner and page content visible
========================================================= */
@media screen and (max-width: 1024px) {
    :root {
        --header-height: 172px;
        --bottom-nav-height: 70px;
    }

    .page {
        padding-top: var(--header-height) !important;
        box-sizing: border-box;
    }

    #homePage {
        padding-top: 120px !important;
        margin-top: 0 !important;
    }

    #homePage .hero,
    #homePage .hero-section,
    #homePage .hero-slider,
    #homePage .banner-section {
        margin-top: 0 !important;
    }

    #homePage .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 600px) {
    :root {
        --header-height: 150px;
        --bottom-nav-height: 65px;
    }

    .page {
        padding-top: var(--header-height) !important;
    }

    /* FIX: Keep homepage hero below the fixed header */
    #homePage {
        padding-top: 172px !important;
    }
}

@media screen and (max-width: 375px) {
    :root {
        --header-height: 140px;
    }

    #homePage {
        padding-top: 172px !important;
    }
}

/* TABLET ONLY: Keep homepage banner below the fixed header */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    #homePage {
        padding-top: 189px !important;
        margin-top: 0 !important;
        box-sizing: border-box;
    }

    #homePage .hero,
    #homePage .hero-slider {
        margin-top: 0 !important;
    }

    /* TABLET ONLY: Fix testimonial card sizing */
    .testimonials-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .testimonials-slider-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .testimonials-slider {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .testimonials-container {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .testimonial-card {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    .testimonial-card .customer-info img {
        max-width: 100%;
        object-fit: cover;
    }

    .testimonial-card .testimonial-text {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* TABLET ONLY: Standardize testimonial card height */
    .testimonials-section .testimonial-card {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        padding: 18px !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .testimonials-section .testimonial-card .customer-info img {
        width: 44px !important;
        height: 44px !important;
        flex-shrink: 0;
        object-fit: cover;
    }

    .testimonials-section .testimonial-card .testimonial-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }
}

/* MOBILE FIX: prevent shop navigation labels from overlapping */
@media screen and (max-width: 480px) {
    .shop-nav-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        gap: 0 !important;
    }

    .nav-back-btn,
    .nav-more-btn {
        flex: 0 0 48px !important;
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        padding: 0 3px !important;
        font-size: 11px !important;
    }

    .shop-nav-scroll {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        gap: 0 !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
    }

    .shop-nav-scroll::-webkit-scrollbar {
        display: none !important;
    }

    .shop-nav-scroll .nav-dropdown {
        flex: 0 0 max-content !important;
        width: max-content !important;
        min-width: max-content !important;
        max-width: none !important;
        height: 35px !important;
        position: relative !important;
    }

    .shop-nav-scroll .dropdown-btn {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: max-content !important;
        min-width: max-content !important;
        max-width: none !important;
        height: 35px !important;
        padding: 0 9px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
        line-height: normal !important;
    }

    .shop-nav-scroll .dropdown-btn span {
        position: static !important;
        flex: 0 0 auto !important;
        margin-left: 4px !important;
    }
}

/* =========================================================
   RISHTABOX FIX: SLIDING CARD EMPTY SPACE
   Keep slider cards consistent; remove excess content height
========================================================= */
.shop-slider-track > .shop-card > .category-card-content p {
    overflow-wrap: anywhere;
}

/* =====================================================
   RISHTABOX MOBILE LAYOUT SPACING FIX
   Compact slider cards and remove unwanted vertical gaps
===================================================== */
@media (max-width: 650px) {
    .shop-slider-wrapper {
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .shop-slider-track > .shop-card > .category-card-content h3 {
        margin: 0 0 5px;
    }

    .shop-slider-track > .shop-card > .category-card-content p {
        margin: 0;
    }

    .shop-slider-track > .shop-card > .category-btn {
        line-height: 1.3;
    }

    .pinned-shop-grid {
        margin-top: 8px;
        margin-bottom: 12px;
    }
}

/* RISHTABOX CATEGORY SLIDER - ALIGN ALL CARDS */
.shop-slider-wrapper {
    display: block !important;
    overflow: hidden;
    width: 100%;
    contain: layout paint style;
}

.shop-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.shop-slider-track > .shop-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

.shop-slider-track > .shop-card > .category-card-content {
    margin-top: 0 !important;
    overflow: hidden;
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 14px 4px !important;
    box-sizing: border-box !important;
}

/* TEMP TEST: prevent slider cards moving on hover */
.shop-slider-track > .shop-card:hover {
    transform: none !important;
}

/* FIX: Keep category slider cards at equal height */
/* FINAL FIX: Remove unused space inside category slider cards */
.shop-slider-track > .shop-card > .category-card-content h3,
.shop-slider-track > .shop-card > .category-card-content p {
    margin-bottom: 4px !important;
}

.shop-slider-track > .shop-card > .category-btn {
    margin-top: 4px !important;
    margin-bottom: 10px !important;
}

/* FINAL FIX: Third slider cards aligned consistently */
.shop-slider-track > .shop-card > .category-card-content h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    margin: 0 0 5px !important;
}

.shop-slider-track > .shop-card > .category-card-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    margin: 0 !important;
}

.shop-slider-track > .shop-card > .category-btn {
    flex: 0 0 auto !important;
    margin: auto 14px 12px !important;
    box-sizing: border-box !important;
}

@media (max-width: 650px) {
    .shop-slider-track > .shop-card > img {
        flex-basis: 130px !important;
    }
}

/* STANDARD IMAGE SIZE - CATEGORY SLIDER */
.shop-slider-track > .shop-card > img {
    display: block !important;
    flex: 0 0 180px !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    object-fit: cover !important;
    object-position: center !important;
    box-sizing: border-box !important;
}

/* PINNED CARDS: STANDARD IMAGE AND CARD SIZE */
.pinned-shop-grid > .shop-card > img,
.pinned-shop-grid > .category-card > img,
.pinned-shop-grid > .festival-card > img,
.pinned-shop-grid > .relationship-card > img {
    object-position: center !important;
    max-height: 140px !important;
    display: block !important;
    flex: 0 0 140px !important;
    width: 100% !important;
    height: 140px !important;
    min-height: 140px !important;
    object-fit: cover !important;
}

/* PINNED CARDS: REMOVE UNUSED SPACE */
.pinned-shop-grid > .shop-card,
.pinned-shop-grid > .category-card,
.pinned-shop-grid > .festival-card,
.pinned-shop-grid > .relationship-card {
    padding-bottom: 0 !important;
    justify-content: flex-start !important;
}

.pinned-shop-grid > .shop-card > .category-card-content,
.pinned-shop-grid > .category-card > .category-card-content,
.pinned-shop-grid > .festival-card > .category-card-content,
.pinned-shop-grid > .relationship-card > .category-card-content {
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* PINNED CARDS: ALIGN BOTTOM WITHOUT CUTTING CONTENT */
.pinned-shop-grid > .shop-card > .category-btn,
.pinned-shop-grid > .category-card > .category-btn,
.pinned-shop-grid > .festival-card > .category-btn,
.pinned-shop-grid > .relationship-card > .category-btn {
    margin: auto 8px 8px !important;
}

@media (max-width: 650px) {
    .pinned-shop-grid > .shop-card > img,
    .pinned-shop-grid > .category-card > img,
    .pinned-shop-grid > .festival-card > img,
    .pinned-shop-grid > .relationship-card > img {
        flex-basis: 85px !important;
    }
}

/* PINNED CARDS: REMOVE FLEX-GROWN EMPTY SPACE */
.pinned-shop-grid > .shop-card > .category-card-content,
.pinned-shop-grid > .category-card > .category-card-content,
.pinned-shop-grid > .festival-card > .category-card-content,
.pinned-shop-grid > .relationship-card > .category-card-content {
    margin-bottom: 0 !important;
}

/* PINNED CARDS: SAME BOTTOM, CONTENT-BASED LAYOUT */
.pinned-shop-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr;
}

.pinned-shop-grid > .shop-card,
.pinned-shop-grid > .category-card,
.pinned-shop-grid > .festival-card,
.pinned-shop-grid > .relationship-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

.pinned-shop-grid > .shop-card > .category-card-content,
.pinned-shop-grid > .category-card > .category-card-content,
.pinned-shop-grid > .festival-card > .category-card-content,
.pinned-shop-grid > .relationship-card > .category-card-content {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.pinned-shop-grid > .shop-card > .category-btn,
.pinned-shop-grid > .category-card > .category-btn,
.pinned-shop-grid > .festival-card > .category-btn,
.pinned-shop-grid > .relationship-card > .category-btn {
    flex: 0 0 auto !important;
    margin-top: auto !important;
}

/* PINNED CARDS: STANDARD MOBILE + SMALL MOBILE */
@media (max-width: 650px) {
    .pinned-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .pinned-shop-grid > .shop-card,
    .pinned-shop-grid > .category-card,
    .pinned-shop-grid > .festival-card,
    .pinned-shop-grid > .relationship-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }

    .pinned-shop-grid > .shop-card > img,
    .pinned-shop-grid > .category-card > img,
    .pinned-shop-grid > .festival-card > img,
    .pinned-shop-grid > .relationship-card > img {
        width: 100% !important;
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        flex: 0 0 100px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .pinned-shop-grid > .shop-card > .category-card-content,
    .pinned-shop-grid > .category-card > .category-card-content,
    .pinned-shop-grid > .festival-card > .category-card-content,
    .pinned-shop-grid > .relationship-card > .category-card-content {
        padding: 8px !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .pinned-shop-grid > .shop-card > .category-card-content h3,
    .pinned-shop-grid > .category-card > .category-card-content h3,
    .pinned-shop-grid > .festival-card > .category-card-content h3,
    .pinned-shop-grid > .relationship-card > .category-card-content h3 {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .pinned-shop-grid > .shop-card > .category-card-content p,
    .pinned-shop-grid > .category-card > .category-card-content p,
    .pinned-shop-grid > .festival-card > .category-card-content p,
    .pinned-shop-grid > .relationship-card > .category-card-content p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .pinned-shop-grid > .shop-card > .category-btn,
    .pinned-shop-grid > .category-card > .category-btn,
    .pinned-shop-grid > .festival-card > .category-btn,
    .pinned-shop-grid > .relationship-card > .category-btn {
        margin: auto 8px 8px !important;
        padding: 8px 5px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 380px) {
    .pinned-shop-grid {
        gap: 8px !important;
    }

    .pinned-shop-grid > .shop-card > img,
    .pinned-shop-grid > .category-card > img,
    .pinned-shop-grid > .festival-card > img,
    .pinned-shop-grid > .relationship-card > img {
        height: 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
        flex-basis: 85px !important;
    }

    .pinned-shop-grid > .shop-card > .category-card-content,
    .pinned-shop-grid > .category-card > .category-card-content,
    .pinned-shop-grid > .festival-card > .category-card-content,
    .pinned-shop-grid > .relationship-card > .category-card-content {
        padding: 6px !important;
    }

    .pinned-shop-grid > .shop-card > .category-card-content h3,
    .pinned-shop-grid > .category-card > .category-card-content h3,
    .pinned-shop-grid > .festival-card > .category-card-content h3,
    .pinned-shop-grid > .relationship-card > .category-card-content h3 {
        font-size: 12px !important;
    }

    .pinned-shop-grid > .shop-card > .category-btn,
    .pinned-shop-grid > .category-card > .category-btn,
    .pinned-shop-grid > .festival-card > .category-btn,
    .pinned-shop-grid > .relationship-card > .category-btn {
        margin-right: 6px !important;
        margin-left: 6px !important;
        padding: 7px 4px !important;
        font-size: 10px !important;
    }
}

/* ONLY PINNED CARDS: 4 PER ROW ON MOBILE */
@media (max-width: 650px) {
    .pinned-shop-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .pinned-shop-grid > .shop-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

.pinned-shop-grid > .shop-card > .category-card-content {
        min-width: 0 !important;
        padding: 5px !important;
        overflow-wrap: anywhere !important;
    }

    .pinned-shop-grid > .shop-card > .category-card-content h3 {
        font-size: 10px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    .pinned-shop-grid > .shop-card > .category-card-content p {
        font-size: 9px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    .pinned-shop-grid > .shop-card > .category-btn {
        min-width: 0 !important;
        margin: auto 4px 5px !important;
        padding: 5px 2px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    /* SLIDER: STANDARD SIZE ON MOBILE AND SMALL MOBILE */
    .shop-slider-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .shop-slider-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .shop-slider-track > .shop-card {
        flex: 0 0 150px !important;
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        height: auto !important;
        min-height: 0 !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .shop-slider-track > .shop-card > img {
        display: block !important;
        width: 100% !important;
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
        flex: 0 0 130px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .shop-slider-track > .shop-card > .category-card-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .shop-slider-track > .shop-card > .category-card-content h3 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere !important;
    }

    .shop-slider-track > .shop-card > .category-card-content p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        overflow-wrap: anywhere !important;
    }

    .shop-slider-track > .shop-card > .category-btn {
        flex: 0 0 auto !important;
        margin: auto 10px 10px !important;
        padding: 8px 6px !important;
        font-size: 11px !important;
        box-sizing: border-box !important;
    }
}

/* SMALL MOBILE */
@media (max-width: 380px) {
    .shop-slider-track {
        gap: 8px !important;
    }

    .shop-slider-track > .shop-card {
        flex-basis: 135px !important;
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;
    }

    .shop-slider-track > .shop-card > img {
        flex-basis: 110px !important;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
    }

    .shop-slider-track > .shop-card > .category-card-content {
        padding: 8px !important;
    }

    .shop-slider-track > .shop-card > .category-card-content h3 {
        font-size: 12px !important;
    }

    .shop-slider-track > .shop-card > .category-card-content p {
        font-size: 10px !important;
    }

    .shop-slider-track > .shop-card > .category-btn {
        margin-right: 8px !important;
        margin-left: 8px !important;
        padding: 7px 4px !important;
        font-size: 10px !important;
    }
}

/* =========================================================
   RISHTABOX: REDUCE TOP SPACE ABOVE HOME SECTION HEADINGS
   Keeps existing card grids and mobile pinned-card columns.
========================================================= */
#relationships,
#corporateGifting,
#festivals,
#categories {
    padding-top: 20px !important;
}

#relationships > .container,
#corporateGifting > .container,
#festivals > .container,
#categories > .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

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

/* ===== MERGED FROM image-loading.css ===== */
/* =====================================================
   Image loading polish (shared by customer site + admin)
   Adds a soft placeholder + fade-in. No layout or colour changes.
===================================================== */
img.img-loading {
    background: linear-gradient(110deg, #f1f3f5 8%, #e7eaee 18%, #f1f3f5 33%);
    background-size: 200% 100%;
}

img.img-loaded {
    background: none;
}

img.img-fade {
    animation: rbImageFade 0.4s ease both;
}

@keyframes rbShimmer {
    to {
        background-position-x: -200%;
    }
}

@keyframes rbImageFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

img {
    -webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
    img.img-loading,
    img.img-fade {
        animation: none;
    }
}

/* ===== MERGED FROM smooth-sliders.css ===== */
/* =====================================================
   Smooth sliding + smoother scrolling (customer site)
   Loaded AFTER store.css. Only adds motion/performance rules.
===================================================== */
/* ---- Hero slider: slides now glide sideways like the gift-card strip ---- */
.hero-slider {
    touch-action: pan-y;
}

.hero-track {
    display: flex;
    width: 100%;
    transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-track > .hero-slide,
.hero-track > .hero-slide.active {
    display: block;
    flex: 0 0 100%;
    min-width: 100%;
    animation: none;
}

.hero-slider.is-dragging .hero-track {
    transition: none;
}

/* ---- Gift cards strip: keep it on the GPU and never repaint the page ---- */
.shop-slider-track {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.shop-slider-track .shop-card img,
.hero-image {
    transform: translateZ(0);
}

/* ---- Testimonials strip ---- */

/* ---- Below-the-fold sections render only when they are about to be seen ---- */

@media (prefers-reduced-motion: reduce) {
    .hero-track {
        transition: none;
    }
}

/* =========================================================
   SLIDER PERFORMANCE - fast, smooth, no-stutter sliding
   Rendering hints only. No layout or colour changes.
========================================================= */

/* Placeholder shimmer repaints on the main thread every frame.
   Inside the moving strip keep the placeholder static so lazy
   images loading in do not make the slide stutter. */
.shop-slider-track img.img-loading,
.hero-track img.img-loading {
    animation: none;
}

/* Fade-in uses opacity only (GPU), keep it short inside sliders */
.shop-slider-track img.img-fade,
.hero-track img.img-fade {
    animation-duration: 0.25s;
}

/* Images in sliders: no drag ghost, no text selection while swiping */
.shop-slider-track img,
.hero-track img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Fixed header: backdrop blur is re-computed on every scroll frame
   (costly on phones/tablets). Header is 97% white so it looks the same. */
@media (hover: none), (max-width: 1024px) {
    .header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* =========================================================
   AUTO SLIDER - SEAMLESS LOOP
   The loop must travel exactly one card-set plus one gap.
   Half-gap follows the real gap at every breakpoint, so the
   strip no longer jumps when the animation restarts.
========================================================= */
.shop-slider-track {
    --slider-half-gap: 12px; /* gap: 24px */
}

@media (max-width: 650px) {
    .shop-slider-track {
        --slider-half-gap: 6px; /* gap: 12px */
    }
}

@media (max-width: 380px) {
    .shop-slider-track {
        --slider-half-gap: 4px; /* gap: 8px */
    }
}


/* CORPORATE CARD SIZE MATCH - ALL DEVICES */
#corporateGiftingGrid .pinned-shop-grid > .corporate-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#corporateGiftingGrid .pinned-shop-grid > .corporate-card > img {
    display: block !important;
    width: 100% !important;
    height: 160px !important;
    min-height: 0 !important;
    max-width: 100% !important;
    object-fit: cover !important;
    flex: 0 0 160px !important;
}

#corporateGiftingGrid .pinned-shop-grid > .corporate-card > .category-card-content {
    flex: 0 0 auto !important;
    min-height: 112px;
    height: auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #corporateGiftingGrid .pinned-shop-grid > .corporate-card > img {
        height: 125px !important;
        flex-basis: 125px !important;
    }
}

@media (max-width: 650px) {
    #corporateGiftingGrid .pinned-shop-grid > .corporate-card > img {
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        flex-basis: 100px !important;
    }

    #corporateGiftingGrid .pinned-shop-grid > .corporate-card > .category-card-content {
        min-height: 0 !important;
        padding: 5px 3px !important;
    }
}

@media (max-width: 380px) {
    #corporateGiftingGrid .pinned-shop-grid > .corporate-card > img {
        height: 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
        flex-basis: 85px !important;
    }
}
/* END CORPORATE CARD SIZE MATCH */


/* RB CORPORATE GIFTS DEDICATED STATIC CATALOGUE GRID */
/* This selector targets only the dedicated page, never the homepage. */
#corporateGiftingPageGrid.corporate-catalogue-static-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    align-items: stretch !important;
}

#corporateGiftingPageGrid.corporate-catalogue-static-grid > .corporate-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    animation: none !important;
    transform: none !important;
    box-sizing: border-box !important;
}

#corporateGiftingPageGrid.corporate-catalogue-static-grid > .corporate-card > img {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 0 !important;
    object-fit: cover !important;
}

#corporateGiftingPageGrid.corporate-catalogue-static-grid > .corporate-card > .category-card-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

@media (min-width: 651px) and (max-width: 1024px) {
    #corporateGiftingPageGrid.corporate-catalogue-static-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    #corporateGiftingPageGrid.corporate-catalogue-static-grid > .corporate-card > img {
        height: 155px !important;
    }
}

@media (max-width: 650px) {
    #corporateGiftingPageGrid.corporate-catalogue-static-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    #corporateGiftingPageGrid.corporate-catalogue-static-grid > .corporate-card > img {
        height: 125px !important;
    }
}
