/* Afiyah Commerce Suite - Frontend Styles */

:root {
    --afiyah-primary: #044634;
    --afiyah-secondary: #0a7c5F;
    --afiyah-header-accent: #044634;
}

/* =========================================================================
   1. HERO SLIDER (FULL SCREEN & CONTAINER WITH SUB SLIDERS)
   ========================================================================= */

/* Ensure no horizontal overflow while preserving position: sticky */
html, body {
    overflow-x: clip;
}

/* Remove Astra theme spacing above hero slider on Homepage */
body.home .site-content,
body.home #content,
body.home .ast-container,
body.home #primary,
body.home #main,
body.home article.ast-article-single,
body.home .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.home .entry-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.afiyah-hero-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

/* Full Screen Edge-to-Edge Mode (Screenshot 3) */
.afiyah-hero-slider-wrapper.afiyah-layout-full_screen {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.afiyah-hero-slider-wrapper.afiyah-layout-full_screen .afiyah-slider-inner-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.afiyah-hero-slider-wrapper.afiyah-layout-full_screen .afiyah-main-slide img {
    width: 100vw;
    height: auto;
    aspect-ratio: var(--afiyah-desktop-ratio, 16 / 9);
    max-height: var(--afiyah-desktop-height, 560px);
    object-fit: cover;
    display: block;
}

.afiyah-hero-slider-wrapper.has-custom-desktop-height .afiyah-main-slide img,
.afiyah-hero-slider-wrapper.afiyah-layout-full_screen.has-custom-desktop-height .afiyah-main-slide img {
    height: var(--afiyah-desktop-height, 500px) !important;
    aspect-ratio: auto !important;
}

@media (max-width: 900px) {
    .afiyah-hero-slider-wrapper.afiyah-layout-full_screen .afiyah-main-slide img {
        aspect-ratio: var(--afiyah-mobile-ratio, 16 / 9);
        max-height: var(--afiyah-mobile-height, 280px);
    }

    .afiyah-hero-slider-wrapper.has-custom-mobile-height .afiyah-main-slide img,
    .afiyah-hero-slider-wrapper.afiyah-layout-full_screen.has-custom-mobile-height .afiyah-main-slide img {
        height: var(--afiyah-mobile-height, 280px) !important;
        aspect-ratio: auto !important;
    }
}

/* Within Container Mode (Screenshot 4) */
.afiyah-hero-slider-wrapper.afiyah-layout-container {
    max-width: 1360px;
    margin: 18px auto 35px;
    padding: 0 16px;
    box-sizing: border-box;
}

.afiyah-hero-slider-wrapper.afiyah-layout-container .afiyah-slider-grid.has-sub-slider {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.afiyah-hero-slider-wrapper.afiyah-layout-container .afiyah-slider-grid.single-slider {
    display: block;
}

/* Main Slider Column */
.afiyah-main-slider-col {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 220px;
}

.afiyah-main-swiper {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.afiyah-main-slide {
    width: 100%;
    height: 100%;
    display: flex;
}

.afiyah-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.afiyah-slide-img {
    width: 100%;
    height: 100%;
    aspect-ratio: var(--afiyah-desktop-ratio, 16 / 9);
    max-height: var(--afiyah-desktop-height, 560px);
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.afiyah-hero-slider-wrapper.has-custom-desktop-height .afiyah-slide-img {
    height: var(--afiyah-desktop-height, 500px) !important;
    aspect-ratio: auto !important;
}

/* Sub Slider Column (Desktop: Strictly matches main slider height - NEVER scrolls or overflows) */
.afiyah-sub-slider-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.afiyah-sub-banners-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.afiyah-sub-banner-item {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.afiyah-sub-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.afiyah-sub-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.afiyah-sub-banner-item:hover .afiyah-sub-banner-img {
    transform: scale(1.03);
}

.afiyah-sub-swiper {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.afiyah-sub-swiper .swiper-wrapper {
    height: 100%;
    min-height: 0;
}

.afiyah-sub-swiper .swiper-slide {
    height: 100%;
    min-height: 0;
}

/* Swiper Dots & Arrows for Hero Slider */
.afiyah-main-swiper .afiyah-swiper-pagination,
.afiyah-sub-swiper .afiyah-sub-pagination {
    bottom: 12px !important;
}

.afiyah-hero-slider-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ffffff;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.afiyah-hero-slider-wrapper .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 6px;
    background: #ea580c;
    opacity: 1;
}

.afiyah-main-swiper .afiyah-swiper-nav-prev,
.afiyah-main-swiper .afiyah-swiper-nav-next {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.25s ease;
}

.afiyah-main-swiper .afiyah-swiper-nav-prev:after,
.afiyah-main-swiper .afiyah-swiper-nav-next:after {
    font-size: 14px;
    font-weight: bold;
}

.afiyah-main-swiper .afiyah-swiper-nav-prev:hover,
.afiyah-main-swiper .afiyah-swiper-nav-next:hover {
    background: #ea580c;
    color: #ffffff;
}

/* Responsive Mobile Rules for Hero Slider */
@media (max-width: 900px) {
    .afiyah-hero-slider-wrapper.afiyah-layout-container .afiyah-slider-grid.has-sub-slider {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .afiyah-main-slider-col {
        height: auto;
    }

    .afiyah-main-slider-col .afiyah-slide-img {
        aspect-ratio: var(--afiyah-mobile-ratio, 16 / 9) !important;
        max-height: var(--afiyah-mobile-height, 280px) !important;
        height: auto;
    }

    .afiyah-hero-slider-wrapper.has-custom-mobile-height .afiyah-main-slider-col .afiyah-slide-img {
        height: var(--afiyah-mobile-height, 280px) !important;
        aspect-ratio: auto !important;
    }

    /* Requirement: In small device below main image will be 2 column and 2 image */
    .afiyah-sub-slider-col {
        height: auto !important;
        max-height: none !important;
    }

    .afiyah-sub-banners-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 10px;
        height: auto !important;
        max-height: none !important;
    }

    .afiyah-sub-banner-item {
        aspect-ratio: 16 / 10;
        height: auto !important;
        max-height: none !important;
    }

    .afiyah-sub-swiper {
        width: 100%;
        margin-top: 6px;
        height: auto !important;
        max-height: none !important;
    }

    .afiyah-sub-swiper .afiyah-sub-banner-item {
        aspect-ratio: 16 / 10;
        height: auto !important;
        max-height: none !important;
    }
}


/* =========================================================================
   2. HOME SECTIONS: BANNERS, HEADERS & PRODUCT SLIDER CARDS
   ========================================================================= */

.afiyah-home-sections-container,
.site-main-container {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

@media (max-width: 640px) {
    .afiyah-home-sections-container,
    .site-main-container {
        padding: 0 12px !important;
    }
}

/* Section Header Row */
.section-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 36px 0 18px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    position: relative !important;
}

.section-header-row::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 50px !important;
    height: 2px !important;
    background: #ea580c !important;
    border-radius: 2px !important;
}

.section-header-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    letter-spacing: -0.3px !important;
    line-height: 1.2 !important;
}

.section-header-icon {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
}

.section-view-all {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ea580c !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.section-view-all:hover {
    color: #c2410c !important;
    transform: translateX(3px) !important;
}

.section-view-all-arrow {
    font-size: 16px !important;
    line-height: 1 !important;
}

@media (max-width: 640px) {
    .section-header-row {
        margin: 24px 0 14px 0 !important;
        padding-bottom: 10px !important;
    }
    .section-header-title {
        font-size: 16px !important;
    }
    .section-view-all {
        font-size: 12px !important;
    }
}

/* Banner Grid */
.afiyah-banner-grid {
    display: grid !important;
    gap: 16px !important;
    margin: 24px 0 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.afiyah-banner-item {
    display: block !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    line-height: 0 !important;
}

.afiyah-banner-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.afiyah-banner-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px !important;
}

/* 1, 2, or 3 banners: ALWAYS 1 row in desktop & mobile */
.afiyah-banner-cols-1 { grid-template-columns: 1fr !important; }
.afiyah-banner-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.afiyah-banner-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.afiyah-banner-cols-4plus { grid-template-columns: repeat(4, 1fr) !important; }

@media (max-width: 1024px) {
    .afiyah-banner-cols-4plus {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .afiyah-banner-grid {
        gap: 8px !important;
        margin: 16px 0 24px !important;
    }
    .afiyah-banner-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .afiyah-banner-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .afiyah-banner-cols-4plus {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Product Slider Styles */
.afiyah-slider-outer {
    position: relative !important;
    margin-bottom: 40px !important;
    padding: 0 !important;
}

.afiyah-product-swiper {
    width: 100% !important;
    overflow: hidden !important;
    padding: 4px 2px 14px !important;
}

.afiyah-product-swiper .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

.afiyah-product-swiper .swiper-slide,
.product-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.product-default {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-default:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
    border-color: #cbd5e1 !important;
}

.product-default > a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0 !important;
}

.product-card-thumb-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #f8fafc !important;
    overflow: hidden !important;
    border-radius: 8px 8px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-card-thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
    border-radius: 0 !important;
}

.product-default:hover .product-card-thumb-wrap img {
    transform: scale(1.05) !important;
}

.badge-new-pill {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 9999px !important;
    z-index: 5 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Product Card Content Padding */
.product-card-content {
    padding: 12px 14px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .product-card-content {
        padding: 10px 10px 12px 10px !important;
    }
}

.product-default .woocommerce-loop-product__title,
.product-card-content .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3,
.product-default h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    transition: color 0.2s ease !important;
}

.product-default:hover .woocommerce-loop-product__title,
.product-default:hover h2,
.product-default:hover h3,
ul.products li.product:hover .woocommerce-loop-product__title,
ul.products li.product:hover h2,
ul.products li.product:hover h3,
.woocommerce-loop-product__link:hover .woocommerce-loop-product__title,
.product-card-link:hover .woocommerce-loop-product__title {
    color: #044634 !important;
}

/* Product Card SKU */
.product-card-sku {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

.product-default .price,
.product-card-content .price,
ul.products li.product .price {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: auto 0 0 0 !important;
    padding: 0 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #ea580c !important;
    text-align: left !important;
}

.product-default .price ins,
.product-card-content .price ins,
ul.products li.product .price ins {
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #ea580c !important;
}

.product-default .price del,
.product-card-content .price del,
ul.products li.product .price del {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* Slider Nav Arrows */
.afiyah-nav-arrow {
    width: 38px !important;
    height: 38px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease !important;
    top: 48% !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
}

.afiyah-nav-arrow:hover {
    background: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
    transform: scale(1.08) !important;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.3) !important;
}

.afiyah-nav-arrow:after {
    font-size: 13px !important;
    font-weight: 800 !important;
}

.afiyah-slider-outer .swiper-button-prev {
    left: -16px !important;
}

.afiyah-slider-outer .swiper-button-next {
    right: -16px !important;
}

.afiyah-slider-outer .swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .afiyah-slider-outer .swiper-button-prev { left: 4px !important; }
    .afiyah-slider-outer .swiper-button-next { right: 4px !important; }
    .afiyah-nav-arrow { width: 32px !important; height: 32px !important; }
    .afiyah-nav-arrow:after { font-size: 11px !important; }
}

/* =========================================================================
   3. LUXURY PROMOTIONAL BANNER POPUP MODAL
   ========================================================================= */

.afiyah-banner-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.afiyah-banner-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.afiyah-banner-popup-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #0f172a;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(234, 88, 12, 0.2);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.afiyah-banner-popup-overlay.is-visible .afiyah-banner-popup-modal {
    transform: scale(1) translateY(0);
}

.afiyah-banner-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    background: #ea580c;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    z-index: 20;
    padding: 0;
}

.afiyah-banner-popup-close:hover {
    background: #c2410c;
    transform: rotate(90deg) scale(1.1);
}

.afiyah-banner-popup-content {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
}

.afiyah-banner-popup-link {
    display: block;
    width: 100%;
    height: 100%;
}

.afiyah-banner-popup-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.afiyah-banner-popup-link:hover .afiyah-banner-popup-img {
    transform: scale(1.015);
}

@media (max-width: 640px) {
    .afiyah-banner-popup-modal {
        max-width: 92vw;
    }
    .afiyah-banner-popup-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* =========================================================================
   2. HEADER & FOOTER BUILDER - TEMPLATE 1 & GLOBAL STYLES
   ========================================================================= */

:root {
    --afiyah-primary: #044634;
    --afiyah-secondary: #0a7c5F;
    --afiyah-header-accent: #044634;
    --afiyah-btn-gradient: linear-gradient(135deg, #044634 0%, #0a7c5F 100%);
    --afiyah-btn-gradient-hover: linear-gradient(135deg, #0a7c5F 0%, #044634 100%);
    --afiyah-btn-shadow: 0 4px 14px rgba(4, 70, 52, 0.28);
    --afiyah-btn-shadow-hover: 0 8px 24px rgba(4, 70, 52, 0.42);
    --afiyah-header-bg: #ffffff;
    --afiyah-header-text: #1e293b;
    --afiyah-header-border: #f1f5f9;
}

/* Base Header Wrapper */
.afiyah-site-header-wrapper {
    width: 100%;
    position: relative;
    z-index: 990;
    background: var(--afiyah-header-bg);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.afiyah-header-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.afiyah-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* -------------------------------------------------------------------------
   Tier 1: Main Header Row (Logo, Search, Action Icons)
   ------------------------------------------------------------------------- */
.afiyah-header-main-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--afiyah-header-border);
    transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Logo Column */
.afiyah-header-logo-col {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.afiyah-brand-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.afiyah-brand-logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    text-transform: none;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.afiyah-brand-logo-link:hover .afiyah-brand-logo-text {
    color: var(--afiyah-header-accent);
}

.afiyah-logo-img {
    height: auto;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

/* Center Search Column (Wide with Pink Border & Pink Submit Button) */
.afiyah-header-search-col {
    flex: 1;
    max-width: 580px;
    margin: 0 32px;
}

.afiyah-header-search-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.afiyah-search-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--afiyah-primary, #044634);
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.afiyah-search-input-wrap:focus-within {
    border-color: var(--afiyah-primary, #044634);
    box-shadow: 0 0 0 3px rgba(4, 70, 52, 0.15);
}

.afiyah-search-field {
    flex: 1;
    height: 100%;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    background: transparent;
    box-sizing: border-box;
}

.afiyah-search-field::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 400;
}

.afiyah-search-submit-btn {
    position: relative;
    width: 56px;
    height: 100%;
    background: linear-gradient(135deg, #044634 0%, #0a7c5F 100%);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.afiyah-search-submit-btn:hover {
    background: linear-gradient(135deg, #0a7c5F 0%, #044634 100%);
    box-shadow: 0 0 12px rgba(4, 70, 52, 0.35);
}

.afiyah-search-icon {
    display: block;
    width: 21px;
    height: 21px;
    stroke: #ffffff;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.afiyah-search-submit-btn:hover .afiyah-search-icon {
    transform: scale(1.06);
}

/* Right Action Icons Column (Login, Wishlist, Cart) */
.afiyah-header-actions-col {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.afiyah-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #475569;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.afiyah-action-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.afiyah-action-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.afiyah-header-cart-count {
    font-weight: 700;
}

.afiyah-action-item:hover {
    color: var(--afiyah-header-accent, #e11d48);
}

.afiyah-action-item:hover .afiyah-action-icon-wrap {
    transform: translateY(-2px);
    color: var(--afiyah-header-accent, #e11d48);
}

.afiyah-action-item:hover .afiyah-action-label {
    color: var(--afiyah-header-accent, #e11d48);
}

/* Mobile Hamburger Toggle */
.afiyah-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.afiyah-mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* -------------------------------------------------------------------------
   Tier 2: Navigation Menu Row with Floating Promo Badges
   ------------------------------------------------------------------------- */
.afiyah-header-nav-row {
    background: #ffffff;
    border-bottom: 1px solid var(--afiyah-header-border);
    padding: 8px 0;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.25s ease, 
                padding 0.3s ease, 
                border-color 0.2s ease;
    overflow: visible;
}

.afiyah-header-nav-row .afiyah-header-inner {
    justify-content: center;
}

.afiyah-nav-menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.afiyah-nav-item {
    position: relative;
    padding: 10px 0;
}

.afiyah-nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1e293b;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.afiyah-nav-text {
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.afiyah-nav-link:hover .afiyah-nav-text {
    color: #044634 !important;
}

/* Floating Promotional Badges (HOT, CLEARANCE, NEW) */
.afiyah-nav-promo-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--afiyah-header-accent, #e11d48);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
    animation: afiyahBadgePulse 2.2s infinite ease-in-out;
    pointer-events: none;
}

/* Highlighted Item (CLEARANCE SALE in red/pink) */
.afiyah-nav-item.is-highlighted-item .afiyah-nav-text {
    color: var(--afiyah-header-accent, #e11d48) !important;
    font-weight: 800;
}

/* Badge Micro-animation */
@keyframes afiyahBadgePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.08);
    }
}

/* Category Dropdown Menu on Desktop Navbar */
.afiyah-nav-item.has-dropdown {
    position: relative;
}

.afiyah-nav-dropdown-arrow {
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.afiyah-nav-item.has-dropdown:hover .afiyah-nav-dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.afiyah-nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    pointer-events: none;
}

.afiyah-nav-item.has-dropdown:hover > .afiyah-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.afiyah-nav-submenu-item {
    border-bottom: 1px solid #f8fafc;
}

.afiyah-nav-submenu-item:last-child {
    border-bottom: none;
}

.afiyah-nav-sublink {
    display: block;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    white-space: nowrap;
}

.afiyah-nav-sublink:hover {
    background: #f0fdf4;
    color: #044634 !important;
    padding-left: 22px;
}

/* -------------------------------------------------------------------------
   Sticky Header Engine (Screenshot 2: Compact Mode)
   ------------------------------------------------------------------------- */
.afiyah-site-header-wrapper.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: afiyahStickySlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes afiyahStickySlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* When in Compact Sticky Mode (Screenshot 2):
   The bottom navigation row smoothly hides/collapses, leaving only compact Logo + Search + Icons */
.afiyah-site-header-wrapper.is-sticky.sticky-compact .afiyah-header-main-row {
    padding: 10px 0;
    border-bottom: none;
}

.afiyah-site-header-wrapper.is-sticky.sticky-compact .afiyah-header-nav-row {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    border-bottom: none !important;
}

/* Full Sticky Mode (keeps both rows visible) */
.afiyah-site-header-wrapper.is-sticky.sticky-full .afiyah-header-main-row {
    padding: 10px 0;
}
.afiyah-site-header-wrapper.is-sticky.sticky-full .afiyah-header-nav-row {
    padding: 4px 0;
}

/* -------------------------------------------------------------------------
   Template 2: Luxury Dark Monogram
   ------------------------------------------------------------------------- */
.afiyah-site-header-wrapper.template_2 {
    background: #0f172a;
    --afiyah-header-border: #1e293b;
    --afiyah-header-accent: #f59e0b;
}

.afiyah-site-header-wrapper.template_2 .afiyah-brand-logo-text {
    color: #f8fafc;
    letter-spacing: 1px;
}

.afiyah-site-header-wrapper.template_2 .afiyah-search-field {
    background: #1e293b;
    border-color: #f59e0b;
    color: #f8fafc;
}

.afiyah-site-header-wrapper.template_2 .afiyah-action-icon-wrap,
.afiyah-site-header-wrapper.template_2 .afiyah-action-label,
.afiyah-site-header-wrapper.template_2 .afiyah-nav-text {
    color: #e2e8f0;
}

.afiyah-site-header-wrapper.template_2 .afiyah-header-nav-row {
    background: #0b1120;
}

.afiyah-site-header-wrapper.template_2.is-sticky {
    background: rgba(15, 23, 42, 0.98);
}

/* -------------------------------------------------------------------------
   Template 3: Centered Minimalist Brand
   ------------------------------------------------------------------------- */
.afiyah-site-header-wrapper.template_3 .afiyah-header-main-row .afiyah-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.afiyah-site-header-wrapper.template_3 .afiyah-header-logo-col {
    justify-content: center;
    grid-column: 2;
}

.afiyah-site-header-wrapper.template_3 .afiyah-header-search-col {
    grid-column: 1;
    margin: 0;
    max-width: 360px;
}

.afiyah-site-header-wrapper.template_3 .afiyah-header-actions-col {
    grid-column: 3;
    justify-content: flex-end;
}

/* -------------------------------------------------------------------------
   Mobile Drawer & Responsive Adjustments
   ------------------------------------------------------------------------- */
.afiyah-mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.afiyah-mobile-drawer.is-open {
    left: 0;
}

.afiyah-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.afiyah-drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.afiyah-drawer-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.afiyah-mobile-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.afiyah-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.afiyah-mobile-nav-item {
    border-bottom: 1px solid #f1f5f9;
}

.afiyah-mobile-nav-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.afiyah-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 0;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
    flex: 1;
}

.afiyah-mobile-nav-link:hover {
    color: #044634 !important;
}

.afiyah-drawer-promo-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.afiyah-submenu-toggle {
    background: none;
    border: none;
    padding: 10px 8px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.afiyah-submenu-toggle:hover {
    color: #044634 !important;
}

.afiyah-mobile-nav-item.is-expanded .afiyah-submenu-toggle svg {
    transform: rotate(180deg);
}

.afiyah-mobile-subnav-list {
    display: none;
    list-style: none;
    margin: 0 0 10px 0;
    padding: 6px 14px;
    background: #f8fafc;
    border-radius: 8px;
}

.afiyah-mobile-nav-item.is-expanded > .afiyah-mobile-subnav-list {
    display: block;
}

.afiyah-mobile-sublink {
    display: block;
    padding: 9px 4px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed #e2e8f0;
    transition: color 0.2s, padding-left 0.2s;
}

.afiyah-mobile-subnav-list li:last-child .afiyah-mobile-sublink {
    border-bottom: none;
}

.afiyah-mobile-sublink:hover {
    color: #044634 !important;
    padding-left: 4px;
}

.afiyah-mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.afiyah-mobile-drawer-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Controls & Cart Badge */
.afiyah-mobile-left-col {
    display: none;
    align-items: center;
    gap: 16px;
}

.afiyah-mobile-search-trigger {
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.afiyah-mobile-search-trigger:hover {
    color: var(--afiyah-header-accent, #e11d48);
    transform: scale(1.08);
}

.afiyah-action-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afiyah-cart-badge-pill {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--afiyah-header-accent, #e11d48);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(225, 29, 72, 0.4);
}

/* Mobile Full-Width Search Row (Image 1: Normal, Image 2: Collapsed in Sticky) */
.afiyah-mobile-search-row {
    display: none;
    width: 100%;
    background: var(--afiyah-header-bg, #ffffff);
    padding: 0 16px 12px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.afiyah-mobile-search-inner {
    width: 100%;
}

.afiyah-mobile-search-input-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.afiyah-mobile-search-input-box:focus-within {
    border-color: var(--afiyah-header-accent, #e11d48);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.afiyah-mobile-input-lens {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 12px;
    color: #64748b;
}

.afiyah-mobile-search-field {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 14px;
    color: #1e293b;
    background: transparent;
}

.afiyah-mobile-search-field::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.afiyah-mobile-search-submit-btn {
    background: var(--afiyah-header-accent, #e11d48);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s;
}

.afiyah-mobile-search-submit-btn:hover {
    filter: brightness(1.08);
}

/* Sticky Collapse for Mobile Search Row (Image 2) */
.afiyah-site-header-wrapper.is-sticky .afiyah-mobile-search-row {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    border: none !important;
}

/* -------------------------------------------------------------------------
   Top Slide-Down Search Modal (Images 3 & 4)
   ------------------------------------------------------------------------- */
.afiyah-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    z-index: 2200;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 24px 24px;
    transform: translateY(-110%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    pointer-events: none;
}

.afiyah-search-modal.is-open {
    transform: translateY(0);
    pointer-events: auto;
}

.afiyah-search-modal-container {
    padding: 22px 20px 24px;
}

.afiyah-search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.afiyah-search-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.afiyah-search-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, transform 0.2s;
}

.afiyah-search-modal-close:hover {
    color: #0f172a;
    transform: rotate(90deg);
}

.afiyah-search-modal-input-pill {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 0 14px 0 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.afiyah-search-modal-input-pill:focus-within {
    border-color: var(--afiyah-header-accent, #e11d48);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    background: #ffffff;
}

.afiyah-modal-lens-icon {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: #64748b;
}

.afiyah-modal-search-field {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

.afiyah-modal-search-field::placeholder {
    color: #94a3b8;
}

.afiyah-search-clear-btn {
    width: 22px;
    height: 22px;
    background: #cbd5e1;
    color: #475569;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.afiyah-search-clear-btn:hover {
    background: #94a3b8;
    color: #ffffff;
}

.afiyah-search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.afiyah-search-modal-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* -------------------------------------------------------------------------
   Instant Live Search Results Dropdown List (Image 4)
   ------------------------------------------------------------------------- */
.afiyah-live-search-results,
.afiyah-desktop-live-dropdown {
    margin-top: 14px;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.afiyah-desktop-live-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    border: 1px solid #e2e8f0;
    margin-top: 6px;
    z-index: 1050;
    padding: 6px 12px;
}

.afiyah-live-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.15s ease;
    border-radius: 6px;
}

.afiyah-live-search-item:last-child {
    border-bottom: none;
}

.afiyah-live-search-item:hover,
.afiyah-live-search-item.is-selected {
    background: #f8fafc;
}

.afiyah-live-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.afiyah-live-info {
    flex: 1;
    min-width: 0;
}

.afiyah-live-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    margin: 0;
}

.afiyah-live-title .afiyah-match-term {
    color: var(--afiyah-header-accent, #e11d48);
    font-weight: 800;
}

.afiyah-live-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
}

.afiyah-live-price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--afiyah-header-accent, #e11d48);
}

.afiyah-live-sku {
    font-size: 11.5px;
    font-weight: 500;
    color: #94a3b8;
}

.afiyah-live-empty {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 13.5px;
}

.afiyah-live-loading {
    padding: 20px;
    text-align: center;
    color: var(--afiyah-header-accent, #e11d48);
    font-size: 13px;
    font-weight: 600;
}

.afiyah-live-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(225, 29, 72, 0.25);
    border-top-color: var(--afiyah-header-accent, #e11d48);
    border-radius: 50%;
    animation: afiyahLiveSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes afiyahLiveSpin {
    to { transform: rotate(360deg); }
}

.afiyah-live-footer-row {
    padding: 12px 6px 4px;
    border-top: 1px solid #f1f5f9;
    margin-top: 6px;
}

.afiyah-live-show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    background: #fff1f2;
    color: var(--afiyah-header-accent, #e11d48);
    border: 1.5px solid var(--afiyah-header-accent, #e11d48);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.afiyah-live-show-more-btn:hover {
    background: var(--afiyah-header-accent, #e11d48);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
    transform: translateY(-1px);
}

.afiyah-live-show-more-btn svg {
    transition: transform 0.2s ease;
}

.afiyah-live-show-more-btn:hover svg {
    transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   Tablet & Mobile Responsive Breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .afiyah-header-nav-row {
        display: none !important;
    }

    .afiyah-header-search-col {
        display: none !important;
    }

    .afiyah-mobile-left-col {
        display: flex;
        align-items: center;
        gap: 14px;
        flex: 1;
    }

    .afiyah-header-logo-col {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .afiyah-header-logo-col .afiyah-brand-logo-link {
        display: inline-flex;
        justify-content: center;
    }

    .afiyah-header-logo-col .afiyah-logo-img {
        max-height: 38px;
        margin: 0 auto;
    }

    .afiyah-header-actions-col {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 16px;
    }

    .afiyah-action-label {
        display: none !important;
    }

    .afiyah-action-wishlist {
        display: none !important;
    }

    .afiyah-mobile-search-row {
        display: block;
    }

    .afiyah-mobile-menu-toggle {
        display: flex;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .afiyah-header-main-row {
        padding: 10px 0;
    }

    .afiyah-header-logo-col .afiyah-logo-img {
        max-height: 32px;
    }

    .afiyah-mobile-left-col {
        gap: 10px;
    }

    .afiyah-header-actions-col {
        gap: 12px;
    }

    .afiyah-action-icon-wrap svg {
        width: 21px;
        height: 21px;
    }

    .afiyah-mobile-search-input-box {
        height: 38px;
    }

    .afiyah-mobile-search-field {
        font-size: 13px;
    }

    .afiyah-mobile-search-submit-btn {
        padding: 0 16px;
        font-size: 13px;
    }

    .afiyah-search-modal {
        border-radius: 0 0 16px 16px;
    }

    .afiyah-search-modal-container {
        padding: 16px 14px 20px;
    }

    .afiyah-search-modal-title {
        font-size: 16px;
    }

    .afiyah-search-modal-input-pill {
        height: 44px;
    }
}

/* =========================================================================
   AFIYAH SIDE CART DRAWER & FLOATING CART WIDGET
   ========================================================================= */

/* Prevent background scroll when cart drawer is active */
body.afiyah-cart-drawer-open {
    overflow: hidden !important;
}

/* Side Cart Drawer (Slides from Right with smooth cubic-bezier animation) */
.afiyah-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.16);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.afiyah-cart-drawer.is-open {
    transform: translateX(0);
}

/* Cart Drawer Backdrop */
.afiyah-cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.afiyah-cart-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Cart Drawer Header */
.afiyah-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

.afiyah-cart-drawer-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #0f172a;
    text-transform: uppercase;
    margin: 0;
}

.afiyah-cart-drawer-close {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.afiyah-cart-drawer-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.afiyah-cart-drawer-close svg {
    transition: transform 0.15s;
}

.afiyah-cart-drawer-close:hover svg {
    transform: translateX(2px);
}

/* Cart Drawer Body & Scrollable Items */
.afiyah-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.afiyah-cart-items-list {
    display: flex;
    flex-direction: column;
}

/* Cart Item Row */
.afiyah-cart-item {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    position: relative;
    transition: background 0.15s, opacity 0.2s;
}

.afiyah-cart-item:hover {
    background: #fafafa;
}

.afiyah-cart-item.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.afiyah-cart-item-thumb {
    width: 68px;
    height: 84px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.afiyah-cart-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.afiyah-cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.afiyah-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.afiyah-cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.afiyah-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.afiyah-cart-item-title:hover {
    color: #e11d48;
}

.afiyah-cart-item-remove-btn {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.afiyah-cart-item-remove-btn:hover {
    color: #ef4444;
    transform: scale(1.15);
}

.afiyah-cart-variant-badge {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 7px;
    width: fit-content;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Quantity Controls & Price Line */
.afiyah-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.afiyah-cart-qty-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    height: 30px;
    padding: 0 4px;
    box-sizing: border-box;
}

.afiyah-cart-qty-btn {
    background: none;
    border: none;
    width: 24px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 12px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
    padding: 0;
}

.afiyah-cart-qty-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.afiyah-cart-qty-val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    min-width: 22px;
    text-align: center;
}

.afiyah-cart-item-price-calc {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.afiyah-calc-formula {
    color: #64748b;
}

.afiyah-calc-eq {
    color: #94a3b8;
}

.afiyah-calc-total {
    font-weight: 700;
    color: #0f172a;
}

/* Cart Drawer Footer: Subtotal & Checkout */
.afiyah-cart-drawer-footer {
    padding: 18px 22px 22px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.afiyah-cart-drawer-footer.is-cart-empty {
    display: none;
}

.afiyah-cart-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.afiyah-cart-subtotal-label {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.afiyah-cart-subtotal-amount {
    font-size: 19px;
    font-weight: 800;
    color: var(--afiyah-primary, #044634);
}

.afiyah-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #044634 0%, #0a7c5F 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(4, 70, 52, 0.28);
    box-sizing: border-box;
}

.afiyah-cart-checkout-btn:hover {
    background: linear-gradient(135deg, #0a7c5F 0%, #044634 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(4, 70, 52, 0.4);
}

/* Empty Cart State */
.afiyah-cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.afiyah-cart-empty-icon-wrap {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #94a3b8;
}

.afiyah-cart-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.afiyah-cart-empty-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 24px 0;
    max-width: 250px;
    line-height: 1.45;
}

.afiyah-cart-empty-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #000000;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.afiyah-cart-empty-shop-btn:hover {
    background: #e11d48;
}

@media (max-width: 640px) {
    .afiyah-cart-drawer {
        width: 100vw;
        max-width: 100vw;
    }
}

/* ==========================================================================
   UNIFIED LUXURY PRODUCT CARD & 5-COLUMN GRID (SHOP, CATEGORIES, HOME, ARCHIVES)
   ========================================================================== */

/* Full Width Container Setup */
.ast-container,
.site-content .ast-container,
.ast-woocommerce-container,
.woocommerce.archive .ast-container,
.woocommerce-page.archive .ast-container,
.woocommerce-page #primary,
.woocommerce #primary,
.woocommerce-page #main,
.woocommerce #main {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* 5 Products in Large Screen in a Line */
html body.woocommerce ul.products,
html body.woocommerce-page ul.products,
html body .ast-woocommerce-container ul.products,
html body ul.products,
.woocommerce ul.products:not(.elementor-grid),
.woocommerce-page ul.products:not(.elementor-grid),
.woocommerce[class*="columns-"] ul.products,
.woocommerce-page[class*="columns-"] ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 24px 0 48px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Prevent any pseudo elements from breaking grid */
html body.woocommerce ul.products::before,
html body.woocommerce ul.products::after,
html body.woocommerce-page ul.products::before,
html body.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
}

/* Individual Product Card List Item */
html body.woocommerce ul.products li.product,
html body.woocommerce-page ul.products li.product,
html body .ast-woocommerce-container ul.products li.product,
html body ul.products li.product,
.woocommerce[class*="columns-"] ul.products li.product,
.woocommerce-page[class*="columns-"] ul.products li.product,
li.product-card-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    float: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Product Default Wrapper */
.product-default {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
}

/* Product Card Link */
.product-card-link,
.product-default > a {
    text-decoration: none !important;
    display: block !important;
    color: inherit !important;
    width: 100% !important;
}

/* Product Image Wrapper - 1:1 Aspect Ratio Matching Home Page */
.product-card-thumb-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #f5f5f7 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
}

.product-card-thumb-wrap img,
.product-default a img,
ul.products li.product a img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: block !important;
    border-radius: 6px !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-default:hover .product-card-thumb-wrap img,
ul.products li.product:hover .product-card-thumb-wrap img {
    transform: scale(1.04) !important;
}

/* Green NEW Badge - Exactly Like Home Page */
.badge-new-pill {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #059669 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    z-index: 4 !important;
    pointer-events: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    line-height: 1.2 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.card-slider-nav-prev,
.card-slider-nav-next {
    display: none !important;
}

/* Product Title */
.woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3,
.product-default h3 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 8px 0 4px 0 !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.product-default:hover .woocommerce-loop-product__title,
ul.products li.product:hover .woocommerce-loop-product__title {
    color: #000000 !important;
}

/* Price */
ul.products li.product .price,
.product-default .price {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}

ul.products li.product .price del,
.product-default .price del {
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    margin-right: 2px !important;
    display: inline-block !important;
    text-decoration: line-through !important;
}

ul.products li.product .price ins,
.product-default .price ins {
    text-decoration: none !important;
    color: #111111 !important;
    font-weight: 700 !important;
}

/* Hide Astra and WooCommerce clutter */
ul.products li.product .add_to_cart_button,
ul.products li.product .button,
ul.products li.product .star-rating,
ul.products li.product span.onsale,
ul.products li.product .ast-on-card-button,
ul.products li.product .ast-woo-product-category,
ul.products li.product .astra-shop-summary-wrap > .button,
ul.products li.product .astra-shop-summary-wrap > .add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page ul.products li.product .button,
.woocommerce-page ul.products li.product .add_to_cart_button {
    display: none !important;
}

/* ====== RESPONSIVE GRID ====== */
/* Large screens down to 900px: ALWAYS 5 PRODUCTS IN A LINE */
@media screen and (min-width: 900px) {
    html body.woocommerce ul.products,
    html body.woocommerce-page ul.products,
    html body .ast-woocommerce-container ul.products,
    html body ul.products,
    .woocommerce ul.products:not(.elementor-grid),
    .woocommerce-page ul.products:not(.elementor-grid),
    .woocommerce[class*="columns-"] ul.products,
    .woocommerce-page[class*="columns-"] ul.products {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 16px !important;
        width: 100% !important;
    }
}

/* Tablet (641px - 899px): 3 products */
@media screen and (max-width: 899px) and (min-width: 641px) {
    html body.woocommerce ul.products,
    html body.woocommerce-page ul.products,
    html body .ast-woocommerce-container ul.products,
    html body ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
    }
}

/* Small devices (<= 640px): EXACTLY 2 PRODUCTS IN A LINE */
@media screen and (max-width: 640px) {
    html body.woocommerce ul.products,
    html body.woocommerce-page ul.products,
    html body .ast-woocommerce-container ul.products,
    html body ul.products,
    .woocommerce[class*="columns-"] ul.products,
    .woocommerce-page[class*="columns-"] ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
    }

    .ast-container,
    .ast-woocommerce-container,
    .woocommerce.archive .ast-container,
    .woocommerce-page.archive .ast-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .product-card-thumb-wrap {
        margin-bottom: 6px !important;
        border-radius: 4px !important;
    }

    .product-card-thumb-wrap img {
        border-radius: 4px !important;
    }

    .badge-new-pill {
        top: 6px !important;
        left: 6px !important;
        font-size: 8px !important;
        padding: 2px 6px !important;
    }

    .woocommerce-loop-product__title,
    ul.products li.product h2,
    ul.products li.product h3,
    .product-default h3 {
        font-size: 13px !important;
        margin: 4px 0 2px 0 !important;
    }

    ul.products li.product .price,
    .product-default .price {
        font-size: 13px !important;
    }

    ul.products li.product .price del,
    .product-default .price del {
        font-size: 11px !important;
    }
}

/* =========================================================================
   7. HIGH-END PRODUCT DETAILS BUILDER (AFIYAH PDP)
   ========================================================================= */

/* Remove excessive empty space above breadcrumbs on single product page */
body.single-product .site-content,
body.single-product #content,
body.single-product .ast-container,
body.single-product #primary,
body.single-product #main,
body.single-product .ast-woocommerce-container,
body.single-product .site .site-content #primary .ast-woocommerce-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.single-product .woocommerce-notices-wrapper,
.single-product .woocommerce-notices-wrapper:empty,
.single-product .entry-header:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.afiyah-pdp-main-wrap {
    max-width: 1360px !important;
    margin: 10px auto 50px !important;
    padding: 0 20px !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .afiyah-pdp-main-wrap {
        padding: 0 12px !important;
    }
}

/* Breadcrumbs */
.afiyah-pdp-breadcrumb-bar {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.afiyah-pdp-breadcrumb-bar a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.afiyah-pdp-breadcrumb-bar a:hover {
    color: #e11d48;
}

.afiyah-pdp-breadcrumb-bar .sep {
    color: #cbd5e1;
}

.afiyah-pdp-breadcrumb-bar .current {
    color: #0f172a;
    font-weight: 600;
}

/* 2-Column Product Grid */
.afiyah-pdp-columns-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: start;
    margin-bottom: 48px;
}

/* Gallery Column */
.afiyah-pdp-gallery-col {
    position: relative;
}

.afiyah-pdp-gallery-sticky {
    position: sticky;
    top: 90px;
}

.afiyah-pdp-main-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.afiyah-pdp-active-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: zoom-in;
}

.afiyah-pdp-main-img-box:hover .afiyah-pdp-active-img {
    transform: scale(1.03);
}

.afiyah-pdp-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    z-index: 5;
}

.afiyah-badge-sale {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.afiyah-badge-oos {
    background: #ef4444;
    color: #ffffff;
}

/* Thumbnail Strip */
.afiyah-pdp-thumbs-strip {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.afiyah-pdp-thumb-item {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.afiyah-pdp-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afiyah-pdp-thumb-item:hover,
.afiyah-pdp-thumb-item.is-active {
    border-color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

/* Details Column */
.afiyah-pdp-details-col {
    display: flex;
    flex-direction: column;
}

.afiyah-pdp-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.4px;
}

/* Meta Row: Rating & Live Stock */
.afiyah-pdp-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.afiyah-pdp-sku-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 3px 9px;
    border-radius: 6px;
    line-height: 1.2;
}

.afiyah-pdp-sku-badge .afiyah-sku-label {
    color: #94a3b8;
    font-weight: 700;
}

.afiyah-pdp-sku-badge .afiyah-sku-val {
    color: var(--afiyah-primary, #044634);
    font-weight: 800;
}

.afiyah-pdp-rating-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
}

.afiyah-stars-outer {
    color: #cbd5e1;
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
    font-size: 14px;
}

.afiyah-stars-outer span {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #f59e0b;
}

.afiyah-rating-num {
    font-weight: 700;
    color: #0f172a;
}

.afiyah-review-link {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.afiyah-review-link:hover {
    color: #e11d48;
}

/* Stock Badges */
.afiyah-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.afiyah-stock-badge.is-in-stock {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.afiyah-stock-badge.is-low-stock {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    animation: afiyahPulseUrgent 2s infinite ease-in-out;
}

.afiyah-stock-badge.is-out-of-stock {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@keyframes afiyahPulseUrgent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Price Box */
.afiyah-pdp-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.afiyah-pdp-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.afiyah-pdp-price-amount del {
    font-size: 18px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.afiyah-pdp-price-amount ins {
    text-decoration: none;
    color: #e11d48;
}

.afiyah-pdp-save-tag {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Excerpt */
.afiyah-pdp-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 22px;
}

/* =========================================================================
   VARIABLE PRODUCT SWATCHES & OUT-OF-STOCK CROSS-OUT
   ========================================================================= */

.afiyah-swatches-wrapper {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.afiyah-attribute-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afiyah-attribute-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.afiyah-attr-title {
    font-weight: 600;
    color: #1e293b;
}

.afiyah-attr-selected-val {
    font-weight: 700;
    color: #0f172a;
}

.afiyah-swatches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Swatch Button Default */
.afiyah-swatch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 40px;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
}

.afiyah-swatch-btn:hover:not(.is-out-of-stock) {
    border-color: #0f172a;
    background: #f8fafc;
    transform: translateY(-1px);
}

.afiyah-swatch-btn.is-selected {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

/* =========================================================================
   OUT-OF-STOCK CROSS-OUT EFFECT (CRITICAL USER REQUIREMENT)
   "varant product er jeitate srock shes hoie jave oita cross hoie jave."
   ========================================================================= */

.afiyah-swatch-btn.is-out-of-stock {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    opacity: 0.65;
}

/* The distinct diagonal red cross line */
.afiyah-swatch-btn.is-out-of-stock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 2px;
    background: #ef4444; /* Vivid Red Cross Strikethrough */
    transform: translateY(-50%) rotate(-25deg);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 3px rgba(239, 68, 68, 0.4);
}

/* Subtle darkened overlay */
.afiyah-swatch-btn.is-out-of-stock::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(241, 245, 249, 0.5);
    z-index: 2;
    pointer-events: none;
}

/* =========================================================================
   QUANTITY & DUAL ACTION BUTTONS (ADD TO CART & BUY NOW)
   ========================================================================= */

.afiyah-pdp-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

/* Quantity Stepper */
.afiyah-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
    height: 48px;
    background: #ffffff;
}

.afiyah-qty-btn {
    width: 38px;
    height: 100%;
    background: #f8fafc;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.afiyah-qty-btn:hover {
    background: #e2e8f0;
}

.afiyah-qty-input {
    width: 44px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    -moz-appearance: textfield;
    padding: 0;
}

.afiyah-qty-input::-webkit-outer-spin-button,
.afiyah-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons Base */
.afiyah-pdp-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Add to Cart Button */
.afiyah-btn-add-to-cart {
    background: #044634;
    color: #ffffff;
    flex: 1 1 180px;
    box-shadow: 0 4px 14px rgba(4, 70, 52, 0.25);
}

.afiyah-btn-add-to-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a7c5F 0%, #044634 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(4, 70, 52, 0.35);
}

/* Buy Now Button */
.afiyah-btn-buy-now {
    background: linear-gradient(135deg, #044634 0%, #0a7c5F 100%);
    color: #ffffff;
    flex: 1 1 180px;
    box-shadow: 0 4px 14px rgba(4, 70, 52, 0.3);
}

.afiyah-btn-buy-now:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a7c5F 0%, #044634 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 70, 52, 0.45);
}

.afiyah-btn-disabled,
.afiyah-pdp-btn:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Spinner during AJAX */
.afiyah-pdp-btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.afiyah-pdp-btn.is-loading .afiyah-btn-icon,
.afiyah-pdp-btn.is-loading .afiyah-btn-text {
    visibility: hidden;
}

.afiyah-pdp-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: afiyahSpin 0.7s infinite linear;
}

@keyframes afiyahSpin {
    to { transform: rotate(360deg); }
}

/* =========================================================================
   TRUST & ASSURANCE BADGES
   ========================================================================= */

.afiyah-trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.afiyah-trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.afiyah-trust-badge-item .badge-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.afiyah-pdp-meta-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.afiyah-pdp-meta-footer .label {
    font-weight: 600;
    color: #1e293b;
    margin-right: 4px;
}

/* =========================================================================
   FLY-TO-CART PARABOLIC ANIMATION
   "product image Add to cart button theme header er cart icon e fly korve."
   ========================================================================= */

.afiyah-flying-cart-img {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    will-change: transform, left, top, width, height, opacity;
}

/* Header Cart Bounce Keyframe */
@keyframes afiyahCartBounce {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.35) rotate(-8deg); }
    50%  { transform: scale(0.9) rotate(5deg); }
    75%  { transform: scale(1.15) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.afiyah-cart-bounce {
    animation: afiyahCartBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Swatch Shake on Missing Selection */
@keyframes afiyahShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.afiyah-shake {
    animation: afiyahShake 0.4s ease;
}

/* Product Tabs & Reviews Styling */
.afiyah-pdp-tabs-section {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 36px;
}

.afiyah-pdp-tabs-section .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
    margin: 0 0 24px 0;
    list-style: none;
}

.afiyah-pdp-tabs-section .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.afiyah-pdp-tabs-section .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 4px 14px;
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.afiyah-pdp-tabs-section .woocommerce-tabs ul.tabs li.active a,
.afiyah-pdp-tabs-section .woocommerce-tabs ul.tabs li a:hover {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

.afiyah-pdp-tabs-section .woocommerce-Tabs-panel {
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
}

/* Related Products */
.afiyah-pdp-related-section {
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.afiyah-pdp-related-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .afiyah-pdp-columns-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .afiyah-pdp-gallery-sticky {
        position: relative;
        top: 0;
    }

    .afiyah-pdp-title {
        font-size: 22px;
    }

    .afiyah-pdp-price-amount {
        font-size: 24px;
    }

    .afiyah-trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .afiyah-pdp-actions-row {
        gap: 10px;
    }

    .afiyah-btn-add-to-cart,
    .afiyah-btn-buy-now {
        flex: 1 1 100%;
    }
}

/* =========================================================================
   HIDE DEFAULT WOOCOMMERCE "ADDED TO CART" NOTICE BANNER
   ========================================================================= */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-message,
.single-product .woocommerce-message {
    display: none !important;
}

/* =========================================================================
   8. HIGH-CONVERSION 1-PAGE LUXURY CHECKOUT BUILDER
   ========================================================================= */

.afiyah-checkout-page-container {
    max-width: 1220px;
    margin: 0 auto 60px;
    padding: 0 16px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

/* Header & Security Badge */
.afiyah-checkout-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 0;
    margin-bottom: 24px;
    padding-top: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.afiyah-checkout-heading {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.afiyah-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ecfdf5;
    color: #059669;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #a7f3d0;
}

/* Logged-in User Banner */
.afiyah-logged-user-banner {
    display: none !important;
}

.afiyah-logged-user-banner .user-avatar-wrap {
    font-size: 24px;
    background: #dcfce7;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.afiyah-logged-user-banner .user-meta-info {
    flex: 1;
}

.afiyah-logged-user-banner .user-greeting {
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 2px;
}

.afiyah-logged-user-banner .user-desc {
    font-size: 13px;
    color: #15803d;
}

.afiyah-user-switch-link {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: underline;
    white-space: nowrap;
}

/* Guest Prompt */
.afiyah-guest-login-prompt {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.afiyah-guest-login-prompt .prompt-link {
    color: #e11d48;
    font-weight: 700;
    text-decoration: underline;
}

/* 2-Column Checkout Grid */
.afiyah-checkout-grid {
    display: grid;
    grid-template-columns: 1.18fr 1fr;
    gap: 36px;
    align-items: start;
}

/* Card Base */
.afiyah-checkout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.afiyah-checkout-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fafafa;
    border-bottom: 1px solid #e2e8f0;
}

.afiyah-checkout-card-header .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.afiyah-checkout-card-header .card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
}

.afiyah-checkout-card-body {
    padding: 24px;
}

/* Form Fields */
.afiyah-input-wrap {
    margin-bottom: 18px;
}

.afiyah-input-wrap label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.afiyah-input-wrap .required {
    color: #ef4444;
}

.afiyah-input-wrap .optional-tag {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.afiyah-field {
    width: 100%;
    height: 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14.5px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
}

.afiyah-field:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.afiyah-textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

/* Delivery Area Radio Selector */
.afiyah-area-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.afiyah-area-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 12px 16px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
}

.afiyah-area-radio-label:hover {
    border-color: #94a3b8;
}

.afiyah-area-radio-label.is-selected {
    border-color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.afiyah-area-radio-label input {
    margin: 0;
    accent-color: #0f172a;
}

.area-text-wrap {
    display: flex;
    flex-direction: column;
}

.area-text-wrap strong {
    font-size: 13.5px;
    color: #0f172a;
}

.area-price {
    font-size: 13px;
    font-weight: 700;
    color: #e11d48;
}

/* Order Summary Column */
.afiyah-order-summary-sticky {
    position: sticky;
    top: 90px;
}

.afiyah-summary-card .item-count-badge {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Checkout Items List */
.afiyah-checkout-items-list {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.afiyah-checkout-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.item-thumb-box {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow: visible;
    flex-shrink: 0;
}

.item-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.item-qty-bubble {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details-box {
    flex: 1;
}

.item-details-box .item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.item-variations-badge {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.item-calc-price {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.item-line-total {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* Coupon Box */
.afiyah-coupon-box {
    margin-bottom: 20px;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group input {
    flex: 1;
    height: 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13.5px;
    outline: none;
}

.coupon-input-group input:focus {
    border-color: #0f172a;
}

.coupon-input-group button {
    height: 42px;
    padding: 0 18px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.coupon-input-group button:hover {
    background: #1e293b;
}

.coupon-status-msg {
    font-size: 12.5px;
    margin-top: 6px;
}

.coupon-status-msg.is-success {
    color: #059669;
}

.coupon-status-msg.is-error {
    color: #dc2626;
}

.afiyah-applied-coupons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.applied-coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.applied-coupon-pill .btn-remove-coupon {
    background: none;
    border: none;
    font-size: 14px;
    color: #059669;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Totals Table */
.afiyah-totals-table {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-bottom: 22px;
}

.afiyah-totals-table .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
}

.afiyah-totals-table .total-row .value {
    font-weight: 700;
    color: #0f172a;
}

.afiyah-totals-table .total-row.is-discount {
    color: #059669;
}

.afiyah-totals-table .total-row.is-discount .value {
    color: #059669;
}

.afiyah-totals-table .total-row.is-grand-total {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 12px;
    margin-top: 12px;
}

.afiyah-totals-table .total-row.is-grand-total .value {
    color: #e11d48;
    font-size: 22px;
}

/* Place Order CTA Button */
.afiyah-checkout-action-wrap {
    margin-bottom: 20px;
}

.afiyah-btn-place-order {
    width: 100%;
    height: 52px;
    background: #E11D48;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    transition: all 0.25s ease;
}

.afiyah-btn-place-order:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.45);
}

.afiyah-btn-place-order:active {
    transform: translateY(0);
    background: #9f1239;
}

.afiyah-btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Trust Box */
.afiyah-checkout-trust-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afiyah-checkout-trust-box .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

/* LOGIN REQUIRED GATE STYLING */
.afiyah-checkout-login-gate {
    max-width: 520px;
    margin: 40px auto 60px;
}

.afiyah-gate-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 36px 32px;
}

.afiyah-gate-header {
    text-align: center;
    margin-bottom: 24px;
}

.afiyah-gate-header .gate-icon {
    font-size: 38px;
    display: block;
    margin-bottom: 10px;
}

.afiyah-gate-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.afiyah-gate-header p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.afiyah-gate-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.afiyah-gate-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.afiyah-gate-tab-btn.is-active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

.afiyah-gate-tab-content {
    display: none;
}

.afiyah-gate-tab-content.is-active {
    display: block;
}

.afiyah-gate-input-group {
    margin-bottom: 16px;
}

.afiyah-gate-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.afiyah-gate-input-group input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.afiyah-gate-input-group input:focus {
    border-color: #0f172a;
}

.afiyah-btn-gate-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #044634 0%, #0a7c5F 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(4, 70, 52, 0.28);
    transition: all 0.25s ease;
}

.afiyah-btn-gate-submit:hover {
    background: linear-gradient(135deg, #0a7c5F 0%, #044634 100%);
    box-shadow: 0 6px 20px rgba(4, 70, 52, 0.42);
    transform: translateY(-1px);
}

.afiyah-gate-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .afiyah-checkout-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .afiyah-order-summary-sticky {
        position: relative;
        top: 0;
    }

    .afiyah-area-radio-group {
        grid-template-columns: 1fr;
    }
}







/* =============================================================================
   CHECKOUT — PAYMENT GATEWAY FLEX CARDS (Afiyah Checkout Builder)
   ============================================================================= */

.afiyah-payment-gateways-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.afiyah-gateway-card {
    position: relative;
    flex: 1 1 calc(25% - 10px);
    min-width: 110px;
    max-width: 160px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 10px 12px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    background: #fff;
    user-select: none;
    outline: none;
}

.afiyah-gateway-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

.afiyah-gateway-card.is-selected {
    border-color: var(--afiyah-primary, #e05a1e);
    background: #fff8f5;
    box-shadow: 0 0 0 3px rgba(224, 90, 30, 0.12);
}

.afiyah-gateway-card .gw-selected-tick {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--afiyah-primary, #e05a1e);
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afiyah-gateway-card .gw-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.afiyah-gateway-card .gw-icon img {
    max-height: 36px;
    max-width: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

.afiyah-gateway-card .gw-icon-placeholder {
    font-size: 28px;
    line-height: 1;
}

.afiyah-gateway-card .gw-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    word-break: break-word;
}

/* Gateway Description Box */
.afiyah-gateway-descriptions {
    margin-bottom: 16px;
}

.afiyah-gateway-description {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    animation: afiyahFadeIn .18s ease;
}

.afiyah-gateway-description.is-active {
    display: block;
}

.afiyah-gateway-description p:last-child {
    margin-bottom: 0;
}

/* Terms & Conditions Row */
.afiyah-terms-row {
    margin: 16px 0;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.afiyah-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.afiyah-terms-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--afiyah-primary, #e05a1e);
    cursor: pointer;
}

.afiyah-terms-label a {
    color: var(--afiyah-primary, #e05a1e);
}

/* No gateways message */
.afiyah-no-gateways {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Admin: gateway toggle row icons */
.afiyah-gateway-toggle-row .gw-admin-icon img {
    max-height: 24px;
    width: auto;
    opacity: .85;
}

.afiyah-gateway-toggle-row:has(input:checked) {
    border-color: #bbf7d0 !important;
    background: #f0fdf4;
}

@media (max-width: 600px) {
    .afiyah-payment-gateways-flex {
        gap: 8px;
    }
    .afiyah-gateway-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 80px;
        max-width: none;
        padding: 12px 8px 10px;
    }
}

/* Terms block above Place Order button */
.afiyah-checkout-terms-block {
    margin-bottom: 14px;
}

.afiyah-checkout-terms-block .afiyah-terms-row {
    margin-bottom: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}

.afiyah-checkout-terms-block .afiyah-terms-label {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.55;
    gap: 8px;
}

.afiyah-checkout-terms-block .afiyah-terms-label a {
    color: var(--afiyah-primary, #e05a1e);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.afiyah-privacy-notice {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    padding: 8px 0 4px;
    line-height: 1.5;
}

.afiyah-privacy-notice a {
    color: var(--afiyah-primary, #e05a1e);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Checkout Order Summary — Remove Item Button */
.afiyah-checkout-item-row {
    position: relative;
}

/* Button sits over the top-left of the product thumbnail */
.afiyah-checkout-item-row .item-thumb-box {
    position: relative;
}

.afiyah-checkout-remove-item {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(15,23,42,0.55);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.afiyah-checkout-remove-item:hover {
    background: #ef4444;
    transform: scale(1.2);
}

.afiyah-checkout-remove-item:active {
    transform: scale(0.9);
}

/* Slide-out animation on removal */
@keyframes afiyahSlideOut {
    from { opacity: 1; max-height: 120px; }
    to   { opacity: 0; max-height: 0; margin: 0; padding: 0; }
}

.afiyah-checkout-item-row.is-removing {
    animation: afiyahSlideOut 0.28s ease forwards;
    pointer-events: none;
    overflow: hidden;
}

/* =============================================================================
   AFIYAH SHOP & PRODUCT CATALOG FILTERS (Sidebar, Toolbar, Chips, Drawer)
   ============================================================================= */

.afiyah-shop-layout-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 50px 0;
    padding: 0 !important;
    box-sizing: border-box;
}

/* 1. Filter Sidebar */
.afiyah-shop-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    position: sticky;
    top: 75px;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.afiyah-shop-sidebar::-webkit-scrollbar {
    width: 5px;
}
.afiyah-shop-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.afiyah-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.afiyah-sidebar-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.afiyah-sidebar-icon {
    color: var(--afiyah-primary, #e05a1e);
    display: flex;
    align-items: center;
}

.afiyah-sidebar-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.afiyah-clear-all-btn {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.afiyah-clear-all-btn:hover {
    color: #dc2626;
    text-decoration: underline;
}

.afiyah-mobile-close-filter {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 2px;
}

/* Filter Widgets */
.afiyah-filter-widget {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.afiyah-filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.afiyah-widget-header {
    margin-bottom: 12px;
}

.afiyah-widget-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Filter Lists */
.afiyah-filter-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afiyah-filter-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Radio & Checkbox Items */
.afiyah-radio-item,
.afiyah-checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
    position: relative;
}

.afiyah-radio-item:hover,
.afiyah-checkbox-item:hover {
    color: var(--afiyah-primary, #e05a1e);
}

.afiyah-radio-item input[type="radio"],
.afiyah-checkbox-item input[type="checkbox"] {
    accent-color: var(--afiyah-primary, #e05a1e);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.afiyah-radio-label,
.afiyah-check-label {
    flex: 1;
    line-height: 1.35;
}

.afiyah-collection-list li.is-active .afiyah-radio-label {
    font-weight: 700;
    color: var(--afiyah-primary, #e05a1e);
}

.afiyah-item-count {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 999px;
}

.afiyah-sale-tag {
    font-size: 9px;
    font-weight: 800;
    background: #e11d48;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Price Inputs Row */
.afiyah-price-inputs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.afiyah-price-input-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 8px;
    flex: 1;
    height: 36px;
    box-sizing: border-box;
}

.afiyah-price-input-box:focus-within {
    border-color: var(--afiyah-primary, #e05a1e);
    background: #ffffff;
}

.afiyah-currency-sym {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-right: 3px;
}

.afiyah-price-num-field {
    width: 100%;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.afiyah-price-sep {
    color: #94a3b8;
    font-weight: 700;
}

.afiyah-price-apply-btn {
    background: linear-gradient(135deg, #044634 0%, #0a7c5F 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 14px;
    height: 36px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(4, 70, 52, 0.25);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.afiyah-price-apply-btn:hover {
    background: linear-gradient(135deg, #0a7c5F 0%, #044634 100%);
    box-shadow: 0 4px 12px rgba(4, 70, 52, 0.35);
}

/* Price Presets */
.afiyah-price-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.afiyah-preset-chip {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.afiyah-preset-chip:hover,
.afiyah-preset-chip.is-active {
    background: #fff7ed;
    border-color: var(--afiyah-primary, #e05a1e);
    color: var(--afiyah-primary, #e05a1e);
}

/* Rating Filter Stars */
.afiyah-stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 14px;
    line-height: 1;
}

.afiyah-star.is-filled {
    color: #f59e0b;
}

.afiyah-star.is-empty {
    color: #cbd5e1;
}

.afiyah-rating-text {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

/* Mobile Drawer Apply Button */
.afiyah-mobile-drawer-apply {
    display: none;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.afiyah-btn-apply-filters {
    width: 100%;
    background: var(--afiyah-primary, #e05a1e);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* 2. Products Main Column */
.afiyah-shop-products-column {
    flex: 1;
    min-width: 0;
}

/* 3. Toolbar & Active Filter Chips */
.afiyah-shop-toolbar-bar {
    display: none;
    margin-bottom: 16px;
}

.afiyah-mobile-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.afiyah-mobile-filter-trigger:hover {
    border-color: var(--afiyah-primary, #e05a1e);
    color: var(--afiyah-primary, #e05a1e);
}

.afiyah-active-filter-badge {
    background: var(--afiyah-primary, #e05a1e);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 19px;
    height: 19px;
    line-height: 19px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
}

/* Active Filter Chips Container */
.afiyah-active-chips-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.afiyah-active-chips-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.afiyah-chips-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.afiyah-chip-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.afiyah-chip-pill:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.afiyah-chip-remove {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

.afiyah-chip-pill:hover .afiyah-chip-remove {
    color: #ef4444;
}

.afiyah-clear-all-chip {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    text-decoration: underline;
    margin-left: 6px;
}

/* 4. Responsive Sheet for Mobile & Tablet */
@media (max-width: 992px) {
    .afiyah-shop-layout-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .afiyah-shop-toolbar-bar {
        display: block;
    }

    .afiyah-shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        z-index: 999999 !important;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
    }

    .afiyah-shop-sidebar.is-open {
        transform: translateX(0);
    }

    .afiyah-mobile-close-filter {
        display: block;
    }

    .afiyah-mobile-drawer-apply {
        display: block;
    }

    .afiyah-filter-drawer-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        z-index: 999998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .afiyah-filter-drawer-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }
}

/* 5. Shop Products Column Grid (4 products in a line on large screens) */
@media (min-width: 993px) {
    .afiyah-shop-products-column ul.products,
    .woocommerce.archive .afiyah-shop-products-column ul.products,
    .woocommerce-page.archive .afiyah-shop-products-column ul.products {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
    }
}

/* =========================================================================
   9. ORDER SUCCESS, INVOICE & PAYMENT FAILURE VIEWS
   ========================================================================= */

.afiyah-order-page-wrap {
    max-width: 1220px;
    margin: 20px auto 60px;
    padding: 0 16px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

/* --- ORDER SUCCESS HERO --- */
.afiyah-success-hero {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 36px 24px 28px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.afiyah-success-icon-wrap {
    width: 76px;
    height: 76px;
    background: #dcfce7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12);
}

.afiyah-success-pill {
    display: inline-block;
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.afiyah-success-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.afiyah-success-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* Invoice Meta Bar */
.afiyah-invoice-meta-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.afiyah-invoice-meta-bar .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.afiyah-invoice-meta-bar .meta-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
}

.afiyah-invoice-meta-bar .meta-val {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.meta-invoice-highlight {
    color: #ea580c !important;
    font-family: monospace, sans-serif;
    font-size: 15px !important;
}

.meta-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    width: fit-content;
}

.meta-status-tag.status-processing,
.meta-status-tag.status-completed {
    background: #ecfdf5;
    color: #059669;
}

.meta-status-tag.status-on-hold,
.meta-status-tag.status-pending {
    background: #fffbeb;
    color: #b45309;
}

/* --- 2-COLUMN GRID --- */
.afiyah-order-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 24px;
    align-items: start;
}

.afiyah-order-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.afiyah-order-card .afiyah-card-header {
    background: #f8fafc;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.afiyah-order-card .afiyah-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.afiyah-order-card .afiyah-card-body {
    padding: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-val {
    color: #0f172a;
    text-align: right;
    max-width: 60%;
}

.address-text {
    line-height: 1.4;
}

.order-notes-row {
    background: #fffbeb;
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
}

/* Delivery Promise */
.afiyah-promise-card .promise-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.afiyah-promise-card .promise-item:last-child {
    margin-bottom: 0;
}

.promise-icon {
    font-size: 20px;
    background: #f8fafc;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promise-text strong {
    font-size: 14px;
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

.promise-text p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Order Item Rows */
.afiyah-order-items-list {
    margin-bottom: 16px;
}

.afiyah-order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.afiyah-order-item-row:last-child {
    border-bottom: none;
}

.afiyah-order-item-row .item-thumb-box {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.afiyah-order-item-row .item-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-qty-pill {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
}

.afiyah-order-item-row .item-info-box {
    flex: 1;
    min-width: 0;
}

.afiyah-order-item-row .item-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.afiyah-order-item-row .item-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.afiyah-order-item-row .meta-tag {
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.afiyah-order-item-row .item-price-box {
    font-size: 14px;
    color: #0f172a;
    flex-shrink: 0;
}

/* Invoice Totals Table */
.afiyah-invoice-totals-table {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.afiyah-invoice-totals-table .total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #64748b;
}

.afiyah-invoice-totals-table .discount-row {
    color: #059669;
    font-weight: 600;
}

.afiyah-invoice-totals-table .grand-total-row {
    border-top: 2px dashed #e2e8f0;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.grand-total-val {
    color: #E11D48;
    font-size: 19px;
}

/* Action Buttons Bar */
.afiyah-order-actions-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.afiyah-btn-print-invoice {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.afiyah-btn-print-invoice:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.afiyah-btn-continue-shop {
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.afiyah-btn-continue-shop:hover {
    background: #1e293b;
    color: #ffffff;
}

/* --- PAYMENT FAILED VIEW --- */
.afiyah-order-failed-card {
    max-width: 680px;
    margin: 30px auto 60px;
    background: #ffffff;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(225, 29, 72, 0.08);
}

.afiyah-failed-icon-wrap {
    width: 80px;
    height: 80px;
    background: #ffe4e6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0.1);
}

.afiyah-failed-badge {
    display: inline-block;
    background: #e11d48;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.afiyah-failed-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.afiyah-failed-msg {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 520px;
}

.afiyah-failed-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto 24px;
}

.afiyah-btn-retry-payment {
    background: #E11D48;
    color: #ffffff;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    transition: all 0.2s ease;
}

.afiyah-btn-retry-payment:hover {
    background: #be123c;
    color: #ffffff;
    transform: translateY(-2px);
}

.afiyah-btn-return-checkout {
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.afiyah-btn-return-checkout:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.afiyah-order-support-box {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.afiyah-whatsapp-link {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
}

.afiyah-whatsapp-link:hover {
    text-decoration: underline;
}

/* Empty State */
.afiyah-order-empty-wrap {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 40px 20px;
}

.afiyah-btn-return-shop {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 14px;
}

/* Responsive Grid */
@media (max-width: 860px) {
    .afiyah-invoice-meta-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .afiyah-order-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .afiyah-invoice-meta-bar {
        grid-template-columns: 1fr;
    }
    .afiyah-order-actions-bar {
        grid-template-columns: 1fr;
    }
}

/* Print Stylesheet for clean paper / PDF invoice */
@media print {
    header, footer, .site-header, .site-footer, .ast-footer, 
    .afiyah-btn-print-invoice, .afiyah-btn-continue-shop,
    .afiyah-order-support-box, .afiyah-promise-card {
        display: none !important;
    }
    .afiyah-order-page-wrap {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    .afiyah-order-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .afiyah-order-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* =========================================================================
   LUXURY MY-ACCOUNT LOGIN & REGISTER PAGE STYLES
   ========================================================================= */
.afiyah-auth-page-wrapper {
    width: 100%;
    min-height: calc(100vh - 260px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 16px 60px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.afiyah-auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Header */
.afiyah-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.afiyah-auth-icon-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #E11D48;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(225, 29, 72, 0.15);
}

.afiyah-auth-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.afiyah-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Notices wrapper */
.afiyah-auth-container .woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

.afiyah-auth-container .woocommerce-error,
.afiyah-auth-container .woocommerce-message,
.afiyah-auth-container .woocommerce-info {
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-size: 13.5px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 16px !important;
}

/* Auth Card */
.afiyah-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 16px 45px -10px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.03);
    padding: 30px 32px;
    position: relative;
    overflow: hidden;
}

/* Interactive Tabs */
.afiyah-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 26px;
}

.afiyah-auth-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.afiyah-auth-tab-btn:hover {
    color: #0f172a;
}

.afiyah-auth-tab-btn.is-active {
    background: #ffffff;
    color: #E11D48;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

/* Auth Panels */
.afiyah-auth-panel {
    display: none;
    animation: afiyahFadeSlideIn 0.25s ease forwards;
}

.afiyah-auth-panel.is-active {
    display: block;
}

@keyframes afiyahFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.afiyah-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 !important;
}

.afiyah-auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.afiyah-auth-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
}

.afiyah-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.afiyah-forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #E11D48;
    text-decoration: none;
    transition: color 0.15s;
}

.afiyah-forgot-link:hover {
    color: #be123c;
    text-decoration: underline;
}

.required-star {
    color: #E11D48;
    font-weight: 800;
}

/* Input with Icon Wrapper */
.afiyah-auth-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure WooCommerce injected .password-input span takes 100% full width */
.afiyah-auth-card .password-input,
.afiyah-auth-input-wrapper .password-input,
.afiyah-auth-form .password-input,
.woocommerce form .afiyah-auth-input-wrapper span.password-input {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.afiyah-auth-input-wrapper .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
    z-index: 10 !important;
}

.afiyah-auth-input,
.afiyah-auth-input-wrapper input,
.afiyah-auth-input-wrapper input[type="password"],
.afiyah-auth-input-wrapper input[type="text"],
.afiyah-auth-input-wrapper input[type="email"],
.afiyah-auth-input-wrapper input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    padding: 0 44px 0 42px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    display: block !important;
}

.afiyah-auth-input::placeholder,
.afiyah-auth-input-wrapper input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.afiyah-auth-input:focus,
.afiyah-auth-input-wrapper input:focus {
    background: #ffffff !important;
    border-color: #044634 !important;
    box-shadow: 0 0 0 4px rgba(4, 70, 52, 0.12) !important;
    outline: none !important;
}

.afiyah-auth-input-wrapper:focus-within .input-icon {
    color: #044634 !important;
}

/* Password Visibility Toggle */
.afiyah-toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: color 0.15s, background 0.15s !important;
    z-index: 10 !important;
}

.afiyah-toggle-password:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}

/* Hide WooCommerce native injected show-password button to prevent double eyes */
.afiyah-auth-card .show-password-input,
.afiyah-auth-card span.show-password-input,
.afiyah-auth-input-wrapper span.show-password-input {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Remember Me Checkbox */
.afiyah-auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.afiyah-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin: 0;
}

.afiyah-remember-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #044634;
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
}

/* Info Note / Consent */
.afiyah-auth-info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    font-size: 12.5px;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 10px;
}

.afiyah-auth-info-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.afiyah-privacy-consent {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.afiyah-privacy-consent a {
    color: #044634;
    font-weight: 600;
    text-decoration: none;
}

.afiyah-privacy-consent a:hover {
    text-decoration: underline;
}

/* Submit CTA Button */
.afiyah-auth-submit-btn {
    width: 100% !important;
    height: 50px !important;
    background: linear-gradient(135deg, #044634 0%, #0a7c5F 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 8px 24px -4px rgba(4, 70, 52, 0.4) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin-top: 6px !important;
}

.afiyah-auth-submit-btn:hover {
    background: linear-gradient(135deg, #0a7c5F 0%, #044634 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(4, 70, 52, 0.5) !important;
}

.afiyah-auth-submit-btn:active {
    transform: translateY(0);
}

.afiyah-auth-submit-btn svg {
    transition: transform 0.2s;
}

.afiyah-auth-submit-btn:hover svg {
    transform: translateX(4px);
}

/* Switch Prompt */
.afiyah-auth-switch-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    color: #64748b;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

.afiyah-switch-link {
    background: none;
    border: none;
    color: #E11D48;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s;
    font-family: inherit;
}

.afiyah-switch-link:hover {
    color: #be123c;
    text-decoration: underline;
}

/* Trust Badges Strip */
.afiyah-auth-trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.afiyah-auth-trust-strip .trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.afiyah-auth-trust-strip .trust-badge svg {
    color: #059669;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 540px) {
    .afiyah-auth-page-wrapper {
        padding: 16px 12px 40px;
    }

    .afiyah-auth-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .afiyah-auth-title {
        font-size: 22px !important;
    }

    .afiyah-auth-trust-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }
}

/* ====== HIDE ASTRA DEFAULT WHITE FOOTER BAR COMPLETELY ====== */
.site-footer,
footer#colophon,
#colophon.site-footer,
.ast-footer-overlay,
.site-below-footer-wrap,
.ast-small-footer-wrap,
.ast-builder-footer-grid-columns,
.ast-builder-footer,
.ast-below-header-bar,
.ast-footer-copyright {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: none !important;
    background: transparent !important;
}

/* =========================================================================
   LUXURY MOBILE BOTTOM NAVIGATION BAR (SMALL DEVICES)
   ========================================================================= */
.afiyah-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .afiyah-mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
        z-index: 999999 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 6px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-sizing: border-box !important;
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    }

    .afiyah-mobile-bottom-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        text-decoration: none !important;
        color: #64748b !important;
        padding: 6px 0 !important;
        border-radius: 8px !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .afiyah-mobile-bottom-item .icon-wrap {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .afiyah-mobile-bottom-item .icon-wrap svg {
        width: 21px !important;
        height: 21px !important;
        stroke: currentColor !important;
        stroke-width: 1.9 !important;
        transition: stroke 0.2s ease !important;
    }

    .afiyah-mobile-bottom-item .label {
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0.1px !important;
        line-height: 1 !important;
        color: #64748b !important;
        transition: color 0.2s ease !important;
    }

    .afiyah-mobile-bottom-item:hover,
    .afiyah-mobile-bottom-item:active {
        color: #0f172a !important;
    }

    .afiyah-mobile-bottom-item.is-active {
        color: #E11D48 !important;
    }

    .afiyah-mobile-bottom-item.is-active .label {
        color: #E11D48 !important;
        font-weight: 800 !important;
    }

    .afiyah-mobile-bottom-item.is-active .icon-wrap {
        transform: translateY(-2px) scale(1.08) !important;
    }

    .afiyah-mobile-bottom-item.is-active .icon-wrap svg {
        stroke: #E11D48 !important;
    }
}


