/**
 * WooCommerce-specific styles for Auntie MAPS theme
 *
 * @package AuntieMap
 * @since 1.0.0
 */

/* WooCommerce Layout */
.woocommerce-content {
    margin: 2rem 0;
}

/* WooCommerce Shop Page Styles */

/* Shop Header */
body .woocommerce .shop-header,
body .woocommerce-page .shop-header,
.shop-header {
    background: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 100%) !important;
    color: white !important;
    padding: 3rem 0 !important;
    text-align: center !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 2rem !important;
}

body .woocommerce .shop-title,
body .woocommerce-page .shop-title,
.shop-title {
    color: white !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

body .woocommerce .shop-description,
body .woocommerce-page .shop-description,
.shop-description {
    font-size: 1.125rem !important;
    color: #e9d5ff !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Shop Layout */
.shop-layout {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.shop-sidebar {
    flex: 0 0 300px;
}

.shop-content {
    flex: 1;
}

/* Sidebar Widgets */
.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.widget-title {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Product Categories */
.product-categories {
    list-style: none;
    padding: 0;
}

.product-categories li {
    margin-bottom: 0.5rem;
}

.product-categories a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-categories a:hover {
    background: #f3f4f6;
    color: #6b46c1;
    border-color: #8b5cf6;
}

.count {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Recovery Support Widget */
.recovery-support {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border: none;
    color: white;
}

.recovery-support .widget-title {
    color: white;
}

.support-content p {
    color: white;
    margin-bottom: 1rem;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Products Grid */
.products-wrapper {
    margin-bottom: 2rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
}

.product-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.product-card {
    padding: 1rem;
}

.product-image {
    margin-bottom: 1rem;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.product-info {
    text-align: center;
}

.product-title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.product-title a {
    color: #374151;
    text-decoration: none;
}

.product-title a:hover {
    color: #6b46c1;
}

.product-price {
    color: #6b46c1;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-actions {
    margin-top: 1rem;
}

.product-actions .button {
    background: #6b46c1;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.product-actions .button:hover {
    background: #5b35b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 2rem 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #6b46c1;
    color: white;
    border-color: #6b46c1;
}

.pagination .current {
    background: #6b46c1;
    color: white;
    border-color: #6b46c1;
}

/* No Products Found */
.no-products-found {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.no-products-found h2 {
    color: #374151;
    margin-bottom: 1rem;
}

.no-products-found p {
    color: #6b7280;
}

/* Recovery Impact Section */
.recovery-impact {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 3rem 0;
    margin-top: 3rem;
}

.impact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.impact-content h2 {
    color: #374151;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.impact-item {
    text-align: center;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6b46c1;
    margin-bottom: 0.5rem;
}

.impact-text {
    color: #6b7280;
    font-size: 1rem;
}

/* WooCommerce Default Overrides */
.woocommerce-result-count {
    color: #6b7280;
    font-size: 0.875rem;
}

.woocommerce-ordering select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        flex: none;
        order: 2;
    }

    .shop-content {
        order: 1;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop-header {
        padding: 2rem 1rem;
    }

    .shop-title {
        font-size: 2rem;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .shop-layout {
        padding: 0 0.5rem;
    }
}
