:root {
    --primary: #868686;
    --accent: #ff0000;
    --light: #F5F5F5;
    --dark: #333333;
    --border: #D9D9D9;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    text-decoration: none;

}

@font-face {
    font-family: 'Ambile';
    src: url('/fonts/ambile.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    background-color: var(--white);
    color: var(--dark);
}

.sf {
    font-family: "Montserrat", sans-serif;
}

.si {
    font-family: "Montserrat", sans-serif;
}

.sn {
    font-family: "Montserrat", sans-serif;
}

.sindhi-f {
    font-family: 'ambile', sans-serif;
}

.main-content {
    width: 100%;
}

.content {
    min-height: 50vh;
    height: max-content;
    padding: 20px 10px;
    width: 100%;
}

.btn-y {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-y:hover {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: none;
}






/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.y-btn {
    background-color: var(--accent);
    color: var(--dark);
    border: 1px solid var(--primary);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;

}

.y-btn:hover {
    background-color: white;
    color: var(--primary);
    border-color: var(--primary);
    transform: none;
}

.t-btn {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.t-btn:hover {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: none;
}

.flex-btns {
    display: flex;
    justify-content: space-around;
    padding: 10px 0px;


}

@media (max-width:650px) {



    .login-btn {
        display: none;
    }



    .y-btn {
        display: block;
        width: 45%;
    }

    .t-btn {
        display: block;
        width: 45%;

    }

    .flex-btns {
        display: flex;
    }

}











.site-footer {
    background-color: white;
    color: var(--dark);
    padding: 40px 20px 0;
    font-size: 14px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 10000px;
    margin: 0 auto;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-box {
    flex: 1 1 220px;
}

.footer-box h4 {
    color: var(--dark);
    margin-bottom: 16px;
    font-size: 16px;
    border-left: 4px solid var(--dark);
    padding-left: 10px;
}

.footer-box p {
    line-height: 1.6;
    color: var(--dark);
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.footer-box ul li i {
    margin-right: 8px;
    color: var(--dark);
}

.footer-box a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-box a:hover {
    color: var(--accent);
}

.payment-icons img {
    height: 35px;
    margin-right: 10px;
    margin-top: 7px;
    background-color: #c5c4c4b3;
    padding: 8px;
    border-radius: 11px;
}

.footer-bottom {

    color: var(--dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    text-align: center;
}

.footer-bottom a {
    color: var(--dark);
    text-decoration: none;
    margin: 0 6px;
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }

    .footer-box {
        flex: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

.loading-dots {
    display: inline-block;
    font-size: 0;
    position: relative;
    width: 30px;
    height: 10px;
}

.loading-dots::before,
.loading-dots::after,
.loading-dots span {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--dark);
    border-radius: 50%;
    position: absolute;
    animation: blink 1.4s infinite ease-in-out both;
}

.loading-dots::before {
    left: 0;
    animation-delay: -0.32s;
}

.loading-dots span {
    left: 10px;
    animation-delay: -0.16s;
}

.loading-dots::after {
    left: 20px;
}

@keyframes blink {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 33px;
    background: #E4002B;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 10px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
}

.book-image-link {
    display: block;
    margin: 0px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 11px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.book-title-en {
    font-weight: 600;
    font-size: 16px;
    color: #1B1464;
    margin-top: 12px;
    text-decoration: none;
    display: block;
}

.book-title-sd {
    font-size: 15px;
    margin: 4px 0;
    color: #1B1464;

    display: block;
}

.sindhi-f {
    text-decoration: none;
}

.book-author {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.book-price {
    font-size: 15px;
    margin-bottom: 12px;
}

.price-label {
    font-weight: 600;
    color: #1B1464;
    margin-right: 5px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.price-new {
    font-weight: bold;
    color: #302e73;
}

.book-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-btn {
    background-color: #E4002B;
    color: white;
    padding: 2px 23px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cart-btn i {
    margin-right: 5px;
}

.view-btn {
    background-color: #F2F2F2;
    color: #1B1464;
    border: none;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.shop-wrapper {
    padding: 30px;
    background: #f8f8f8;
    width: 100%;
}

.shop-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
}
.date{
    color: var(--accent);
    font-weight: bold;
    font-size: 12px;
}

.book-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 13px auto;
    max-width: 236px;
    width:236px;
    
}
.book-card {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.book-card :hover {
  transform: scale(1.05);
}




/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .book-card {
        flex: 1 1 calc(33.33% - 24px);
        /* 3 columns */
    }
}

/* Small screens (phones) */
@media (max-width: 768px) {
    .book-card {
        flex: 1 1 calc(50% - 24px);
        /* 2 columns */
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .book-card {
        flex: 1 1 100%;
        /* 1 column */
    }
}

.inside-b {
    position: absolute;
    top: -25px;
    color: lightblue;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    left: -5px;

}

.inside-b .img {
    width: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

}

.inside-b .img img {
    width: 20px;
    position: absolute;
    top: -5px;
    margin-left: 5px;

}

.pagination-wrapper,
nav[role="navigation"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin: auto;
    align-items: center;
    display: flex;
}

nav[role="navigation"] .text-sm {
    font-size: 0.95rem;
    color: var(--admin-muted);
}

nav[role="navigation"] .relative.inline-flex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin: 0 4px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    background-color: var(--admin-light);
    color: var(--admin-text);
    transition: 0.2s ease;
    cursor: pointer;
}

nav[role="navigation"] .relative.inline-flex:hover {
    background-color: var(--admin-hover);
    color: var(--admin-primary);
}

nav[role="navigation"] .relative.inline-flex[aria-current="page"],
nav[role="navigation"] .relative.inline-flex.cursor-default {
    background-color: var(--admin-primary);
    color: #000000;
    font-weight: bold;
    border-color: var(--admin-primary);
    cursor: default;
}

nav[role="navigation"] svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

nav[role="navigation"] .rounded-l-md,
nav[role="navigation"] .rounded-r-md {
    border-radius: 6px;
}

nav[role="navigation"] .cursor-default {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    nav[role="navigation"] {
        flex-direction: column;
        align-items: flex-start;
    }

    nav[role="navigation"] .sm\\:flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cart-link,.custom-select{
        padding: 10px 10px;
    font-size: 11px;
    }
 
    .dropdown-menu {
        width: 100px !important;
        max-width: 100px !important;
        min-width: 100px !important;
    }

    .dropdown-menu a{
        padding:8px !important;
        font-size:13px;
    }
}


.meta-list {
    display: flex
 !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    justify-content: start !important;
    flex-direction: column !important;
}