/* Your custom css */

/* Product Description, Policy & Rich Content List/Table Styles */
.description-item ul,
.product-description ul,
.policy-content ul,
.faq-content ul {
    list-style: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.description-item ul li,
.product-description ul li,
.policy-content ul li,
.faq-content ul li {
    list-style: disc !important;
    margin-bottom: 0.35rem;
}

.description-item ol,
.product-description ol,
.policy-content ol,
.faq-content ol {
    list-style: decimal !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.description-item ol li,
.product-description ol li,
.policy-content ol li,
.faq-content ol li {
    list-style: decimal !important;
    margin-bottom: 0.35rem;
}

.description-item table,
.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.description-item table th,
.description-item table td,
.product-description table th,
.product-description table td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
}

.description-item table th,
.product-description table th {
    background-color: #f9fafb;
    font-weight: 600;
}


/* Afsana Fashion Studio Visual Blocks (Shared Admin Preview & Frontend) */
.description-item .af-spec-grid,
.product-description .af-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

@media (max-width: 575px) {
    .description-item .af-spec-grid,
    .product-description .af-spec-grid {
        grid-template-columns: 1fr;
    }
}

.description-item .af-spec-card,
.product-description .af-spec-card {
    background: #fdf8fa;
    border: 1px solid #f3dce2;
    border-left: 4px solid #D98FA3;
    border-radius: 6px;
    padding: 10px 14px;
}

.description-item .af-spec-label,
.product-description .af-spec-label {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.description-item .af-spec-value,
.product-description .af-spec-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2px;
}

.description-item .af-callout-box,
.product-description .af-callout-box {
    background-color: #fff5f7;
    border: 1px solid #f5c2cf;
    border-left: 5px solid #D98FA3;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.description-item .af-callout-box h4,
.product-description .af-callout-box h4 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #9d174d;
    font-size: 1.05rem;
}

.description-item .af-callout-box p,
.product-description .af-callout-box p {
    margin-bottom: 0;
}

.description-item .af-feature-box,
.product-description .af-feature-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 14px 0;
}

.description-item .af-delivery-box,
.product-description .af-delivery-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 14px 0;
}

.description-item table th,
.product-description table th {
    background-color: #fdf2f5 !important;
    color: #831843 !important;
    font-weight: 600;
}

.description-item table tr:nth-child(even) td,
.product-description table tr:nth-child(even) td {
    background-color: #fafafa;
}


/* ====== Release V.1.1.0: 1-Click Buy Now, WhatsApp Order, Floating Chat & Stock Urgency Styles ====== */
.af-buy-now-btn {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    border-color: #be123c !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
    transition: all 0.25s ease;
}

.af-buy-now-btn:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.35);
    color: #ffffff !important;
}

.af-whatsapp-order-btn {
    background-color: #16a34a !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.af-whatsapp-order-btn:hover {
    background-color: #15803d !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.af-card-action-group {
    margin-top: auto;
}

.af-card-buy-btn {
    background-color: #e11d48;
    color: #ffffff;
    border: 1px solid #e11d48;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.af-card-buy-btn:hover {
    background-color: #be123c;
    border-color: #be123c;
    color: #ffffff;
}

/* Stock Urgency Box */
.af-urgency-stock-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.af-urgency-text {
    font-size: 0.85rem;
    color: #9f1239;
    font-weight: 500;
}

.af-urgency-progress {
    height: 7px;
    border-radius: 10px;
    background-color: #ffe4e6;
}

/* Quick Order Modal */
.af-quick-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.af-qo-product-box {
    background-color: #fdf8fa;
    border: 1px solid #f3dce2;
}

.af-qo-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.af-qo-qty-box {
    border: 1px solid #d1d5db;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.af-qo-qty-btn {
    border: none;
    background: #f3f4f6;
    width: 28px;
    height: 28px;
    font-weight: 700;
    color: #111827;
}

.af-qo-qty-input {
    width: 36px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.af-qo-shipping-option,
.af-qo-pay-pill {
    transition: all 0.2s ease;
    background: #ffffff;
}

.af-qo-shipping-option.active,
.af-qo-pay-pill.active {
    border-color: hsl(var(--base)) !important;
    background-color: #fdf2f5;
}

/* Floating WhatsApp Button */
.af-floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.af-floating-whatsapp:hover {
    transform: scale(1.08);
    background-color: #1ebe57;
    color: #ffffff !important;
}

.af-floating-whatsapp .af-wa-tooltip {
    position: absolute;
    right: 64px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.af-floating-whatsapp:hover .af-wa-tooltip {
    opacity: 1;
}

@media (max-width: 991px) {
    .af-floating-whatsapp {
        bottom: 75px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 26px;
    }
}


/* Product Card Dual Add to Cart & Buy Now Buttons */
.af-card-action-group {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.af-card-action-group .add-to-cart-btn {
    margin-top: 0 !important;
    padding: 8px 6px !important;
    font-size: 0.8rem !important;
    flex: 1 1 50%;
    white-space: nowrap;
}

.af-card-action-group .af-buy-now-card-btn {
    background: hsl(var(--base)) !important;
    color: #ffffff !important;
}

.af-card-action-group .af-buy-now-card-btn:hover {
    background: hsl(var(--black) / 0.85) !important;
    color: #ffffff !important;
}


/* ====== Phase 8: Top Announcement Bar, Mobile App Bottom Bar, Modern Product Card, Tabs & Skeleton ====== */
.af-announcement-bar {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    z-index: 1030;
    position: relative;
}

.af-announcement-link {
    text-decoration: none;
    font-weight: 600;
}

.af-announcement-link:hover {
    text-decoration: underline;
}

.af-announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1rem;
    opacity: 0.8;
    cursor: pointer;
    padding: 2px 6px;
}

.af-announcement-close:hover {
    opacity: 1;
}

/* Mobile Sticky App-Style Bottom Bar */
@media (max-width: 991px) {
    body {
        padding-bottom: 68px;
    }
    .af-app-bottom-bar {
        background: #ffffff !important;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        height: 62px !important;
        padding: 4px 0 !important;
    }
    .af-app-bottom-bar li a.ecommerce {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        padding: 4px 2px;
    }
    .af-app-bottom-bar .ecommerce__icon {
        font-size: 1.35rem;
        line-height: 1.1;
        color: #374151 !important;
    }
    .af-app-bottom-bar .ecommerce__text {
        font-size: 0.7rem !important;
        font-weight: 500;
        color: #4b5563 !important;
        margin-top: 2px;
    }
    .af-app-bottom-bar li.active-nav-item .ecommerce__icon,
    .af-app-bottom-bar li.active-nav-item .ecommerce__text {
        color: hsl(var(--base)) !important;
        font-weight: 600;
    }
}

/* Modern Product Card: Discount % Badge & Secondary Image Hover Swap */
.af-modern-card .product-thumb {
    position: relative;
    overflow: hidden;
}

.af-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
}

.af-modern-card .product-thumb.has-hover-img .af-hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.45s ease;
    pointer-events: none;
}

.af-modern-card:hover .product-thumb.has-hover-img .af-hover-img {
    opacity: 1;
    transform: scale(1.04);
}

/* Collection Category Filter Tabs */
.af-collection-tabs .af-col-tab-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.af-collection-tabs .af-col-tab-btn:hover,
.af-collection-tabs .af-col-tab-btn.active {
    background: hsl(var(--base));
    border-color: hsl(var(--base));
    color: #ffffff;
}

/* Shimmer Skeleton Loader for AJAX Product Filtering */
@keyframes afShimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.af-skeleton-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 12px;
}

.af-skeleton-thumb,
.af-skeleton-line,
.af-skeleton-btn {
    background: #f3f4f6;
    background-image: linear-gradient(90deg, #f3f4f6 0px, #e5e7eb 40px, #f3f4f6 80px);
    background-size: 600px;
    animation: afShimmer 1.3s infinite linear;
    border-radius: 6px;
}

.af-skeleton-thumb {
    width: 100%;
    height: 210px;
}

.af-skeleton-line {
    height: 14px;
}

.af-skeleton-btn {
    height: 32px;
}


/* ====== Phase 9: AJAX Live Search Dropdown, Menu Badges & Mobile Footer Accordion ====== */
.af-live-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    z-index: 1050;
    max-height: 420px;
    overflow-y: auto;
}

.af-live-search-item {
    transition: background-color 0.18s ease;
}

.af-live-search-item:hover {
    background-color: #fdf2f5;
}

.af-ls-thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.af-ls-title {
    font-size: 0.86rem;
    line-height: 1.3;
}

.af-ls-cat {
    font-size: 0.7rem;
    background: #f3f4f6;
    color: #4b5563;
    padding: 1px 7px;
    border-radius: 999px;
}

.af-ls-price {
    font-size: 0.85rem;
}

.af-menu-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
    vertical-align: middle;
}

/* Mobile Footer Accordion (< 768px) */
@media (max-width: 767px) {
    .af-footer-collapsible .af-footer-accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 10px 0;
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .af-footer-collapsible .af-footer-accordion-body {
        display: none;
        padding-top: 10px;
        padding-bottom: 8px;
    }
    .af-footer-collapsible.open .af-acc-icon {
        transform: rotate(180deg);
    }
    .af-acc-icon {
        transition: transform 0.25s ease;
    }
}


/* ====== Phase 11: Slide-Out Cart Free Shipping Progress Bar & Visual Order Tracking ====== */
.af-free-shipping-bar {
    background: #fdf8fa;
    border-color: #f3dce2 !important;
}

.af-fs-progress {
    height: 8px;
    border-radius: 999px;
    background-color: #f3e8ee;
    overflow: hidden;
}

.af-track-line-progress {
    height: 10px;
    border-radius: 999px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.af-track-summary-card {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

