/* ============================================
   SH-RD-INSPIRED DENSITY OVERRIDES
   Append at bottom of home.css
============================================ */

/* ---- 1. TRUST BAR (thin, dense) ---- */
.trust-bar {
    background: var(--navy-deep);
    color: var(--gold-light);
    border-bottom: 1px solid rgba(184, 147, 90, 0.25);
}
.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 36px;
    padding: 10px 24px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.trust-bar-inner span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.trust-bar-inner i {
    color: var(--gold);
    font-size: 14px;
}

/* ---- 2. GLOBAL DENSITY: cut section padding ~45% ---- */
.category-section,
.featured-products-section,
.bhav-products-section,
.bhav-offers-section,
.shop-by-style-section,
.decor-campaign,
.bhav-benefits {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}
.bhav-offers-banner {
    margin-bottom: 40px !important;
}
.section-head-top {
    margin-bottom: 28px !important;
}

/* ---- 3. SECTION HEAD TOP (title + view-all on one line) ---- */
.section-head-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.section-head-top .section-heading {
    margin: 0;
}
.section-head-top .section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}
.section-head-top--center {
    justify-content: center;
    text-align: center;
}
.section-heading--center {
    text-align: center;
    margin: 0 auto 32px;
}
.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ink);
    white-space: nowrap;
    transition: gap 0.3s;
}
.section-view-all:hover {
    gap: 14px;
    color: var(--gold);
    border-color: var(--gold);
}

/* ---- 4. DENSE CATEGORY GRID (replaces slider) ---- */
.category-grid .cat-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 3.6;
    background: var(--cream-warm);
    isolation: isolate;
}
.cat-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
    z-index: -2;
}
.cat-tile:hover img {
    transform: scale(1.08);
}
.cat-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(8, 26, 48, 0.85) 0%, rgba(8, 26, 48, 0.15) 55%, transparent 100%);
}
.cat-tile-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: var(--ivory);
}
.cat-tile-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 6px;
    line-height: 1.2;
}
.cat-tile-content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
}
.cat-tile:hover .cat-tile-content span {
    gap: 12px;
}

/* ---- 5. SOLUTION RAIL (SH-RD "I find hair on my pillow" pattern) ---- */
.solution-rail {
    padding: 28px 0;
    border-top: 1px solid var(--line-soft);
    background: var(--ivory);
}
.solution-rail:nth-of-type(even) {
    background: var(--bg-alt);
}
.rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.rail-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    color: var(--ink);
}
.rail-header a {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.rail-header a:hover {
    gap: 12px;
}

/* ---- 6. TIGHTER PRODUCT CARDS (used in rails + bestsellers) ---- */
.bhav-product-card {
    border-radius: 0;
}
.bhav-product-image-wrap {
     padding: 20px;
    aspect-ratio: 3 / 3.8;
} /* denser than 4/4.8 */
.bhav-product-info {
    padding: 14px 12px 16px !important;
}
.bhav-product-title {
    font-size: 15px !important;
    min-height: 30px !important;
    line-height: 1.4 !important;
}
.bhav-current-price {
    font-size: 16px !important;
    font-weight: 700;
}
.bhav-add-to-cart {
    padding: 10px 10px !important;
    font-size: 9px !important;
    letter-spacing: 1.5px !important;
}
.bhav-product-badge {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 8px;
}
.bhav-wishlist-btn {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 14px;
}
.bhav-quick-view {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 10px 8px;
    font-size: 9px;
}

/* 5-up bestseller rail on xl */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* ---- 7. TESTIMONIALS ---- */
.testimonials-section {
    padding: 50px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
}
.testimonial-card {
    height: 100%;
    padding: 22px 20px;
    background: var(--ivory);
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.testimonial-card:hover {
    box-shadow: 0 12px 30px rgba(13, 37, 66, 0.07);
    border-color: var(--line);
}
.testimonial-stars {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 2px;
}
.testimonial-card p {
    margin: 0;
    flex: 1;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.testimonial-author {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
}
.testimonial-author strong {
    color: var(--ink);
}

/* ---- 8. FAQ ACCORDION (SH-RD style) ---- */
.faq-section {
    padding: 50px 0;
    background: var(--ivory);
}
.faq-accordion {
    max-width: 820px;
    margin: 0 auto;
}
.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
}
.faq-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    padding: 18px 4px;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--ink);
    font-weight: 400;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--gold);
}
.faq-accordion .accordion-button::after {
    filter: grayscale(1) opacity(0.6);
}
.faq-accordion .accordion-body {
    padding: 0 4px 20px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ---- 9. TRUSTED COUNTRIES STRIP ---- */
.trusted-strip {
    padding: 50px 0;
    text-align: center;
    background: var(--navy-deep);
    color: var(--cream);
    border-top: 1px solid rgba(184, 147, 90, 0.3);
}
.trusted-label {
    margin: 0;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
}
.trusted-count {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 400;
    color: var(--ivory);
    margin: 6px 0 24px;
}
.trusted-countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}
.trusted-countries span {
    padding: 6px 14px;
    border: 1px solid rgba(212, 180, 131, 0.3);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    transition: all 0.3s;
}
.trusted-countries span:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

/* ---- 10. FOOTER: tighten ---- */
.site-footer {
    padding-top: 55px;
}
.footer-bottom {
    margin-top: 40px;
}

/* ---- 11. MOBILE: keep density ---- */
@media (max-width: 575px) {
    .category-section,
    .featured-products-section,
    .bhav-products-section,
    .bhav-offers-section,
    .shop-by-style-section,
    .decor-campaign,
    .bhav-benefits,
    .testimonials-section,
    .faq-section,
    .trusted-strip {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    .solution-rail {
        padding: 22px 0;
    }
    .rail-header h3 {
        font-size: 16px;
    }
    .cat-tile-content h3 {
        font-size: 15px;
    }
    .testimonial-card p {
        font-size: 13px;
    }
    .trust-bar-inner {
        font-size: 9px;
        gap: 8px 16px;
    }
}

/* ============================================
   CATEGORY SECTION — SLIDER (SH-RD dense style)
============================================ */

.category-section {
    padding: 40px 0 !important;
    background: var(--ivory);
    overflow: hidden;
}

/* Header row: heading left, arrows + view-all right */
.category-head-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.category-navigation {
    display: flex;
    gap: 8px;
}

.category-navigation button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.category-navigation button:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ivory);
}

.category-navigation button.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Swiper container */
.categorySwiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 32px;
}

.categorySwiper .swiper-slide {
    height: auto;
}

/* ---- Cat tile (dense editorial) ---- */
.cat-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 3.6;
    background: var(--cream-warm);
    isolation: isolate;
    color: var(--ivory);
    text-decoration: none;
}

.cat-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* padding: 10px; */
    object-fit: cover;
    z-index: -2;
    transition: transform 1s var(--ease-out);
}

.cat-tile:hover img {
    transform: scale(1.08);
}

.cat-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgb(8, 26, 48) 0%,
        rgba(8, 26, 48, 0.123) 35%,
        rgba(8, 26, 48, 0.068) 100%
    );
    transition: background 0.5s ease;
}

.cat-tile:hover .cat-tile-overlay {
    background: linear-gradient(to top, rgba(8, 26, 48, 0.473) 0%, rgba(8, 26, 48, 0.199) 50%, rgba(8, 26, 48, 0.1) 100%);
}

.cat-tile-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--ivory);
}

.cat-tile-content h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ivory);
}

.cat-tile-content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--gold-light);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: gap 0.4s var(--ease-out);
}

.cat-tile:hover .cat-tile-content span {
    gap: 12px;
}

/* Pagination */
.category-pagination {
    position: relative !important;
    bottom: auto !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.category-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 2px;
    margin: 0 !important;
    border-radius: 0;
    background: var(--line);
    opacity: 1;
    transition: all 0.4s var(--ease-out);
}

.category-pagination .swiper-pagination-bullet-active {
    background: var(--gold);
    width: 36px;
}

/* Responsive */
@media (max-width: 991px) {
    .category-head-actions {
        gap: 14px;
    }
    .category-navigation button {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .cat-tile-content h3 {
        font-size: 17px;
    }
}

@media (max-width: 575px) {
    .category-section {
        padding: 32px 0 !important;
    }
    .category-head-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .cat-tile-content {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cat-tile-content h3 {
        font-size: 15px;
    }
    .cat-tile-content span {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    .category-pagination .swiper-pagination-bullet {
        width: 18px;
    }
    .category-pagination .swiper-pagination-bullet-active {
        width: 28px;
    }
}
