/*
 * Heri - Custom overrides
 * Elementor Pro + Dokan Pro compatibility styles
 *
 * @package Heri
 */

/* ============ ELEMENTOR OVERRIDES ============ */
.elementor .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.elementor-widget-container .product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

/* ============ DOKAN DASHBOARD FULLWIDTH ============ */
.dokan-dashboard-fullwidth .content-area {
    max-width: 100%;
    padding: 0;
}
.dokan-dashboard-fullwidth .dokan-dashboard-wrap {
    max-width: 100%;
}

/* ============ DOKAN STORE HEADER ============ */
.dokan-store-header {
    border-radius: var(--radius);
    overflow: hidden;
}
.dokan-store-header .store-banner {
    border-radius: var(--radius);
}

/* ============ WOOCOMMERCE CART SIDEBAR ============ */
.widget_shopping_cart {
    padding: 8px 0;
}
.widget_shopping_cart ul.cart_list {
    max-height: 300px;
    overflow-y: auto;
}
.widget_shopping_cart ul.cart_list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.widget_shopping_cart .total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 12px 0;
}
.widget_shopping_cart .buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.widget_shopping_cart .buttons a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
}
.widget_shopping_cart .checkout {
    background: var(--primary);
    color: #fff !important;
}
.widget_shopping_cart .cart {
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
}

/* ============ CART POPUP - MODERNE & PROFESSIONNEL ============ */
.cart-popup-footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
    min-height: 104px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
#cartPanel > .popup-body {
    min-height: 0;
}
.cart-footer-stable {
    display: block;
}
.cart-footer-stable.is-empty .btn-validate-checkout {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.35);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text);
}
.cart-total strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}
.btn-validate-checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #FF4C29, #FF6B4D);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(255,76,41,0.25);
    letter-spacing: 0.3px;
}
.btn-validate-checkout:hover {
    background: linear-gradient(135deg, #D63A1D, #FF4C29);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,76,41,0.35);
}
.btn-validate-checkout:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255,76,41,0.2);
}
.cart-empty-msg {
    text-align: center;
    padding: 40px 0;
    color: var(--text2);
    font-size: 0.88rem;
}
.cart-empty-msg::before {
    content: '\1F6D2';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* Cart popup - MINI CART CUSTOM (images 48px) */
.cart-popup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cart-popup-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-popup-item:last-child {
    border-bottom: none;
}
.cart-popup-item img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.cart-popup-item-info {
    flex: 1;
    min-width: 0;
}
.cart-popup-item-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-popup-item-qty {
    font-size: 0.72rem;
    color: var(--text2);
    margin-top: 2px;
    display: block;
}
.cart-popup-item-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}
.cart-popup-item-remove {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
}
.cart-popup-item-remove:hover {
    color: #fff;
    background: #e53935;
}

/* Override WooCommerce mini-cart widget styles in popup */
#cartBody .woocommerce-mini-cart-item img,
#cartBody .mini_cart_item img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px;
    object-fit: cover;
}
#cartBody .woocommerce-mini-cart .quantity,
#cartBody .woocommerce-mini-cart .woocommerce-Price-amount {
    font-size: 0.78rem;
}
#cartBody .woocommerce-mini-cart .total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 10px 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}
#cartBody .woocommerce-mini-cart .buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
#cartBody .woocommerce-mini-cart .buttons a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
}
#cartBody .woocommerce-mini-cart .checkout {
    background: var(--primary);
    color: #fff !important;
}
#cartBody .woocommerce-mini-cart .cart {
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
}

/* ============ VALIDATE ORDER PAGE (Page de validation légère) ============ */
.validate-order-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px 16px;
}
.validate-order-page .vo-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}
.validate-order-page .vo-header {
    background: linear-gradient(135deg, #FF4C29, #FF6B4D);
    padding: 20px 16px;
    text-align: center;
    color: #fff;
}
.validate-order-page .vo-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.validate-order-page .vo-header p {
    font-size: 0.8rem;
    opacity: 0.85;
}
.validate-order-page .vo-body {
    padding: 20px 16px;
}
.validate-order-page .vo-form .vo-field {
    margin-bottom: 16px;
}
.validate-order-page .vo-form .vo-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.validate-order-page .vo-form .vo-field label .vo-required {
    color: #e53935;
}
.validate-order-page .vo-form .vo-field input,
.validate-order-page .vo-form .vo-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
    background: #f9f9f9;
    transition: all 0.2s;
    box-sizing: border-box;
}
.validate-order-page .vo-form .vo-field input:focus,
.validate-order-page .vo-form .vo-field select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,76,41,0.08);
}
.validate-order-page .vo-form .vo-field .vo-icon {
    position: relative;
}
.validate-order-page .vo-form .vo-field .vo-icon input {
    padding-left: 38px;
}
.validate-order-page .vo-form .vo-field .vo-icon .field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text2);
    pointer-events: none;
}

/* Order summary in validate page */
.validate-order-page .vo-summary {
    background: #f8fafa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.validate-order-page .vo-summary h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.validate-order-page .vo-summary .vo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.82rem;
}
.validate-order-page .vo-summary .vo-item .vo-item-name {
    color: var(--text);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.validate-order-page .vo-summary .vo-item .vo-item-qty {
    color: var(--text2);
    margin: 0 10px;
    font-size: 0.75rem;
}
.validate-order-page .vo-summary .vo-item .vo-item-price {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}
.validate-order-page .vo-summary .vo-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--border);
    font-size: 1rem;
    font-weight: 700;
}
.validate-order-page .vo-summary .vo-total span {
    color: var(--text);
}
.validate-order-page .vo-summary .vo-total strong {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Validate button */
.validate-order-page .vo-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF4C29, #FF6B4D);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(255,76,41,0.3);
    text-align: center;
    text-decoration: none;
}
.validate-order-page .vo-submit:hover {
    background: linear-gradient(135deg, #D63A1D, #FF4C29);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,76,41,0.4);
}
.validate-order-page .vo-submit:active {
    transform: translateY(0);
}
.validate-order-page .vo-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages et liens de la page de validation */
.validate-order-page .vo-error-box {
    margin: 0 0 16px;
    padding: 12px 14px;
    color: #a61b1b;
    background: #fff1f1;
    border: 1px solid #ffd2d2;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
}
.validate-order-page .vo-error-box p {
    margin: 0 0 4px;
}
.validate-order-page .vo-error-box p:last-child {
    margin-bottom: 0;
}
.validate-order-page .vo-continue-link {
    display: block;
    padding: 10px;
    color: var(--text2);
    font-size: 0.82rem;
    text-align: center;
    text-decoration: none;
}
.validate-order-page .vo-continue-link:hover {
    color: var(--primary);
}
.validate-order-page .vo-home-link {
    margin-top: 20px;
}

/* Success state */
.validate-order-page .vo-success {
    text-align: center;
    padding: 30px 20px;
}
.validate-order-page .vo-success .vo-checkmark {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: #4CAF50;
}
.validate-order-page .vo-success h2 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.validate-order-page .vo-success p {
    color: var(--text2);
    font-size: 0.85rem;
}

/* ============ SEARCH ============ */
.header-search input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    outline: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* ============ MOBILE MENU LIST ============ */
.mobile-menu-list li {
    border-bottom: 1px solid var(--border);
}
.mobile-menu-list li a {
    display: block;
    padding: 14px 0;
    font-size: 0.92rem;
    color: var(--text);
}
.mobile-menu-list li a:hover {
    color: var(--primary);
}

/* ============ PAGINATION ============ */
.woocommerce-pagination {
    text-align: center;
    padding: 16px 0;
}
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    gap: 6px;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 0.8rem;
}
.woocommerce-pagination .page-numbers span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ MY ACCOUNT FORMS ============ */
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 10px;
}
.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
}
.woocommerce-MyAccount-content form input:focus {
    border-color: var(--primary);
}
.woocommerce-MyAccount-content form button {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

/* ============ CHECKOUT CUSTOM FIELDS ============ */
.woocommerce-checkout #ajlal_custom_fields {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg3);
    border-radius: var(--radius);
}
.woocommerce-checkout #ajlal_custom_fields h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.woocommerce-checkout #ajlal_custom_fields .form-row input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.woocommerce-checkout #ajlal_custom_fields .form-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 84, 76, 0.1);
}
.woocommerce-checkout #ajlal_custom_fields .form-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: block;
}

/* ============ NOTICES ============ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 12px;
}
.woocommerce-message { background: var(--bg3); color: var(--primary-dark); }
.woocommerce-error { background: #ffebee; color: #c62828; }
.woocommerce-info { background: #e3f2fd; color: #1565c0; }

/* ============ CART AU-DESSUS DU FOOTER MOBILE ============ */
#cartOverlay {
    z-index: 12000;
}
#cartPanel {
    z-index: 12001;
}
body:has(#cartOverlay.active) .mobile-nav {
    visibility: hidden;
    pointer-events: none;
}
@media (max-width: 768px) {
    #cartPanel {
        bottom: 0;
        height: 100dvh;
        max-height: 100dvh;
    }
    #cartFooter {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* ============ WISHLIST + POPUP CATÉGORIES v1.5 ============ */
.ajlal-popup-empty {
    min-height: 230px;
    padding: 36px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    text-align: center;
}
.ajlal-popup-empty strong { color: #0f3f38; font-size: 1rem; }
.ajlal-popup-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border-radius: 50%;
    background: #edf8f4;
    color: #087a68;
    font-size: 2rem;
}
.ajlal-popup-loading {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 700;
}
.ajlal-wishlist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}
.ajlal-wishlist-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid #e4ece9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(5, 75, 63, .06);
}
.ajlal-wishlist-thumb,
.ajlal-wishlist-thumb img {
    width: 74px;
    height: 74px;
    border-radius: 11px;
}
.ajlal-wishlist-thumb {
    display: block;
    overflow: hidden;
    background: #f4f7f6;
}
.ajlal-wishlist-thumb img { display: block; object-fit: cover; }
.ajlal-wishlist-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ajlal-wishlist-name {
    overflow: hidden;
    color: #123c35;
    font-size: .91rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ajlal-wishlist-price {
    margin-top: 4px;
    color: #087a68;
    font-size: .9rem;
    font-weight: 800;
}
.ajlal-wishlist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 7px;
}
.ajlal-wishlist-cart {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 0;
    border-radius: 9px;
    background: #087a68;
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.ajlal-wishlist-remove {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-inline-start: auto;
    padding: 0;
    border: 1px solid #f0c9c9;
    border-radius: 9px;
    background: #fff5f5;
    color: #c62828;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.wishlist-btn.active {
    background: #fff0f1 !important;
    color: #d51f35 !important;
    box-shadow: 0 4px 14px rgba(213, 31, 53, .18);
}
.ajlal-category-panel { width: min(720px, 100vw); }
#categoryBody { padding: 12px; background: #f6faf8; }
.ajlal-category-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ajlal-category-products .product-card {
    min-width: 0;
    margin: 0;
    background: #fff;
}
@media (min-width: 700px) {
    .ajlal-category-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .ajlal-wishlist-list { padding: 10px; }
    .ajlal-wishlist-item { grid-template-columns: 64px minmax(0, 1fr); }
    .ajlal-wishlist-thumb,
    .ajlal-wishlist-thumb img { width: 64px; height: 64px; }
}

/* Boutons des catégories configurables */
button.cat-item {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
button.cat-item:focus-visible {
    outline: 3px solid rgba(8, 122, 104, .28);
    outline-offset: 3px;
}
button.cat-item.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

#wishlistOverlay,
#categoryOverlay { z-index: 12000; }
#wishlistPanel,
#categoryPanel { z-index: 12001; }
body:has(#wishlistOverlay.active) .mobile-nav,
body:has(#categoryOverlay.active) .mobile-nav {
    visibility: hidden;
    pointer-events: none;
}
@media (max-width: 768px) {
    #wishlistPanel,
    #categoryPanel {
        bottom: 0;
        height: 100dvh;
        max-height: 100dvh;
    }
}

/* ============ STORIES VIDÉO AJLAL v1.6 ============ */
.ajlal-stories {
    position: relative;
    padding: 14px 0 12px;
    overflow: hidden;
    border-bottom: 1px solid #e8efed;
    background: #fff;
}
.ajlal-stories-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
.ajlal-stories-heading h2 {
    margin: 0;
    color: #123c35;
    font-size: clamp(.98rem, 3.8vw, 1.15rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.015em;
}
.ajlal-stories-heading > span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf8f4;
    color: #087a68;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}
.ajlal-stories-rail {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-inline: -4px;
    padding: 2px 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ajlal-stories-rail::-webkit-scrollbar { display: none; }
.ajlal-story-trigger {
    width: 72px;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0;
    scroll-snap-align: start;
    border: 0;
    background: transparent;
    color: #333333;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.ajlal-story-trigger:focus-visible {
    outline: 3px solid rgba(8, 122, 104, .3);
    outline-offset: 4px;
    border-radius: 12px;
}
.ajlal-story-ring {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4C29 4%, #13a88e 48%, #f5bd46 100%);
    box-shadow: 0 5px 15px rgba(8, 84, 76, .19);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ajlal-story-trigger:hover .ajlal-story-ring {
    transform: translateY(-2px) scale(1.025);
    box-shadow: 0 8px 20px rgba(8, 84, 76, .25);
}
.ajlal-story-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #dcefe9;
}
.ajlal-story-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.ajlal-story-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0b665c, #0a433e);
}
.ajlal-story-placeholder svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}
.ajlal-story-play {
    position: absolute;
    inset-inline-end: -1px;
    bottom: -1px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #FF4C29;
    color: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}
.ajlal-story-play svg {
    width: 11px;
    height: 11px;
    margin-inline-start: 1px;
    fill: currentColor;
}
.ajlal-story-label {
    width: 100%;
    overflow: hidden;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ajlal-story-open { overflow: hidden; }
.ajlal-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}
.ajlal-story-viewer.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.ajlal-story-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 18, 16, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.ajlal-story-stage {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    height: min(820px, calc(100dvh - 36px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: #07110f;
    box-shadow: 0 28px 75px rgba(0, 0, 0, .52);
    transform: translateY(14px) scale(.985);
    transition: transform .26s cubic-bezier(.2, .75, .3, 1);
}
.ajlal-story-viewer.active .ajlal-story-stage {
    transform: translateY(0) scale(1);
}
.ajlal-story-progress {
    position: absolute;
    z-index: 8;
    top: max(11px, env(safe-area-inset-top));
    inset-inline: 12px;
    display: flex;
    gap: 4px;
}
.ajlal-story-progress > span {
    height: 3px;
    flex: 1 1 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .37);
}
.ajlal-story-progress i {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, .35);
}
.ajlal-story-topbar {
    position: absolute;
    z-index: 8;
    top: max(24px, calc(env(safe-area-inset-top) + 13px));
    inset-inline: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
}
.ajlal-story-brand {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, auto);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.ajlal-story-brandmark {
    width: 34px;
    height: 34px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    background: #FF4C29;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 800;
}
.ajlal-story-brand strong {
    max-width: 210px;
    overflow: hidden;
    font-size: .82rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ajlal-story-brand small {
    color: rgba(255, 255, 255, .76);
    font-size: .65rem;
    font-weight: 700;
}
.ajlal-story-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ajlal-story-sound,
.ajlal-story-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.ajlal-story-close { font-size: 1.85rem; font-weight: 300; line-height: 1; }
.ajlal-story-sound svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ajlal-story-sound .sound-on { display: none; }
.ajlal-story-sound.is-unmuted .sound-on { display: block; }
.ajlal-story-sound.is-unmuted .sound-off { display: none; }
.ajlal-story-media {
    position: absolute;
    inset: 0;
    background: #07110f;
    overflow: hidden;
}
.ajlal-story-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .42) 0, transparent 21%, transparent 77%, rgba(0, 0, 0, .2) 100%);
}
.ajlal-story-media video,
.ajlal-story-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #07110f;
    cursor: pointer;
}
.ajlal-story-pause-state {
    position: absolute;
    z-index: 7;
    width: 72px;
    height: 72px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.ajlal-story-pause-state:not([hidden]) { display: grid; }
.ajlal-story-pause-state svg {
    width: 31px;
    height: 31px;
    margin-inline-start: 4px;
    fill: currentColor;
}
.ajlal-story-nav {
    position: absolute;
    z-index: 6;
    top: 23%;
    bottom: 16%;
    width: 25%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    cursor: pointer;
}
.ajlal-story-nav svg {
    width: 33px;
    height: 33px;
    padding: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.ajlal-story-nav:hover svg,
.ajlal-story-nav:focus-visible svg { opacity: 1; }
.ajlal-story-prev { inset-inline-start: 0; justify-content: flex-start; }
.ajlal-story-next { inset-inline-end: 0; justify-content: flex-end; }
.ajlal-story-nav[disabled] { cursor: default; opacity: .3; }
.ajlal-story-sound:focus-visible,
.ajlal-story-close:focus-visible,
.ajlal-story-nav:focus-visible,
.ajlal-story-pause-state:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .92);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .ajlal-stories { padding-block: 12px 9px; }
    .ajlal-story-viewer { padding: 0; }
    .ajlal-story-stage {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }
    .ajlal-story-nav svg { opacity: .78; }
    .ajlal-story-nav { width: 20%; }
}
@media (min-width: 769px) {
    .ajlal-stories-rail { gap: 18px; }
    .ajlal-story-trigger { width: 80px; min-width: 80px; }
    .ajlal-story-ring { width: 74px; height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
    .ajlal-story-ring,
    .ajlal-story-viewer,
    .ajlal-story-stage,
    .ajlal-story-nav svg { transition: none !important; }
}

/* Confirmation locale pour les ajouts multiples du popup catégorie */
#categoryPanel .add-cart-btn.ajlal-add-confirmed,
#categoryPanel .add-cart-btn.ajlal-add-confirmed:hover {
    background: #168a62 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 5px 14px rgba(22, 138, 98, .2);
}


/* ============ HOME STORES — SAME STYLE AS SHOP CATEGORIES ============ */
.ajlal-home-stores-section {
    position: relative;
    border-bottom: 1px solid #dddddd;
    background: rgba(255, 255, 255, .97);
}
.ajlal-home-stores-heading {
    padding: 8px 0 0;
    color: #45645f;
    font-size: .66rem;
    font-weight: 750;
    line-height: 1.1;
}
.ajlal-home-stores-heading span {
    display: inline-block;
    color: #333333;
    font-size: .66rem;
    font-weight: 800;
}
.ajlal-home-stores {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    margin-inline: -8px;
    padding: 4px 8px 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ajlal-home-stores::-webkit-scrollbar { display: none; }
.ajlal-home-stores .ajlal-home-store {
    min-width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 7px 7px;
    scroll-snap-align: start;
    border-bottom: 2px solid transparent;
    color: #45645f;
    font-size: .66rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease;
}
.ajlal-home-stores .ajlal-home-store .ajlal-shop-category-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid #dfeae7;
    border-radius: 50%;
    background: #f1f7f5;
    color: #45645f;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.ajlal-home-stores .ajlal-home-store:hover,
.ajlal-home-stores .ajlal-home-store:focus-visible {
    color: #D63A1D;
    border-bottom-color: #FF4C29;
}
.ajlal-home-stores .ajlal-home-store:hover .ajlal-shop-category-icon,
.ajlal-home-stores .ajlal-home-store:focus-visible .ajlal-shop-category-icon {
    border-color: #FF4C29;
    background: #fff0ec;
    color: #D63A1D;
    transform: translateY(-1px);
}
.ajlal-home-stores-empty {
    padding: 8px 7px 10px;
    color: #71837f;
    font-size: .66rem;
    font-weight: 650;
}
@media (min-width: 900px) {
    .ajlal-home-stores .ajlal-home-store { min-width: 83px; }
    .ajlal-home-stores .ajlal-shop-category-icon { width: 42px; height: 42px; }
}


/* ============ HOME CATEGORIES — 3 STORA (ROWS) MATCHING SHOP PAGE ============ */
.ajlal-home-cats-section {
    border-bottom: 1px solid #dddddd;
    background: rgba(255, 255, 255, .97);
    padding: 8px 0;
}
.ajlal-home-cats-grid {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 6px 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}
.ajlal-home-cats-grid::-webkit-scrollbar { display: none; }
.ajlal-home-cats-grid .ajlal-shop-category {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    scroll-snap-align: start;
    border-bottom: 2px solid transparent;
    color: #45645f;
    font-size: .66rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease;
}
.ajlal-home-cats-grid .ajlal-shop-category-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid #dfeae7;
    border-radius: 50%;
    background: #f1f7f5;
    font-size: 1rem;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.ajlal-home-cats-grid .ajlal-shop-category:hover,
.ajlal-home-cats-grid .ajlal-shop-category.active {
    color: #075d53;
    border-bottom-color: #FF4C29;
}
.ajlal-home-cats-grid .ajlal-shop-category:hover .ajlal-shop-category-icon,
.ajlal-home-cats-grid .ajlal-shop-category.active .ajlal-shop-category-icon {
    border-color: #FF4C29;
    background: #fff0ec;
    transform: translateY(-1px);
}
@media (min-width: 900px) {
    .ajlal-home-cats-grid .ajlal-shop-category { min-width: 83px; }
    .ajlal-home-cats-grid .ajlal-shop-category-icon { width: 42px; height: 42px; }
}


/* ============ 3 PARENT CATEGORY ROWS ON HOME ============ */
.ajlal-home-category-row {
    padding: 8px 0 12px;
    border-bottom: 1px solid #e8efed;
    background: #fff;
}
.ajlal-home-row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 2px 4px;
}
.ajlal-home-row-title h2 {
    margin: 0;
    color: #123c35;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.ajlal-home-row-title a {
    color: #FF4C29;
    font-size: .72rem;
    font-weight: 750;
    text-decoration: none;
}
.ajlal-home-row-title a:hover {
    text-decoration: underline;
}
.ajlal-home-category-row .cat-carousel-inner {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ajlal-home-category-row .cat-carousel-inner::-webkit-scrollbar { display: none; }
.ajlal-home-category-row .cat-item {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    scroll-snap-align: start;
    border-bottom: 2px solid transparent;
    color: #45645f;
    font-size: .66rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
}
.ajlal-home-category-row .cat-item .cat-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dfeae7;
    border-radius: 50%;
    background: #f1f7f5;
    font-size: 1.05rem;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.ajlal-home-category-row .cat-item:hover,
.ajlal-home-category-row .cat-item:focus-visible {
    color: #075d53;
    border-bottom-color: #FF4C29;
}
.ajlal-home-category-row .cat-item:hover .cat-icon,
.ajlal-home-category-row .cat-item:focus-visible .cat-icon {
    border-color: #FF4C29;
    background: #fff0ec;
    transform: translateY(-1px);
}
@media (min-width: 900px) {
    .ajlal-home-category-row .cat-item { min-width: 86px; }
    .ajlal-home-category-row .cat-item .cat-icon { width: 44px; height: 44px; }
}


/* ============ MODERN HOMEPAGE STYLING ============ */
.ajlal-modern-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 18px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5eee9;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(8, 76, 66, 0.04);
}
.perk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.perk-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}
.perk-item strong {
    display: block;
    color: #123c35;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}
.perk-item small {
    display: block;
    color: #71837f;
    font-size: 0.62rem;
    font-weight: 600;
}

/* Category Rows */
.ajlal-home-category-row {
    padding: 10px 0 14px;
    border-bottom: 1px solid #eef3f1;
    background: #ffffff;
    margin-bottom: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.ajlal-home-row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 10px;
}
.ajlal-home-row-title h2 {
    margin: 0;
    color: #123c35;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: -0.015em;
}
.ajlal-home-row-title a {
    color: #FF4C29;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}
.ajlal-row-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ajlal-row-carousel::-webkit-scrollbar { display: none; }
.ajlal-modern-cat-item {
    min-width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px;
    scroll-snap-align: start;
    text-decoration: none;
    color: #333333;
    transition: transform 0.2s ease;
}
.ajlal-modern-cat-item:hover {
    transform: translateY(-2px);
}
.ajlal-cat-circle {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f4f9f7, #e5f3ef);
    border: 1.5px solid #d4e8e2;
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(8, 76, 66, 0.08);
    transition: all 0.2s ease;
}
.ajlal-modern-cat-item:hover .ajlal-cat-circle {
    background: linear-gradient(135deg, #FF4C29, #D63A1D);
    border-color: #FF4C29;
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 76, 41, 0.25);
}
.ajlal-modern-cat-item span {
    font-size: 0.7rem;
    font-weight: 750;
    color: #203e39;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 74px;
}

/* Forced 2 columns product grid */
.ajlal-forced-2col .products,
.ajlal-forced-2col ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ajlal-forced-2col .product,
.ajlal-forced-2col ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e3eae8 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 12px rgba(8, 65, 57, 0.04) !important;
}
.ajlal-forced-2col .product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}
.ajlal-forced-2col .product .woocommerce-loop-product__title {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #203e39 !important;
    margin: 6px 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ajlal-forced-2col .product .price {
    font-size: 0.85rem !important;
    font-weight: 850 !important;
    color: #087a68 !important;
    margin: 0 8px 8px !important;
}
.ajlal-forced-2col .product .button {
    margin-top: auto !important;
    background: #FF4C29 !important;
    color: #fff !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 8px !important;
}

@media(max-width: 480px) {
    .ajlal-modern-perks { padding: 8px; gap: 4px; }
    .perk-item strong { font-size: 0.65rem; }
    .perk-item small { font-size: 0.58rem; }
}


/* ============ 3 PARENT CATEGORY ROWS ON HOME (RESTORED) ============ */
.ajlal-home-category-row {
    padding: 8px 0 12px;
    border-bottom: 1px solid #e8efed;
    background: #fff;
}
.ajlal-home-row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 2px 4px;
}
.ajlal-home-row-title h2 {
    margin: 0;
    color: #123c35;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.ajlal-home-row-title a {
    color: #FF4C29;
    font-size: .72rem;
    font-weight: 750;
    text-decoration: none;
}
.ajlal-home-row-title a:hover {
    text-decoration: underline;
}
.ajlal-home-category-row .cat-carousel-inner {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ajlal-home-category-row .cat-carousel-inner::-webkit-scrollbar { display: none; }
.ajlal-home-category-row .cat-item {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    scroll-snap-align: start;
    border-bottom: 2px solid transparent;
    color: #45645f;
    font-size: .66rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
}
.ajlal-home-category-row .cat-item .cat-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dfeae7;
    border-radius: 50%;
    background: #f1f7f5;
    font-size: 1.05rem;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.ajlal-home-category-row .cat-item:hover,
.ajlal-home-category-row .cat-item:focus-visible {
    color: #075d53;
    border-bottom-color: #FF4C29;
}
.ajlal-home-category-row .cat-item:hover .cat-icon,
.ajlal-home-category-row .cat-item:focus-visible .cat-icon {
    border-color: #FF4C29;
    background: #fff0ec;
    transform: translateY(-1px);
}
@media (min-width: 900px) {
    .ajlal-home-category-row .cat-item { min-width: 86px; }
    .ajlal-home-category-row .cat-item .cat-icon { width: 44px; height: 44px; }
}

/* ============ FORCED 2 COLUMNS PRODUCT GRID ============ */
.ajlal-forced-2col .products,
.ajlal-forced-2col ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ajlal-forced-2col .product,
.ajlal-forced-2col ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e3eae8 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 12px rgba(8, 65, 57, 0.04) !important;
}
.ajlal-forced-2col .product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}
.ajlal-forced-2col .product .woocommerce-loop-product__title {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #203e39 !important;
    margin: 6px 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ajlal-forced-2col .product .price {
    font-size: 0.85rem !important;
    font-weight: 850 !important;
    color: #087a68 !important;
    margin: 0 8px 8px !important;
}
.ajlal-forced-2col .product .button {
    margin-top: auto !important;
    background: #FF4C29 !important;
    color: #fff !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 8px !important;
}


/* ============ CATEGORY POPUP BUTTON STYLING ============ */
button.cat-item.ajlal-home-cat-item {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #45645f;
    font: inherit;
    cursor: pointer;
}
button.cat-item.ajlal-home-cat-item:focus-visible {
    outline: 3px solid rgba(8, 122, 104, .28);
    outline-offset: 3px;
}
button.cat-item.ajlal-home-cat-item.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* ============ CLEAN HORIZONTAL PERKS ROW ============ */
.perks-container {
    margin: 10px 0 14px;
}
.perks-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e3eae8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(8, 65, 57, 0.03);
}
.perks-grid > div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #203e39;
    white-space: nowrap;
}
.perks-grid .p-icon {
    font-size: 1rem;
    display: grid;
    place-items: center;
}
@media (max-width: 480px) {
    .perks-grid {
        padding: 8px 6px;
        gap: 4px;
    }
    .perks-grid > div {
        font-size: 0.58rem;
        gap: 4px;
    }
    .perks-grid .p-icon {
        font-size: 0.85rem;
    }
}


/* ============ FORCED SINGLE ROW PERKS (MOBILE FRIENDLY) ============ */
.container.perks-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 8px !important;
    box-sizing: border-box !important;
}
.perks-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 10px 6px !important;
    background: #ffffff !important;
    border: 1px solid #e3eae8 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(8, 65, 57, 0.04) !important;
    box-sizing: border-box !important;
}
.perks-grid > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.62rem !important;
    font-weight: 750 !important;
    color: #203e39 !important;
    white-space: nowrap !important;
    flex: 1 1 0 !important;
    justify-content: center !important;
    text-align: center !important;
}
.perks-grid .p-icon {
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}


/* ============ HOME CATEGORY PARENT RECOMMENDATIONS ============ */
.ajlal-recommendations {
    margin-top: 22px;
    margin-bottom: 28px;
    padding-top: 14px;
    padding-bottom: 16px;
    border-top: 1px solid #e8efed;
    border-bottom: 1px solid #e8efed;
    background: #fff;
}
.ajlal-recommendation-heading {
    align-items: flex-end;
    margin-bottom: 10px;
}
.ajlal-recommendation-heading h2 {
    margin: 0;
    color: #123c35;
    font-size: 1rem;
    font-weight: 850;
}
.ajlal-recommendation-heading > span {
    color: #7c918c;
    font-size: .68rem;
    font-weight: 600;
}
.ajlal-recommendation-tabs {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    margin: 0 -2px 14px;
    padding: 0 2px 8px;
    border-bottom: 1px solid #e8efed;
    scrollbar-width: thin;
    scrollbar-color: #a7b9b4 transparent;
    -webkit-overflow-scrolling: touch;
}
.ajlal-recommendation-tabs::-webkit-scrollbar { height: 4px; }
.ajlal-recommendation-tabs::-webkit-scrollbar-thumb {
    background: #a7b9b4;
    border-radius: 10px;
}
.ajlal-recommendation-tab {
    flex: 0 0 auto;
    position: relative;
    padding: 3px 0 8px;
    border: 0;
    background: transparent;
    color: #3d5d56;
    font: inherit;
    font-size: .76rem;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease;
}
.ajlal-recommendation-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background .18s ease;
}
.ajlal-recommendation-tab:hover,
.ajlal-recommendation-tab:focus-visible,
.ajlal-recommendation-tab.is-active {
    color: #FF4C29;
}
.ajlal-recommendation-tab.is-active {
    font-weight: 800;
}
.ajlal-recommendation-tab.is-active::after {
    background: #FF4C29;
}
.ajlal-recommendation-tab:focus-visible {
    outline: 2px solid rgba(255, 76, 41, .28);
    outline-offset: 4px;
    border-radius: 3px;
}
.ajlal-recommendation-panel[hidden] {
    display: none !important;
}
.ajlal-recommendation-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}
.ajlal-recommendation-panel-header p {
    margin: 0;
    color: #123c35;
    font-size: .78rem;
    font-weight: 800;
}
.ajlal-recommendation-panel-header a {
    color: #FF4C29;
    font-size: .7rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.ajlal-recommendation-panel-header a:hover { text-decoration: underline; }
.ajlal-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ajlal-recommendation-grid .product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e3eae8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(8, 65, 57, .05);
}
.ajlal-recommendation-grid .product-card .product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f8f7;
}
.ajlal-recommendation-grid .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ajlal-recommendation-grid .product-card .product-info {
    padding: 7px 8px 3px;
}
.ajlal-recommendation-grid .product-card .product-title {
    min-height: 2.35em;
    margin: 0 0 4px;
    font-size: .76rem;
    line-height: 1.18;
}
.ajlal-recommendation-grid .product-card .product-price {
    min-height: 1.25em;
    color: #087a68;
    font-size: .85rem;
    font-weight: 850;
}
.ajlal-recommendation-grid .product-card .add-cart-btn {
    display: block;
    margin-top: auto;
    padding: 9px 6px;
    background: #FF4C29;
    color: #fff !important;
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
.ajlal-recommendation-grid .product-card .add-cart-btn:hover {
    background: #D63A1D;
}
.ajlal-recommendation-empty {
    margin: 0;
    padding: 20px 8px;
    border: 1px dashed #d4e2de;
    border-radius: 10px;
    color: #718680;
    font-size: .78rem;
    text-align: center;
}
@media (min-width: 900px) {
    .ajlal-recommendation-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .ajlal-recommendations {
        margin-top: 16px;
        padding-top: 11px;
    }
    .ajlal-recommendation-heading h2 { font-size: .9rem; }
    .ajlal-recommendation-heading > span { font-size: .62rem; }
    .ajlal-recommendation-tabs {
        gap: 18px;
        margin-bottom: 12px;
    }
    .ajlal-recommendation-tab { font-size: .7rem; }
    .ajlal-recommendation-grid { gap: 8px; }
}


/* ============ ALL PARENT CATEGORY ROWS / BOUTIQUE TYPOGRAPHY ============ */
.home-main .ajlal-home-category-row {
    padding: 8px 0 11px;
    border-bottom: 1px solid #e8efed;
}
.home-main .ajlal-home-category-row .cat-carousel-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.home-main .ajlal-home-category-row .cat-carousel-inner::-webkit-scrollbar { display: none; }
.home-main .ajlal-home-category-row .cat-item {
    min-width: 70px;
    padding: 5px 6px;
    gap: 4px;
    color: #45645f;
    font-family: "Cairo", "Tajawal", "Noto Sans Arabic", Arial, sans-serif;
    font-size: .66rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}
.home-main .ajlal-home-category-row .cat-item > span:last-child {
    display: block;
    max-width: 72px;
    overflow: hidden;
    color: #365750;
    font-family: "Cairo", "Tajawal", "Noto Sans Arabic", Arial, sans-serif;
    font-size: .67rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-main .ajlal-home-category-row .cat-item .cat-icon {
    width: 38px;
    height: 38px;
    border: 1px solid #dfeae7;
    background: linear-gradient(135deg, #f4f9f7, #e5f3ef);
    color: #45645f;
    font-size: .92rem;
    box-shadow: 0 2px 7px rgba(8, 76, 66, .06);
}
.home-main .ajlal-home-row-title h2 {
    font-family: "Cairo", "Tajawal", "Noto Sans Arabic", Arial, sans-serif;
    font-size: .82rem;
    font-weight: 750;
}
@media (min-width: 900px) {
    .home-main .ajlal-home-category-row .cat-item { min-width: 82px; }
    .home-main .ajlal-home-category-row .cat-item .cat-icon { width: 42px; height: 42px; }
}
@media (max-width: 480px) {
    .home-main .ajlal-home-category-row .cat-item { min-width: 66px; }
    .home-main .ajlal-home-category-row .cat-item > span:last-child { font-size: .62rem; }
}

/* Best-sellers is intentionally removed from the home page. */
.home-main .best-sellers-section { display: none !important; }

/* ============ SMALL MODERN RECOMMENDATION LABELS ============ */
.home-main .ajlal-recommendation-tab,
.home-main .ajlal-recommendation-panel-header p,
.home-main .ajlal-recommendation-panel-header a {
    font-family: "Cairo", "Tajawal", "Noto Sans Arabic", Arial, sans-serif;
}
.home-main .ajlal-recommendation-tab { font-size: .68rem; font-weight: 650; }
.home-main .ajlal-recommendation-panel-header p { font-size: .72rem; }
@media (max-width: 480px) { .home-main .ajlal-recommendation-tab { font-size: .62rem; } }

/* ============ CATEGORY ROW SPACING ============ */
.home-main .ajlal-home-category-row + .ajlal-home-category-row { margin-top: 0; }
.home-main .ajlal-home-category-row:first-of-type { border-top: 1px solid #e8efed; }


/* ============ HEADER / FOOTER REBRAND: E38D4B + BLACK TEXT ============ */
.site-header {
    background: #E38D4B !important;
}
.site-header .header-icon {
    width: 35px;
    height: 35px;
    color: #000 !important;
    background: rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.site-header .header-icon:hover,
.site-header .header-icon:focus-visible {
    color: #000 !important;
    background: rgba(0,0,0,.15);
}
.site-header .header-icon-svg {
    width: 19px;
    height: 19px;
    display: block;
    stroke: #000 !important;
}
.site-header .header-search-toggle .header-icon-svg {
    width: 20px;
    height: 20px;
}
.site-header .header-cart-toggle .header-icon-svg {
    width: 21px;
    height: 21px;
}
.site-header .header-icon .count {
    background: #000;
    color: #fff;
    border: 2px solid #E38D4B;
}
.site-header .menu-toggle {
    color: #000 !important;
}

.site-footer {
    background: #E38D4B !important;
    color: #000 !important;
}
.site-footer .footer-grid h4,
.site-footer .footer-grid p,
.site-footer .footer-grid a,
.site-footer .footer-bottom {
    color: #000 !important;
}
.site-footer .footer-bottom {
    border-top-color: rgba(0,0,0,.15);
}

/* Black unified mobile footer icons and labels */
.mobile-nav {
    background: #E38D4B !important;
    border-top-color: rgba(0,0,0,.1) !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important;
}
.mobile-nav a,
.mobile-nav .nav-btn,
.mobile-nav a.active,
.mobile-nav .nav-btn.active {
    color: #000 !important;
}
.mobile-nav a svg:not(.whatsapp-icon):not(.instagram-icon),
.mobile-nav .nav-icon {
    stroke: #000 !important;
    color: #000 !important;
}
.mobile-nav .whatsapp-icon,
.mobile-nav .instagram-icon,
.mobile-nav .instagram-icon rect,
.mobile-nav .instagram-icon circle {
    fill: #000 !important;
    stroke: #000 !important;
}
.mobile-nav a.active::before,
.mobile-nav .nav-btn.active::before {
    background: #000 !important;
}

/* ============ SIMPLE SEARCH POPUP (Standard) ============ */
.search-overlay {
    z-index: 13000 !important;
    background: rgba(0,0,0,0.6) !important;
    display: none;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 0;
}
.search-overlay.active {
    display: flex !important;
}
.search-panel {
    background: #fff !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 0 20px 22px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    top: 0 !important;
}
.search-overlay.active .search-panel {
    transform: translateY(0) !important;
}
.search-header {
    background: #f8f8f8 !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #eee !important;
}
.search-header h3 {
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}
.search-header .search-close {
    color: #000 !important;
    font-size: 1.5rem !important;
}
.search-body {
    padding: 16px !important;
}
.ajlal-product-search-field {
    border: 1.5px solid #ddd !important;
    border-radius: 12px !important;
    padding: 6px 10px !important;
    background: #fff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ajlal-product-search-field svg {
    color: #888 !important;
    width: 18px;
    height: 18px;
}
.ajlal-product-search-field input {
    color: #000 !important;
    font-size: 0.9rem;
}
.ajlal-search-submit {
    background: #E38D4B !important;
    color: #000 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}
.ajlal-search-hint {
    color: #999 !important;
    font-size: 0.75rem !important;
    margin-top: 10px !important;
}

/* Results List - Simple */
.ajlal-search-results-list {
    margin-top: 15px !important;
    max-height: 60vh;
    overflow-y: auto;
}
.ajlal-search-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ajlal-search-product-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.ajlal-search-product-info {
    flex: 1;
}
.ajlal-search-product-name {
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
}
.ajlal-search-product-price {
    color: #444 !important;
    font-size: 0.8rem !important;
}
.ajlal-search-product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.ajlal-search-product-actions .add-cart-btn,
.ajlal-search-product-actions .ajlal-search-view {
    background: #E38D4B !important;
    color: #000 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
}
.ajlal-search-product-actions .wishlist-btn {
    color: #000 !important;
    font-size: 0.8rem !important;
}
.ajlal-search-all {
    background: #eee !important;
    color: #000 !important;
    border-radius: 10px !important;
    margin-top: 10px !important;
    display: block !important;
    text-align: center;
    padding: 10px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}
.ajlal-search-empty {
    color: #666 !important;
    padding: 30px 10px !important;
}
.ajlal-search-empty strong { color: #000 !important; }

/* Header no longer shows Wishlist; product-card hearts remain available. */
#wishlistToggle { display: none !important; }


/* ============ AJLAL CLEAN WHITE + ORANGE REDESIGN 1.9.0 ============ */
:root {
    --ajlal-orange: #E38D4B;
    --ajlal-orange-dark: #B96D32;
    --ajlal-peach: #FFF6EF;
    --ajlal-ink: #2B2B2B;
    --ajlal-muted: #747474;
    --ajlal-line: #EEE7E1;
    --ajlal-card-shadow: 0 8px 24px rgba(63, 39, 20, .07);
}
html, body { background: #fff; color: var(--ajlal-ink); }
body { overflow-x: hidden; }
.site-main { background: #fff; }

/* Header: white, light, and touch-friendly. */
.site-header {
    height: 60px !important;
    padding: 0 14px !important;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--ajlal-line) !important;
    box-shadow: 0 4px 18px rgba(63,39,20,.06) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.site-header .header-col { min-width: 0; }
.site-header .header-col.right { gap: 8px !important; }
.site-header .site-logo img {
    height: 36px !important;
    width: auto !important;
    max-width: 118px;
    filter: none !important;
}
.site-header .menu-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border: 1px solid #F2D7C1;
    border-radius: 12px;
    background: var(--ajlal-peach);
    color: var(--ajlal-orange-dark) !important;
    font-size: 1.2rem;
    line-height: 1;
}
.site-header .menu-toggle:hover { background: #FFEBDD; }
.site-header .header-icon {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #F2D7C1 !important;
    border-radius: 12px !important;
    background: var(--ajlal-peach) !important;
    color: var(--ajlal-orange-dark) !important;
    box-shadow: none !important;
}
.site-header .header-icon:hover,
.site-header .header-icon:focus-visible { background: #FFEBDD !important; }
.site-header .header-icon-svg { stroke: var(--ajlal-orange-dark) !important; }
.site-header .header-icon .count {
    top: -5px;
    right: -5px;
    border: 2px solid #fff !important;
    background: var(--ajlal-orange) !important;
    color: #fff !important;
}

/* Clean mobile menu and popups. */
.popup-overlay { background: rgba(48, 31, 18, .26) !important; }
.popup-panel {
    width: min(88%, 380px) !important;
    border-left: 1px solid var(--ajlal-line);
    background: #fff !important;
    box-shadow: -12px 0 34px rgba(63,39,20,.12);
}
.popup-header {
    min-height: 64px;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--ajlal-line) !important;
    background: #fff !important;
}
.popup-header h3 { color: var(--ajlal-ink) !important; font-size: .98rem; }
.popup-close { color: var(--ajlal-orange-dark) !important; }
.mobile-menu-list { padding: 8px 0; }
.mobile-menu-list li { border-bottom: 1px solid #F5EEE8; }
.mobile-menu-list li a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 10px 4px;
    color: var(--ajlal-ink) !important;
    font-size: .86rem;
    font-weight: 650;
}
.mobile-menu-list li a:hover { color: var(--ajlal-orange-dark) !important; background: var(--ajlal-peach); }

/* White footer and floating mobile navigation. */
.site-footer {
    margin-top: 18px;
    padding: 28px 14px 22px !important;
    border-top: 1px solid var(--ajlal-line);
    background: #fff !important;
    color: var(--ajlal-ink) !important;
}
.site-footer .footer-grid { gap: 18px; }
.site-footer .footer-grid h4 {
    margin-bottom: 7px;
    color: var(--ajlal-ink) !important;
    font-size: .8rem;
    font-weight: 800;
}
.site-footer .footer-grid p,
.site-footer .footer-grid a {
    color: var(--ajlal-muted) !important;
    font-size: .72rem;
}
.site-footer .footer-grid a:hover { color: var(--ajlal-orange-dark) !important; }
.site-footer .footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    border-top-color: var(--ajlal-line) !important;
    color: #9a9a9a !important;
}
.mobile-nav {
    height: 64px !important;
    padding: 7px 6px calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--ajlal-line) !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 -6px 20px rgba(63,39,20,.08) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.mobile-nav a,
.mobile-nav .nav-btn,
.mobile-nav a.active,
.mobile-nav .nav-btn.active {
    min-width: 52px;
    color: #8B7A6C !important;
    font-size: .57rem;
    font-weight: 600;
}
.mobile-nav a svg:not(.whatsapp-icon):not(.instagram-icon),
.mobile-nav .nav-icon {
    stroke: #8B7A6C !important;
    color: #8B7A6C !important;
}
.mobile-nav a.active,
.mobile-nav .nav-btn.active { color: var(--ajlal-orange-dark) !important; font-weight: 800; }
.mobile-nav a.active svg,
.mobile-nav .nav-btn.active svg { stroke: var(--ajlal-orange-dark) !important; }
.mobile-nav a.active::before,
.mobile-nav .nav-btn.active::before { width: 24px; height: 3px; border-radius: 999px; background: var(--ajlal-orange) !important; }
.mobile-nav .whatsapp-icon { fill: #25D366 !important; stroke: none !important; }

/* Homepage base and hero. */
.home-main { background: #fff; }
.home-main .hero-carousel {
    height: 218px;
    margin: 0 0 8px;
    border-radius: 0 0 24px 24px;
    background: var(--ajlal-peach);
    box-shadow: 0 8px 24px rgba(63,39,20,.08);
}
.home-main .hero-slide:nth-child(1) { background: linear-gradient(135deg, #E38D4B 0%, #F2B376 100%) !important; }
.home-main .hero-slide:nth-child(2) { background: linear-gradient(135deg, #FFF3E7 0%, #F2B376 100%) !important; }
.home-main .hero-slide:nth-child(3) { background: linear-gradient(135deg, #F9E2D0 0%, #E38D4B 100%) !important; }
.home-main .hero-slide .slide-overlay { background: linear-gradient(135deg, rgba(95,52,25,.18), rgba(255,255,255,.05)) !important; }
.home-main .hero-slide .slide-content { color: #fff; text-shadow: 0 2px 12px rgba(63,39,20,.18); }
.home-main .hero-slide:nth-child(2) .slide-content,
.home-main .hero-slide:nth-child(2) .slide-content h1,
.home-main .hero-slide:nth-child(2) .slide-content h1 span { color: #5D3924; text-shadow: none; }
.home-main .hero-slide .slide-content h1 { font-size: clamp(1.25rem, 5vw, 2.25rem); font-weight: 800; }
.home-main .hero-slide .slide-content h1 span { font-size: .76rem; font-weight: 600; }
.home-main .hero-slide .hero-btn {
    margin-top: 14px !important;
    padding: 10px 17px !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--ajlal-orange-dark) !important;
    box-shadow: 0 7px 18px rgba(63,39,20,.12) !important;
}
.home-main .hero-slide:nth-child(3) .hero-btn { background: var(--ajlal-orange) !important; color: #fff !important; }
.home-main .carousel-dots { bottom: 12px; }
.home-main .carousel-dots span.active { background: #fff; }

/* Stories rail. */
.ajlal-stories {
    padding: 14px 0 12px !important;
    border-bottom: 1px solid var(--ajlal-line);
    background: #fff !important;
}
.ajlal-stories-heading { align-items: center; margin-bottom: 10px; }
.ajlal-stories-heading h2 {
    color: var(--ajlal-ink) !important;
    font-size: .98rem !important;
    font-weight: 800;
}
.ajlal-stories-heading span { color: #A18B7A !important; font-size: .64rem; }
.ajlal-stories-rail { gap: 13px !important; padding-bottom: 3px; }
.ajlal-story-trigger { width: 70px !important; min-width: 70px !important; color: var(--ajlal-ink) !important; }
.ajlal-story-ring {
    width: 66px !important;
    height: 66px !important;
    padding: 3px !important;
    background: linear-gradient(135deg, #E38D4B, #F4C28E) !important;
    box-shadow: 0 5px 15px rgba(227,141,75,.18) !important;
}
.ajlal-story-thumb { border: 2px solid #fff; }
.ajlal-story-placeholder { background: linear-gradient(145deg, #E38D4B, #F2B376) !important; }
.ajlal-story-play { background: #fff !important; color: var(--ajlal-orange-dark) !important; }
.ajlal-story-label { color: var(--ajlal-ink) !important; font-size: .66rem !important; font-weight: 650 !important; }

/* Recommendation tabs and category rails. */
.home-main .ajlal-recommendations,
.home-main .ajlal-home-category-row,
.home-main > section.container {
    background: #fff !important;
}
.home-main .section-title { padding: 13px 0 9px; }
.home-main .section-title h2,
.home-main .ajlal-home-row-title h2,
.home-main .ajlal-recommendation-panel-header p {
    color: var(--ajlal-ink) !important;
    font-weight: 800;
}
.home-main .section-title a,
.home-main .ajlal-home-row-title a,
.home-main .ajlal-recommendation-panel-header a { color: var(--ajlal-orange-dark) !important; }
.home-main .ajlal-recommendation-heading { margin-bottom: 0; }
.home-main .ajlal-recommendation-heading span { color: #A18B7A; font-size: .64rem; }
.home-main .ajlal-recommendation-tabs {
    display: flex;
    gap: 7px;
    margin: 0 -10px 12px;
    padding: 3px 10px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.home-main .ajlal-recommendation-tabs::-webkit-scrollbar { display: none; }
.home-main .ajlal-recommendation-tab {
    flex: 0 0 auto;
    padding: 8px 13px !important;
    border: 1px solid #F0D7C2 !important;
    border-radius: 999px !important;
    background: #FFF9F5 !important;
    color: #7B6757 !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
}
.home-main .ajlal-recommendation-tab.is-active,
.home-main .ajlal-recommendation-tab:focus-visible {
    border-color: var(--ajlal-orange) !important;
    background: var(--ajlal-orange) !important;
    color: #fff !important;
}
.home-main .ajlal-recommendation-tab.is-active::after { display: none !important; }
.home-main .ajlal-recommendation-panel { padding: 0; }
.home-main .ajlal-recommendation-grid { gap: 9px !important; }
.home-main .ajlal-home-category-row {
    margin: 0 10px 10px !important;
    border: 1px solid var(--ajlal-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--ajlal-card-shadow) !important;
}
.home-main .ajlal-home-row-title { padding: 11px 12px 5px !important; }
.home-main .ajlal-home-category-row .cat-carousel-inner { padding: 5px 12px 10px !important; gap: 9px !important; }
.home-main .ajlal-home-category-row .cat-item { color: #786658 !important; }
.home-main .ajlal-home-category-row .cat-item:hover,
.home-main .ajlal-home-category-row .cat-item:focus-visible { color: var(--ajlal-orange-dark) !important; }
.home-main .ajlal-home-category-row .cat-item .cat-icon {
    border-color: #F1D5BE !important;
    background: #FFF9F5 !important;
}
.home-main .ajlal-home-category-row .cat-item:hover .cat-icon,
.home-main .ajlal-home-category-row .cat-item:focus-visible .cat-icon {
    border-color: var(--ajlal-orange) !important;
    background: #FFF0E5 !important;
}

/* Product cards: soft cards, readable prices, simple actions. */
.products-grid { gap: 10px !important; }
.product-card {
    border: 1px solid var(--ajlal-line);
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(63,39,20,.055);
}
.product-card .product-image { background: #FFF9F5 !important; }
.product-card .product-info { padding: 9px 9px 10px !important; }
.product-card .vendor-name { color: #A18B7A !important; }
.product-card .product-title { color: var(--ajlal-ink) !important; font-weight: 600; }
.product-card .price-now,
.product-card .product-price { color: var(--ajlal-orange-dark) !important; }
.product-card .add-cart-btn,
.product-card .product-card .add-cart-btn,
.ajlal-forced-2col .product .button {
    min-height: 38px;
    border-radius: 0 0 16px 16px !important;
    background: var(--ajlal-orange) !important;
    color: #fff !important;
    font-weight: 750 !important;
}
.product-card .add-cart-btn:hover,
.ajlal-forced-2col .product .button:hover { background: var(--ajlal-orange-dark) !important; }
.product-card .wishlist-btn { border: 1px solid #F1D5BE !important; color: var(--ajlal-orange-dark); }

/* Search popup: quiet white panel with orange action. */
.search-overlay { background: rgba(48,31,18,.28) !important; }
.search-panel { border-radius: 0 0 22px 22px !important; box-shadow: 0 14px 34px rgba(63,39,20,.13) !important; }
.search-header { background: #fff !important; }
.search-header h3 { color: var(--ajlal-ink) !important; }
.search-close { color: var(--ajlal-orange-dark) !important; }
.ajlal-product-search-field { border-color: #F0D7C2 !important; background: #FFFDFB !important; }
.ajlal-product-search-field input { color: var(--ajlal-ink) !important; }
.ajlal-search-submit { background: var(--ajlal-orange) !important; color: #fff !important; }
.ajlal-search-all { background: var(--ajlal-peach) !important; color: var(--ajlal-orange-dark) !important; }

/* Mobile finishing: preserve thumb reachability and avoid cramped controls. */
@media (max-width: 599px) {
    .container { padding-inline: 12px; }
    .home-main .hero-carousel { height: 208px; }
    .home-main .hero-slide .slide-content h1 { max-width: 300px; }
    .home-main .ajlal-recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
    .site-footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 700px) {
    .site-header { padding-inline: 24px !important; }
    .home-main .hero-carousel { margin-inline: 14px; border-radius: 0 0 28px 28px; }
    .home-main .ajlal-home-category-row { margin-inline: 14px !important; }
}
@media (min-width: 992px) {
    .site-header { height: 68px !important; }
    .site-main { margin-top: 68px; }
    .site-logo img { height: 41px !important; }
    .home-main .hero-carousel { height: 340px; margin-inline: auto; max-width: 1400px; border-radius: 0 0 32px 32px; }
    .home-main .ajlal-home-category-row { max-width: 1200px; margin-inline: auto !important; }
}


/* ============ FINAL CARD POLISH ============ */
.home-main .ajlal-recommendation-grid .product-card,
.home-main .ajlal-forced-2col .product,
.home-main .ajlal-forced-2col ul.products li.product {
    border: 1px solid var(--ajlal-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(63,39,20,.06) !important;
}
.home-main .ajlal-recommendation-grid .product-card .product-image { background: #FFF9F5 !important; }
.home-main .ajlal-recommendation-grid .product-card .product-title,
.home-main .ajlal-forced-2col .product .woocommerce-loop-product__title { color: var(--ajlal-ink) !important; }
.home-main .ajlal-recommendation-grid .product-card .product-price,
.home-main .ajlal-forced-2col .product .price { color: var(--ajlal-orange-dark) !important; }
.home-main .ajlal-recommendation-grid .product-card .add-cart-btn,
.home-main .ajlal-forced-2col .product .button {
    border-radius: 0 0 16px 16px !important;
    background: var(--ajlal-orange) !important;
    color: #fff !important;
}
.home-main .ajlal-recommendation-grid .product-card .add-cart-btn:hover,
.home-main .ajlal-forced-2col .product .button:hover { background: var(--ajlal-orange-dark) !important; }
:root {
    --ajlal-group-orange: #E38D4B;
    --ajlal-group-orange-dark: #BD6B2F;
    --ajlal-group-ink: #2B241F;
    --ajlal-group-muted: #88776A;
    --ajlal-group-line: rgba(67, 44, 27, .11);
    --ajlal-group-paper: #fff;
    --ajlal-group-wall: #f4eee7;
}

.ajlal-client-group-page {
    background: #f7f4f1;
}

.ajlal-client-group {
    min-height: calc(100vh - 120px);
    padding: 12px 12px 88px;
    color: var(--ajlal-group-ink);
}

.ajlal-group-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--ajlal-group-paper);
    border: 1px solid var(--ajlal-group-line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(75, 47, 26, .08);
}

.ajlal-group-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--ajlal-group-orange-dark), var(--ajlal-group-orange));
}

.ajlal-group-back {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    transition: background .2s ease;
}

.ajlal-group-back:hover,
.ajlal-group-back:focus-visible { background: rgba(255,255,255,.18); }
.ajlal-group-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ajlal-group-brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.ajlal-group-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--ajlal-group-orange-dark);
    background: #fff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.1rem;
}
.ajlal-group-brand h1 { margin: 0; color: #fff; font-size: 1rem; line-height: 1.15; }
.ajlal-group-brand p { margin: 3px 0 0; color: rgba(255,255,255,.83); font-size: .7rem; }
.ajlal-group-status { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.88); font-size: .68rem; font-weight: 700; }
.ajlal-group-status i { width: 7px; height: 7px; border-radius: 50%; background: #bdf5c2; box-shadow: 0 0 0 3px rgba(189,245,194,.18); }

.ajlal-client-group-chat { display: flex; min-height: 520px; flex-direction: column; background: var(--ajlal-group-wall); }
.ajlal-group-notice { display: flex; align-items: center; gap: 7px; margin: 12px auto 3px; padding: 7px 11px; color: #846c58; background: #fff7d8; border-radius: 999px; font-size: .68rem; line-height: 1.35; box-shadow: 0 2px 8px rgba(90, 59, 27, .04); }
.ajlal-group-notice svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ajlal-group-messages { display: flex; min-height: 380px; max-height: min(62vh, 650px); flex: 1; flex-direction: column; gap: 8px; overflow-y: auto; padding: 12px clamp(10px, 3vw, 26px) 16px; overscroll-behavior: contain; }
.ajlal-group-loading,
.ajlal-group-empty { margin: auto; padding: 16px; color: var(--ajlal-group-muted); text-align: center; font-size: .82rem; }
.ajlal-group-empty strong { display: block; margin-bottom: 4px; color: var(--ajlal-group-ink); font-size: .92rem; }

.ajlal-group-date { align-self: center; margin: 5px 0; padding: 4px 9px; color: #92765b; background: rgba(255,255,255,.7); border-radius: 999px; font-size: .64rem; font-weight: 800; }
.ajlal-group-message { display: flex; align-items: flex-end; gap: 7px; max-width: min(86%, 530px); }
.ajlal-group-message.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.ajlal-group-message-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; color: #fff; background: #c6a27f; border-radius: 50%; font-size: .65rem; font-weight: 900; }
.ajlal-group-message.is-mine .ajlal-group-message-avatar { background: var(--ajlal-group-orange); }
.ajlal-group-bubble { min-width: 86px; padding: 8px 10px 7px; color: var(--ajlal-group-ink); background: #fff; border-radius: 13px 13px 13px 4px; box-shadow: 0 2px 7px rgba(65, 44, 29, .06); }
.ajlal-group-message.is-mine .ajlal-group-bubble { background: #fff0df; border-radius: 13px 13px 4px 13px; }
.ajlal-group-author { display: block; margin-bottom: 3px; color: var(--ajlal-group-orange-dark); font-size: .66rem; font-weight: 900; }
.ajlal-group-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.42; }
.ajlal-group-time { display: block; margin-top: 4px; color: #aa9787; text-align: right; font-size: .58rem; }
.ajlal-group-photo { display: block; width: min(100%, 270px); max-height: 320px; object-fit: cover; margin: 5px 0; border-radius: 10px; }
.ajlal-group-voice-player { width: min(100%, 250px); height: 34px; margin: 3px 0 1px; }

.ajlal-group-status-line { min-height: 18px; padding: 0 15px; color: #a24e28; text-align: center; font-size: .68rem; }
.ajlal-group-status-line.is-success { color: #397450; }
.ajlal-group-composer { position: relative; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ajlal-group-line); }
.ajlal-group-compose-row { display: flex; align-items: flex-end; gap: 7px; }
.ajlal-group-compose-row textarea { min-height: 40px; max-height: 100px; flex: 1; resize: none; padding: 10px 12px; color: var(--ajlal-group-ink); background: #f8f4f0; border: 1px solid transparent; border-radius: 19px; outline: none; font: inherit; font-size: .82rem; line-height: 1.25; }
.ajlal-group-compose-row textarea:focus { border-color: rgba(227,141,75,.55); background: #fff; box-shadow: 0 0 0 3px rgba(227,141,75,.12); }
.ajlal-group-icon-button,
.ajlal-group-send { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: var(--ajlal-group-orange-dark); border: 0; border-radius: 50%; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.ajlal-group-icon-button { background: #fff2e6; }
.ajlal-group-icon-button:hover,
.ajlal-group-icon-button:focus-visible { background: #ffe3cd; }
.ajlal-group-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ajlal-group-send { color: #fff; background: var(--ajlal-group-orange); }
.ajlal-group-send:hover,
.ajlal-group-send:focus-visible { background: var(--ajlal-group-orange-dark); transform: translateY(-1px); }
.ajlal-group-voice.is-recording { color: #fff; background: #c94843; animation: ajlalGroupPulse 1.2s infinite; }
.ajlal-group-attachment-preview { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; padding: 5px 8px; color: #765b43; background: #fff8f1; border: 1px solid #f1d6bf; border-radius: 10px; font-size: .7rem; }
.ajlal-group-attachment-preview img { width: 40px; height: 40px; object-fit: cover; border-radius: 7px; }
.ajlal-group-attachment-preview button { margin-left: auto; padding: 3px 7px; color: #9b5e34; background: transparent; border: 0; cursor: pointer; }
.ajlal-group-recording { align-items: center; gap: 7px; margin: 6px 47px 0; color: #bd413d; font-size: .67rem; }
.ajlal-group-recording:not([hidden]) { display: flex; }
.ajlal-recording-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ajlalGroupPulse 1s infinite; }

.ajlal-group-gate { display: grid; min-height: 500px; place-items: center; align-content: center; padding: 34px 20px; text-align: center; }
.ajlal-group-gate-icon { display: grid; width: 66px; height: 66px; place-items: center; margin-bottom: 16px; color: var(--ajlal-group-orange-dark); background: #fff1e4; border-radius: 22px; }
.ajlal-group-gate-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ajlal-group-gate h2 { margin: 0 0 8px; color: var(--ajlal-group-ink); font-size: 1.3rem; }
.ajlal-group-gate p { max-width: 410px; margin: 0 auto 20px; color: var(--ajlal-group-muted); font-size: .84rem; line-height: 1.55; }
.ajlal-group-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.ajlal-group-primary,
.ajlal-group-secondary { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; font-size: .78rem; font-weight: 800; text-decoration: none; }
.ajlal-group-primary { color: #fff; background: var(--ajlal-group-orange); box-shadow: 0 7px 16px rgba(189,107,47,.2); }
.ajlal-group-secondary { color: var(--ajlal-group-orange-dark); background: #fff4e9; }
.ajlal-group-primary:hover, .ajlal-group-primary:focus-visible { color: #fff; background: var(--ajlal-group-orange-dark); }
.ajlal-group-secondary:hover, .ajlal-group-secondary:focus-visible { color: var(--ajlal-group-orange-dark); background: #ffe7d0; }

@keyframes ajlalGroupPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,72,67,.25); } 50% { box-shadow: 0 0 0 6px rgba(201,72,67,0); } }

@media (min-width: 700px) {
    .ajlal-client-group { padding: 28px 20px 64px; }
    .ajlal-group-shell { border-radius: 26px; }
    .ajlal-group-topbar { padding: 13px 20px; }
    .ajlal-client-group-chat { min-height: 620px; }
    .ajlal-group-messages { min-height: 470px; }
    .ajlal-group-composer { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 380px) {
    .ajlal-group-status { display: none; }
    .ajlal-group-message { max-width: 91%; }
    .ajlal-group-icon-button, .ajlal-group-send { width: 36px; height: 36px; flex-basis: 36px; }
    .ajlal-group-compose-row textarea { min-height: 36px; }
}


/* ============ CLIENT GROUP FIXED HEADER / FOOTER OFFSETS ============ */
body.ajlal-client-group-page {
    overflow-x: hidden;
}

body.ajlal-client-group-page .ajlal-client-group {
    min-height: calc(100dvh - var(--header-h, 60px));
    padding-top: calc(var(--header-h, 60px) + 12px);
}

body.ajlal-client-group-page .mobile-nav {
    z-index: 2100;
}

@media (max-width: 699px) {
    body.ajlal-client-group-page .ajlal-client-group {
        min-height: calc(100dvh - var(--header-h, 60px) - var(--nav-h, 64px));
        padding: calc(var(--header-h, 60px) + 10px) 8px calc(var(--nav-h, 64px) + 24px + env(safe-area-inset-bottom));
    }

    body.ajlal-client-group-page .ajlal-group-shell {
        min-height: calc(100dvh - var(--header-h, 60px) - var(--nav-h, 64px) - 34px);
        border-radius: 18px;
    }

    body.ajlal-client-group-page .ajlal-group-gate {
        min-height: calc(100dvh - var(--header-h, 60px) - var(--nav-h, 64px) - 34px);
        padding: 32px 18px;
    }

    body.ajlal-client-group-page .ajlal-client-group-chat {
        min-height: calc(100dvh - var(--header-h, 60px) - var(--nav-h, 64px) - 34px);
    }

    body.ajlal-client-group-page .ajlal-group-messages {
        min-height: 0;
        max-height: none;
    }
}

@media (min-width: 700px) {
    body.ajlal-client-group-page .ajlal-client-group {
        padding-top: calc(var(--header-h, 68px) + 28px);
        padding-bottom: 64px;
    }
}


/* ============ AJLAL CLIENT GROUP MOBILE COMPOSER RESPONSIVE FIX ============ */
@media (max-width: 699px) {
    body.ajlal-client-group-page {
        height: 100dvh;
        overflow: hidden;
    }

    body.ajlal-client-group-page .ajlal-client-group {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        height: 100dvh;
        min-height: 100dvh;
        padding: calc(var(--header-h, 60px) + 10px) 8px calc(var(--nav-h, 64px) + 12px + env(safe-area-inset-bottom));
    }

    body.ajlal-client-group-page .ajlal-group-shell,
    body.ajlal-client-group-page .ajlal-client-group-chat {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    body.ajlal-client-group-page .ajlal-group-messages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }

    body.ajlal-client-group-page .ajlal-group-composer {
        flex: 0 0 auto;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}


/* ============ AJLAL CLIENT GROUP COMPACT MOBILE PANEL FIX ============ */
@media (max-width: 699px) {
    body.ajlal-client-group-page .ajlal-client-group {
        padding-bottom: calc(var(--nav-h, 64px) + 92px + env(safe-area-inset-bottom));
    }

    body.ajlal-client-group-page .ajlal-group-shell {
        max-height: calc(100dvh - var(--header-h, 60px) - var(--nav-h, 64px) - 94px);
    }

    body.ajlal-client-group-page .ajlal-client-group-chat {
        min-height: 0;
    }

    body.ajlal-client-group-page .ajlal-group-messages {
        padding-bottom: 96px;
    }

    body.ajlal-client-group-page .ajlal-group-composer {
        position: fixed;
        z-index: 2050;
        right: 8px;
        bottom: calc(var(--nav-h, 64px) + 4px + env(safe-area-inset-bottom));
        left: 8px;
        box-sizing: border-box;
        padding: 7px 8px;
        border: 1px solid #f1e3d7;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(70, 44, 23, .14);
    }

    body.ajlal-client-group-page .ajlal-group-compose-row {
        gap: 5px;
    }

    body.ajlal-client-group-page .ajlal-group-icon-button,
    body.ajlal-client-group-page .ajlal-group-send {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    body.ajlal-client-group-page .ajlal-group-compose-row textarea {
        min-height: 36px;
        padding: 8px 10px;
    }
}


/* ============ AJLAL CLIENT GROUP MOBILE FOOTER REMOVAL ============ */
@media (max-width: 699px) {
    body.ajlal-client-group-page .site-footer {
        display: none !important;
    }
}


/* Heri text-only wordmark and configurable WhatsApp header action */
.site-logo-text{display:inline-flex;align-items:center;justify-content:center;color:#202020;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.35rem,4vw,1.85rem);font-weight:700;letter-spacing:.04em;line-height:1;text-decoration:none;white-space:nowrap}
.header-whatsapp-link{color:#25D366}
.header-whatsapp-link:hover,.header-whatsapp-link:focus-visible{color:#1da851}

/* Heri configurable WhatsApp footer action */
.heri-whatsapp-footer{display:inline-flex;align-items:center;gap:8px;margin:8px auto 18px;padding:10px 16px;border-radius:999px;background:#25D366;color:#fff;text-decoration:none;font-size:13px;font-weight:700;box-shadow:0 6px 18px rgba(37,211,102,.2)}
.heri-whatsapp-footer:hover,.heri-whatsapp-footer:focus-visible{background:#1da851;color:#fff}
