﻿/* ================================================
   HOUSE OF PARFUM - DEFERRED CSS
   Loaded asynchronously after page render
   Includes: hover effects, zones, brand/dept pages
   ================================================ */

/* === TRANSITIONS (DEFER - loaded after LCP) === */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* === BUTTON HOVER EFFECTS === */
.single_add_to_cart_button,
.woocommerce-button,
.button.checkout {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.single_add_to_cart_button:hover,
.woocommerce-button:hover,
.button.checkout:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* === PRODUCT CARD HOVER === */
.woocommerce ul.products li.product {
    transition: all 0.4s ease !important;
}

.woocommerce ul.products li.product:hover {
    background: linear-gradient(
        160deg,
        #1f2535 0%,
        #0f1420 40%,
        #1a2030 100%
    ) !important;
    border-color: rgba(197, 160, 89, 0.4) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(197, 160, 89, 0.08) !important;
    transform: translateY(-3px) !important;
}

/* === CTA HOVER EFFECTS === */
.hop-cta {
    transition: all 0.4s ease;
}

.hop-cta:hover {
    background: #C5A059 !important;
    color: #0d1b2a !important;
}

.hop-cta-secondary {
    transition: all 0.4s ease;
}

.hop-cta-secondary:hover {
    background: transparent !important;
    color: #C5A059 !important;
}

/* === STRIPE PAYMENT STYLING === */
.payment_box.payment_method_stripe_ideal,
.payment_box.payment_method_stripe_klarna,
.payment_box.payment_method_stripe {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    padding: 15px !important;
}

.payment_box.payment_method_stripe_ideal iframe,
.payment_box.payment_method_stripe_ideal input,
.payment_box.payment_method_stripe iframe,
.payment_box.payment_method_stripe input {
    color: #ffffff !important;
    background-color: transparent !important;
    border-color: #555555 !important;
}

#wc-stripe-ideal-upe-form select,
#wc-stripe-ideal-upe-form .StripeElement {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #555555 !important;
    border-radius: 4px !important;
}

.payment_box p {
    color: #ffffff !important;
}

.StripeElement--focus {
    border-color: #C5A059 !important;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.2) !important;
}

/* === WALLET PAYMENT === */
.woo-wallet-my-wallet-container .woo-wallet-balance-card {
    background: black;
}

body.woocommerce-checkout #payment .payment_method_wallet > .payment_box {
    background: #c5a059 !important;
    background-color: #c5a059 !important;
    color: #1f2b3a !important;
}

body.woocommerce-checkout #payment .payment_method_wallet > .payment_box::before {
    border-bottom-color: #c5a059 !important;
}

body.woocommerce-checkout #payment .payment_method_wallet > .payment_box p {
    color: #1f2b3a !important;
}

body.woocommerce-checkout #payment ul.payment_methods > li.payment_method_stripe {
    zoom: 0.7 !important;
}

/* === BADGES === */
.free-shipping-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d4af37;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 3px;
    z-index: 9;
    display: block !important;
}

/* ================================================
   ZONE ADDITIONS (Homepage only)
   ================================================ */

.hop-zone {
    padding: 20px 0 10px;
}

.hop-zone-intro {
    max-width: 640px;
    margin: 0 auto 32px;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.55);
    font-family: Georgia, serif;
    font-size: clamp(13px, 1.5vw, 16px);
    font-style: italic;
    line-height: 1.7;
    text-align: center;
}

.hop-zone-luxury {
    background: #0d1b2a;
}

.hop-zone-luxury .hop-section-title {
    font-size: clamp(26px, 3.6vw, 42px) !important;
}

.hop-zone-luxury .hop-carousel-title {
    font-size: clamp(24px, 3.2vw, 38px) !important;
}

.hop-zone-arabian {
    padding-top: 48px;
    padding-bottom: 16px;
    background: linear-gradient(180deg, #0d1b2a 0%, #1c1224 100%);
}

.hop-zone-arabian .hop-carousel-title,
.hop-zone-arabian .hop-section-label {
    color: #d4a5c5 !important;
}

.hop-zone-arabian .hop-carousel-title::after,
.hop-zone-arabian .hop-divider {
    background: #d4a5c5;
}

.hop-zone-newin {
    padding: 48px 0;
    background: #12203a;
    border-top: 1px solid rgba(197, 160, 89, 0.18);
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.hop-zone-beauty {
    padding-top: 48px;
    padding-bottom: 16px;
    background: linear-gradient(180deg, #0d1b2a 0%, #142016 100%);
}

.hop-zone-beauty .hop-carousel-title,
.hop-zone-beauty .hop-section-label {
    color: #a9c9a0 !important;
}

.hop-zone-beauty .hop-carousel-title::after,
.hop-zone-beauty .hop-divider {
    background: #a9c9a0;
}

.hop-zone-luxury-2 {
    background: #0d1b2a;
}

.hop-zone-makeup {
    padding-top: 48px;
    padding-bottom: 40px;
    background: linear-gradient(180deg, #0d1b2a 0%, #241318 100%);
}

.hop-zone-makeup .hop-carousel-title,
.hop-zone-makeup .hop-section-label {
    color: #e0a8ab !important;
}

.hop-zone-makeup .hop-carousel-title::after,
.hop-zone-makeup .hop-divider {
    background: #e0a8ab;
}

.hop-zone + .hop-zone {
    border-top: 1px solid rgba(197, 160, 89, 0.12);
}

/* ================================================
   BRANDS PAGE STYLES
   ================================================ */

.woocommerce ul.products.hop-brand-cards li.hop-brand-card {
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    text-align: center;
}

.woocommerce ul.products.hop-brand-cards li.hop-brand-card a {
    display: block;
    text-decoration: none !important;
}

.woocommerce ul.products.hop-brand-cards li.hop-brand-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    background: #fff;
    object-fit: contain;
}

.woocommerce ul.products.hop-brand-cards li.hop-brand-card .woocommerce-loop-category__title {
    display: block !important;
    margin: 0 !important;
    padding: 18px 12px 6px;
    background: #fff;
    color: #c5a059 !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.woocommerce ul.products.hop-brand-cards li.hop-brand-card .count {
    display: block;
    margin-top: 6px;
    background: transparent;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hop-brand-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 24px;
    padding: 16px;
    background: #101827;
    border: 1px solid rgba(197, 160, 89, 0.35);
}

.hop-brand-filter-label,
.hop-brand-filter a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hop-brand-filter-label {
    margin-right: 6px;
    color: #c5a059;
}

.hop-brand-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    color: #fff;
    text-decoration: none !important;
}

.hop-brand-filter a:hover,
.hop-brand-filter a.is-active {
    background: #c5a059;
    border-color: #c5a059;
    color: #0d1b2a !important;
}

.hop-brand-filter-result {
    margin: 0 0 20px;
    color: #c5a059;
    text-align: center;
}

.hop-brands-intro {
    max-width: 960px;
    margin: 0 auto 28px;
    padding: 38px 32px 12px;
    text-align: center;
}

.hop-brands-kicker {
    margin: 0 0 12px;
    color: #c5a059;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hop-brands-intro h1 {
    margin: 0 0 18px;
    color: #c5a059;
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.1;
}

.hop-brands-lead {
    max-width: 760px;
    margin: 0 auto 12px;
    color: #f3f0e9;
    font-size: 18px;
    line-height: 1.65;
}

.hop-brands-support {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.65;
}

.hop-brands-support a {
    color: #c5a059;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ================================================
   DEPARTMENTS PAGE STYLES
   ================================================ */

.hop-departments-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 24px 72px;
}

.hop-category-kicker {
    margin: 0 0 14px;
    color: #c5a059;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
}

.hop-category-lead {
    max-width: 820px;
    margin: 0 0 38px;
    color: #f1f1f1;
    font-size: 19px;
    line-height: 1.65;
}

.hop-departments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 52px;
}

.hop-department-card {
    display: flex;
    min-height: 250px;
    padding: 26px 22px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(145deg, #0d1118, #111927);
    border: 1px solid rgba(197, 160, 89, 0.42);
    border-radius: 8px;
    box-shadow: none;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hop-department-card:hover,
.hop-department-card:focus {
    background: #151f2f;
    border-color: #c5a059;
    color: #ffffff !important;
    transform: translateY(-4px);
}

.hop-department-card:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.hop-department-icon {
    display: block;
    margin-bottom: 10px;
    color: #c5a059;
    font-size: 28px;
    line-height: 1;
}

.hop-department-label {
    display: block;
    margin: 0 0 9px;
    color: #c5a059;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.3;
    text-transform: uppercase;
}

.hop-department-card strong {
    display: block;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
}

.hop-department-card small {
    display: block;
    color: #dedede;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none !important;
}

.hop-departments-page h2 {
    margin: 0 0 14px;
    color: #c5a059;
}

.hop-category-footer {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.7;
}

.hop-category-footer a {
    color: #c5a059;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ================================================
   RESPONSIVE OVERRIDES
   ================================================ */

@media (max-width: 921px) {
    .hop-departments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hop-brands-intro {
        padding: 38px 24px 12px;
    }
}

@media (max-width: 544px) {
    .hop-departments-page {
        padding: 32px 20px 54px;
    }

    .hop-category-lead {
        margin-bottom: 30px;
        font-size: 17px;
    }

    .hop-brands-intro {
        padding: 32px 20px 12px;
    }
}

/* Lightweight replacement for Astra's scroll-to-top control. */
.hop-scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid #c5a059;
    border-radius: 0;
    background: #c5a059;
    color: #101827;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.hop-scroll-to-top[hidden] {
    display: none;
}

.hop-scroll-to-top:hover,
.hop-scroll-to-top:focus-visible {
    background: #101827;
    color: #c5a059;
    outline: 2px solid #c5a059;
    outline-offset: 2px;
}

/* Customer service page. */
.hp-customer-service {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) 24px;
    color: #f7f3ea;
}

.hp-customer-service__hero {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.hp-customer-service__eyebrow,
.hp-customer-service__kicker {
    margin: 0 0 12px;
    color: #c5a059;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.hp-customer-service h1,
.hp-customer-service h2 {
    color: #c5a059;
    font-family: Georgia, 'Times New Roman', serif;
}

.hp-customer-service h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
}

.hp-customer-service__hero > p:last-child {
    margin: 0;
    color: rgba(247, 243, 234, .76);
    font-size: 18px;
}

.hp-customer-service__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: stretch;
}

.hp-customer-service__contact {
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(197, 160, 89, .72);
    background: linear-gradient(135deg, #101827, #17263a);
}

.hp-customer-service__contact h2,
.hp-customer-service__help h2,
.hp-customer-service__faq h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.hp-customer-service__contact > p:not(.hp-customer-service__kicker),
.hp-customer-service__help p,
.hp-customer-service__faq p {
    color: rgba(247, 243, 234, .78);
    line-height: 1.7;
}

.hp-customer-service__details {
    margin: 30px 0 0;
}

.hp-customer-service__details > div {
    padding: 16px 0;
    border-top: 1px solid rgba(197, 160, 89, .34);
}

.hp-customer-service__details dt {
    margin-bottom: 5px;
    color: #c5a059;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hp-customer-service__details dd {
    margin: 0;
    color: #fff;
    line-height: 1.6;
}

.hp-customer-service__details a {
    color: #f7f3ea;
    text-decoration-color: #c5a059;
    text-underline-offset: 3px;
}

.hp-customer-service__details small {
    display: block;
    margin-top: 2px;
    color: rgba(247, 243, 234, .62);
}

.hp-customer-service__vip-detail dd {
    color: #e6c573;
}

.hp-customer-service__help {
    display: grid;
    align-content: center;
}

.hp-customer-service__help article {
    padding: 24px 0;
    border-top: 1px solid rgba(197, 160, 89, .5);
}

.hp-customer-service__help article:last-child {
    border-bottom: 1px solid rgba(197, 160, 89, .5);
}

.hp-customer-service__help h2 {
    font-family: inherit;
    font-size: 18px;
}

.hp-customer-service__help p {
    margin: 0;
}

.hp-customer-service__faq {
    margin-top: clamp(28px, 5vw, 64px);
    padding: clamp(32px, 5vw, 54px);
    border: 1px solid rgba(197, 160, 89, .7);
    background: #101827;
    text-align: center;
}

.hp-customer-service__faq h2 {
    font-size: 32px;
}

.hp-customer-service__faq p {
    margin: 0 auto 22px;
}

.hp-customer-service__button {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid #c5a059;
    background: #c5a059;
    color: #101827 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.hp-customer-service__button:hover,
.hp-customer-service__button:focus-visible {
    background: transparent;
    color: #e6c573 !important;
    outline: 2px solid #c5a059;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .hp-customer-service {
        padding: 42px 20px;
    }

    .hp-customer-service__hero {
        margin-bottom: 36px;
    }

    .hp-customer-service__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hp-customer-service__contact {
        padding: 28px 24px;
    }
}

/* Must follow the tablet rule: long Dutch department names need full-width cards. */
@media (max-width: 600px) {
    .hop-zone-intro {
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .hop-departments-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .hop-department-card {
        min-height: 200px;
        padding: 22px 18px;
    }

    .hop-department-card strong {
        font-size: clamp(22px, 7vw, 28px);
        overflow-wrap: anywhere;
    }
}
