/*
Theme Name: Pagewell Books
Theme URI: https://pagewellbooks.com
Description: A professional bookstore theme for WooCommerce with curated collections and elegant book displays
Version: 1.0.1
Author: Pagewell Books
Author URI: https://pagewellbooks.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pagewell
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
*/

:root {
    --pb-primary: #1a3a52;
    --pb-accent: #c88552;
    --pb-cream: #f5f1ea;
    --pb-dark: #0f2435;
    --pb-light-gray: #f8f8f8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--pb-cream);
}

.site-header {
    background: var(--pb-primary);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--pb-dark);
    padding: 10px 0;
    font-size: 13px;
    color: #fff;
}

.header-top .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement {
    color: var(--pb-accent);
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.header-main {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-branding a {
    color: #fff;
    text-decoration: none;
}

.site-branding .tagline {
    font-size: 14px;
    color: var(--pb-accent);
    font-weight: 400;
    margin-top: 5px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.header-links a:hover {
    color: var(--pb-accent);
}

.main-navigation {
    background: var(--pb-primary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 18px 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    background: rgba(200, 133, 82, 0.2);
    color: var(--pb-accent);
}

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

.site-main {
    min-height: 60vh;
}

.site-footer {
    background: var(--pb-dark);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-widget h3 {
    color: var(--pb-accent);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--pb-accent);
}

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

.pagewell-hero {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.92) 0%, rgba(45, 85, 115, 0.88) 100%), url('assets/images/bookstore_interior_s_2bed85fa.jpg') center/cover;
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.pagewell-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(26, 58, 82, 0.3) 100%);
}

.pagewell-hero .container {
    position: relative;
    z-index: 1;
}

.pagewell-hero h1 {
    font-size: 62px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 3px 5px 10px rgba(0,0,0,0.5);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.pagewell-hero p {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 2px 3px 6px rgba(0,0,0,0.4);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--pb-accent) 0%, #a86b3e 100%);
    color: #ffffff;
    padding: 18px 55px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(200, 133, 82, 0.4);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(200, 133, 82, 0.5);
}

.pagewell-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--pb-primary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--pb-accent), #a86b3e);
    border-radius: 3px;
}

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

.collection-card {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.1);
    transition: all 0.4s ease;
    border: 2px solid #e8e4dc;
}

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

.collection-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.collection-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--pb-primary);
    margin-bottom: 15px;
}

.collection-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.collection-card a {
    color: var(--pb-accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.collection-card a:hover {
    color: #a86b3e;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 35px;
}

.book-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e4dc;
}

.book-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(26, 58, 82, 0.15);
}

.book-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.book-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--pb-primary);
    margin-bottom: 10px;
    min-height: 45px;
}

.book-title a {
    color: var(--pb-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.book-title a:hover {
    color: var(--pb-accent);
}

.book-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.book-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--pb-accent);
    margin-bottom: 20px;
}

.add_to_cart_button,
.button {
    background: linear-gradient(135deg, var(--pb-accent), #a86b3e) !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
}

.add_to_cart_button:hover,
.button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(200, 133, 82, 0.4) !important;
}

.about-section {
    background: #fff;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.08);
}

.about-section h2 {
    color: var(--pb-primary);
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 800;
}

.about-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.about-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--pb-light-gray);
    border-radius: 12px;
}

.about-card h3 {
    color: var(--pb-primary);
    font-size: 22px;
    margin: 20px 0 15px;
    font-weight: 700;
}

.about-image {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-form {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.08);
}

.contact-form h2 {
    color: var(--pb-primary);
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--pb-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8e4dc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pb-accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--pb-accent), #a86b3e);
    color: #fff;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 133, 82, 0.4);
}

.contact-info {
    background: var(--pb-light-gray);
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
}

.contact-info h3 {
    color: var(--pb-primary);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.woocommerce-cart,
.woocommerce-checkout {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .pagewell-hero h1 {
        font-size: 38px;
    }
    
    .pagewell-hero p {
        font-size: 18px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
    }
    
    .main-navigation a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-links {
        margin-top: 15px;
    }
    
    .announcement {
        font-size: 12px;
        padding: 0 10px;
    }
}
