/* ==========================================
   EASYPARA BRANDS PAGE STYLES
   Enhanced Professional Design
   ========================================== */

/* ==========================================
   BRANDS HEADER / HERO SECTION
   ========================================== */

.enhanced-brands-header {
    background: linear-gradient(135deg, #1a5f4f 0%, #145246 50%, #0d3d33 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.enhanced-brands-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.enhanced-brands-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brands-hero {
    text-align: center;
    position: relative;
    z-index: 1;
}

.enhanced-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.enhanced-breadcrumb .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.brands-title-section {
    margin-bottom: 2rem;
}

.brands-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.title-icon {
    display: inline-block;
    margin-right: 1rem;
    color: #ffa500;
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.brands-hero-description {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ==========================================
   STATS CARDS
   ========================================== */

.brands-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 1.5rem;
    color: #ffa500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ==========================================
   BRANDS MAIN SECTION
   ========================================== */

.enhanced-brands-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

/* ==========================================
   CONTROLS & FILTERS
   ========================================== */

.brands-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.results-info {
    font-size: 1rem;
    color: var(--text-secondary);
}

.results-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-weight: 600;
    color: var(--text-primary);
}

.results-badge i {
    color: var(--primary-teal);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.enhanced-sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.enhanced-sort-select:hover {
    border-color: var(--primary-teal);
}

.enhanced-sort-select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(26,95,79,0.1);
}

/* ==========================================
   FILTER BAR
   ========================================== */

.brands-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 16px 0 32px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.brand-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}

.brand-search i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

#brandSearchInput {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-light);
    border-radius: 14px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    font-size: 15px;
}

#brandSearchInput:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(26,95,79,0.1);
}

#brandSearchInput::placeholder {
    color: var(--medium-gray);
}

/* Letter Filter Chips */
.brand-letters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.letter-chip {
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid #E1E5EB;
    background: white;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,95,79,0.15);
    border-color: var(--primary-teal-light);
    background: #f0fffe;
}

.letter-chip:active {
    transform: translateY(0) scale(0.95);
}

.letter-chip.is-active {
    background: linear-gradient(135deg, #1a5f4f, #145246);
    color: white;
    border-color: #1a5f4f;
    box-shadow: 0 4px 12px rgba(26,95,79,0.35);
    transform: scale(1.05);
}

.letter-chip:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* ==========================================
   BRANDS GRID
   ========================================== */

.enhanced-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

/* ==========================================
   BRAND CARDS
   ========================================== */

.enhanced-brand-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    opacity: 1;
}

.enhanced-brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26,95,79,0.18);
    border-color: var(--primary-teal);
}

.brand-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brand-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Brand Card Header */
.brand-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5f1 0%, #f0fffe 100%);
    border-bottom: 1px solid var(--border-light);
}

.ribbon {
    position: absolute;
    top: 12px;
    left: -32px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 6px 40px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.brand-logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brand-logo-frame {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%;
    height: 75%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-brand-card:hover .brand-logo-frame {
    transform: translateY(-4px) rotate(-2deg);
    box-shadow: 0 12px 32px rgba(26,95,79,0.2);
}

.brand-logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-logo-placeholder {
    color: var(--text-primary);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.placeholder-icon {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
}

.brand-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
    z-index: 2;
}

.brand-status-badge i {
    font-size: 0.85rem;
}

/* Brand Card Content */
.brand-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brand-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.brand-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.brand-card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-item i {
    color: var(--primary-teal);
    font-size: 1rem;
}

/* Brand Card Footer */
.brand-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.view-products-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a5f4f, #145246);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26,95,79,0.2);
}

.view-products-btn:hover {
    background: linear-gradient(135deg, #145246, #0d3d33);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,95,79,0.3);
    color: white;
    text-decoration: none;
}

.view-products-btn:active {
    transform: translateY(0);
}

.view-products-btn i {
    transition: transform 0.3s ease;
}

.view-products-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================
   FEATURED BRANDS SECTION
   ========================================== */

.featured-brands-section {
    padding: 4rem 0;
    background: white;
    margin-top: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-title i {
    color: #ffa500;
    margin-right: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.featured-brand-item {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.featured-brand-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,95,79,0.15);
    text-decoration: none;
    color: inherit;
    border-color: var(--primary-teal);
}

.featured-brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.featured-brand-logo {
    flex-shrink: 0;
}

.featured-brand-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    border: 3px solid var(--border-light);
    padding: 8px;
    transition: all 0.3s ease;
}

.featured-brand-item:hover .featured-brand-logo img {
    transform: scale(1.1);
    border-color: var(--primary-teal);
}

.featured-brand-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-light);
}

.featured-brand-info {
    text-align: left;
    flex: 1;
}

.featured-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.featured-brand-products {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.featured-brand-products i {
    color: var(--primary-teal);
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.enhanced-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 3rem auto;
}

.empty-state-icon {
    font-size: 5rem;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.empty-state-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================
   PAGINATION
   ========================================== */

.enhanced-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Mobile */
@media (max-width: 768px) {
    .enhanced-brands-header {
        padding: 3rem 0;
    }
    
    .brands-main-title {
        font-size: 2rem;
    }
    
    .brands-hero-description {
        font-size: 1rem;
    }
    
    .brands-hero-stats {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 12px 16px;
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .enhanced-brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brands-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .brands-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .brand-search {
        max-width: 100%;
    }
    
    .brand-letters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .brand-letters::-webkit-scrollbar {
        height: 6px;
    }
    
    .brand-letters::-webkit-scrollbar-thumb {
        background: var(--border-light);
        border-radius: 3px;
    }
    
    .letter-chip {
        flex-shrink: 0;
    }
    
    .brand-card-header {
        height: 150px;
    }
    
    .brand-logo-frame {
        width: 80%;
        height: 70%;
    }
    
    .featured-brands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .enhanced-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .featured-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .enhanced-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .enhanced-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.brand-card-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.brand-card-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* ==========================================
   BRAND PRODUCTS PAGE STYLES
   ========================================== */

/* Brand Header */
.brand-header {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-dark));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

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

.brand-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.brand-logo img {
    width: 120px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.brand-details h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-description {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
    line-height: 1.6;
}

.brand-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.brand-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.products-header .results-info {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:hover {
    border-color: var(--primary-teal);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(26,95,79,0.1);
}

/* Related Brands Section */
.related-brands {
    background: var(--light-gray);
    padding: 3rem 0;
    margin-top: 3rem;
}

.related-brands h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

.related-brands .brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.related-brands .brand-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.related-brands .brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(26,95,79,0.15);
    text-decoration: none;
    color: inherit;
    border-color: var(--primary-teal);
}

.brand-icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    padding: 6px;
    background: white;
}

.related-brands .brand-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.related-brands .brand-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* ==========================================
   RESPONSIVE - BRAND PRODUCTS PAGE
   ========================================== */

@media (max-width: 768px) {
    .brand-title {
        flex-direction: column;
        gap: 1rem;
    }
    
    .brand-details h1 {
        font-size: 2rem;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .related-brands .brands-grid {
        grid-template-columns: 1fr;
    }
}

