/**
 * TSS Luxury Suite - Elementor Widgets Stylesheet
 * 1. Product Card Styles (Exact match to Shop & Archive Pages)
 * 2. Responsive Grid & Carousel (Swiper) Engine
 * 3. TSS Category Product Count Widget Styling
 */

/* ==========================================================================
   1. PRODUCT CARD - EXACT MATCH TO SHOP PAGE DESIGN SYSTEM
   ========================================================================== */

.tss-product-card {
    background: transparent;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
    transition: transform 0.25s ease, opacity 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.tss-product-card:hover {
    box-shadow: none !important;
}

.tss-product-card-thumb-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1.40 !important;
    overflow: hidden !important;
    background-color: #f7f7f7 !important;
    border-radius: 0 !important;
    display: block !important;
}

.tss-product-card-thumb-wrap a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    text-decoration: none !important;
    border-bottom: none !important;
    overflow: hidden !important;
    z-index: 1;
}

.tss-product-card-thumb-wrap img,
.tss-product-card-thumb-wrap a img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease !important;
}

.tss-product-card:hover .tss-product-card-thumb-wrap img,
.tss-product-card:hover .tss-product-card-thumb-wrap a img {
    transform: scale(1.04) !important;
}

/* Floating Top-Right Wishlist Heart Button */
.tss-product-card .tss-card-wishlist-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.tss-product-card button.tss-card-wishlist-btn,
.tss-product-card .tss-card-wishlist-btn {
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #222222 !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tss-product-card button.tss-card-wishlist-btn:hover,
.tss-product-card button.tss-card-wishlist-btn:focus,
.tss-product-card .tss-card-wishlist-btn:hover,
.tss-product-card .tss-card-wishlist-btn:focus {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: inherit !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    transform: scale(1.08);
    border: none !important;
    outline: none !important;
}

.tss-product-card button.tss-card-wishlist-btn.active,
.tss-product-card .tss-card-wishlist-btn.active {
    background-color: #fff5f5 !important;
    background: #fff5f5 !important;
    box-shadow: 0 2px 10px rgba(224, 36, 36, 0.25) !important;
}

.tss-product-card .tss-card-wishlist-btn svg {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tss-product-card .tss-card-wishlist-btn .tss-heart-outline {
    display: block;
}

.tss-product-card .tss-card-wishlist-btn .tss-heart-filled {
    display: none;
}

.tss-product-card .tss-card-wishlist-btn.active .tss-heart-outline {
    display: none;
}

.tss-product-card .tss-card-wishlist-btn.active .tss-heart-filled {
    display: block;
}

/* Card Content / Summary */
.tss-product-card-info {
    padding: 10px 0 18px 0 !important;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    overflow: visible !important;
}

.tss-product-card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #0f0d1a !important;
    line-height: 1.35 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 40px !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s ease !important;
}

.tss-product-card-title:hover,
.tss-product-card-title:focus {
    color: #555555 !important;
    text-decoration: none !important;
}

.tss-product-card a,
.tss-product-card a:hover,
.tss-product-card a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
}

.tss-product-card-subtitle {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13.5px !important;
    color: #8e8d99 !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
}

.tss-product-card-price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    color: #0f0d1a !important;
    margin: 0 !important;
    padding: 0 0 4px 0 !important;
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    overflow: visible !important;
    min-height: 24px !important;
}

.tss-product-card-price .screen-reader-text {
    display: none !important;
}

.tss-product-card-price del {
    color: #8e8d99 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    line-height: inherit !important;
    display: inline !important;
}

.tss-product-card-price ins {
    text-decoration: none !important;
    color: #0f0d1a !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: inherit !important;
    display: inline !important;
}

.tss-product-card-price .tss-price-discount-tag {
    color: #0f0d1a !important;
    font-weight: 700 !important;
    font-size: 0.88em !important;
    margin-left: 4px !important;
    display: inline-flex !important;
    align-items: baseline !important;
    line-height: inherit !important;
}

.tss-product-card-price .woocommerce-Price-amount {
    color: inherit;
    font-weight: inherit;
    line-height: inherit !important;
    display: inline !important;
}

/* Mobile adjustments for Product Card */
@media (max-width: 767px) {
    .tss-product-card-info {
        padding: 8px 0 14px 0 !important;
    }
    .tss-product-card-title {
        font-size: 14px !important;
        min-height: 38px !important;
    }
    .tss-product-card-subtitle {
        font-size: 12px !important;
    }
    .tss-product-card-price {
        font-size: 15px !important;
    }
}


/* ==========================================================================
   2. TSS PRODUCTS WIDGET: CONTAINER & RESPONSIVE ENGINE (GRID vs CAROUSEL)
   ========================================================================== */

.tss-products-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.tss-products-swiper {
    position: relative;
    width: 100%;
}

/* Default Swiper slide reset */
.tss-products-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   A. DESKTOP / LAPTOP BREAKPOINT (min-width: 1025px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
    /* Desktop NORMAL GRID MODE */
    .tss-layout-desktop-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(var(--tss-cols-desktop, 4), minmax(0, 1fr)) !important;
        gap: var(--tss-gap-desktop, 20px) !important;
        transform: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Direct Column Classes - Desktop */
    .tss-layout-desktop-grid.tss-cols-desktop-1 .swiper-wrapper { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .tss-layout-desktop-grid.tss-cols-desktop-2 .swiper-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .tss-layout-desktop-grid.tss-cols-desktop-3 .swiper-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .tss-layout-desktop-grid.tss-cols-desktop-4 .swiper-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .tss-layout-desktop-grid.tss-cols-desktop-5 .swiper-wrapper { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .tss-layout-desktop-grid.tss-cols-desktop-6 .swiper-wrapper { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

    .tss-layout-desktop-grid .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .tss-layout-desktop-grid .tss-swiper-prev,
    .tss-layout-desktop-grid .tss-swiper-next,
    .tss-layout-desktop-grid .tss-swiper-pagination {
        display: none !important;
    }

    /* Desktop CAROUSEL MODE */
    .tss-layout-desktop-carousel .tss-products-swiper {
        overflow: hidden;
    }
    .tss-layout-desktop-carousel .swiper-wrapper {
        display: flex !important;
        box-sizing: border-box;
    }
}

/* --------------------------------------------------------------------------
   B. TABLET BREAKPOINT (768px to 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Tablet NORMAL GRID MODE */
    .tss-layout-tablet-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(var(--tss-cols-tablet, 3), minmax(0, 1fr)) !important;
        gap: var(--tss-gap-tablet, 16px) !important;
        transform: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Direct Column Classes - Tablet */
    .tss-layout-tablet-grid.tss-cols-tablet-1 .swiper-wrapper { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .tss-layout-tablet-grid.tss-cols-tablet-2 .swiper-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .tss-layout-tablet-grid.tss-cols-tablet-3 .swiper-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .tss-layout-tablet-grid.tss-cols-tablet-4 .swiper-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .tss-layout-tablet-grid.tss-cols-tablet-5 .swiper-wrapper { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .tss-layout-tablet-grid.tss-cols-tablet-6 .swiper-wrapper { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

    .tss-layout-tablet-grid .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .tss-layout-tablet-grid .tss-swiper-prev,
    .tss-layout-tablet-grid .tss-swiper-next,
    .tss-layout-tablet-grid .tss-swiper-pagination {
        display: none !important;
    }

    /* Tablet CAROUSEL MODE */
    .tss-layout-tablet-carousel .tss-products-swiper {
        overflow: hidden;
    }
    .tss-layout-tablet-carousel .swiper-wrapper {
        display: flex !important;
        box-sizing: border-box;
    }
}

/* --------------------------------------------------------------------------
   C. MOBILE BREAKPOINT (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Mobile NORMAL GRID MODE */
    .tss-layout-mobile-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(var(--tss-cols-mobile, 2), minmax(0, 1fr)) !important;
        gap: var(--tss-gap-mobile, 12px) !important;
        transform: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Direct Column Classes - Mobile */
    .tss-layout-mobile-grid.tss-cols-mobile-1 .swiper-wrapper { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .tss-layout-mobile-grid.tss-cols-mobile-2 .swiper-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .tss-layout-mobile-grid.tss-cols-mobile-3 .swiper-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .tss-layout-mobile-grid.tss-cols-mobile-4 .swiper-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

    .tss-layout-mobile-grid .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .tss-layout-mobile-grid .tss-swiper-prev,
    .tss-layout-mobile-grid .tss-swiper-next,
    .tss-layout-mobile-grid .tss-swiper-pagination {
        display: none !important;
    }

    /* Mobile CAROUSEL MODE */
    .tss-layout-mobile-carousel .tss-products-swiper {
        overflow: hidden;
    }
    .tss-layout-mobile-carousel .swiper-wrapper {
        display: flex !important;
        box-sizing: border-box;
    }
}


/* ==========================================================================
   3. LUXURY CAROUSEL CONTROLS (ARROWS & PAGINATION)
   ========================================================================== */

/* Minimalist Luxury Navigation Arrows */
.tss-products-widget .tss-swiper-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f0d1a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 25 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tss-products-widget .tss-swiper-nav-btn:hover {
    background-color: #0f0d1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    border-color: #0f0d1a !important;
}

.tss-products-widget .tss-swiper-nav-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.tss-products-widget .tss-swiper-nav-btn svg path {
    stroke: currentColor !important;
    stroke-width: 1.5px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.tss-products-widget .tss-swiper-prev {
    left: 12px;
}

.tss-products-widget .tss-swiper-next {
    right: 12px;
}

@media (max-width: 1024px) {
    .tss-products-widget .tss-swiper-prev {
        left: 8px;
    }
    .tss-products-widget .tss-swiper-next {
        right: 8px;
    }
    .tss-products-widget .tss-swiper-nav-btn {
        width: 36px;
        height: 36px;
    }
    .tss-products-widget .tss-swiper-nav-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}

.tss-products-widget .swiper-button-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Clean Pagination Bullets */
.tss-products-widget .tss-swiper-pagination {
    position: relative;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.tss-products-widget .tss-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: #0f0d1a;
    opacity: 0.2;
    transition: all 0.3s ease;
    margin: 0 !important;
    cursor: pointer;
}

.tss-products-widget .tss-swiper-pagination .swiper-pagination-bullet:hover {
    opacity: 0.5;
}

.tss-products-widget .tss-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    background-color: #0f0d1a;
}


/* ==========================================================================
   4. TSS CATEGORY PRODUCT COUNT WIDGET
   ========================================================================== */

.tss-category-count-widget {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.tss-category-count-wrap {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    max-width: 100%;
}

.tss-category-count-text {
    font-family: 'Outfit', sans-serif !important;
    color: #FFFFFFCC;
    line-height: 1.4;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Default font size: Desktop 14px, Tablet & Mobile 12px */
@media (min-width: 1025px) {
    .tss-category-count-text {
        font-size: var(--tss-cat-count-size-desktop, 14px);
    }
}

@media (max-width: 1024px) {
    .tss-category-count-text {
        font-size: var(--tss-cat-count-size-tablet, 12px);
    }
}

@media (max-width: 767px) {
    .tss-category-count-text {
        font-size: var(--tss-cat-count-size-mobile, 12px);
    }
}

/* Link mode */
a.tss-category-count-link {
    text-decoration: none !important;
    border-bottom: none !important;
    display: inline-flex;
    align-items: center;
    color: inherit;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a.tss-category-count-link:hover,
a.tss-category-count-link:focus {
    text-decoration: none !important;
    opacity: 0.85;
}

/* Responsive alignment helper classes */
.tss-align-left { text-align: left; justify-content: flex-start; }
.tss-align-center { text-align: center; justify-content: center; }
.tss-align-right { text-align: right; justify-content: flex-end; }


/* ==========================================================================
   5. TSS INSTAGRAM FEED WIDGET (LUXURY 2-ROW STYLE)
   ========================================================================== */

.tss-instagram-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.tss-instagram-swiper {
    position: relative;
    width: 100%;
}

/* Stacked Column of 2 Posts */
.tss-insta-col {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--tss-insta-gap, 6px) !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* Square Instagram Tile */
.tss-insta-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f7f7;
    box-sizing: border-box;
    display: block;
}

.tss-insta-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none !important;
    border: none !important;
    overflow: hidden;
}

.tss-insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tss-insta-item:hover img {
    transform: scale(1.05);
}

/* Instagram Hover Overlay */
.tss-insta-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.3s ease !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.tss-insta-item:hover .tss-insta-overlay,
.tss-insta-item a:hover .tss-insta-overlay,
.tss-insta-item:focus-within .tss-insta-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.tss-insta-overlay svg {
    width: 32px !important;
    height: 32px !important;
    color: #ffffff !important;
    fill: currentColor !important;
    display: block !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform: scale(0.85);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.tss-insta-overlay svg path {
    fill: currentColor !important;
}

.tss-insta-item:hover .tss-insta-overlay svg,
.tss-insta-item a:hover .tss-insta-overlay svg {
    transform: scale(1.08) !important;
}

/* 4px Border Radius Navigation Arrows (Exact match to store design) */
.tss-instagram-widget .tss-insta-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f0d1a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 25 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tss-instagram-widget .tss-insta-nav-btn:hover {
    background-color: #0f0d1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
    border-color: #0f0d1a !important;
}

.tss-instagram-widget .tss-insta-nav-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.tss-instagram-widget .tss-insta-nav-btn svg path {
    stroke: currentColor !important;
    stroke-width: 1.5px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.tss-instagram-widget .tss-insta-prev {
    left: 12px;
}

.tss-instagram-widget .tss-insta-next {
    right: 12px;
}

@media (max-width: 1024px) {
    .tss-instagram-widget .tss-insta-prev {
        left: 8px;
    }
    .tss-instagram-widget .tss-insta-next {
        right: 8px;
    }
    .tss-instagram-widget .tss-insta-nav-btn {
        width: 36px;
        height: 36px;
    }
    .tss-instagram-widget .tss-insta-nav-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}

.tss-instagram-widget .swiper-button-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Grid Mode Rules */
.tss-instagram-grid {
    display: grid !important;
    transform: none !important;
    width: 100% !important;
    gap: var(--tss-insta-gap, 6px) !important;
    grid-template-columns: repeat(var(--tss-insta-cols-desktop, 6), minmax(0, 1fr)) !important;
}

.tss-insta-desktop-grid .tss-insta-nav-btn {
    display: none !important;
}

/* Desktop Grid Column helpers */
@media (min-width: 1025px) {
    .tss-insta-cols-desktop-2 .tss-instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .tss-insta-cols-desktop-3 .tss-instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .tss-insta-cols-desktop-4 .tss-instagram-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .tss-insta-cols-desktop-5 .tss-instagram-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .tss-insta-cols-desktop-6 .tss-instagram-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .tss-insta-cols-desktop-7 .tss-instagram-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .tss-insta-cols-tablet-2 .tss-instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .tss-insta-cols-tablet-3 .tss-instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .tss-insta-cols-tablet-4 .tss-instagram-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
    .tss-insta-cols-mobile-2 .tss-instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .tss-insta-cols-mobile-3 .tss-instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}


/* ==========================================================================
   6. TSS CUSTOMER STORIES / TESTIMONIALS WIDGET
   ========================================================================== */

.tss-customer-stories-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.tss-stories-header {
    width: 100%;
    margin-bottom: 36px;
    text-align: center;
}

.tss-stories-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #0f0d1a;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.tss-stories-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
}

.tss-story-slide {
    height: auto !important;
    display: flex !important;
    box-sizing: border-box !important;
}

/* Split Card Container */
.tss-story-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.tss-story-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #dedede;
}

/* Left Media Column */
.tss-story-media {
    position: relative;
    width: 44%;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    aspect-ratio: 4 / 5;
}

.tss-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tss-story-card:hover .tss-story-media img {
    transform: scale(1.03);
}

/* Floating "VIEW PRODUCT" Button */
.tss-story-btn {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff !important;
    color: #96613d !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 8px 18px !important;
    border-radius: 2px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    outline: none !important;
    z-index: 5;
    transition: all 0.25s ease !important;
    line-height: 1.4 !important;
    display: inline-block !important;
}

.tss-story-btn:hover {
    background-color: #0f0d1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

/* Right Content Column */
.tss-story-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.tss-story-quote {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.65;
    color: #222222;
    margin: 0 0 22px 0;
    padding: 0;
    border: none;
    font-weight: 400;
}

.tss-story-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tss-story-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0f0d1a;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.tss-story-location {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #777777;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* Navigation Arrows (Matching Store Luxury 4px Border Radius) */
.tss-customer-stories-widget .tss-stories-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f0d1a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 25 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tss-customer-stories-widget .tss-stories-nav-btn:hover {
    background-color: #0f0d1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
    border-color: #0f0d1a !important;
}

.tss-customer-stories-widget .tss-stories-nav-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.tss-customer-stories-widget .tss-stories-nav-btn svg path {
    stroke: currentColor !important;
    stroke-width: 1.5px !important;
}

.tss-customer-stories-widget .tss-stories-prev {
    left: 12px;
}

.tss-customer-stories-widget .tss-stories-next {
    right: 12px;
}

.tss-customer-stories-widget .swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .tss-story-card {
        padding: 18px;
        gap: 18px;
    }
    .tss-story-quote {
        font-size: 15px;
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .tss-story-card {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    .tss-story-media {
        width: 100% !important;
        max-width: 280px;
        aspect-ratio: 4 / 5;
    }
    .tss-customer-stories-widget .tss-stories-nav-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .tss-customer-stories-widget .tss-stories-nav-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}

