/*
Theme Name: AI Theme Builder
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A WordPress theme that lets you create and manage AI-generated headers, footers, and sidebars through a simple copy-paste interface. Uses Tailwind CSS for styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-theme-builder
Tags: custom-header, custom-footer, flexible-layout, ai-powered, tailwind
*/

/*
 * This theme uses Tailwind CSS for all styling.
 * Custom fonts and colors are configured in functions.php via Tailwind config.
 * This file only contains the WordPress theme header (required) and minimal WordPress compatibility styles.
 */

/* WordPress Core Alignment Classes (for backward compatibility) */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Block Editor Support */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   CUSTOM AI MINI CART STYLING
   ======================================== */

/* Custom AI Mini Cart - Footer Section padding only */
.ai-mini-cart .mini-cart-footer {
    padding: 1rem 1.5rem !important;
}

/* View Cart Button - Outline Style */
.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) {
    background: transparent !important;
    color: #8c5a2e !important;
    border: 2px solid #c38743 !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 16px !important;
    order: 2;
}

.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover {
    background: #c38743 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 135, 67, 0.3);
}

/* Checkout Button - Primary Style */
.woocommerce-mini-cart__buttons .button.checkout {
    background: #c38743 !important;
    color: white !important;
    border: 2px solid #c38743 !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 16px !important;
    order: 1;
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #a86f37 !important;
    border-color: #a86f37 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 135, 67, 0.4);
}

/* Subtotal Styling */
.woocommerce-mini-cart__total.total strong {
    font-family: 'Barlow', sans-serif;
    color: #3a2f25;
    font-size: 18px;
}

.woocommerce-mini-cart__total.total .woocommerce-Price-amount {
    font-family: 'Barlow', sans-serif;
    color: #c38743;
    font-weight: 700;
    font-size: 20px;
}

/* ========================================
   WOOCOMMERCE PAGINATION STYLING
   ======================================== */

/* WooCommerce Pagination - Clean Professional Style */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 0.625rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.woocommerce-pagination ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Style for both links and spans (current page) */
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.75rem 1.125rem;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #6e5840;
    background-color: white;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Hover state for links only */
.woocommerce-pagination a.page-numbers:hover {
    background-color: #fef9f3;
    color: #c38743;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 135, 67, 0.2);
}

/* Current page (span element) */
.woocommerce-pagination .page-numbers.current {
    background-color: #c38743;
    color: white;
    cursor: default;
    box-shadow: 0 4px 12px rgba(195, 135, 67, 0.3);
}

/* Previous/Next buttons */
.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next {
    padding: 0.625rem 1.25rem;
    font-size: 1.125rem;
}

/* Dots separator */
.woocommerce-pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    cursor: default;
    min-width: auto;
    padding: 0.625rem 0.5rem;
}

.woocommerce-pagination .page-numbers.dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    color: #6e5840;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-pagination {
        margin: 2rem 0;
    }

    .woocommerce-pagination ul.page-numbers {
        gap: 0.5rem;
    }

    .woocommerce-pagination .page-numbers {
        min-width: 2rem;
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }

    .woocommerce-pagination .page-numbers.prev,
    .woocommerce-pagination .page-numbers.next {
        padding: 0.625rem 1rem;
        font-size: 1rem;
    }

    .woocommerce-pagination .page-numbers.dots {
        padding: 0.625rem 0.5rem;
    }
}
