/* Pagewell Books - Professional Bookstore CSS */

:root {
    --pb-primary: #1a3a52;
    --pb-primary-light: #2d5573;
    --pb-secondary: #faf8f5;
    --pb-accent: #c88552;
    --pb-accent-dark: #a86b3e;
    --pb-text: #2c2c2c;
    --pb-text-light: #5a5a5a;
    --pb-border: #ddd5c7;
    --pb-white: #ffffff;
    --pb-success: #3d9970;
    --pb-cream: #f5f1ea;
}

.pagewell-announcement-bar {
    background: linear-gradient(135deg, var(--pb-primary) 0%, var(--pb-primary-light) 100%);
    color: var(--pb-white);
    padding: 14px 20px;
    text-align: center;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    z-index: 1000;
    border-bottom: 3px solid var(--pb-accent);
    letter-spacing: 0.3px;
}

.pagewell-announcement-bar .announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 40px;
}

.pagewell-announcement-bar .announcement-dismiss {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--pb-white);
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px;
    text-decoration: underline;
}

.pagewell-announcement-bar .announcement-dismiss:hover {
    opacity: 0.8;
}

.pagewell-hero-banner {
    background-size: cover;
    background-position: center;
    background-color: var(--pb-cream);
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(26, 58, 82, 0.1);
}

.pagewell-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.75) 0%, rgba(45, 85, 115, 0.6) 50%, rgba(200, 133, 82, 0.3) 100%);
}

.pagewell-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    color: var(--pb-white);
}

.pagewell-hero-banner h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--pb-white);
    text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.pagewell-hero-banner p {
    font-size: 22px;
    margin-bottom: 35px;
    color: var(--pb-white);
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.pagewell-hero-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--pb-accent) 0%, var(--pb-accent-dark) 100%);
    color: var(--pb-white);
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(200, 133, 82, 0.3);
    letter-spacing: 0.5px;
}

.pagewell-hero-button:hover {
    background: linear-gradient(135deg, var(--pb-accent-dark) 0%, var(--pb-accent) 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(200, 133, 82, 0.5);
}

.pagewell-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.pagewell-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 3px solid var(--pb-border);
    padding-bottom: 18px;
    position: relative;
}

.pagewell-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--pb-accent) 0%, transparent 100%);
}

.pagewell-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--pb-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.pagewell-view-all {
    color: var(--pb-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagewell-view-all:hover {
    color: var(--pb-accent-dark);
    transform: translateX(5px);
}

.pagewell-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pagewell-book-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.pagewell-book-item:hover {
    transform: translateY(-8px);
}

.pagewell-book-cover {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.15);
    transition: box-shadow 0.3s ease;
}

.pagewell-book-item:hover .pagewell-book-cover {
    box-shadow: 0 8px 25px rgba(26, 58, 82, 0.25);
}

.pagewell-book-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pagewell-book-item:hover .pagewell-book-cover img {
    transform: scale(1.08);
}

.pagewell-book-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-text);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagewell-book-author {
    font-size: 13px;
    color: var(--pb-text-light);
    margin-bottom: 8px;
}

.pagewell-book-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--pb-accent);
}

.pagewell-filter-sidebar {
    background: var(--pb-cream);
    border: 2px solid var(--pb-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.08);
}

.pagewell-filter-group {
    margin-bottom: 20px;
}

.pagewell-filter-group h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--pb-primary);
}

.pagewell-filter-group select,
.pagewell-filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--pb-border);
    border-radius: 4px;
    font-size: 14px;
}

.pagewell-filter-button {
    background: linear-gradient(135deg, var(--pb-primary) 0%, var(--pb-primary-light) 100%);
    color: var(--pb-white);
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.2);
    letter-spacing: 0.5px;
}

.pagewell-filter-button:hover {
    background: linear-gradient(135deg, var(--pb-primary-light) 0%, var(--pb-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.3);
}

.pagewell-collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pagewell-collection-card {
    background: linear-gradient(135deg, var(--pb-white) 0%, var(--pb-cream) 100%);
    border: 2px solid var(--pb-border);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pagewell-collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pb-accent) 0%, var(--pb-primary) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pagewell-collection-card:hover::before {
    transform: scaleX(1);
}

.pagewell-collection-card:hover {
    box-shadow: 0 12px 30px rgba(26, 58, 82, 0.15);
    transform: translateY(-8px);
    border-color: var(--pb-accent);
}

.pagewell-collection-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pagewell-collection-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pb-primary);
    margin-bottom: 10px;
}

.pagewell-collection-description {
    font-size: 14px;
    color: var(--pb-text-light);
    margin-bottom: 20px;
}

.pagewell-collection-link {
    color: var(--pb-accent);
    text-decoration: none;
    font-weight: 600;
}

.woocommerce .pagewell-book-grid .product {
    margin: 0;
}

.no-products-found {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--pb-text-light);
}

@media (max-width: 768px) {
    .pagewell-hero-banner h1 {
        font-size: 32px;
    }
    
    .pagewell-hero-banner p {
        font-size: 16px;
    }
    
    .pagewell-book-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .pagewell-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagewell-view-all {
        margin-top: 10px;
    }
}

.author-info {
    padding: 25px;
    background: var(--pb-cream);
    border-radius: 12px;
    line-height: 1.7;
    border-left: 4px solid var(--pb-accent);
}

.pagewell-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
}

.pagewell-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: var(--pb-white);
    border: 2px solid var(--pb-border);
    border-radius: 8px;
    color: var(--pb-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagewell-pagination .page-link:hover {
    background: var(--pb-cream);
    border-color: var(--pb-accent);
    color: var(--pb-accent);
    transform: translateY(-2px);
}

.pagewell-pagination .page-link.active {
    background: linear-gradient(135deg, var(--pb-primary) 0%, var(--pb-primary-light) 100%);
    color: var(--pb-white);
    border-color: var(--pb-primary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pagewell-book-item a {
    color: inherit;
    text-decoration: none;
}

.pagewell-book-item .button {
    background: var(--pb-accent);
    color: var(--pb-white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pagewell-book-item .button:hover {
    background: var(--pb-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 133, 82, 0.3);
}

.pagewell-loading {
    text-align: center;
    padding: 40px;
    color: var(--pb-text-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagewell-book-item {
    animation: fadeIn 0.5s ease-out;
}

.pagewell-collection-title {
    color: var(--pb-primary);
}
