footer {
    background: #2a002a;
    color: white;
    padding: 80px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--orangered);
    margin-bottom: 25px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--orangered);
    padding-left: 15px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--white); }

.footer-contact li {
    display: flex;
    gap: 12px;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-contact i { color: var(--orangered); margin-top: 4px; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}
.social-links a:hover { background: var(--orangered); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

:root {
    --magenta: #8B008B;
    --dark-magenta: #4B004B;
    --orangered: #FF4500;
    --white: #FFFFFF;
    --light-bg: #f9f9f9;
    --gray-text: #666;
    --border-color: #eee;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    display: none;
}

@media (min-width: 768px) {
    .top-bar { display: block; }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item i {
    color: var(--magenta);
    margin-right: 8px;
}

.search-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    padding: 5px 10px;
    border: none;
    outline: none;
    width: 200px;
}

.search-btn {
    background: var(--magenta);
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover { background: var(--dark-magenta); }

.cart-trigger {
    background: var(--magenta);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.cart-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 139, 0.3);
}

.cart-count {
    background: var(--orangered);
    color: white;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header {
    background: var(--magenta);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
@media (max-width: 768px) {
   .header-content{
    padding: 12px 20px;
   }
    
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    background: white;
    padding: 4px;
    border-radius: 4px;
    margin-right: 12px;
}

.brand-text {
    color: white;
}

.brand-text h1 {
    font-size: 24px;
    line-height: 1;
}

.brand-text p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav {
    display: none;
}

@media (min-width: 1024px) {
    nav {
        display: flex;
        gap: 5px;
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-link:hover {
    background: rgba(255, 69, 0, 0.8);
}

.hero-carousel {
    height: 550px;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    padding: 20px;
}

.carousel-content h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 800;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--orangered);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.btn-primary:hover {
    background: #e63e00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.btn-secondary {
    background: var(--magenta);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 139, 0.3);
}

.btn-secondary:hover {
    background: var(--dark-magenta);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 0, 139, 0.4);
}

.btn-small {
    padding: 10px 16px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
    border-radius: 0;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--orangered);
    width: 30px;
    border-radius: 10px;
}

.category-section {
    padding: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
}

.category-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid var(--magenta);
    color: var(--magenta);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.tab-active {
    background: var(--magenta);
    color: white;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 500px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .book-grid { grid-template-columns: repeat(5, 1fr); }
}

.book-card {
    background: white;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    max-height: 400px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.book-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--orangered);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.book-img-wrapper {
    max-height: 250px;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin: auto;
    object-fit: cover;
}

.book-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    transition: transform 0.3s;

}

.book-card:hover .book-img-wrapper img {
    transform: scale(1.05);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open { right: 0; }

.cart-header {
    padding: 25px;
    background: var(--magenta);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 80px;
    object-fit: contain;
    background: #f4f4f4;
    border-radius: 4px;
}

.checkout-btn {
    width: 100%;
    background: var(--orangered);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.checkout-btn:hover { background: #e63e00; }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1500;
    backdrop-filter: blur(2px);
}

.whatsapp-float, .cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    cursor: pointer;
}
.cart-float{
    bottom: 100px;
    background: rgb(118, 118, 255);
    width: 50px;
    height: 50px;
    font-size: 1.1em;

}
.float-count{
    background: red;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: small;
    border-radius: 50%;
    position: absolute;
    top: -10px;

}

.whatsapp-float:hover, .cart-float:hover { transform: scale(1.1) rotate(5deg); }

.cart-loader{
    
}

.header-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 1024px) {
    .mobile-header-actions {
        display: none;
    }
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2600;
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 24px;
    background: var(--magenta);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-links {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links .nav-link {
    color: var(--text-dark);
    font-size: 15px;
    border-radius: 4px;
    padding: 12px 16px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

.mobile-nav-links .nav-link:hover {
    color: white;
    background: var(--magenta);
    border-color: var(--magenta);
}