/* Custom CSS Design System - Payal Book House Style */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gloock&display=swap');

:root {
    --primary-color: #e86d35;
    --primary-hover: #f28858;
    --secondary-color: #e30000;
    --dark-color: #141414;
    --navy-color: #060340;
    --light-bg: #fdf3e4; /* Used in category tabs */
    --gray-bg: #f8f9fa;
    --border-color: #ebebeb;
    --text-color: #333333;
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Gloock', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: #ffffff;
    font-weight: 300;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Header Styles */
.header-txt {
    background-color: var(--dark-color) !important;
    color: #ffffff !important;
    font-size: 13px !important;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-hold img {
    max-height: 55px;
    object-fit: contain;
}

.search-input {
    background-color: transparent !important;
    border: 1px solid #888888 !important;
    border-radius: 25px !important;
    min-height: 43px;
    padding-left: 20px;
}

.searchbar {
    position: relative;
}

#search_submit {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888888;
}

.headericons-caption {
    font-size: 12px;
    font-weight: 400;
}

.bi-hold {
    font-size: 20px;
    color: var(--dark-color);
}

.shoppingcart .cart-icon span {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 2px;
}

/* Navigation Menu */
.menu-bar {
    border-top: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu > li > a {
    font-size: 14px !important;
    color: var(--dark-color) !important;
    text-transform: uppercase !important;
    font-weight: 400;
    padding: 12px 16px !important;
    display: block;
}

.nav-menu > li:hover > a {
    color: var(--secondary-color) !important;
}

/* Hero Banners */
.hero-slider-section {
    position: relative;
    background-color: #f6efe2;
    overflow: hidden;
    padding: 60px 0;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.hero-caption .hero-slide-heading {
    font-family: var(--font-serif);
    font-size: 42px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-color);
}

.hero-caption p {
    font-size: 18px !important;
    margin-bottom: 25px;
}

/* Primary Button Styling */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 10px 28px !important;
    border-radius: 4px !important;
    font-weight: 500;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 8px 24px !important;
    border-radius: 4px !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Circular Category list */
.home-category {
    text-align: center;
    margin-bottom: 25px;
}

.home-category a figure {
    position: relative;
    display: block;
    overflow: hidden;
    padding-bottom: 100% !important;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.home-category a figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.home-category:hover figure img {
    transform: scale(1.1);
}

.home-category .category-caption h3 {
    font-size: 15px !important;
    font-weight: 500;
    color: #181465 !important;
    width: fit-content;
    margin: 0 auto;
    padding-bottom: 2px;
    border-bottom: 1px solid #181465;
}

/* Book Teaser Cards */
.teaser-item-div {
    background-color: #ffffff !important;
    border-radius: 7px !important;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    margin-bottom: 24px;
    border: 1px solid #f1f1f1;
}

.teaser-item-div:hover {
    transform: translateY(-9px);
    box-shadow: 0 12px 24px rgba(149, 157, 165, 0.15);
}

.teaser-item-div figure {
    position: relative;
    display: block;
    overflow: hidden;
    padding-bottom: 135%;
    margin-bottom: 10px;
    border-radius: 4px;
}

.teaser-item-div figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teaser-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-color);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 38px;
    line-height: 1.3;
}

.teaser-author {
    font-size: 12px;
    color: #777777;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-stars {
    color: #ffc107;
    font-size: 13px;
    margin-bottom: 8px;
}

.price-hold {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-actual {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-color);
}

.price-original {
    text-decoration: line-through;
    color: #999999;
    font-size: 13px;
}

.discount-badge {
    background-color: #28a745;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 3px;
}

/* Category Tabs Section */
.home-category-tabs {
    background-color: var(--light-bg);
}

.home-tab-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    border: none;
    margin-bottom: 25px;
}

.home-tab-nav .nav-link {
    background: #ffffff !important;
    color: var(--dark-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 6px 20px !important;
    font-size: 14px;
}

.home-tab-nav .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

/* Horizontal Banner with text overlay */
.text-cl-img-hold {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.text-cl-img-hold img {
    width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: cover;
    filter: brightness(0.65);
}

.text-cl-img-hold .text-caption {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 70%;
}

.text-cl-img-hold .text-caption p {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.text-cl-img-hold .text-caption h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.text-cl-img-hold .text-caption .btn-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.text-cl-img-hold .text-caption .btn-link:hover {
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--navy-color);
    color: #ffffff;
    padding: 60px 0;
}

.testimonialsimg img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
}

.testi-quote-caption p {
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
}

.testi-quote-caption .cstr-name {
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
    display: inline-block;
}

/* Newsletter Subscribe */
#newsletter_subscribe_4701 {
    background-color: #f7ede2;
}

/* Footer Section */
footer {
    background-color: var(--navy-color) !important;
    color: #ffffff !important;
    font-size: 14px;
}

footer a {
    color: rgba(255,255,255,0.85) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

footer h4 {
    font-size: 15px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

footer .social-hold a i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--navy-color);
    font-size: 18px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

footer .social-hold a:hover i {
    transform: translateY(-3px);
}

/* Category Page Styles */
.filters-sidebar {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-title {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.filter-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-list input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

/* Product Detail Page Styles */
.detail-gallery {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
}

.detail-main-img {
    max-height: 450px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
}

.detail-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.detail-thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.detail-thumb.active, .detail-thumb:hover {
    border-color: var(--primary-color);
}

.detail-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.detail-meta-item {
    font-size: 14px;
    margin-bottom: 6px;
}

.detail-meta-item span {
    font-weight: 500;
}

.detail-price-box {
    background-color: #faf7f2;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.qty-input-group {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background-color: #f1f1f1;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
}

.qty-input {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.detail-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.detail-tabs .nav-link {
    color: var(--text-color);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    font-size: 15px;
}

.detail-tabs .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
    background: none;
}

/* Checkout Page Styles */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding: 0 15px;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #888888;
    margin-bottom: 8px;
    border: 2px solid transparent;
}

.step-item.active .step-num {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-hover);
}

.step-item.completed .step-num {
    background-color: #28a745;
    color: #ffffff;
}

.step-text {
    font-size: 13px;
    font-weight: 500;
    color: #888888;
}

.step-item.active .step-text {
    color: var(--dark-color);
}

.checkout-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
}

.checkout-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.payment-option {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover, .payment-option.active {
    border-color: var(--primary-color);
    background-color: #faf7f2;
}

.payment-option input {
    margin-right: 15px;
    accent-color: var(--primary-color);
}

/* WhatsApp Floating Button */
.what-app-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.what-app-float a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.what-app-float a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Mobile responsive fixes */
@media (max-width: 991px) {
    .nav-menu {
        display: none; /* Hide standard nav on mobile (could be replaced by mobile toggle drawer) */
    }
    
    .nav-menu.show-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu > li > a {
        padding: 10px 20px !important;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .hero-caption .hero-slide-heading {
        font-size: 28px !important;
    }
    
    .text-cl-img-hold .text-caption h4 {
        font-size: 18px;
    }
    
    .text-cl-img-hold .text-caption {
        max-width: 85%;
    }
}

/* Quick View Button */
.teaser-item-div figure .quick-view-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    background-color: rgba(0,0,0,0.7);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}
.teaser-item-div:hover figure .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.teaser-item-div figure .quick-view-btn:hover {
    background-color: var(--primary-color);
}
