@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --adst-primary: #000000;
    --adst-secondary: #4cbfa2;
    --adst-accent: #37b67a;
    --adst-border: #c2c2c2;
    --adst-bg: #ffffff;
    --adst-bg-alt: #f6f7f8;
    --adst-light-green: #c4ffe7;
    --adst-glass-bg: rgba(255, 255, 255, 0.7);
    --adst-glass-border: rgba(255, 255, 255, 0.5);
    --adst-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, button, input, textarea, select {
    font-family: 'Cairo', sans-serif !important;
}

a br, button br {
    display: none !important; 
}

body {
    background: radial-gradient(circle at 10% 20%, rgb(236, 245, 255) 0%, rgb(233, 255, 240) 90%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Preloader Styles */
#adst-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#adst-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#adst-preloader img {
    max-width: 200px;
    width: 100%;
    animation: logoPulse 2s infinite ease-in-out;
    margin: 0 auto;
    display: block;
}

#ast-scroll-top {
    background-color: var(--adst-accent) !important;
}

/* General Pages */
#page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    width: 100%;
    flex: 1;
}

.site-content {
    flex: 1 0 auto !important;
    /* Grow to fill available space */
    width: 100%;
}

.site-footer {
    flex-shrink: 0 !important;
    /* Prevent footer from shrinking */
    margin-top: auto !important;
    /* Push to bottom if flex fails */
}

.ast-container {
    max-width: 1200px !important;
    margin: auto !important;
}

.adst-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-content,
.ast-container,
.site-primary,
.ast-row {
    background-color: transparent !important;
}


/* --------------------------- */
/* --- Pagination Styling --- */
/* --------------------------- */
.ast-pagination,
.woocommerce-pagination {
    padding-block: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
    clear: both;
    margin-block: 30px;
}

/* Reset List Styles */
.ast-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    align-items: center;
    gap: 10px;
    list-style: none !important;
    background-color: transparent !important;
}

.ast-pagination ul.page-numbers li,
.woocommerce-pagination ul.page-numbers li {
    float: none !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Page Numbers (Links & Current) */
.ast-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    padding: 0 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--adst-primary);
    transition: 0.3s;
}

/* Hover State */
.ast-pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:hover {
    background: var(--adst-accent) !important;
    box-shadow: 0 4px 12px rgba(48, 183, 135, 0.3) !important;
}

/* Active State */
.ast-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
    background: var(--adst-accent) !important;
    color: #fff !important;
    border-color: var(--adst-accent) !important;
    box-shadow: 0 4px 12px rgba(48, 183, 135, 0.3) !important;
    cursor: default;
}

/* ================================== */
/* ==========<Responsiveness>======== */
/* ================================== */

/* Mobile Screen */
@media (max-width: 576px) {
    #adst-preloader img {
        max-width: 130px;
    }

    /* Panner of Page */
    .site .ast-archive-entry-banner[data-post-type="product"][data-banner-background-type="custom"] {
        border-bottom-left-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
        min-height: 120px !important;
    }

    .site .ast-archive-entry-banner[data-post-type="product"][data-banner-background-type="custom"] .ast-container h1 {
        font-size: 22px !important;
    }

    .ast-left-sidebar #content>.ast-container {
        flex-direction: column !important;
    }

    #secondary.widget-area.secondary {
        margin-bottom: 10px !important;
    }

    .site-footer {
        order: 999;
    }

    .ast-pagination,
    .woocommerce-pagination {
        padding-block: 30px !important;
        margin-block: 0 !important;
    }
}

/* Small Screens  */
@media (min-width: 577px) and (max-width: 768px) {
    #adst-preloader img {
        max-width: 150px;
    }

    .site .ast-archive-entry-banner[data-post-type="product"][data-banner-background-type="custom"] {
        border-bottom-left-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
    }

    .ast-left-sidebar #content>.ast-container {
        flex-direction: column !important;
    }

    /* Ensure Footer is Last */
    .site-footer {
        order: 999;
    }
}

/* Tablet Screen */
@media (min-width: 768px) and (max-width: 920px) {
    #adst-preloader img {
        max-width: 180px;
    }
}

/* Large Screens */
@media (min-width: 920px) and (max-width: 1280px) {

    .archive .ast-container,
    .blog .ast-container {
        max-width: 95%;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Primary Content (70%) */
    .ast-left-sidebar #primary,
    .ast-right-sidebar #primary {
        width: 70% !important;
    }

    /* Sidebar (30%) */
    .ast-left-sidebar #secondary,
    .ast-right-sidebar #secondary {
        width: 28% !important;
    }
}

@media (min-width: 1280px) {

    .archive .ast-container,
    .blog .ast-container {
        max-width: 95%;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Primary Content (70%) */
    .ast-left-sidebar #primary,
    .ast-right-sidebar #primary {
        width: 70% !important;
    }

    /* Sidebar (30%) */
    .ast-left-sidebar #secondary,
    .ast-right-sidebar #secondary {
        width: 28% !important;
    }
}

/* ================================== */
/* ==========<Keyframes>======== */
/* ================================== */

/* Pulse Animation for Preload Page */
@keyframes logoPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}