/* 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: none;
    -webkit-backdrop-filter: none;
    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: 5px 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: 30px;
    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: 44px;
    object-fit: contain;
    display: block;
    transition: max-height 0.25s ease;
}

/* Center Search Column (Wide with Brand Border & Buy from AliExpress CTA) */
.afiyah-header-search-col {
    flex: 1;
    max-width: 680px;
    margin: 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.afiyah-header-search-form {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.afiyah-header-alx-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: #044634;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(4, 70, 52, 0.2);
}

.afiyah-header-alx-cta:hover {
    background: #033326;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 70, 52, 0.3);
}

.afiyah-header-alx-cta svg {
    color: #34d399;
}

.afiyah-mobile-search-extra-bar {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}

.afiyah-mobile-search-alx-link {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #044634;
    text-decoration: none;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 12px;
    transition: all 0.15s ease;
}

.afiyah-mobile-search-alx-link:hover {
    background: #dcfce7;
    color: #033326;
}

.afiyah-search-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 38px;
    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: 2px;
    text-decoration: none;
    color: #475569;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    padding: 2px 4px;
    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: 3px 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: 5px 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: -11px;
    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: #ffffff;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    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: 6px 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: 5px 0;
}

.afiyah-site-header-wrapper.is-sticky.sticky-full .afiyah-header-nav-row {
    padding: 2px 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: none;
    -webkit-backdrop-filter: none;
    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: none;
    -webkit-backdrop-filter: none;
    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-alx-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none !important;
    text-align: left;
    margin-top: 10px;
    transition: all 0.15s ease;
}

.afiyah-live-alx-suggestion:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
}

.afiyah-live-alx-suggestion .alx-sugg-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.afiyah-live-alx-suggestion .alx-sugg-content {
    flex: 1;
}

.afiyah-live-alx-suggestion .alx-sugg-content strong {
    display: block;
    font-size: 13px;
    color: #065f46;
    font-weight: 700;
}

.afiyah-live-alx-suggestion .alx-sugg-content span {
    display: block;
    font-size: 11.5px;
    color: #047857;
    margin-top: 2px;
}

.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: 52px;
        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: 6px 0;
    }

    .afiyah-header-logo-col .afiyah-logo-img {
        max-height: 38px;
    }

    .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 & ensure absolute top stacking context when cart drawer is active */
body.afiyah-cart-drawer-open {
    overflow: hidden !important;
}

body.afiyah-cart-drawer-open .afiyah-notice-bar,
body.afiyah-cart-drawer-open #afiyahNoticeBar,
body.afiyah-cart-drawer-open #afiyah-site-header,
body.afiyah-cart-drawer-open .afiyah-site-header-wrapper {
    z-index: 10 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Side Cart Drawer (Slides from Right with smooth cubic-bezier animation) */
.afiyah-cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 420px;
    max-width: 92vw;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff;
    z-index: 99999999 !important;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    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) !important;
}

/* Cart Drawer Backdrop */
.afiyah-cart-drawer-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99999990 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.afiyah-cart-drawer-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 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: 768px) {
    .afiyah-cart-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 99999999 !important;
    }

    .afiyah-cart-drawer-backdrop {
        z-index: 99999990 !important;
    }

    .afiyah-cart-drawer-footer {
        padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ==========================================================================
   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;
}

/* Product Card Bottom Row (Price + Daraz-Style Sold Badge) */
.product-card-bottom-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin: auto 0 0 0 !important;
    padding-top: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.product-card-sold-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin-left: auto !important;
    letter-spacing: 0.2px !important;
}

.product-card-sold-badge .sold-num {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.product-card-sold-badge .sold-text {
    color: #64748b !important;
    font-size: 10.5px !important;
}

@media (max-width: 576px) {
    .product-card-bottom-row {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .product-card-sold-badge {
        font-size: 10px !important;
        padding: 1.5px 5px !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-sold-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 1.2;
}

.afiyah-pdp-sold-badge .afiyah-sold-icon {
    display: inline-flex;
    align-items: center;
    color: #f59e0b;
}

.afiyah-pdp-sold-badge .afiyah-sold-val {
    color: #92400e;
    font-weight: 800;
}

.afiyah-pdp-sold-badge .afiyah-sold-label {
    color: #b45309;
    font-weight: 600;
}

.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 (Ultra Clean 2-Column Luxury Design) */
.afiyah-delivery-area-wrap {
    margin-bottom: 20px;
}

.afiyah-area-field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.afiyah-area-radio-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}

.afiyah-area-radio-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    user-select: none;
    box-sizing: border-box;
}

.afiyah-area-radio-label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.afiyah-area-radio-label.is-selected {
    border-color: #044634 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 4px 14px rgba(4, 70, 52, 0.08) !important;
}

.afiyah-area-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom Radio Dot Indicator */
.area-radio-custom-ui {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.area-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.afiyah-area-radio-label.is-selected .area-radio-custom-ui {
    border-color: #044634;
    background: #044634;
}

.afiyah-area-radio-label.is-selected .area-radio-dot {
    background: #ffffff;
}

.area-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.area-title-row {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.area-icon {
    font-size: 15px;
    line-height: 1;
}

.area-label-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.area-price-tag {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    margin-top: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.afiyah-area-radio-label.is-selected .area-price-tag {
    color: #044634;
    background: #dcfce7;
    border-color: #bbf7d0;
}

/* 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;
}

/* Facebook Social Share for Discount Box */
.afiyah-fb-share-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

.fb-share-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.fb-share-icon-wrap {
    flex-shrink: 0;
    margin-top: 2px;
}

.fb-share-header-text {
    flex: 1;
}

.fb-share-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.fb-discount-pill {
    background: #1d4ed8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.fb-share-sub {
    font-size: 12px;
    color: #475569;
    margin-top: 3px;
    line-height: 1.4;
}

.fb-share-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn-fb-open-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1877F2;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
}

.btn-fb-open-share:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.btn-fb-guide-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-fb-guide-toggle:hover,
.btn-fb-guide-toggle.is-open {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.fb-share-guide-collapse {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #334155;
}

.fb-guide-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fb-guide-step {
    padding-left: 2px;
}

.fb-guide-alt {
    color: #2563eb;
    background: #eff6ff;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 4px;
}

.fb-share-input-group {
    display: flex;
    gap: 8px;
}

.fb-share-input-group input {
    flex: 1;
    height: 42px;
    border: 1.5px solid #93c5fd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s;
}

.fb-share-input-group input:focus {
    border-color: #1877F2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.fb-share-input-group button {
    height: 42px;
    padding: 0 16px;
    background: #1877F2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.fb-share-input-group button:hover {
    background: #166fe5;
}

.fb-share-applied-state {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 10px;
    padding: 12px 14px;
}

.fb-applied-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.fb-applied-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #059669;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.fb-applied-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #065f46;
}

.fb-applied-details-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1fae5;
}

.fb-applied-link-row,
.fb-applied-screenshot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

.fb-meta-label {
    font-weight: 700;
    color: #374151;
    min-width: 75px;
}

.fb-applied-url {
    color: #0284c7;
    text-decoration: underline;
    word-break: break-all;
    font-weight: 600;
}

.fb-applied-thumb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f766e;
    font-weight: 700;
}

.fb-applied-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.fb-applied-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.btn-remove-fb-share {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-remove-fb-share:hover {
    background: #fca5a5;
    color: #991b1b;
}

/* Mandatory Alert Notice */
.fb-mandatory-alert {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-mandatory-badge {
    display: inline-flex;
    align-self: flex-start;
    background: #ea580c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.fb-mandatory-text {
    font-size: 12px;
    color: #9a3412;
    line-height: 1.45;
}

/* Step Block Layouts */
.fb-input-block {
    margin-bottom: 12px;
}

.fb-block-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.fb-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #1877F2;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

/* Screenshot Dropzone */
.fb-screenshot-dropzone {
    background: #ffffff;
    border: 1.5px dashed #93c5fd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.fb-screenshot-dropzone:hover {
    border-color: #1877F2;
    background: #f8fafc;
}

.btn-fb-screenshot-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-fb-screenshot-trigger:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.fb-screenshot-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
}

/* Uploaded Preview Card */
.fb-screenshot-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 8px 12px;
}

.fb-preview-thumb-box {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
}

.fb-preview-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fb-preview-info {
    flex: 1;
    min-width: 0;
}

.fb-preview-status {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
}

.fb-preview-view-link {
    font-size: 11px;
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}

.btn-fb-screenshot-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-fb-screenshot-remove:hover {
    background: #fca5a5;
}

/* Apply Action Button */
.fb-apply-action-row {
    margin-top: 10px;
}

.btn-apply-fb-discount {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #1877F2 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
    transition: all 0.2s;
}

.btn-apply-fb-discount:hover {
    background: linear-gradient(135deg, #166fe5 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.35);
}

.btn-apply-fb-discount:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* WhatsApp Fallback Note */
.fb-whatsapp-fallback-note {
    margin-top: 10px;
    font-size: 11.5px;
    color: #047857;
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: 6px;
    padding: 6px 10px;
    line-height: 1.4;
}

/* 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;
}

/* =============================================================================
   LUXURY ADVANCE NOTICE BANNER
   ============================================================================= */
.afiyah-checkout-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    animation: afiyahNoticeSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

@keyframes afiyahNoticeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.afiyah-checkout-notice-banner .notice-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.afiyah-checkout-notice-banner .notice-content-wrap {
    flex: 1;
}

.afiyah-checkout-notice-banner .notice-heading {
    font-size: 15.5px;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.afiyah-checkout-notice-banner .notice-text-body {
    font-size: 13.5px;
    line-height: 1.6;
}

.afiyah-checkout-notice-banner .notice-text-body strong {
    font-weight: 800;
}

/* Notice Banner Color Themes */
.afiyah-checkout-notice-banner.style-luxury_gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #854d0e;
}

.afiyah-checkout-notice-banner.style-luxury_gold .notice-icon-wrap {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.afiyah-checkout-notice-banner.style-luxury_gold .notice-heading {
    color: #713f12;
}

.afiyah-checkout-notice-banner.style-emerald {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
    color: #166534;
}

.afiyah-checkout-notice-banner.style-emerald .notice-icon-wrap {
    background: #044634;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(4, 70, 52, 0.25);
}

.afiyah-checkout-notice-banner.style-emerald .notice-heading {
    color: #044634;
}

.afiyah-checkout-notice-banner.style-amber {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
    color: #9a3412;
}

.afiyah-checkout-notice-banner.style-amber .notice-icon-wrap {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.afiyah-checkout-notice-banner.style-amber .notice-heading {
    color: #7c2d12;
}

.afiyah-checkout-notice-banner.style-modern_blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
    color: #0369a1;
}

.afiyah-checkout-notice-banner.style-modern_blue .notice-icon-wrap {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.afiyah-checkout-notice-banner.style-modern_blue .notice-heading {
    color: #075985;
}

/* =============================================================================
   PAYMENT METHOD SECTION & SWITCHER
   ============================================================================= */
.afiyah-payment-method-card .afiyah-checkout-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.afiyah-payment-method-card .header-left {
    display: flex;
    align-items: center;
}

.card-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #044634;
    background: #e8f7f2;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
}

.mode-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.mode-section-label .sub-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #044634;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.afiyah-payment-mode-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.afiyah-payment-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.afiyah-mode-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 16px 14px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.afiyah-mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.afiyah-mode-card .mode-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.afiyah-mode-card .mode-radio-circle .radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s;
}

.afiyah-mode-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.afiyah-mode-card.is-selected {
    border-color: #044634;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(4, 70, 52, 0.12), 0 4px 16px rgba(4, 70, 52, 0.08);
}

.afiyah-mode-card.is-selected .mode-radio-circle {
    border-color: #044634;
    background: #044634;
}

.afiyah-mode-card.is-selected .mode-radio-circle .radio-inner {
    background: #ffffff;
}

.afiyah-mode-card .mode-card-content {
    flex: 1;
}

.afiyah-mode-card .mode-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.afiyah-mode-card .mode-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.afiyah-mode-card.is-selected .mode-name {
    color: #044634;
}

.mode-badge-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.mode-badge-pill.gold {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.mode-badge-pill.green {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.afiyah-mode-card .mode-pricing-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
}

.afiyah-mode-card .pay-now-text {
    color: #334155;
    font-weight: 600;
}

.afiyah-mode-card .pay-now-text strong {
    font-weight: 800;
}

.text-emerald {
    color: #044634 !important;
}

.afiyah-mode-card .pay-cod-text {
    font-size: 11.5px;
    color: #64748b;
}

/* Gateway selection section */
.afiyah-gateway-selection-section {
    margin-bottom: 20px;
}

/* =============================================================================
   CLEAN PAYMENT CHANNELS TABS & BOX (bKash & Bank Transfer)
   ============================================================================= */
.afiyah-payment-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.afiyah-payment-tabs-nav .afiyah-channel-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-sizing: border-box;
    width: 100%;
    user-select: none;
}

.afiyah-payment-tabs-nav .afiyah-channel-card:hover {
    background: rgba(255, 255, 255, 0.65);
}

.afiyah-payment-tabs-nav .afiyah-channel-card.is-selected {
    background: #ffffff !important;
    border-color: rgba(4, 70, 52, 0.2) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}

.afiyah-payment-tabs-nav .channel-brand-icon {
    font-size: 18px;
    line-height: 1;
    min-width: 20px;
    text-align: center;
}

.afiyah-payment-tabs-nav .channel-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.afiyah-payment-tabs-nav .channel-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #475569;
    letter-spacing: -0.2px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.afiyah-payment-tabs-nav .channel-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.afiyah-payment-tabs-nav .afiyah-channel-card.is-selected .channel-title {
    color: #044634 !important;
}

.afiyah-payment-tabs-nav .afiyah-channel-card.is-selected .channel-sub {
    color: #047857 !important;
}

/* Panel Animations */
.afiyah-channel-panel {
    display: none;
    animation: afiyahFadeIn 0.25s ease;
}

.afiyah-channel-panel.is-active {
    display: block;
}

/* Clean Inner Payment Container */
.afiyah-clean-payment-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
}

/* Live Payable Amount Highlight Card inside Payment Box */
.afiyah-payable-amount-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.afiyah-payable-amount-box.pill-theme-bkash {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: #fbcfe8;
    color: #831843;
}

.afiyah-payable-amount-box.pill-theme-bank {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
    color: #14532d;
}

.payable-box-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.payable-box-badge {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.pill-theme-bkash .payable-box-badge {
    color: #be185d;
}

.pill-theme-bank .payable-box-badge {
    color: #044634;
}

.payable-box-desc {
    font-size: 11.5px;
    line-height: 1.3;
    opacity: 0.88;
}

.payable-box-price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.pill-theme-bkash .payable-box-price {
    color: #d12053;
}

.pill-theme-bank .payable-box-price {
    color: #044634;
}

.payable-box-price .currency-symbol {
    font-size: 15px;
    font-weight: 700;
}

/* MFS Numbers Grid */
.mfs-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mfs-account-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 12px;
    transition: all 0.15s ease;
}

.mfs-account-pill:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mfs-pill-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mfs-brand-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mfs-brand-tag.bkash {
    background: #d12053;
}

.mfs-brand-tag.nagad {
    background: #f97316;
}

.mfs-brand-tag.rocket {
    background: #862d86;
}

.mfs-acc-type {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
}

.mfs-acc-num {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    letter-spacing: 0.3px;
    margin-left: 2px;
}

.btn-copy-mfs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-copy-mfs:hover {
    background: #044634;
    border-color: #044634;
    color: #ffffff;
}

.btn-copy-mfs.is-copied {
    background: #044634 !important;
    border-color: #044634 !important;
    color: #ffffff !important;
}

/* Bank Clean Grid */
.bank-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 560px) {
    .bank-clean-grid {
        grid-template-columns: 1fr;
    }
}

.bank-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bank-tile.is-accent {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.tile-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.tile-value {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.tile-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.tile-routing {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

/* Proof Inputs Grid (2 Columns) */
.mfs-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .mfs-inputs-grid {
        grid-template-columns: 1fr;
    }
}

.mfs-field-wrap label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.mfs-field-wrap input.afiyah-field {
    width: 100%;
    height: 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mfs-field-wrap input.afiyah-field:focus {
    border-color: #044634;
    box-shadow: 0 0 0 3px rgba(4, 70, 52, 0.12);
}

.mfs-field-wrap input.font-mono {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    letter-spacing: 0.5px;
}

.afiyah-manual-mfs-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-top: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    animation: afiyahFadeIn 0.3s ease;
}

.afiyah-manual-mfs-card .mfs-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.afiyah-manual-mfs-card .mfs-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8f7f2;
    color: #044634;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.afiyah-manual-mfs-card .mfs-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.afiyah-manual-mfs-card .mfs-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.mfs-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.mfs-account-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.mfs-account-pill:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mfs-brand-tag {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mfs-brand-tag.bkash {
    background: #d12053;
}

.mfs-brand-tag.nagad {
    background: #f97316;
}

.mfs-brand-tag.rocket {
    background: #862d86;
}

.mfs-account-pill .mfs-pill-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mfs-account-pill .mfs-acc-type {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.mfs-account-pill .mfs-acc-num {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    letter-spacing: 0.5px;
}

.btn-copy-mfs {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-mfs:hover {
    background: #044634;
    border-color: #044634;
    color: #ffffff;
}

.btn-copy-mfs.is-copied {
    background: #044634 !important;
    border-color: #044634 !important;
    color: #ffffff !important;
}

.mfs-instructions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.55;
    margin-bottom: 16px;
}

.mfs-instructions .inst-icon {
    font-size: 16px;
    line-height: 1;
}

.mfs-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mfs-field-wrap label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.mfs-field-wrap label .field-hint {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    font-size: 15px;
    pointer-events: none;
    color: #94a3b8;
}

.input-with-icon input.afiyah-field {
    padding-left: 38px;
    height: 44px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon input.afiyah-field:focus {
    border-color: #044634;
    box-shadow: 0 0 0 3px rgba(4, 70, 52, 0.12);
    outline: none;
}

.input-with-icon input.font-mono {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =============================================================================
   ORDER SUMMARY TOTALS TABLE ENHANCEMENTS
   ============================================================================= */
.afiyah-totals-table .total-row.is-payable-now {
    background: #e8f7f2;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #a7f3d0;
    margin-top: 12px;
    font-weight: 700;
    color: #044634;
}

.afiyah-totals-table .total-row.is-payable-now .value {
    color: #044634;
    font-size: 17px;
    font-weight: 800;
}

.afiyah-totals-table .total-row.is-cod-due {
    background: #fff7ed;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #fed7aa;
    margin-top: 8px;
    font-weight: 700;
    color: #9a3412;
}

.afiyah-totals-table .total-row.is-cod-due .value {
    color: #c2410c;
    font-size: 17px;
    font-weight: 800;
}

/* Thank You Invoice Additions */
.afiyah-invoice-totals-table .total-row.advance-paid-row {
    color: #044634;
    font-weight: 700;
}

.afiyah-invoice-totals-table .total-row.cod-due-row {
    color: #c2410c;
    font-weight: 800;
    font-size: 15px;
    border-top: 1px dashed #fed7aa;
    padding-top: 8px;
    margin-top: 6px;
}

.afiyah-invoice-totals-table .total-row.full-paid-row {
    color: #044634;
    font-weight: 700;
    padding-top: 6px;
}

.afiyah-trx-receipt-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
}

.afiyah-trx-receipt-box code {
    background: #ffffff;
    padding: 2px 7px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .afiyah-payment-mode-grid {
        grid-template-columns: 1fr;
    }

    .mfs-inputs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 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 & Mobile Optimization for Checkout */
@media (max-width: 900px) {
    .afiyah-checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .afiyah-order-summary-sticky {
        position: relative;
        top: 0;
    }

    .afiyah-area-radio-group {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .afiyah-payment-tabs-nav {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

@media (max-width: 768px) {

    /* Reset theme outer container side padding so checkout can use screen width cleanly */
    body.woocommerce-checkout #content,
    body.woocommerce-checkout .ast-container,
    body.woocommerce-checkout #primary,
    body.woocommerce-checkout #main,
    body.woocommerce-checkout article,
    body.woocommerce-checkout .ast-article-single,
    body.woocommerce-checkout .entry-content,
    body.woocommerce-checkout .woocommerce,
    body.woocommerce-page.woocommerce-checkout #content,
    body.woocommerce-page.woocommerce-checkout .ast-container,
    body.woocommerce-page.woocommerce-checkout #primary,
    body.woocommerce-page.woocommerce-checkout #main,
    body.woocommerce-page.woocommerce-checkout article,
    body.woocommerce-page.woocommerce-checkout .ast-article-single,
    body.woocommerce-page.woocommerce-checkout .entry-content,
    body.woocommerce-page.woocommerce-checkout .woocommerce {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .afiyah-checkout-page-container {
        padding: 0 8px !important;
        margin: 0 auto 30px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .afiyah-checkout-top-header {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
        gap: 8px !important;
    }

    .afiyah-checkout-heading {
        font-size: 20px !important;
    }

    .afiyah-secure-badge {
        font-size: 11.5px !important;
        padding: 4px 10px !important;
    }

    .afiyah-guest-login-prompt {
        padding: 10px 12px !important;
        margin-bottom: 14px !important;
        font-size: 13px !important;
    }

    .afiyah-checkout-grid {
        gap: 14px !important;
    }

    .afiyah-checkout-card {
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }

    .afiyah-checkout-card-header {
        padding: 12px 14px !important;
    }

    .afiyah-checkout-card-header .card-title {
        font-size: 15px !important;
    }

    .afiyah-checkout-card-body {
        padding: 14px 12px !important;
    }

    .afiyah-input-wrap {
        margin-bottom: 12px !important;
    }

    .afiyah-field {
        padding: 9px 12px !important;
        font-size: 13.5px !important;
    }

    /* Payment gateway flex cards */
    .afiyah-payment-gateways-flex {
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .afiyah-gateway-card {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        max-width: 100% !important;
        padding: 10px 8px !important;
    }

    /* Checkout login gate */
    .afiyah-checkout-login-gate {
        margin: 15px auto 30px !important;
        padding: 0 4px !important;
    }

    .afiyah-gate-card {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }

    .afiyah-gate-header h3 {
        font-size: 18px !important;
    }

    /* Order summary item rows */
    .afiyah-checkout-item-row {
        padding: 10px 0 !important;
        gap: 10px !important;
    }

    .item-thumb-box {
        width: 52px !important;
        height: 52px !important;
    }

    .item-thumb-box img {
        width: 52px !important;
        height: 52px !important;
    }

    .item-details-box .item-title {
        font-size: 13px !important;
    }

    .item-line-total {
        font-size: 13px !important;
    }

    .afiyah-totals-table {
        padding-top: 10px !important;
        margin-bottom: 16px !important;
    }

    .afiyah-totals-table .total-row {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .afiyah-totals-table .total-row.is-grand-total {
        font-size: 15px !important;
        padding-top: 10px !important;
        margin-top: 10px !important;
    }

    .afiyah-totals-table .total-row.is-grand-total .value {
        font-size: 18px !important;
    }

    .afiyah-btn-place-order {
        height: 48px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .afiyah-checkout-page-container {
        padding: 0 4px !important;
    }

    .afiyah-checkout-card-body {
        padding: 12px 10px !important;
    }

    .afiyah-gate-card {
        padding: 16px 10px !important;
    }

    .afiyah-checkout-top-header {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /* 2-Column Delivery Area on Small Devices */
    .afiyah-area-radio-group {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .afiyah-area-radio-label {
        padding: 10px 8px !important;
        gap: 6px !important;
        border-radius: 10px !important;
    }

    .area-radio-custom-ui {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
    }

    .area-radio-dot {
        width: 7px !important;
        height: 7px !important;
    }

    .area-icon {
        font-size: 13px !important;
    }

    .area-label-text {
        font-size: 12px !important;
    }

    .area-price-tag {
        font-size: 11px !important;
        padding: 1px 6px !important;
        margin-top: 2px !important;
    }

    /* 2-Column Payment Tabs on Small Devices */
    .afiyah-payment-tabs-nav {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
        padding: 4px !important;
        border-radius: 12px !important;
    }

    .afiyah-payment-tabs-nav .afiyah-channel-card {
        padding: 8px 6px !important;
        gap: 6px !important;
        border-radius: 8px !important;
    }

    .afiyah-payment-tabs-nav .channel-brand-icon {
        font-size: 15px !important;
        min-width: 15px !important;
    }

    .afiyah-payment-tabs-nav .channel-title {
        font-size: 12px !important;
    }

    .afiyah-payment-tabs-nav .channel-sub {
        font-size: 9.5px !important;
    }
}







/* =============================================================================
   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: #044634;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(4, 70, 52, 0.12);
}

.afiyah-gateway-card .gw-selected-tick {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #044634;
    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: none;
        -webkit-backdrop-filter: none;
        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 & Mobile Optimization for My-Account (Login/Register & Account Hub) */
@media (max-width: 768px) {

    /* Reset theme outer container side padding so account content uses full screen cleanly */
    body.woocommerce-account #content,
    body.woocommerce-account .ast-container,
    body.woocommerce-account #primary,
    body.woocommerce-account #main,
    body.woocommerce-account article,
    body.woocommerce-account .ast-article-single,
    body.woocommerce-account .entry-content,
    body.woocommerce-account .woocommerce,
    body.woocommerce-page.woocommerce-account #content,
    body.woocommerce-page.woocommerce-account .ast-container,
    body.woocommerce-page.woocommerce-account #primary,
    body.woocommerce-page.woocommerce-account #main,
    body.woocommerce-page.woocommerce-account article,
    body.woocommerce-page.woocommerce-account .ast-article-single,
    body.woocommerce-page.woocommerce-account .entry-content,
    body.woocommerce-page.woocommerce-account .woocommerce {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .afiyah-auth-page-wrapper {
        padding: 16px 8px 30px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .afiyah-auth-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .afiyah-auth-card {
        padding: 20px 14px !important;
        border-radius: 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .afiyah-auth-header {
        margin-bottom: 16px !important;
        padding: 0 4px !important;
    }

    .afiyah-auth-icon-badge {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
    }

    .afiyah-auth-icon-badge svg {
        width: 22px !important;
        height: 22px !important;
    }

    .afiyah-auth-title {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }

    .afiyah-auth-subtitle {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .afiyah-auth-tabs {
        margin-bottom: 18px !important;
        gap: 4px !important;
        padding: 4px !important;
    }

    .afiyah-auth-tab-btn {
        padding: 9px 8px !important;
        font-size: 13px !important;
    }

    .afiyah-auth-form {
        gap: 14px !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"] {
        height: 44px !important;
        padding: 0 38px 0 38px !important;
        font-size: 13.5px !important;
    }

    .afiyah-auth-submit-btn {
        height: 46px !important;
        font-size: 14.5px !important;
    }

    .afiyah-auth-trust-strip {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        margin-top: 16px !important;
        border-radius: 12px !important;
    }

    /* Logged in dashboard mobile padding */
    .woocommerce-account:not(.logged-out) .woocommerce {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 480px) {
    .afiyah-auth-page-wrapper {
        padding: 12px 6px 24px !important;
    }

    .afiyah-auth-card {
        padding: 16px 10px !important;
        border-radius: 12px !important;
    }

    .afiyah-auth-input,
    .afiyah-auth-input-wrapper input {
        height: 42px !important;
        padding: 0 36px 0 36px !important;
        font-size: 13px !important;
    }

    .afiyah-auth-submit-btn {
        height: 44px !important;
        font-size: 14px !important;
    }
}

/* ====== 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;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    /* Hide bottom nav bar when Cart Drawer, Mobile Menu, or Filter Drawer is open */
    body.afiyah-cart-drawer-open .afiyah-mobile-bottom-nav,
    body.has-afiyah-drawer-open .afiyah-mobile-bottom-nav,
    body.has-afiyah-search-open .afiyah-mobile-bottom-nav {
        transform: translateY(110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !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;
    }
}

/* =========================================================================
   NOTICE BUILDER - FRONTEND TOP HEADER BAR & MARQUEE TICKER
   ========================================================================= */
.afiyah-notice-bar {
    position: relative;
    width: 100%;
    background-color: var(--afiyah-notice-bg, #044634);
    color: var(--afiyah-notice-text, #ffffff);
    font-size: var(--afiyah-notice-font-size, 13px);
    font-weight: var(--afiyah-notice-font-weight, 500);
    min-height: var(--afiyah-notice-height, 40px);
    line-height: 1.4;
    overflow: hidden;
    z-index: 998;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.afiyah-notice-bar.afiyah-notice-sticky {
    position: sticky;
    top: 0;
    z-index: 1001;
}

.afiyah-notice-inner {
    position: relative;
    width: 100%;
    min-height: var(--afiyah-notice-height, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px 0 16px;
    box-sizing: border-box;
}

/* 1. Continuous Marquee Ticker */
.afiyah-notice-bar.type-marquee .afiyah-notice-inner {
    padding: 0;
}

.afiyah-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.afiyah-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: afiyahNoticeMarquee var(--afiyah-notice-speed, 28s) linear infinite;
}

.afiyah-notice-bar[data-pause="true"]:hover .afiyah-marquee-track {
    animation-play-state: paused;
}

.afiyah-marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.afiyah-notice-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px;
    white-space: nowrap;
}

.afiyah-notice-icon {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

.afiyah-notice-badge {
    background-color: var(--afiyah-notice-badge-bg, #d4af37);
    color: var(--afiyah-notice-badge-text, #111111);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.2;
}

.afiyah-notice-text {
    font-weight: var(--afiyah-notice-font-weight, 500);
}

.afiyah-notice-cta-btn {
    background-color: var(--afiyah-notice-btn-bg, #ffffff);
    color: var(--afiyah-notice-btn-text, #044634) !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.afiyah-notice-cta-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.afiyah-notice-separator {
    color: var(--afiyah-notice-badge-bg, #d4af37);
    font-size: 11px;
    margin: 0 12px;
    opacity: 0.85;
}

/* 2. Slide Ticker Carousel */
.afiyah-slider-ticker-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--afiyah-notice-height, 40px);
}

.afiyah-slider-ticker-slides {
    position: relative;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afiyah-slider-ticker-item {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    animation: afiyahNoticeSlideFade 0.35s ease-out;
}

.afiyah-slider-ticker-item.is-active {
    display: inline-flex;
}

.afiyah-ticker-nav {
    position: absolute;
    right: 48px;
    display: flex;
    gap: 2px;
    z-index: 2;
}

.afiyah-ticker-arrow {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.afiyah-ticker-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 3. Static Notice Content */
.afiyah-static-notice-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    width: 100%;
}

/* 4. Dismiss Close Button */
.afiyah-notice-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 4px 6px;
    border-radius: 4px;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afiyah-notice-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .afiyah-notice-bar {
        font-size: calc(var(--afiyah-notice-font-size, 13px) - 1px);
    }

    .afiyah-notice-item {
        margin: 0 10px;
    }

    .afiyah-notice-badge {
        font-size: 10px;
        padding: 1px 6px;
    }

    .afiyah-notice-cta-btn {
        font-size: 10.5px;
        padding: 2px 8px;
    }
}

@keyframes afiyahNoticeMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes afiyahNoticeSlideFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   AFIYAH ALIEXPRESS GLOBAL CONCIERGE & IMPORTER (CLEAN EXECUTIVE SYSTEM)
   ========================================================================== */

:root {
    --alx-brand: #044634;
    --alx-brand-hover: #033628;
    --alx-brand-subtle: #f0fdf4;
    --alx-accent: #059669;
    --alx-dark-bg: #0b1f18;
    --alx-dark-card: #081712;
    --alx-dark-border: rgba(255, 255, 255, 0.1);
    --alx-text-main: #0f172a;
    --alx-text-muted: #64748b;
    --alx-card-border: #e2e8f0;
    --alx-input-border: #cbd5e1;
    --alx-input-bg: #ffffff;
    --alx-radius-lg: 12px;
    --alx-radius-md: 8px;
    --alx-radius-sm: 6px;
}

/* Center Page Title for Import from AliExpress Landing Page */
.page-id-157 .entry-header,
.post-157 .entry-header,
body:has(#afiyahAlxImporterApp) .entry-header,
.page:has(.afiyah-alx-container) .entry-header,
body.page-id-157 .ast-article-single .entry-header {
    text-align: center !important;
    margin: 24px auto 14px !important;
    display: block !important;
    width: 100% !important;
}

.page-id-157 .entry-header .entry-title,
.post-157 .entry-header .entry-title,
body:has(#afiyahAlxImporterApp) .entry-header .entry-title,
.page:has(.afiyah-alx-container) .entry-header .entry-title,
body.page-id-157 .ast-article-single .entry-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}

.afiyah-alx-container {
    max-width: 1200px;
    margin: 28px auto 60px;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--alx-text-main);
    box-sizing: border-box;
}

.afiyah-alx-container * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   HERO HEADER & VALUE PROPOSITION
   -------------------------------------------------------------------------- */
.alx-hero {
    position: relative;
    background: linear-gradient(135deg, #022c22 0%, #044634 60%, #064e3b 100%);
    border-radius: var(--alx-radius-lg);
    padding: 38px 32px 28px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(4, 70, 52, 0.25);
    margin-bottom: 26px;
}

.alx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.alx-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
    display: inline-block;
}

.alx-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.alx-brand-highlight {
    color: #ffffff;
    position: relative;
    display: inline-block;
    border-bottom: 2px solid #34d399;
    padding-bottom: 1px;
}

.alx-hero-subtitle {
    font-size: 14.5px;
    color: #cbd5e1;
    max-width: 740px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* 3-Step Clean Linear Process */
.alx-process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--alx-radius-md);
    max-width: 740px;
    margin: 0 auto 22px;
    padding: 12px 18px;
    gap: 12px;
}

.alx-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    flex: 1;
}

.alx-step-number {
    font-size: 12px;
    font-weight: 800;
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alx-step-text strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

.alx-step-text span {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
}

.alx-step-divider {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Nav Pills */
.alx-nav-pills {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.alx-pill-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.alx-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.alx-pill-btn.is-active {
    background: #ffffff;
    color: var(--alx-brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   TAB CONTENTS & TRANSITIONS
   -------------------------------------------------------------------------- */
.alx-tab-content {
    display: none;
    animation: alxFadeIn 0.2s ease-out;
}

.alx-tab-content.is-active {
    display: block;
}

@keyframes alxFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   ORDER FORM GRID LAYOUT
   -------------------------------------------------------------------------- */
.alx-order-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

.alx-card {
    background: #ffffff;
    border: 1px solid var(--alx-card-border);
    border-radius: var(--alx-radius-lg);
    padding: 26px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -2px rgba(15, 23, 42, 0.03);
}

.alx-card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.alx-card-step-badge {
    display: inline-block;
    background: var(--alx-brand-subtle);
    color: var(--alx-brand);
    border: 1px solid #dcfce7;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.alx-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--alx-text-main);
    margin: 0 0 3px;
}

.alx-card-desc {
    font-size: 12.5px;
    color: var(--alx-text-muted);
    margin: 0;
}

/* Form Controls & Inputs */
.alx-form-group {
    margin-bottom: 16px;
}

.alx-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.alx-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.alx-req {
    color: #dc2626;
}

.alx-label-info {
    font-size: 12px;
    color: var(--alx-text-muted);
    cursor: help;
    font-weight: normal;
    margin-left: 4px;
}

.alx-link-external {
    font-size: 12px;
    color: var(--alx-brand);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.alx-link-external:hover {
    text-decoration: underline;
}

/* Modern Input Fields */
.alx-input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--alx-input-border);
    border-radius: var(--alx-radius-md);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--alx-text-main);
    background: var(--alx-input-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.alx-input:hover {
    border-color: #94a3b8;
}

.alx-input:focus {
    border-color: var(--alx-brand);
    box-shadow: 0 0 0 3px rgba(4, 70, 52, 0.1);
}

.alx-url-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.alx-input-url {
    padding-right: 76px;
}

.alx-btn-paste {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 0 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.alx-btn-paste:hover {
    background: #e2e8f0;
    border-color: var(--alx-brand);
    color: var(--alx-brand);
}

.alx-url-feedback {
    margin-top: 5px;
}

.alx-url-status {
    font-size: 11.5px;
    color: var(--alx-text-muted);
    font-weight: 500;
}

.alx-url-status.is-valid {
    color: #047857;
    font-weight: 600;
}

/* Optional Tag & Label Tip */
.alx-optional-tag {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.alx-label-tip {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

/* Modern File Dropzone & Image Uploader */
.alx-file-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: var(--alx-radius-md);
    background: #f8fafc;
    padding: 16px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.alx-file-dropzone:hover {
    border-color: var(--alx-brand);
    background: #f0fdf4;
}

.alx-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.alx-dropzone-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: none;
}

.alx-dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.alx-file-dropzone:hover .alx-dropzone-icon {
    background: #dcfce7;
    color: var(--alx-brand);
}

.alx-dropzone-text {
    text-align: left;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

.alx-dropzone-text strong {
    color: var(--alx-brand);
    text-decoration: underline;
}

.alx-dropzone-text span {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

/* Uploaded Image Preview Card */
.alx-file-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    position: relative;
    z-index: 10;
}

.alx-preview-thumb-wrap {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.alx-preview-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.alx-preview-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.alx-preview-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alx-preview-size {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.alx-preview-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.alx-preview-remove:hover {
    background: #fecaca;
    color: #b91c1c;
}

/* Two Columns inside Form */
.alx-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Clean number inputs (remove spinners) */
.alx-input[type="number"]::-webkit-inner-spin-button,
.alx-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.alx-input[type="number"] {
    -moz-appearance: textfield;
}

.alx-field-hint {
    display: block;
    font-size: 11.5px;
    color: var(--alx-text-muted);
    margin-top: 4px;
}

/* Quantity Stepper */
.alx-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--alx-input-border);
    border-radius: var(--alx-radius-md);
    overflow: hidden;
    height: 46px;
    background: #ffffff;
}

.alx-qty-btn {
    width: 44px;
    height: 100%;
    background: #f8fafc;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alx-qty-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.alx-qty-input {
    flex: 1;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    outline: none;
    color: var(--alx-text-main);
    padding: 0;
}

/* Clean Weight Cards */
.alx-weight-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.alx-weight-card {
    border: 1px solid var(--alx-card-border);
    border-radius: var(--alx-radius-md);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alx-weight-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.alx-weight-card.is-active {
    border-color: var(--alx-brand);
    background: var(--alx-brand-subtle);
    box-shadow: 0 0 0 1px var(--alx-brand);
}

.alx-weight-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.alx-weight-card.is-active .alx-weight-radio {
    border-color: var(--alx-brand);
    background: var(--alx-brand);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.alx-weight-meta {
    flex: 1;
}

.alx-weight-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alx-weight-top strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--alx-text-main);
}

.alx-weight-tag {
    font-size: 10.5px;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.alx-weight-desc {
    display: block;
    font-size: 11.5px;
    color: var(--alx-text-muted);
    line-height: 1.3;
    margin-top: 3px;
}

/* Specifications Textarea & Quick Tags */
.alx-textarea {
    width: 100%;
    border: 1px solid var(--alx-input-border);
    border-radius: var(--alx-radius-md);
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--alx-text-main);
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #ffffff;
}

.alx-textarea:hover {
    border-color: #94a3b8;
}

.alx-textarea:focus {
    border-color: var(--alx-brand);
    box-shadow: 0 0 0 3px rgba(4, 70, 52, 0.1);
}

.alx-quick-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    flex-wrap: wrap;
}

.alx-tag-label {
    font-size: 11.5px;
    color: var(--alx-text-muted);
    font-weight: 600;
}

.alx-spec-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.alx-spec-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--alx-text-main);
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: LIVE RECEIPT BOX
   -------------------------------------------------------------------------- */
.alx-receipt-box {
    background: var(--alx-dark-bg);
    border-radius: var(--alx-radius-md);
    border: 1px solid var(--alx-dark-border);
    padding: 22px 20px;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.alx-receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.alx-receipt-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.alx-live-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
}

.alx-receipt-currency-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.alx-receipt-total {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.alx-total-symbol {
    font-size: 26px;
    font-weight: 800;
    color: #34d399;
}

.alx-total-figure {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.alx-total-note {
    font-size: 12.5px;
    color: #94a3b8;
    margin-left: 4px;
}

.alx-receipt-breakdown {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
}

.alx-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cbd5e1;
}

.alx-line-value {
    color: #ffffff;
    font-weight: 600;
}

/* 50% Split Highlight Card */
.alx-split-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    margin-top: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alx-split-col {
    flex: 1;
    text-align: center;
}

.alx-split-lbl {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.alx-split-val {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.alx-split-val.is-accent {
    color: #34d399;
}

.alx-split-sub {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.alx-split-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 8px;
}

/* --------------------------------------------------------------------------
/* City Destination Pills */
.alx-city-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.alx-city-pill {
    display: flex;
    align-items: center;
    border: 1px solid var(--alx-input-border);
    border-radius: var(--alx-radius-md);
    padding: 9px 12px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s;
}

.alx-city-pill:hover {
    border-color: #94a3b8;
}

.alx-city-pill input {
    margin: 0 8px 0 0;
    accent-color: var(--alx-brand);
}

.alx-city-content strong {
    display: block;
    font-size: 12.5px;
    color: var(--alx-text-main);
    line-height: 1.2;
}

.alx-city-content span {
    display: block;
    font-size: 11px;
    color: var(--alx-text-muted);
}

.alx-city-pill.is-active {
    border-color: var(--alx-brand);
    background: var(--alx-brand-subtle);
}

/* Quotation Process Info Box */
.alx-quote-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--alx-radius-md);
    padding: 14px 16px;
    margin: 16px 0 14px;
}

.alx-quote-info-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--alx-brand);
    margin-bottom: 8px;
}

.alx-quote-info-hd strong {
    font-weight: 700;
}

.alx-quote-info-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
}

.alx-quote-info-list li {
    margin-bottom: 4px;
}

.alx-quote-info-list li:last-child {
    margin-bottom: 0;
}

/* Submit CTA Button */
.alx-btn-submit {
    width: 100%;
    background: var(--alx-brand);
    border: none;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: var(--alx-radius-md);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(4, 70, 52, 0.2);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.alx-btn-submit:hover {
    background: var(--alx-brand-hover);
    box-shadow: 0 6px 16px rgba(4, 70, 52, 0.3);
}

.alx-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.alx-submit-icon {
    display: inline-block;
    vertical-align: middle;
}

.alx-micro-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--alx-text-muted);
    font-weight: 500;
    margin-top: 12px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   CUSTOMS WARNING ALERT
   -------------------------------------------------------------------------- */
.alx-notice-card {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: var(--alx-radius-md);
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.alx-notice-icon {
    color: #ca8a04;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.alx-notice-body strong {
    display: block;
    font-size: 13px;
    color: #854d0e;
    margin-bottom: 3px;
}

.alx-notice-body p {
    margin: 0;
    font-size: 12px;
    color: #a16207;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   3 PILLARS TRUST SECTION
   -------------------------------------------------------------------------- */
.alx-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.alx-pillar-card {
    background: #ffffff;
    border: 1px solid var(--alx-card-border);
    border-radius: var(--alx-radius-md);
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: border-color 0.15s;
}

.alx-pillar-card:hover {
    border-color: #cbd5e1;
}

.alx-pillar-icon-box {
    width: 44px;
    height: 44px;
    background: var(--alx-brand-subtle);
    border: 1px solid #dcfce7;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alx-brand);
}

.alx-pillar-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--alx-text-main);
}

.alx-pillar-card p {
    margin: 0;
    font-size: 12px;
    color: var(--alx-text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   PARCEL TRACKING TAB
   -------------------------------------------------------------------------- */
.alx-track-card-wrap {
    background: #ffffff;
    border: 1px solid var(--alx-card-border);
    border-radius: var(--alx-radius-lg);
    padding: 34px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    max-width: 800px;
    margin: 0 auto;
}

.alx-track-header {
    margin-bottom: 22px;
}

.alx-track-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--alx-text-main);
    margin: 0 0 5px;
}

.alx-track-header p {
    font-size: 13.5px;
    color: var(--alx-text-muted);
    margin: 0;
}

.alx-track-search-wrap {
    display: flex;
    max-width: 560px;
    margin: 0 auto 20px;
    gap: 8px;
}

.alx-btn-track-submit {
    background: var(--alx-brand);
    border: none;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 0 22px;
    border-radius: var(--alx-radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.alx-btn-track-submit:hover {
    background: var(--alx-brand-hover);
}

.alx-track-results-area {
    margin-top: 22px;
}

.alx-track-card {
    background: #f8fafc;
    border: 1px solid var(--alx-card-border);
    border-radius: var(--alx-radius-md);
    padding: 18px;
    text-align: left;
    margin-bottom: 12px;
}

.alx-track-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.alx-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.alx-status-pill.is-pending { background: #fef3c7; color: #b45309; }
.alx-status-pill.is-quoted { background: #e0f2fe; color: #0369a1; }
.alx-status-pill.is-confirmed { background: #f3e8ff; color: #7e22ce; }
.alx-status-pill.is-purchased { background: #dbeafe; color: #1d4ed8; }
.alx-status-pill.is-in_flight { background: #cffafe; color: #0e7490; }
.alx-status-pill.is-dhaka_customs { background: #ffedd5; color: #c2410c; }
.alx-status-pill.is-delivered { background: #dcfce7; color: #15803d; }
.alx-status-pill.is-cancelled { background: #fee2e2; color: #b91c1c; }

.alx-track-date { font-size: 11.5px; color: #94a3b8; }
.alx-track-desc { font-size: 12.5px; color: #475569; margin-bottom: 8px; }
.alx-track-num { font-size: 12px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 4px; padding: 5px 8px; margin-bottom: 8px; }

.alx-track-pricing {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
    flex-wrap: wrap;
}

.alx-track-pricing strong { color: var(--alx-text-main); }

/* --------------------------------------------------------------------------
   FAQ SECTION (COLLAPSIBLE ACCORDION)
   -------------------------------------------------------------------------- */
.alx-faq-container {
    background: #ffffff;
    border: 1px solid var(--alx-card-border);
    border-radius: var(--alx-radius-lg);
    padding: 32px 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.alx-faq-header {
    text-align: center;
    margin-bottom: 22px;
}

.alx-faq-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--alx-text-main);
    margin: 0 0 5px;
}

.alx-faq-header p {
    font-size: 13.5px;
    color: var(--alx-text-muted);
    margin: 0;
}

.alx-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alx-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--alx-radius-md);
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.15s;
}

.alx-faq-item[open] {
    background: #ffffff;
    border-color: #cbd5e1;
}

.alx-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--alx-text-main);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.alx-faq-question::-webkit-details-marker {
    display: none;
}

.alx-faq-toggle {
    font-size: 16px;
    color: var(--alx-brand);
    font-weight: 700;
}

.alx-faq-item[open] .alx-faq-toggle {
    transform: rotate(45deg);
}

.alx-faq-answer {
    padding: 0 16px 14px;
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
}

.alx-faq-answer p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   SUCCESS CONFIRMATION MODAL
   -------------------------------------------------------------------------- */
.alx-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.alx-modal-dialog {
    background: #ffffff;
    border-radius: var(--alx-radius-lg);
    max-width: 460px;
    width: 100%;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: alxModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alxModalPop {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alx-modal-icon-ring {
    width: 56px;
    height: 56px;
    background: var(--alx-brand-subtle);
    border: 1.5px solid #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alx-brand);
    margin: 0 auto 14px;
}

.alx-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--alx-text-main);
    margin: 0 0 8px;
}

.alx-modal-summary {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 14px;
}

.alx-code-badge {
    background: #f1f5f9;
    color: var(--alx-brand);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.alx-modal-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 11px 13px;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.alx-modal-info-box p {
    margin: 0;
}

.alx-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--alx-radius-md);
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.alx-btn-wa:hover {
    background: #15803d;
}

.alx-btn-close-modal {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.15s;
}

.alx-btn-close-modal:hover {
    color: var(--alx-text-main);
}

/* --------------------------------------------------------------------------
   GLOBAL FLOATING TRIGGER BUTTON
   -------------------------------------------------------------------------- */
.afiyah-alx-floating-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--alx-brand);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(4, 70, 52, 0.35);
    z-index: 9998;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.afiyah-alx-floating-trigger:hover {
    background: var(--alx-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 70, 52, 0.45);
    color: #ffffff !important;
}

.alx-floating-icon {
    display: inline-block;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .alx-order-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .alx-pillars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .alx-hero {
        padding: 28px 16px 20px;
    }

    .alx-hero-title {
        font-size: 22px;
    }

    .alx-hero-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .alx-process-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .alx-step-divider {
        display: none;
    }

    .alx-grid-two,
    .alx-weight-cards,
    .alx-city-pills {
        grid-template-columns: 1fr;
    }

    .alx-card {
        padding: 18px 14px;
    }

    .alx-track-card-wrap {
        padding: 22px 14px;
    }

    .alx-track-search-wrap {
        flex-direction: column;
    }

    .alx-btn-track-submit {
        height: 44px;
    }

    .afiyah-alx-floating-trigger {
        bottom: 74px;
        right: 14px;
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* --------------------------------------------------------------------------
   SINGLE PRODUCT PAGE (PDP) ALIEXPRESS TOUCHPOINTS
   -------------------------------------------------------------------------- */
.afiyah-pdp-alx-oos-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: #044634;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 16px;
    transition: background 0.15s ease;
}

.afiyah-pdp-alx-oos-btn:hover {
    background: #033326;
}

.afiyah-pdp-alx-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #044634;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0;
    gap: 12px;
}

.alx-pdp-banner-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alx-pdp-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #044634;
    text-transform: uppercase;
}

.alx-pdp-banner-left strong {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}

.alx-pdp-banner-left span {
    font-size: 12px;
    color: #64748b;
}

.alx-pdp-banner-btn {
    background: #044634;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.alx-pdp-banner-btn:hover {
    background: #033326;
}

@media (max-width: 600px) {
    .afiyah-pdp-alx-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .alx-pdp-banner-btn {
        width: 100%;
        text-align: center;
    }
}