/*
Theme Name: Wetworx Printpress
Theme URI: https://wetworx.com
Author: Wetworx
Description: A book publishing theme inspired by Printpress - clean, editorial design for publishers and authors.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: wetworx-printpress
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #423466; text-decoration: none; transition: color 0.2s; }
a:hover { color: #352a52; }
ul { list-style: none; }

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

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
    position: relative;
}

.section-subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #423466;
    margin: 12px auto 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #423466;
    color: #fff;
    border-color: #423466;
}
.btn-primary:hover { background: #352a52; border-color: #352a52; color: #fff; }

.btn-outline {
    background: transparent;
    color: #423466;
    border-color: #423466;
}
.btn-outline:hover { background: #423466; color: #fff; }

.btn-white {
    background: #fff;
    color: #423466;
    border-color: #fff;
}
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }

/* ============================================================
   HEADER  —  squishworx-style layout
   ============================================================ */

/* Sticky wrapper */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ---- Top row: logo | search | cart ---- */
.main-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 30px;
    height: 72px;
    border-bottom: 1px solid #efefef;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* col-full stretches to full width */
.col-full { width: 100%; }

/* Mobile hamburger — hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px 5px 0;
    margin-right: 10px;
    flex-shrink: 0;
}
.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
    border-radius: 2px;
}
.menu-toggle .bar-text {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    margin-top: 2px;
}

/* Logo / Branding */
.site-branding {
    flex-shrink: 0;
    line-height: 1;
    margin-right: 30px;
}

.site-branding .custom-logo-link,
.site-branding a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.15;
}

.site-branding .custom-logo {
    max-height: 52px;
    width: auto;
}

.site-title-text {
    font-size: 1.65rem;
    font-weight: 900;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    font-family: 'Mulish', sans-serif;
    white-space: nowrap;
}

.site-title-accent { color: #423466; }

.site-tagline {
    font-size: 0.68rem;
    color: #999;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Search bar — grows to fill space */
.site-search {
    flex: 1;
    margin: 0 24px 0 0;
}

.woocommerce-product-search,
.site-search-form {
    display: flex;
    align-items: stretch;
    height: 44px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.woocommerce-product-search:focus-within,
.site-search-form:focus-within {
    border-color: #423466;
}

.woocommerce-product-search .search-field,
.site-search-form .search-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-family: 'Mulish', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
}

.woocommerce-product-search button,
.site-search-form button {
    background: #423466;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
    flex-shrink: 0;
}

.woocommerce-product-search button:hover,
.site-search-form button:hover {
    background: #352a52;
}

/* Cart icon */
.site-header-cart {
    flex-shrink: 0;
    margin-left: 0;
}

.shoptimizer-cart .cart-contents {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.2s;
}

.shoptimizer-cart .cart-contents:hover { color: #423466; }

.cart-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.shoptimizer-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.shoptimizer-cart-icon svg {
    display: block;
    color: #333;
    transition: color 0.2s;
}

.shoptimizer-cart .cart-contents:hover .shoptimizer-cart-icon svg {
    color: #423466;
}

.mini-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #423466;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---- Nav bar below top row ---- */
.main-navigation {
    background: #1a1a2e;
    border-top: none;
}

.main-navigation .col-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.primary-navigation { display: flex; }

.main-navigation .menu {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu > li > a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ddd;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-page-ancestor > a {
    background: #423466;
    color: #fff;
}

/* Dropdown sub-menus */
.main-navigation .menu > li {
    position: relative;
}

.main-navigation .menu > li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 3px solid #423466;
    z-index: 999;
    list-style: none;
    padding: 8px 0;
}

.main-navigation .menu > li:hover .sub-menu,
.main-navigation .menu > li:focus-within .sub-menu {
    display: block;
}

.main-navigation .menu > li .sub-menu li a {
    display: block;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    transition: background 0.15s, color 0.15s;
}

.main-navigation .menu > li .sub-menu li a:hover {
    background: #f3f0ff;
    color: #423466;
}

/* Mobile nav — hidden on desktop, shown when toggled */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-navigation {
        display: none;
    }

    .main-navigation.open {
        display: block;
    }

    .main-navigation .menu {
        flex-direction: column;
    }

    .main-navigation .menu > li > a {
        padding: 13px 20px;
        border-bottom: 1px solid #ffffff10;
    }

    .main-navigation .menu > li .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        border-top: none;
        background: #0f1220;
        padding: 0;
    }

    .main-navigation .menu > li.open .sub-menu {
        display: block;
    }

    .main-navigation .menu > li .sub-menu li a {
        color: #bbb;
        padding: 10px 32px;
        font-size: 0.82rem;
    }

    .main-header {
        padding: 0 16px;
        height: 64px;
    }

    .site-search { margin-right: 12px; }
    .cart-amount { display: none; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 45%;
    height: 100%;
    background: url('') center/cover no-repeat;
    opacity: 0.08;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a48ce0;
    margin-bottom: 16px;
    padding: 5px 14px;
    border: 1px solid #a48ce080;
    border-radius: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}

.hero-text h1 em {
    font-style: normal;
    color: #a48ce0;
}

.hero-text p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 35px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    position: relative;
}

.hero-book {
    background: #fff1;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3;
    position: relative;
    transition: transform 0.3s;
}

.hero-book:nth-child(2) { margin-top: 30px; }
.hero-book:hover { transform: translateY(-6px); }

.hero-book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-book-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #423466, #6b4fa0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.hero-book-placeholder .book-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero-book-placeholder span {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
    background: #f8f7ff;
    border-top: 1px solid #ebe8f5;
    border-bottom: 1px solid #ebe8f5;
    padding: 30px 0;
}

.features-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #423466;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a1a2e;
}

.feature-text span {
    font-size: 0.78rem;
    color: #888;
}

/* ============================================================
   FEATURED BOOKS
   ============================================================ */
.featured-books {
    padding: 80px 0;
    background: #fff;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.book-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: all 0.3s;
    position: relative;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(66,52,102,0.15);
}

.book-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #423466, #6b4fa0);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.book-card:hover .book-cover img { transform: scale(1.05); }

.book-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.book-badge.new { background: #27ae60; }
.book-badge.sale { background: #e74c3c; }
.book-badge.featured { background: #423466; }

.book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.book-card:hover .book-overlay { opacity: 1; }

.book-info {
    padding: 18px;
}

.book-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: #423466;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.book-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
}

.book-author {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 12px;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0eeff;
}

.book-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: #423466;
}

.book-price .original {
    font-size: 0.8rem;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */

/* Float animation — subtle 5px bob */
@keyframes tag-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

.categories-section {
    padding: 60px 0;
    background: #f8f7ff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    /* each card floats; delay is set via inline style in PHP */
    animation: tag-float 2.7s ease-in-out infinite;
    /* transition only border/shadow — animation owns transform */
    transition: border-color 0.25s, box-shadow 0.25s;
}

.category-card:hover {
    border-color: #423466;
    box-shadow: 0 6px 20px rgba(66,52,102,0.14);
    color: inherit;
}

/* Styled initial circle */
.category-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #423466, #6b4fa0);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 3px;
    line-height: 1.2;
}

.category-count {
    font-size: 0.65rem;
    color: #aaa;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
    background: linear-gradient(120deg, #423466 0%, #6b4fa0 60%, #9b6dcc 100%);
    padding: 70px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.promo-banner::after {
    content: '📚';
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.15;
}

.promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.promo-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.promo-text p {
    font-size: 1rem;
    color: #d4c8f0;
    max-width: 500px;
}

/* ============================================================
   AUTHORS SECTION
   ============================================================ */
.authors-section {
    padding: 80px 0;
    background: #fff;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.author-card {
    text-align: center;
    padding: 35px 20px;
    border-radius: 12px;
    border: 1px solid #ebe8f5;
    transition: all 0.3s;
}

.author-card:hover {
    border-color: #423466;
    box-shadow: 0 8px 30px rgba(66,52,102,0.1);
    transform: translateY(-4px);
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #ebe8f5;
}

.author-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #423466, #6b4fa0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
    color: #fff;
    font-weight: 900;
}

.author-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.author-genre {
    font-size: 0.8rem;
    color: #423466;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio {
    font-size: 0.83rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-books-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    padding: 80px 0;
    background: #1a1a2e;
    color: #fff;
}

.testimonials-section .section-title { color: #fff; }
.testimonials-section .section-subtitle { color: #8888aa; }
.testimonials-section .section-header .section-title::after { background: #a48ce0; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #16213e;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #ffffff10;
    transition: border-color 0.3s;
}

.testimonial-card:hover { border-color: #423466; }

.testimonial-stars {
    color: #f39c12;
    font-size: 1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.92rem;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #423466, #6b4fa0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-name { font-weight: 800; font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: #888; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
    padding: 70px 0;
    background: #f8f7ff;
    text-align: center;
}

.newsletter-section .section-title { font-size: 1.8rem; }

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(66,52,102,0.12);
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-family: 'Mulish', sans-serif;
    font-size: 0.9rem;
    outline: none;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    padding: 15px 28px;
    background: #423466;
    color: #fff;
    border: none;
    font-family: 'Mulish', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0 4px 4px 0;
}

.newsletter-form button:hover { background: #352a52; }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section {
    padding: 80px 0;
    background: #fff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ebe8f5;
    transition: all 0.3s;
}

.post-card:hover {
    box-shadow: 0 10px 30px rgba(66,52,102,0.1);
    transform: translateY(-4px);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #423466, #6b4fa0);
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-meta {
    padding: 20px 20px 0;
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: #888;
    align-items: center;
}

.post-category-tag {
    background: #f3f0ff;
    color: #423466;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-body {
    padding: 15px 20px 20px;
}

.post-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-title a { color: inherit; }
.post-title a:hover { color: #423466; }

.post-excerpt {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    font-size: 0.82rem;
    font-weight: 800;
    color: #423466;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover { color: #352a52; gap: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #ffffff10;
}

.footer-brand .site-title { color: #fff; font-size: 1.4rem; }

.footer-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.7;
    margin: 15px 0 20px;
    max-width: 280px;
}

.footer-social { display: flex; gap: 10px; }

.social-link {
    width: 36px;
    height: 36px;
    background: #ffffff10;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #aaa;
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover { background: #423466; color: #fff; }

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    font-size: 0.85rem;
    color: #888;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: #a48ce0; }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #555;
}

.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: #a48ce0; }

/* ============================================================
   PAGE / BLOG / SINGLE TEMPLATES
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb a { color: #a48ce0; }

.content-area {
    padding: 70px 0;
}

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
    color: #1a1a2e;
    font-weight: 800;
    margin: 1.5em 0 0.7em;
}

.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin: 1em 0 1em 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

/* Sidebar */
.sidebar { }

.widget {
    background: #f8f7ff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #423466;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce .button,
.woocommerce button.button {
    background: #423466 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-family: 'Mulish', sans-serif !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: #352a52 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .books-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-text h1 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-books { display: none; }
    .hero-text h1 { font-size: 2rem; }
    .books-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .authors-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .features-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .content-sidebar-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .promo-inner { flex-direction: column; text-align: center; }
    .menu-toggle { display: flex; }
    #primary-navigation { display: none; width: 100%; }
    #primary-navigation.open { display: block; }
    #primary-navigation ul { flex-direction: column; padding: 15px 0; }
    .header-cta { display: none; }
    .header-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .books-grid { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .authors-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 1.7rem; }
}
