/* Below-fold homepage sections: skip layout/paint until near viewport (SEO HTML unchanged) */
.hp-section-cv {
    content-visibility: auto;
    contain-intrinsic-size: 1px 480px;
}
.hp-cv-item {
    content-visibility: auto;
    contain-intrinsic-size: 280px 360px;
}


/* Typography & Global Constants */
:root {
    --nova-hp-spacing-y: 4.5rem;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* Glassmorphism Captions (Hero Slider) */
.nova-hero-carousel .carousel-caption {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    color: var(--color-text, #0f172a) !important;
    text-align: start;
    max-width: 540px;
    bottom: 3.5rem;
    inset-inline-start: 10%;
    inset-inline-end: auto;
}

.nova-hero-carousel .carousel-caption h5 {
    color: var(--color-text, #0f172a);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.nova-hero-carousel .carousel-caption p {
    color: var(--color-muted, #475569);
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Premium Apple-style progress indicators */
.nova-hero-carousel .carousel-indicators {
    bottom: 1.5rem;
    margin-bottom: 0;
    gap: 0.5rem;
}

.nova-hero-carousel .carousel-indicators [data-bs-target] {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nova-hero-carousel .carousel-indicators .active {
    width: 48px;
    background-color: var(--color-accent, #c9a227);
}

.nova-hero-carousel .carousel-control-prev,
.nova-hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    margin: 0 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
}

.nova-hero-carousel:hover .carousel-control-prev,
.nova-hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.nova-hero-carousel .carousel-control-prev:hover,
.nova-hero-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.05);
}

.nova-hero-carousel .carousel-control-prev-icon,
.nova-hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Modern Categories Circle Badges */
.nova-category-bubbles {
    padding: 2.5rem 0;
    background: transparent;
}

.nova-category-bubbles__circle {
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.nova-category-bubbles__item:hover .nova-category-bubbles__circle {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: var(--color-accent, #c9a227);
}

.nova-category-bubbles__label {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    transition: color 0.2s ease;
}

.nova-category-bubbles__item:hover .nova-category-bubbles__label {
    color: var(--color-primary, #004b87);
}

/* Premium Product Sliders and Controls */
.product-slider-wrapper .slider-nav-btn {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.product-slider-wrapper .slider-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

/* Grayscale Brands section with high-contrast reveal (default).
   Enable full brand colors via settings: showLogoColors → .nova-brand-grid-section--colored */
.nova-brand-grid-card {
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    background: #fff;
}

.nova-brand-grid-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    border-color: var(--color-accent, #c9a227);
}

.nova-brand-grid-section--colored .nova-brand-grid-card {
    filter: none;
    opacity: 1;
}

.nova-brand-grid-section--colored .nova-brand-grid-card:hover {
    filter: none;
    opacity: 1;
}

/* Modern trust section badges */
.nova-trust-badges {
    padding: 3rem 0;
    background: transparent;
}

.nova-trust-badges__container {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    padding: 2rem;
}

.nova-trust-badges__item {
    padding: 1.25rem 1rem;
    border-radius: 14px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
    border: 1px solid transparent;
    color: inherit;
    display: block;
}

a.nova-trust-badges__item--link {
    text-decoration: none;
    cursor: pointer;
}

a.nova-trust-badges__item--link:hover .nova-trust-badges__label {
    color: var(--color-accent, #2563eb);
}

.nova-trust-badges__item:hover {
    transform: translateY(-3px);
    background: #f8fafc;
    border-color: #f1f5f9;
}

.nova-trust-badges__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(11, 18, 32, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1.45rem;
    color: var(--color-primary, #004b87);
    transition: transform 0.3s ease, background 0.3s ease;
}

.nova-trust-badges__item:hover .nova-trust-badges__icon {
    transform: rotate(-8deg) scale(1.08);
    background: rgba(var(--color-primary-rgb, 11, 18, 32), 0.08);
}

.nova-trust-badges__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
}

/* Premium clean newsletter styling */
.nova-newsletter-card {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.nova-newsletter-card::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.nova-newsletter-card::before {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 18, 32, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.nova-newsletter-form .form-control {
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border, #e5e7eb);
    background: #f8fafc;
    transition: all 0.2s ease;
}

.nova-newsletter-form .form-control:focus {
    background: #fff;
    border-color: var(--color-accent, #c9a227);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

.nova-newsletter-form .btn-subscribe {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    background: var(--color-accent, #c9a227);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.2);
    transition: all 0.2s ease;
}

.nova-newsletter-form .btn-subscribe:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.3);
    filter: brightness(1.05);
}

.nova-newsletter-subscribe {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.nova-newsletter-account-email {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
    background: #f8fafc;
    color: var(--color-text, #0f172a);
    font-weight: 600;
    cursor: default;
    user-select: none;
}

.nova-newsletter-account-email i {
    color: var(--color-accent, #c9a227);
    flex: 0 0 auto;
}

.nova-newsletter-consent {
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--color-muted, #64748b);
    text-align: start;
}

.nova-newsletter-subscribed {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
    text-align: start;
}

.nova-newsletter-subscribed__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.nova-newsletter-subscribed__title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-text, #0f172a);
}

.nova-newsletter-subscribed__email {
    font-size: 0.8rem;
    color: var(--color-muted, #64748b);
    word-break: break-all;
}

.nova-newsletter-subscribed--footer {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    max-width: 420px;
}

.nova-newsletter-subscribed--footer .nova-newsletter-subscribed__title {
    font-size: 0.82rem;
}

.nova-newsletter-subscribe--footer .nova-newsletter-consent {
    max-width: 420px;
    font-size: 0.68rem;
    opacity: 0.92;
}

/* Bottom margins & separators before footer */
.homepage-bottom-separator {
    border-top: 1px solid var(--color-border, #e5e7eb);
    margin: 4.5rem 0 0.5rem;
    opacity: 0.6;
}

/* Image lazy loading & skeleton states */
.nova-pcard-skeleton {
    border-radius: 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 1rem;
    background: #fff;
}

.nova-pcard-skeleton .skeleton-media {
    aspect-ratio: 1;
    border-radius: 8px;
    background: #f1f5f9;
}

/* Mobile responsive fixes */
@media (max-width: 767.98px) {
    .nova-hero-carousel .carousel-caption {
        bottom: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
        max-width: none;
        padding: 1.25rem;
        border-radius: 12px;
    }

    .nova-newsletter-card {
        padding: 2rem 1rem;
    }

    .nova-trust-badges__container {
        padding: 1rem;
    }
}

/* Bukhamsen grid — layout polish; hover/radius/title size owned by Theme settings */
.nova-pcard-bukhamsen {
    position: relative;
    border-radius: var(--nova-pcard-radius, var(--radius-md, 16px));
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

html[data-nova-pcard-hover]:not([data-nova-pcard-hover="none"]) .nova-pcard-bukhamsen:hover {
    border-color: var(--color-accent, #c9a227);
}

.nova-pcard-bukhamsen__toolbar {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 10;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nova-pcard-bukhamsen__actions {
    flex-direction: column;
    gap: 0.4rem;
}

.nova-pcard-bukhamsen__icon-btn {
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    border: 1px solid var(--color-border, #e5e7eb) !important;
}

[dir="rtl"] .nova-pcard-bukhamsen__icon-btn {
    transform: translateX(-12px);
}

.nova-pcard-bukhamsen:hover .nova-pcard-bukhamsen__icon-btn {
    opacity: 1;
    transform: translateX(0);
}

.nova-pcard-bukhamsen__badge-discount {
    border-radius: 8px !important;
    min-width: 46px !important;
    min-height: 24px !important;
    height: auto !important;
    width: auto !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.72rem !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25) !important;
    top: 0.75rem !important;
    inset-inline-start: 0.75rem !important;
}

.nova-pcard-bukhamsen__badge-discount br {
    display: none;
}

.nova-pcard-bukhamsen__badge-discount span {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
}

[dir="rtl"] .nova-pcard-bukhamsen__badge-discount span {
    flex-direction: row;
}

.nova-pcard-bukhamsen__media-frame {
    border-radius: 12px !important;
    overflow: hidden;
}

.nova-pcard-bukhamsen__title {
    font-size: var(--nova-pcard-title-size, 0.88rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text, #0f172a);
    min-height: 2.8em;
    margin-bottom: 0.5rem;
}

.nova-pcard-bukhamsen__price-current {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--color-primary, #004b87) !important;
}

.nova-pcard-bukhamsen__price-was {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--color-danger, #dc2626) !important;
}

.nova-pcard-bukhamsen__buy {
    border-radius: 10px !important;
    padding: 0.55rem 0.75rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease;
}

.nova-pcard-bukhamsen__buy:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .nova-pcard-bukhamsen__icon-btn {
        opacity: 1;
        transform: none !important;
    }
}

/* Compact Saudi Product Card Redesign — hover from Theme data-nova-pcard-hover */
.nova-pcard-compact {
    border-radius: var(--nova-pcard-radius, var(--radius-md, 16px));
    border: 1px solid var(--color-border, #e5e7eb);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    background: var(--color-card, #fff);
    overflow: hidden;
}

html[data-nova-pcard-hover]:not([data-nova-pcard-hover="none"]) .nova-pcard-compact:hover {
    border-color: var(--color-accent, #c9a227);
}

.nova-pcard-compact__thumb {
    border-radius: 10px !important;
}

.nova-pcard-compact__title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--color-text, #0f172a) !important;
}


