/* ==========================================
   HAIR PALACE — FULL HOMEPAGE RESTYLE
   Scoped to .home / .hp-home-restyle
   Elementor page + Hello Shoppable + Woo
========================================== */

.home.hp-home-restyle {
    --hp-ink: #211126;
    --hp-ink-soft: #3a2a42;
    --hp-gold: #d4af37;
    --hp-gold-soft: #e6c86a;
    --hp-purple: #6b2d7b;
    --hp-purple-deep: #4a1d56;
    --hp-cream: #faf7f4;
    --hp-line: #ebe4ef;
    --hp-muted: #7a7180;
    --hp-font-display: "Cormorant Garamond", Georgia, serif;
    --hp-font-body: "Manrope", system-ui, sans-serif;
    background: var(--hp-cream);
}

.home.hp-home-restyle .site-content,
.home.hp-home-restyle .elementor-761 {
    background: transparent;
}

/* ---------- HERO ---------- */
.home.hp-home-restyle .elementor-element-5539aec {
    position: relative;
    z-index: 0 !important;
    isolation: isolate; /* keep inner z-index:2 from beating header menus */
    min-height: clamp(420px, 68vh, 640px);
    overflow: hidden;
    border-radius: 0;
    margin: 0 !important;
}

/* Elementor often sets z-index: 2 on hero children — contain it */
.home.hp-home-restyle .elementor-element-5539aec .e-con,
.home.hp-home-restyle .elementor-element-ae33326,
.home.hp-home-restyle .elementor-element-f860e52,
.home.hp-home-restyle .elementor-element-ff23936,
.home.hp-home-restyle .elementor-element-5477056,
.home.hp-home-restyle .elementor-element-1e5ac71 {
    z-index: 0 !important;
}

.home.hp-home-restyle .elementor-element-5539aec::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(22, 11, 28, 0.55) 0%, rgba(22, 11, 28, 0.15) 48%, rgba(22, 11, 28, 0.45) 100%);
    z-index: 1;
}

/* Hero copy above gradient only (inside isolated context) */
.home.hp-home-restyle .elementor-element-5539aec > .e-con {
    position: relative;
    z-index: 2 !important;
}

.home.hp-home-restyle .elementor-element-ae33326 {
    min-height: clamp(380px, 60vh, 560px);
}

/* "Find exactly what you need" */
.home.hp-home-restyle .elementor-element-5539aec .e-heading-base,
.home.hp-home-restyle .elementor-element-ff23936 h2,
.home.hp-home-restyle .elementor-element-5477056 h2 {
    font-family: var(--hp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    letter-spacing: 0.02em;
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    margin: 0 0 12px !important;
}

.home.hp-home-restyle .elementor-element-ff23936,
.home.hp-home-restyle .elementor-element-1e5ac71 {
    padding: 18px 16px 22px !important;
}

/* Hero carousel tiles */
.home.hp-home-restyle .elementor-widget-image-carousel .swiper-slide img {
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home.hp-home-restyle .elementor-widget-image-carousel .swiper-slide-active img,
.home.hp-home-restyle .elementor-widget-image-carousel .swiper-slide:hover img {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.home.hp-home-restyle .elementor-widget-image-carousel .elementor-swiper-button {
    background: rgba(33, 17, 38, 0.72) !important;
    color: var(--hp-gold) !important;
    border-radius: 999px;
    width: 40px;
    height: 40px;
}

/* ---------- TRUST STRIP ---------- */
.hp-home-trust {
    background: var(--hp-ink);
    color: #fff;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.hp-home-trust__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.hp-home-trust__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
    border-left: 2px solid var(--hp-gold);
}

.hp-home-trust__title {
    font-family: var(--hp-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hp-gold-soft);
    letter-spacing: 0.02em;
}

.hp-home-trust__text {
    font-family: var(--hp-font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 768px) {
    .hp-home-trust__inner {
        grid-template-columns: repeat(4, 1fr);
        padding: 22px 24px;
        gap: 20px;
    }

    .hp-home-trust__title {
        font-size: 1.25rem;
    }
}

/* ---------- SECTION HEADINGS ---------- */
.home.hp-home-restyle .elementor-heading-title,
.home.hp-home-restyle .elementor-widget-heading .elementor-heading-title {
    font-family: var(--hp-font-display) !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: #fff !important;
    font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
}

.home.hp-home-restyle .elementor-element-5d625b6,
.home.hp-home-restyle .elementor-element-8304896,
.home.hp-home-restyle .elementor-element-c1a12d6,
.home.hp-home-restyle .elementor-element-a4a7f1d,
.home.hp-home-restyle .elementor-element-00ddba1 {
    background: linear-gradient(90deg, var(--hp-purple-deep), var(--hp-purple)) !important;
    padding: 14px 18px !important;
    margin: 28px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    position: relative;
}

.home.hp-home-restyle .elementor-element-5d625b6::after,
.home.hp-home-restyle .elementor-element-8304896::after,
.home.hp-home-restyle .elementor-element-c1a12d6::after,
.home.hp-home-restyle .elementor-element-a4a7f1d::after,
.home.hp-home-restyle .elementor-element-00ddba1::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hp-gold), transparent);
}

/* Heading widgets that use images instead of text */
.home.hp-home-restyle .elementor-widget-heading img {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ---------- PRODUCT SECTIONS ---------- */
.home.hp-home-restyle .elementor-element-9d178c5,
.home.hp-home-restyle .elementor-element-e762919,
.home.hp-home-restyle .elementor-element-6a63f61,
.home.hp-home-restyle .elementor-element-221d6fa,
.home.hp-home-restyle .elementor-element-4865ba7 {
    padding: 8px 12px 28px !important;
    background: var(--hp-cream) !important;
}

.home.hp-home-restyle .woocommerce ul.products,
.home.hp-home-restyle ul.products {
    gap: 14px !important;
    margin: 16px 0 0 !important;
}

.home.hp-home-restyle .woocommerce ul.products li.product,
.home.hp-home-restyle ul.products li.product {
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(33, 17, 38, 0.04), 0 10px 28px rgba(33, 17, 38, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(14px);
}

.home.hp-home-restyle .woocommerce ul.products li.product.hp-inview,
.home.hp-home-restyle ul.products li.product.hp-inview {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--hp-delay, 0ms);
}

.home.hp-home-restyle .woocommerce ul.products li.product:hover,
.home.hp-home-restyle ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.7) !important;
    box-shadow: 0 14px 34px rgba(33, 17, 38, 0.12);
}

.home.hp-home-restyle .woocommerce ul.products li.product .product-inner,
.home.hp-home-restyle ul.products li.product .product-inner {
    border: 0 !important;
    background: transparent !important;
}

.home.hp-home-restyle .woocommerce ul.products li.product .woo-product-image,
.home.hp-home-restyle ul.products li.product .woo-product-image {
    margin: 0 !important;
    background: #f4f0f6;
    overflow: hidden;
    border: 0 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.home.hp-home-restyle .woocommerce ul.products li.product .woo-product-image a,
.home.hp-home-restyle ul.products li.product .woo-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.home.hp-home-restyle .woocommerce ul.products li.product img,
.home.hp-home-restyle ul.products li.product img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.45s ease;
}

.home.hp-home-restyle .woocommerce ul.products li.product:hover img,
.home.hp-home-restyle ul.products li.product:hover img {
    transform: scale(1.04);
}

.home.hp-home-restyle .woocommerce ul.products li.product .woocommerce-loop-product__title,
.home.hp-home-restyle ul.products li.product .woocommerce-loop-product__title,
.home.hp-home-restyle .woocommerce ul.products li.product h2,
.home.hp-home-restyle .woocommerce ul.products li.product h3 {
    font-family: var(--hp-font-body) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--hp-ink) !important;
    line-height: 1.35 !important;
    padding: 12px 12px 4px !important;
    margin: 0 !important;
}

.home.hp-home-restyle .woocommerce ul.products li.product .price,
.home.hp-home-restyle ul.products li.product .price {
    font-family: var(--hp-font-body) !important;
    font-weight: 700 !important;
    color: var(--hp-purple) !important;
    font-size: 15px !important;
    padding: 0 12px 12px !important;
    margin: 0 !important;
}

.home.hp-home-restyle .woocommerce ul.products li.product .button,
.home.hp-home-restyle .woocommerce ul.products li.product a.button,
.home.hp-home-restyle ul.products li.product .button {
    font-family: var(--hp-font-body) !important;
    background: var(--hp-ink) !important;
    border-color: var(--hp-ink) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 12px 14px !important;
    padding: 10px 16px !important;
}

.home.hp-home-restyle .woocommerce ul.products li.product .button:hover,
.home.hp-home-restyle ul.products li.product .button:hover {
    background: var(--hp-gold) !important;
    border-color: var(--hp-gold) !important;
    color: var(--hp-ink) !important;
}

/* Hide noisy empty rating rows when unused */
.home.hp-home-restyle .woocommerce ul.products li.product .star-rating {
    display: none !important;
}

/* Carousel product widgets */
.home.hp-home-restyle .bew-elements-carousel-products .product,
.home.hp-home-restyle .elementor-widget-bew-elements-carousel-products .product {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(33, 17, 38, 0.06);
}

.home.hp-home-restyle .bew-elements-carousel-products .woo-product-image,
.home.hp-home-restyle .elementor-widget-bew-elements-carousel-products .woo-product-image,
.home.hp-home-restyle .bew-elements-carousel-products .product img,
.home.hp-home-restyle .elementor-widget-bew-elements-carousel-products .product .woo-product-image img {
    aspect-ratio: 1 / 1;
}

.home.hp-home-restyle .bew-elements-carousel-products .product img,
.home.hp-home-restyle .elementor-widget-bew-elements-carousel-products .product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.home.hp-home-restyle .elementor-widget-bew-elements-carousel-products .swiper-button-next,
.home.hp-home-restyle .elementor-widget-bew-elements-carousel-products .swiper-button-prev,
.home.hp-home-restyle .bew-elements-carousel-products .swiper-button-next,
.home.hp-home-restyle .bew-elements-carousel-products .swiper-button-prev {
    color: var(--hp-gold) !important;
    background: var(--hp-ink);
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
    .home.hp-home-restyle .elementor-element-5539aec {
        min-height: auto;
    }

    .home.hp-home-restyle .elementor-element-ae33326 {
        min-height: 280px;
    }

    .home.hp-home-restyle .elementor-element-ff23936,
    .home.hp-home-restyle .elementor-element-1e5ac71 {
        background: rgba(22, 11, 28, 0.72);
    }

    .home.hp-home-restyle .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .home.hp-home-restyle .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    .home.hp-home-restyle .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .home.hp-home-restyle .woocommerce ul.products li.product h2,
    .home.hp-home-restyle .woocommerce ul.products li.product h3 {
        font-size: 12.5px !important;
        padding: 10px 10px 2px !important;
    }

    .home.hp-home-restyle .woocommerce ul.products li.product .price {
        font-size: 13px !important;
        padding: 0 10px 10px !important;
    }

    .home.hp-home-restyle .woocommerce ul.products li.product .button {
        margin: 0 10px 12px !important;
        width: calc(100% - 20px);
        text-align: center;
    }
}

/* ---------- DESKTOP REFINEMENTS ---------- */
@media (min-width: 992px) {
    .home.hp-home-restyle .elementor-element-9d178c5,
    .home.hp-home-restyle .elementor-element-e762919,
    .home.hp-home-restyle .elementor-element-6a63f61,
    .home.hp-home-restyle .elementor-element-221d6fa,
    .home.hp-home-restyle .elementor-element-4865ba7 {
        padding: 12px 28px 40px !important;
    }

    .home.hp-home-restyle .elementor-element-5539aec {
        margin: 0 0 0 !important;
    }
}
