/* General Body & Typography */
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #005bff;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

/* Header */
.site-header .top-bar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-bar .phone-number {
    margin-left: auto;
    font-weight: bold;
}

.site-header .main-header .container {
    display: flex;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
}
.logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 26px;
    font-weight: bold;
    color: #386641; /* Dark Green */
    text-decoration: none;
    white-space: nowrap;
}

.logo-text .fa-leaf {
    color: #6a994e; /* Lighter Green */
    font-size: 22px;
    vertical-align: middle;
}
.search-bar {
    flex-grow: 1;
    display: flex;
}
.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
}
.search-bar button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
}
.header-icons {
    display: flex;
    gap: 20px;
}
.header-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #555;
    position: relative;
}
#cart-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ef3e4a;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    display: none; /* Hidden by default */
}
.header-icons i {
    font-size: 20px;
}

.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}
.main-nav .container {
    display: flex;
    gap: 25px;
    font-size: 16px;
}
.main-nav a {
    color: #333;
}

/* Main Content */
.breadcrumbs {
    padding: 15px 0;
    font-size: 13px;
    color: #666;
}
.breadcrumbs a {
    color: #666;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 20px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-book-image {
    max-width: 100%;
    border: 1px solid #eee;
    padding: 10px;
}
.read-excerpt-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #f0f8ff;
    border: 1px solid #cce0f5;
    color: #005bff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.product-info h1 {
    margin-top: 0;
}
.product-info .author {
    color: #005bff;
    font-size: 16px;
}
.product-rating {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #666;
}

.buy-box {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}
.price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.current-price {
    font-size: 32px;
    font-weight: bold;
}
.original-price {
    text-decoration: line-through;
    color: #999;
}
.discount-badge {
    background-color: #ff4d4f;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}
.stock-status {
    color: #28a745;
    font-weight: bold;
}
.buy-button, .pickup-button {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.buy-button {
    background-color: #005bff;
    color: white;
    border: none;
}
.pickup-button {
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ccc;
}
.annotation, .product-specs {
    margin-top: 25px;
}
.product-specs ul {
    list-style: none;
    padding: 0;
}
.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.description-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Reviews Section */
.reviews-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.review-card {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    background: #fafafa;
}
.review-form-promo {
    background-color: #f0f8ff;
    border: 1px solid #cce0f5;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}
.review-form-promo p {
    margin: 0 0 15px 0;
    font-size: 16px;
}
.review-form-promo button {
    background-color: #005bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Info & Author Sections */
.info-section, .author-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}
.tabs {
    margin-bottom: 20px;
}
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    border-bottom: none;
}
.tab-link.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    position: relative;
    top: 1px;
}
.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0 5px 5px 5px;
}
.author-bio {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Promo Banner */
.promo-banner {
    background-color: #ef3e4a;
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}
.promo-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.promo-banner span {
    font-size: 18px;
    font-weight: bold;
}
.promo-banner button {
    background-color: #ffc107;
    color: #333;
    border: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
.site-footer-bottom {
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
    padding-top: 30px;
}
.site-footer-bottom .container {
    display: flex;
    justify-content: space-between;
}
.footer-columns {
    display: flex;
    gap: 60px;
}
.footer-col h3 {
    margin-top: 0;
}
.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: #333;
}
.footer-social p {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
}
.social-icons a {
    font-size: 24px;
    margin-right: 15px;
    color: #555;
}
.copyright-bar {
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr;
    }
    .footer-columns, .site-footer-bottom .container {
        flex-direction: column;
        gap: 20px;
    }
    .promo-banner .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
@media (max-width: 576px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    .main-header .container, .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .main-nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.modal-header h2 {
    margin: 0;
}
.close-modal-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    overflow-y: auto;
    flex-grow: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.cart-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
}
.cart-item-info p {
    margin: 0;
    color: #666;
}
.cart-item-controls {
    display: flex;
    align-items: center;
}
.cart-item-controls input {
    width: 40px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.cart-item-controls button {
    background: none;
    border: none;
    color: #ef3e4a;
    cursor: pointer;
    font-size: 16px;
}

.cart-empty-message {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total-price {
    font-size: 18px;
    font-weight: bold;
}
.checkout-button {
    background-color: #005bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
} 