/*!
Theme Name:     Blocksy - IqraBooks Child
Theme URI:      https://iqrabooks.co.uk
Description:    Blocksy child theme for IqraBooks.co.uk — furniture-to-bookstore conversion
Author:         IqraBooks
Author URI:     https://iqrabooks.co.uk
Template:       blocksy
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    blocksy-child
*/

/* === BOOK STORE CUSTOMISATIONS === */

/* 1. Instant Download / Read Anywhere / Free Sample feature boxes */
.ct-feature-boxes .ct-icon-container {
    background-color: var(--theme-palette-color-1, #3b82f6);
}

/* 2. Product page — reinforce digital nature */
.ct-product-description .download-info {
    background: #f0f9ff;
    border-left: 4px solid var(--theme-palette-color-1, #3b82f6);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}
.ct-product-description .download-info p {
    margin: 0.25rem 0;
    font-size: 0.925rem;
}

/* 3. Hero section override — book-focused */
.hero-section .book-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
}
.hero-section .book-hero-text {
    flex: 1 1 45%;
}
.hero-section .book-hero-image {
    flex: 1 1 45%;
    text-align: center;
}
.hero-section .book-hero-image img {
    max-width: 360px;
    height: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-radius: 6px;
}
.hero-section .book-hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero-section .book-hero .subheadline {
    font-size: 1.125rem;
    color: var(--theme-text-color-secondary, #6b7280);
    margin-bottom: 1.5rem;
}
.hero-section .book-hero .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.hero-section .book-hero .cta-buttons .btn-primary,
.hero-section .book-hero .cta-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.hero-section .book-hero .cta-buttons .btn-primary {
    background: var(--theme-palette-color-1, #3b82f6);
    color: #fff;
}
.hero-section .book-hero .cta-buttons .btn-primary:hover {
    opacity: 0.9;
}
.hero-section .book-hero .cta-buttons .btn-secondary {
    background: transparent;
    color: var(--theme-palette-color-1, #3b82f6);
    border: 2px solid var(--theme-palette-color-1, #3b82f6);
}
.hero-section .book-hero .cta-buttons .btn-secondary:hover {
    background: var(--theme-palette-color-1, #3b82f6);
    color: #fff;
}

/* 4. Footer customisations */
.site-footer .footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 5. Coming Soon removal — ensure cart/checkout pages display correctly */
.page-id-cart .entry-content,
.page-id-checkout .entry-content {
    min-height: 300px;
}

/* 6. Free sample page — download first, email after */
.page-id-free-sample .entry-content {
    max-width: 640px;
    margin: 0 auto;
}
.iqrabooks-sample-download {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.iqrabooks-sample-download .iqrabooks-sample-download-btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: #059669;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}
.iqrabooks-sample-download .iqrabooks-sample-download-btn:hover {
    background: #047857;
}
.iqrabooks-sample-email-capture {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.iqrabooks-sample-email-capture input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}
.iqrabooks-sample-email-capture input[type="email"]:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.iqrabooks-sample-email-capture button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.iqrabooks-sample-email-capture button[type="submit"]:hover {
    background: #2563eb;
}

/* 7. Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section .book-hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-section .book-hero h1 {
        font-size: 1.625rem;
    }
    .hero-section .book-hero .cta-buttons {
        justify-content: center;
    }
    .hero-section .book-hero-image img {
        max-width: 240px;
    }
    .ct-feature-boxes {
        grid-template-columns: 1fr;
    }
}

/* 8. Price display — ensure sale price is prominent */
.ct-product-price .price del {
    font-size: 0.875rem;
    opacity: 0.6;
}
.ct-product-price .price ins {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-palette-color-1, #3b82f6);
}

/* 9. Checkout — digital goods specific tweaks */
.woocommerce-checkout #ship-to-different-address {
    display: none;
}
.woocommerce-checkout .shipping_address {
    display: none;
}