/*================================================================================
  PAGE: Home
  TEMPLATE: templates/shop/home/index.html
  FILE: core/static/css/pages/home.css
  LOADED BY: {% block extra_head %} on the template
  Edit THIS file (not collected /static/). Then collectstatic in production.
================================================================================*/

/*--------------------------------------------------------------------
  [1] Extracted style block 1
--------------------------------------------------------------------*/

/* Preload critical fonts */
@font-face {
    font-family: 'YourFont';
    src: url('font.woff2') format('woff2');
    font-display: swap;
}

/* Image containers with aspect ratio — contain so full product art is visible */
.product-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f8f8;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-container img,
.product-img-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Hidden products for load more */
.hidden {
    display: none;
}

/* Hero carousel: side arrows always visible and easy to tap */
#homeHeroCarousel {
    position: relative;
}
.home-categories-strip,
.home-hero-strip {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}
.home-categories-strip {
    background-color: #edfafa;
    margin-bottom: 0;
}
.home-categories-strip .row {
    margin-left: 0;
    margin-right: 0;
}
.home-categories-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.home-categories-strip .category-section {
    margin: 0;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.home-categories-strip .icon-circle {
    border-radius: 50% !important;
    overflow: hidden;
}
.home-hero-strip {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.home-hero-strip #homeHeroCarousel,
.home-hero-strip .banner-carousel,
.home-hero-strip .carousel-inner,
.home-hero-strip .carousel-inner > .item {
    margin-top: 0 !important;
}
.home-hero-strip .carousel-inner > .item img,
.home-hero-strip .carousel-inner > .item video,
.home-hero-strip .home-banner-media,
.home-hero-strip .banner-single-image img,
.home-hero-strip .banner-single-image video {
    display: block;
    width: 100%;
    height: auto;
}

/* Banner carousel styling */
.banner-carousel {
    position: relative;
}
.banner-carousel .left.carousel-control,
.banner-carousel .right.carousel-control {
    width: 3.25rem;
    z-index: 10;
    opacity: 1;
    pointer-events: auto !important;
    cursor: pointer;
    background-image: none;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    transition: background-color 0.3s ease;
}
.banner-carousel .left.carousel-control:hover,
.banner-carousel .right.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.banner-carousel .glyphicon {
    font-size: 2rem;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.65));
}
.banner-carousel .carousel-inner {
    overflow: hidden;
}
/* Let Bootstrap handle .item display/transform for slide; carousel-fade uses opacity. */
.banner-carousel .carousel-indicators {
    z-index: 5;
    pointer-events: auto !important;
}
.banner-carousel .carousel-indicators li {
    cursor: pointer;
    pointer-events: auto !important;
}
.home-banner-link {
    display: block;
    position: relative;
}
.home-banner-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(90%, 720px);
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
    pointer-events: none;
    text-align: center;
}
.home-banner-title {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0.03em;
    font-weight: 800;
    text-transform: uppercase;
}
.home-banner-short {
    margin: 0;
    font-size: clamp(0.9rem, 1.8vw, 1.35rem);
    line-height: 1.35;
    font-style: italic;
    font-weight: 500;
}
.home-banner-cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: clamp(0.86rem, 1.5vw, 1.06rem);
    font-weight: 600;
    padding: 10px 22px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 767px) {
    .home-banner-overlay {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        gap: 9px;
        width: min(92%, 520px);
        padding: 0;
    }
    .home-banner-cta {
        padding: 8px 14px;
        border-radius: 10px;
    }
}
.home-product-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin: 0 !important;
}
.home-product-section .titleBackgroundColor {
    padding-top: 0 !important;
    padding-bottom: 0.2rem !important;
}
.home-product-section .container-xxl {
    margin-bottom: 0.2rem !important;
}
.home-product-section .colect-text {
    margin-top: 2px !important;
}
.home-product-section .colect-text h5,
.home-product-section .home-product-title {
    margin: 0 0 4px !important;
    line-height: 1.2 !important;
}
.home-product-section .colect-text h5 > a,
.home-product-section .home-product-title a {
    line-height: 1.2 !important;
}
.home-product-section .home-product-price {
    margin: 0 0 4px !important;
    line-height: 1.2 !important;
    color: #66b2b2;
    font-size: 16px;
}
.home-product-section .home-product-compare {
    text-decoration: line-through;
    color: gray;
    margin-right: 6px;
}
.home-product-section .colect-text > a {
    margin-top: 0 !important;
    line-height: 1 !important;
}
@media (max-width: 700px) {
    .home-product-section {
        padding-top: 2px !important;
        padding-bottom: 6px !important;
    }
    .home-product-section .titleBackgroundColor {
        padding-top: 0 !important;
        padding-bottom: 0.1rem !important;
    }
    .home-product-section .container-xxl {
        margin-bottom: 0 !important;
    }
    .home-hero-strip {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .home-hero-strip #homeHeroCarousel {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
#homeHeroCarousel .carousel-control-prev,
#homeHeroCarousel .carousel-control-next {
    width: 3.25rem;
    z-index: 3;
    opacity: 1;
}
#homeHeroCarousel .carousel-control-prev-icon,
#homeHeroCarousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.65));
}

.home-insights {
    background: linear-gradient(180deg, #f7fbfb 0%, #edfafa 100%);
    border-top: 1px solid #d8e6e6;
    padding: 2rem 0 2.5rem;
}
.home-insights-title {
    text-align: center;
    color: #183838;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.review-slider {
    position: relative;
    margin: 0 auto 1.6rem;
    padding: 0 2.2rem;
}
.review-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.review-viewport::-webkit-scrollbar {
    display: none;
}
.review-track {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
}
.review-slide {
    background: #fff;
    border: 1px solid #dfecec;
    border-radius: 14px;
    padding: 16px;
    min-width: 200px;
    width: 200px;
    flex: 0 0 200px;
    box-shadow: 0 8px 20px rgba(0, 76, 76, 0.08);
}
.review-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.review-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f3f3f;
}
.review-date {
    color: #648080;
    font-size: 0.78rem;
}
.review-stars {
    color: #f6b100;
    font-size: 0.95rem;
    letter-spacing: 1px;
    white-space: nowrap;
}
.review-text {
    margin: 6px 0 0;
    color: #2f4f4f;
    font-size: 0.9rem;
    line-height: 1.45;
}
.review-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #0f5757;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.review-nav.review-prev {
    left: -6px;
}
.review-nav.review-next {
    right: -6px;
}
.review-nav:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.review-nav:not(:disabled):hover {
    background: #0a4747;
}
@media (max-width: 700px) {
    .review-slide {
        min-width: 170px;
        width: 170px;
        flex-basis: 170px;
    }
    .review-slider {
        padding: 0 1.6rem;
    }
    .review-nav {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* --- Home: Google Business reviews carousel (below product sections; data from server / Site Settings) --- */
.home-google-reviews {
    --grev-star: #fbb000;
    --grev-text: #404040;
    --grev-card: #ffffff;
    --grev-cta-bg: #5c1f2e;
    --grev-cta-text: #ffffff;
    background: #f4f7f7;
    padding: 1.35rem 0 2rem;
    border-top: 1px solid #dce8e8;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.home-google-reviews .grev-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}
.home-google-reviews .grev-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 1rem;
}
.home-google-reviews .grev-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.home-google-reviews .grev-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
}
.home-google-reviews .grev-logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #004c4c;
}
.home-google-reviews .grev-titleline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.home-google-reviews .grev-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--grev-text);
    text-decoration: none;
}
.home-google-reviews .grev-name:hover {
    text-decoration: underline;
}
.home-google-reviews .grev-agg-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--grev-text);
    font-size: 0.95rem;
}
.home-google-reviews .grev-num {
    font-weight: 700;
    color: var(--grev-star);
}
.home-google-reviews .grev-stars-stack {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 2px;
    color: #ddd;
}
.home-google-reviews .grev-stars-stack .grev-stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--grev-star);
    height: 100%;
}
.home-google-reviews .grev-count-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.home-google-reviews .grev-google-word {
    height: 17px;
    width: auto;
    vertical-align: middle;
}
.home-google-reviews .grev-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--grev-cta-bg);
    color: var(--grev-cta-text) !important;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.home-google-reviews .grev-cta:hover {
    filter: brightness(1.08);
    color: var(--grev-cta-text) !important;
}
.home-google-reviews .grev-stage {
    position: relative;
    padding: 0 44px;
}
.home-google-reviews .grev-viewport {
    overflow: hidden;
    width: 100%;
}
.home-google-reviews .grev-track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.home-google-reviews .grev-card {
    flex: 0 0 272px;
    width: 272px;
    max-width: 272px;
    min-width: 0;
    background: var(--grev-card);
    border-radius: 14px;
    padding: 14px 14px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #ececec;
    color: var(--grev-text);
}
.home-google-reviews .grev-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.home-google-reviews .grev-reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.home-google-reviews .grev-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.home-google-reviews .grev-reviewer-meta {
    min-width: 0;
}
.home-google-reviews .grev-author {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--grev-text);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-google-reviews .grev-when {
    font-size: 0.78rem;
    color: #888;
}
.home-google-reviews .grev-gicon {
    flex-shrink: 0;
    opacity: 0.9;
}
.home-google-reviews .grev-card-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.home-google-reviews .grev-card-stars .stars {
    color: var(--grev-star);
    letter-spacing: 1px;
    font-size: 0.95rem;
}
.home-google-reviews .grev-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1a73e8;
}
.home-google-reviews .grev-verified svg {
    width: 14px;
    height: 14px;
}
.home-google-reviews .grev-body {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
    max-height: 5.8em;
    overflow: hidden;
}
.home-google-reviews .grev-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s;
}
.home-google-reviews .grev-nav:hover:not(:disabled) {
    background: #004c4c;
    color: #fff;
    border-color: #004c4c;
}
.home-google-reviews .grev-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.home-google-reviews .grev-prev {
    left: 0;
}
.home-google-reviews .grev-next {
    right: 0;
}
@media (max-width: 991px) {
    .home-google-reviews .grev-card {
        flex: 0 0 260px;
        width: 260px;
        max-width: 260px;
    }
}
@media (max-width: 575px) {
    .home-google-reviews .grev-stage {
        padding: 0 40px;
    }
    .home-google-reviews .grev-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/*--------------------------------------------------------------------
  [2] Extracted style block 2
--------------------------------------------------------------------*/

#homeReviewsStrip .home-insights-title {
    text-align: left;
}
#homeReviewsStrip .review-slider {
    position: relative;
    padding: 0 2.2rem;
    overflow: visible;
}
#homeReviewsStrip .review-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
#homeReviewsStrip .review-viewport::-webkit-scrollbar {
    display: none;
}
#homeReviewsStrip .review-track {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
    align-items: stretch;
}
#homeReviewsStrip .review-slide {
    display: block;
    min-width: 230px;
    width: 230px;
    flex: 0 0 230px;
    background: #f7fbfb;
    border: 1px solid #cfe3e3;
    border-radius: 10%;
    min-height: 170px;
    padding: 12px;
}
#homeReviewsStrip .review-text {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}
#homeReviewsStrip .review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #0f5757;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
#homeReviewsStrip .review-prev { left: -18px; }
#homeReviewsStrip .review-next { right: -18px; }
@media (max-width: 700px) {
    #homeReviewsStrip .review-slider { padding: 0 2.2rem; }
    #homeReviewsStrip .review-slide {
        min-width: 180px;
        width: 180px;
        flex-basis: 180px;
    }
    #homeReviewsStrip .review-prev { left: -10px; }
    #homeReviewsStrip .review-next { right: -10px; }
}
