/* Styles for AbeBooks Clone - Writers of the West */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* Color Variables & Base Styles */
:root {
    --ab-red: #bc181e;
    --ab-red-hover: #9c1015;
    --ab-teal: #005454;
    --ab-teal-hover: #003e3e;
    --ab-teal-light: #e6f2f2;
    --ab-text-dark: #222222;
    --ab-text-muted: #666666;
    --ab-border: #dcdcdc;
    --ab-bg-light: #f7f9fa;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'PT Serif', Georgia, serif;
}

body {
    font-family: var(--font-sans);
    color: var(--ab-text-dark);
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: #0066c0;
    text-decoration: none;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}

a:hover {
    color: var(--ab-red);
    text-decoration: underline;
}

/* Header & Utility Nav */
.header-container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.ab-logo svg {
    height: 38px;
    width: auto;
}

.search-input-group {
    border: 1px solid #707070;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.search-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 84, 84, 0.25);
    border-color: var(--ab-teal);
}

.search-input {
    border: none;
    font-size: 14px;
    padding: 10px 15px;
    outline: none;
}

.search-btn {
    background-color: var(--ab-teal);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: var(--ab-teal-hover);
}

.utility-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    font-size: 12px;
}

.currency-select {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ab-border);
    padding: 4px 8px;
    border-radius: 4px;
    background-color: var(--ab-bg-light);
    color: var(--ab-text-dark);
    font-weight: 500;
}

.currency-select img {
    width: 16px;
    margin-right: 5px;
}

.utility-link {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
}

.utility-link:hover {
    color: var(--ab-red);
}

.basket-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.basket-icon {
    font-size: 16px;
}

/* Secondary Navigation */
.sub-nav {
    border-top: 1px solid var(--ab-border);
    border-bottom: 1px solid var(--ab-border);
    background-color: #ffffff;
}

.sub-nav .nav-link {
    color: #333333;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 12px;
    transition: color 0.2s;
}

.sub-nav .nav-link:hover {
    color: var(--ab-red);
    text-decoration: none;
}

/* Author Section */
.author-section {
    padding: 40px 0 25px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
}

.author-avatar {
    /* width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--ab-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); */
    filter: invert(1);
}

.author-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ab-text-dark);
}

.author-description {
    font-size: 13px;
    max-width: 780px;
    margin: 0 auto;
    color: #444444;
    line-height: 1.6;
}

.show-more-link {
    color: #0066c0;
    font-weight: 600;
    cursor: pointer;
}

.show-more-link:hover {
    color: var(--ab-red);
    text-decoration: underline;
}

/* Grid Header */
.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 30px;
    padding-bottom: 20px;
}

.grid-header h2 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--ab-text-dark);
}

.view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #0066c0;
}

/* Book Grid & Cards */
.book-card {
    height: 100%;
    border: 1px solid var(--ab-border);
    border-radius: 4px;
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #c0c0c0;
}

.book-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background-color: #ffffff;
    overflow: hidden;
}

.book-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
      height: 180px;
}

.book-card:hover .book-image {
    transform: scale(1.03);
}

.book-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--ab-text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.book-title a {
    color: var(--ab-text-dark);
}

.book-title a:hover {
    color: #0066c0;
    text-decoration: underline;
}

.book-author {
    font-size: 12px;
    color: var(--ab-text-muted);
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-label {
    font-size: 11px;
    color: var(--ab-text-muted);
    margin-bottom: 2px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ab-text-dark);
    margin-bottom: 12px;
}

.offers-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--ab-teal);
    color: var(--ab-teal);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    margin-bottom: 10px;
}

.offers-btn:hover {
    background-color: var(--ab-teal-light);
    color: var(--ab-teal-hover);
    border-color: var(--ab-teal-hover);
    text-decoration: none;
}

.find-more-text {
    font-size: 11px;
    color: var(--ab-text-muted);
    margin-top: auto;
}

.find-more-text a {
    color: #0066c0;
}

/* Pagination / Show More */
.pagination-section {
    padding: 40px 0 50px;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
}

.pagination-status {
    font-size: 13px;
    color: var(--ab-text-muted);
    margin-bottom: 12px;
}

.show-more-btn {
    display: inline-block;
    border: 1px solid var(--ab-border);
    background-color: var(--ab-bg-light);
    color: var(--ab-text-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 20px;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background-color: #eaeaea;
    border-color: #c0c0c0;
    text-decoration: none;
    color: var(--ab-text-dark);
}

/* Back to Top */
.back-to-top {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    font-weight: 600;
}

.back-to-top a {
    color: #555555;
}

.back-to-top a:hover {
    color: var(--ab-red);
    text-decoration: none;
}

/* Footer styling */
footer {
    background-color: var(--ab-bg-light);
    border-top: 1px solid var(--ab-border);
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer-title {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.footer-links-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 25px;
}

.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list a {
    color: #555555;
    font-size: 11px;
    text-decoration: none;
}

.footer-links-list a:hover {
    color: var(--ab-red);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #333333;
    font-size: 18px;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--ab-red);
}

/* Footer Bottom Logos and Legal */
.footer-bottom {
    border-top: 1px solid var(--ab-border);
    margin-top: 30px;
    padding-top: 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo svg {
    height: 32px;
}

.international-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.international-links a {
    color: #555555;
}

.bookfinder-info {
    font-size: 11px;
    margin-bottom: 25px;
    color: var(--ab-text-muted);
}

.bookfinder-info a {
    font-weight: 700;
    color: #0066c0;
}

.legal-text {
    font-size: 10px;
    color: #777777;
    max-width: 780px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.legal-text a {
    color: #0066c0;
}

/* Book Details Page Styles */
.breadcrumb-container {
    font-size: 12px;
    padding: 15px 0;
    color: var(--ab-text-muted);
}

.breadcrumb-container a {
    color: #0066c0;
}

.breadcrumb-container span.separator {
    margin: 0 8px;
    color: #ccc;
}

.book-title-lg {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--ab-text-dark);
}

.author-link-lg {
    font-size: 15px;
    font-weight: 600;
    color: #0066c0;
    margin-bottom: 15px;
    display: inline-block;
}

.book-meta-list {
    font-size: 13px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.seller-info-box {
    font-size: 13px;
    margin-bottom: 20px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 0;
}

.star-rating {
    color: var(--ab-red);
    font-size: 12px;
}

.edition-copies-box {
    background-color: var(--ab-bg-light);
    border: 1px solid var(--ab-border);
    border-radius: 4px;
    padding: 15px;
    font-size: 13px;
}

.edition-copies-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ab-text-dark);
}

/* Buy Box / Right Side Sidebar */
.buy-box {
    border: 1px solid var(--ab-border);
    border-radius: 4px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.buy-box-condition {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ab-text-dark);
}

.buy-box-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--ab-text-dark);
    margin-bottom: 10px;
}

.buy-box-shipping {
    font-size: 12px;
    color: var(--ab-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.add-to-basket-btn {
    display: block;
    width: 100%;
    background-color: var(--ab-red);
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.add-to-basket-btn:hover {
    background-color: var(--ab-red-hover);
    color: #ffffff;
    text-decoration: none;
}

/* Bibliographic & Specs Table */
.specs-title {
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--ab-teal);
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.specs-table {
    width: 100%;
    margin-bottom: 30px;
    font-size: 13px;
}

.specs-table td {
    padding: 10px;
    border-bottom: 1px solid #eeeeee;
}

.specs-table td.label-cell {
    font-weight: 600;
    color: var(--ab-text-muted);
    width: 30%;
}

.specs-table td.value-cell {
    color: var(--ab-text-dark);
}

/* Content tabs area */
.details-tabs-section {
    margin-top: 40px;
    border-top: 1px solid var(--ab-border);
    padding-top: 30px;
}

.detail-section-block {
    margin-bottom: 30px;
}

.detail-section-block h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ab-text-dark);
    margin-bottom: 10px;
}

.detail-section-block p {
    font-size: 13px;
    line-height: 1.6;
    color: #444444;
}

.payment-methods-row {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: #555555;
    margin-top: 10px;
}

/* Carousel / Items rows */
.related-items-section {
    border-top: 1px solid var(--ab-border);
    margin-top: 40px;
    padding-top: 30px;
}

.related-items-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-card {
    border: 1px solid var(--ab-border);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    background-color: #ffffff;
    height: 100%;
}

.related-card img {
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.related-card-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-card-title a {
    color: var(--ab-text-dark);
}