/* Homepage sections v5.5 */
.home-section {
    padding: 24px 0 32px;
    position: relative;
}

.home-section-products {
    padding: 14px 0 18px;
}

.home-section-products .section-head-row {
    margin-bottom: 10px;
}

.home-section-products .product-rail-wrap {
    padding: 0;
}

.home-section-products .product-rail-swiper {
    padding-bottom: 4px;
}

.home-section-alt {
    background: linear-gradient(180deg, #FAFAFA 0%, #fff 100%);
}

.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.section-head-row .section-heading {
    margin-bottom: 0;
}

.section-head-row .btn-view-all {
    flex-shrink: 0;
    border-radius: 50px;
    font-weight: 700;
    padding: 8px 18px;
}

/* Horizontal product rails */
.product-rail-wrap {
    position: relative;
    padding: 0 4px;
}

.product-rail-swiper {
    overflow: visible;
    padding-bottom: 8px;
}

.product-rail-swiper .swiper-slide {
    width: 168px;
    height: auto;
    display: flex;
}

.product-rail-swiper .swiper-slide .product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-rail-swiper .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-rail-swiper .product-price {
    margin-top: auto;
}

.product-rail-swiper .product-card-btns {
    margin-top: 6px;
}

.product-rail-no-nav .rail-nav-btn {
    display: none !important;
}

.product-rail-has-nav {
    position: relative;
}

@media (min-width: 992px) {
    .product-rail-has-nav {
        padding-left: 44px;
        padding-right: 44px;
    }

    .product-rail-has-nav .rail-nav-btn.d-lg-flex {
        display: flex !important;
    }

    .product-rail-has-nav .rail-prev {
        left: 0;
    }

    .product-rail-has-nav .rail-next {
        right: 0;
    }
}

.rail-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #E65100;
    border: 2px solid #F9A825;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(249, 168, 37, .25);
    transition: background .15s, transform .15s;
}

.rail-nav-btn:hover {
    background: #F9A825;
    color: #1e293b;
    transform: translateY(-50%) scale(1.05);
}

.rail-nav-btn.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

@media (min-width: 576px) {
    .product-rail-swiper .swiper-slide { width: 200px; }
}

@media (min-width: 1200px) {
    .product-rail-swiper .swiper-slide { width: 220px; }
}

.product-rail-swiper .product-card {
    height: 100%;
}

/* Flash sale block on page */
.home-flash-block {
    padding: 10px 0 12px;
    scroll-margin-top: 120px;
}

.home-flash-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 120px;
    text-decoration: none;
    border: 2px solid #F9A825;
    box-shadow: 0 8px 32px rgba(249, 168, 37, .35);
    animation: flashCardPulse 2.5s ease-in-out infinite;
}

.home-flash-card.no-bg-img::before {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 50%, #F9A825 100%);
}

.home-flash-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--flash-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.home-flash-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.25) 100%);
    z-index: 1;
}

.home-flash-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    min-height: 120px;
}

.home-flash-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-flash-badge strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-flash-badge strong i {
    color: #F9A825;
    animation: flashBolt 1s ease infinite;
}

.home-flash-badge span {
    font-size: 13px;
    color: rgba(255,255,255,.9);
    font-weight: 600;
}

.home-flash-timer-big {
    background: #F9A825;
    color: #111;
    font-weight: 800;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

@keyframes flashCardPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(249, 168, 37, .35); }
    50% { box-shadow: 0 8px 40px rgba(255, 111, 0, .55); }
}

@keyframes flashBolt {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Testimonials v3 */
.testimonials-section-v3 {
    background: linear-gradient(165deg, #1F2937 0%, #111827 55%, #1F2937 100%);
    padding: 36px 0 40px;
    color: #fff;
}

.testimonials-section-v3 .section-heading {
    color: #fff;
}

.testimonials-section-v3 .text-muted {
    color: #9CA3AF !important;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249, 168, 37, .2);
    color: #FCD34D;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.testimonial-swiper-v3 .swiper-slide {
    height: auto;
}

.testimonial-card-v3 {
    position: relative;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 22px 20px 18px;
    height: 100%;
    backdrop-filter: blur(8px);
}

.testimonial-quote-icon {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 2rem;
    color: rgba(249, 168, 37, .35);
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.55;
    color: #E5E7EB;
    font-style: italic;
    margin-bottom: 16px;
    min-height: 72px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #F9A825;
    flex-shrink: 0;
}

.testimonial-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F9A825, #FF8F00);
    color: #1F2937;
    font-weight: 800;
    font-size: 18px;
}

.testimonial-author strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.testimonial-author small {
    color: #9CA3AF;
    font-size: 12px;
}

.testimonials-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, .4);
    opacity: 1;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: #F9A825;
    width: 20px;
    border-radius: 4px;
}

.testimonials-rail-wrap .rail-nav-btn {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.testimonials-rail-wrap .rail-nav-btn:hover {
    background: #F9A825;
    color: #1F2937;
}

/* Shop category section polish */
.shop-cat-section-v2 {
    background: linear-gradient(180deg, #fff 0%, #FFF8E1 100%);
    padding: 24px 0 28px;
}

.shop-cat-section-v2 .section-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #F9A825;
    border-radius: 2px;
    margin-top: 6px;
}

/* Desktop header flash card */
.header-flash-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    width: clamp(240px, 30vw, 420px);
    min-height: 54px;
    align-self: stretch;
    margin: 4px 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid #F9A825;
    animation: flashCardPulse 2.5s ease-in-out infinite;
}

.header-flash-card .flash-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.header-flash-card .flash-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.65) 100%);
    z-index: 1;
}

.header-flash-card .flash-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 14px;
    gap: 10px;
}

.header-flash-card .flash-title {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.header-flash-card .flash-title i { color: #F9A825; }

.header-flash-card .flash-timer {
    background: #F9A825;
    color: #111;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Mobile flash jump FAB */
.flash-jump-fab {
    position: fixed;
    bottom: 88px;
    right: 78px;
    z-index: 1045;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(145deg, #F9A825, #FF6F00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 20px rgba(255, 111, 0, .5);
    animation: flashFabBounce 2s ease infinite;
    text-decoration: none;
}

@keyframes flashFabBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (min-width: 992px) {
    .flash-jump-fab { display: none !important; }
}

/* Debit card categories */
.shop-cat-debit-wrap {
    position: relative;
    padding-bottom: 28px;
}

.shop-cat-debit-swiper .swiper-slide {
    width: auto;
    height: auto;
}

.cat-debit-card {
    display: block;
    position: relative;
    width: 100%;
    min-width: 260px;
    height: 148px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 213, 79, .6);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #F9A825 120%);
}

@media (min-width: 992px) {
    .cat-debit-card { min-width: 0; width: 100%; }
}

.cat-debit-card.has-bg {
    background: #111;
}

.cat-debit-chip {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 38px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #FFD54F, #FF8F00);
    opacity: .85;
    z-index: 3;
}

.cat-debit-bg {
    position: absolute;
    inset: 0;
    background-image: var(--debit-bg);
    background-size: cover;
    background-position: center right;
    opacity: .55;
    z-index: 0;
}

.cat-debit-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 50%, transparent 100%);
    z-index: 1;
}

.cat-debit-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px 18px;
    gap: 10px;
}

.cat-debit-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(249, 168, 37, .95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cat-debit-text {
    flex: 1;
    min-width: 0;
}

.cat-debit-text strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.cat-debit-text small {
    color: rgba(255,255,255,.85);
    font-size: 12px;
}

.cat-debit-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #F9A825;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-cat-debit-pagination {
    bottom: 0 !important;
}

/* Category pills loop */
.category-pills-section {
    padding: 12px 0 20px;
    background: #FAFAFA;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.cat-pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    background: #fff;
    border: 1px solid #E0E7FF;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}

.cat-pill-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 168, 37, .2);
    color: #111;
}

.cat-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #E3F2FD, #BBDEFB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565C0;
    font-size: 1rem;
}

.cat-pill-offers .cat-pill-icon {
    background: linear-gradient(145deg, #FFF8E1, #FFE082);
    color: #E65100;
}

.category-pills-swiper .swiper-slide {
    width: auto;
}

.search-meta {
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
}

.search-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #FFF8E1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F9A825;
    font-size: 1.4rem;
    flex-shrink: 0;
}
