@charset "UTF-8";
/*
 * Brand Archive Page Styles
 * Styles for taxonomy-product_brand.php template
 */

/* Brand Header Section */
.brand-archive-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 20px 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.brand-archive-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand-archive-logo-wrapper {
    flex-shrink: 0;
}

.brand-archive-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-archive-logo-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-archive-logo-placeholder span {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-archive-info {
    flex: 1;
}

.brand-archive-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.brand-archive-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 20px 0;
    max-width: 700px;
}

.brand-archive-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.brand-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.brand-meta-item svg {
    opacity: 0.6;
}

.brand-meta-item strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Filter Bar */
.brand-filter-bar {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:hover {
    border-color: #1a1a1a;
}

.filter-select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 6px;
}

.view-toggle-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.view-toggle-btn:hover {
    color: #1a1a1a;
}

.view-toggle-btn.active {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Products Container - Compatible with existing styles */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* List View Toggle */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    max-width: 100%;
}

.products-grid.list-view .product-image-link {
    width: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    text-align: left;
}

.products-grid.list-view .product-actions {
    flex-shrink: 0;
}

/* Pagination */
.brand-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* No Products Message */
.no-products-brand {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-products-brand svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-products-brand h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.no-products-brand p {
    font-size: 16px;
    margin: 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-archive-header {
        padding: 40px 20px 30px;
    }

    .brand-archive-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .brand-archive-logo,
    .brand-archive-logo-placeholder {
        width: 140px;
        height: 140px;
    }

    .brand-archive-logo-placeholder span {
        font-size: 48px;
    }

    .brand-archive-title {
        font-size: 32px;
    }

    .brand-archive-description {
        font-size: 15px;
    }

    .brand-archive-meta {
        justify-content: center;
    }

    .brand-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-filter-left,
    .brand-filter-right {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    /* List view adjustments for mobile */
    .products-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }

    .products-grid.list-view .product-image-link {
        width: 100%;
    }

    .products-grid.list-view .product-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-archive-header {
        padding: 30px 15px 20px;
    }

    .brand-archive-logo,
    .brand-archive-logo-placeholder {
        width: 120px;
        height: 120px;
    }

    .brand-archive-logo-placeholder span {
        font-size: 40px;
    }

    .brand-archive-title {
        font-size: 28px;
    }

    .brand-filter-bar {
        padding: 0 15px;
    }

    .products-container {
        padding: 0 15px 40px;
    }
}
