:root {
    --haroone-primary-color: #111827;
    --haroone-secondary-color: #4b5563;
    --haroone-accent-color: #0077cc;
    --haroone-background-color: #f8fafc;
    --haroone-card-background: #ffffff;
    --haroone-border-color: #e5e7eb;
    --haroone-hover-background: #eef2f6;
    --haroone-hover-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
    --haroone-transition-speed: 0.3s;
    --haroone-border-radius: 16px;
    --haroone-border-radius-sm: 8px;
    --haroone-container-max-width: 1280px;
    --haroone-card-min-width: 260px;
    --haroone-card-height: 220px;
}


.haroone-brand-page .page-wrapper .page-main {
    max-width: var(--haroone-container-max-width);
    width: 100%;
    padding: 0;
    background: var(--haroone-background-color);
    color: var(--haroone-primary-color);
}

html {
    scroll-behavior: smooth;
}

.haroone-brands-container {
    max-width: var(--haroone-container-max-width);
    margin: 48px auto 96px;
    padding: 0 24px;
    animation: fadeIn 0.5s ease;
}

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

.haroone-brand-list-info {
    margin-bottom: 48px;
}

.haroone-brands-title {
    text-align: center;
    font-size: 40px;
    color: var(--haroone-primary-color);
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    padding-bottom: 16px;
}

.haroone-brands-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--haroone-accent-color);
    border-radius: 3px;
}

.haroone-brands-filter {
    position: relative;
    margin: 0 auto 32px;
    max-width: 500px;
}

.haroone-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    color: var(--haroone-secondary-color);
}

.haroone-brand-search {
    width: 100% !important;
    padding: 14.4px 48px !important;
    font-size: 16px !important;
    border-radius: 9999px !important;
    border: 1px solid var(--haroone-border-color) !important;
    background-color: #ffffff !important;
    color: var(--haroone-primary-color) !important;
    outline: none;
    transition: all var(--haroone-transition-speed) ease !important;
}

.haroone-brand-search:focus {
    border-color: var(--haroone-accent-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.12) !important;
}

.haroone-brand-search::placeholder {
    color: #6b7280;
    opacity: 0.8;
}

.haroone-clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--haroone-secondary-color);
    padding: 4px;
    border-radius: 50%;
    opacity: 0.7;
    transition: all var(--haroone-transition-speed) ease;
    display: none;
}

.haroone-clear-search:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--haroone-primary-color);
}

.haroone-clear-search svg {
    width: 18px;
    height: 18px;
}

.haroone-brands-sorting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    position: relative;
}

.haroone-toggle-sort {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--haroone-secondary-color);
    padding: 8px;
    border-radius: var(--haroone-border-radius-sm);
    transition: all var(--haroone-transition-speed) ease;
}

.haroone-toggle-sort:hover, .haroone-toggle-sort.active {
    color: var(--haroone-accent-color);
    background-color: rgba(0, 119, 204, 0.08);
}

.haroone-sort-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--haroone-card-background);
    border: 1px solid var(--haroone-border-color);
    border-radius: var(--haroone-border-radius-sm);
    padding: 8px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.haroone-sort-btn {
    background: none;
    border: none;
    color: var(--haroone-primary-color);
    padding: 8px 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--haroone-transition-speed) ease;
}

.haroone-sort-btn:hover {
    background-color: var(--haroone-accent-color);
    border-radius: var(--haroone-border-radius-sm);
}

.haroone-toggle-filter {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--haroone-secondary-color);
    padding: 8px;
    border-radius: var(--haroone-border-radius-sm);
    transition: all var(--haroone-transition-speed) ease;
}

.haroone-toggle-filter:hover, .haroone-toggle-filter.active {
    color: var(--haroone-accent-color);
    background-color: rgba(0, 119, 204, 0.08);
}

.haroone-brands-letter-filter {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}

.haroone-letter-btn {
    width: auto;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--haroone-card-background) !important;
    border: 1px solid var(--haroone-border-color) !important;
    color: var(--haroone-secondary-color);
    border-radius: var(--haroone-border-radius-sm) !important;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--haroone-transition-speed) ease !important;
}

.haroone-letter-btn.active, .haroone-letter-btn:hover {
    background-color: var(--haroone-accent-color) !important;
    color: var(--haroone-background-color) !important;
    border-color: var(--haroone-accent-color) !important;
}

.haroone-brands-stats {
    display: flex;
    justify-content: flex-start;
    color: var(--haroone-secondary-color);
    font-size: 14px;
    gap:5px;
}

#haroone-brand-count {
    font-weight: 600;
    color: var(--haroone-primary-color);
}

.haroone-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--haroone-card-min-width), 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.haroone-brand-card {
    perspective: 1000px;
    transition: opacity var(--haroone-transition-speed) ease, transform var(--haroone-transition-speed) ease;
    height: var(--haroone-card-height);
}

.haroone-brand-card-inner {
    height: 100%;
    background: var(--haroone-card-background);
    border-radius: var(--haroone-border-radius);
    border: 1px solid var(--haroone-border-color);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
    transition: all var(--haroone-transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.haroone-brand-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 204, 0.08), transparent 50%);
    opacity: 0;
    z-index: 1;
    transition: opacity var(--haroone-transition-speed) ease;
    border-radius: var(--haroone-border-radius);
}

.haroone-brand-card-inner:hover::before {
    opacity: 1;
}

.haroone-brand-card-inner:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: var(--haroone-hover-shadow);
    border-color: var(--haroone-accent-color);
}

.haroone-brand-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 24px;
    position: relative;
    z-index: 2;
    height: 100%;
}

.haroone-brand-logo-container {
    position: relative;
    margin-bottom: 1.6px;
    height: 120px; 
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e57a;
    border-radius: var(--haroone-border-radius-sm);
    overflow: hidden;
    padding: 5px;
}

.haroone-brand-logo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, #e5e7eb 8%, #f1f5f9 18%, #e5e7eb 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--haroone-border-radius-sm);
}

.haroone-brand-logo {
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain;
    transition: transform var(--haroone-transition-speed) ease, opacity var(--haroone-transition-speed) ease;
    opacity: 0;
    z-index: 2;
    position: relative;
}

.haroone-brand-logo.loaded {
    opacity: 1;
}

.haroone-brand-card-inner:hover .haroone-brand-logo.loaded {
    transform: scale(1.05);
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.haroone-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--haroone-primary-color);
    margin: 10px auto;
    transition: color var(--haroone-transition-speed) ease;
    text-align: center;
}

.haroone-brand-card-inner:hover .haroone-brand-name {
    color: var(--haroone-accent-color);
}

.haroone-product-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--haroone-secondary-color);
    font-size: 14px;
    margin-top: auto;
    justify-content: center;
}

.haroone-product-count .count {
    background: var(--haroone-accent-color);
    color: var(--haroone-background-color);
    width: 20.8px;
    height: 20.8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 11px;
}

.haroone-brands-empty, .haroone-brands-empty-search {
    text-align: center;
    padding: 64px 32px;
    color: var(--haroone-secondary-color);
    background: rgba(0, 119, 204, 0.04);
    border-radius: var(--haroone-border-radius);
    border: 1px dashed var(--haroone-border-color);
    animation: fadeIn 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.haroone-brands-empty-search h3, .haroone-brands-empty h3 {
    color: var(--haroone-primary-color);
    margin: 8px 0;
    font-size: 20px;
}

.haroone-brands-empty-search p, .haroone-brands-empty p {
    margin: 0;
    opacity: 0.8;
}

.haroone-empty-search-icon, .haroone-empty-brands-icon {
    color: var(--haroone-secondary-color);
    opacity: 0.6;
    margin-bottom: 8px;
}

.haroone-reset-search-btn {
    background-color: var(--haroone-accent-color);
    color: var(--haroone-background-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--haroone-border-radius-sm);
    font-weight: 500;
    margin-top: 16px;
    cursor: pointer;
    transition: all var(--haroone-transition-speed) ease;
}

.haroone-reset-search-btn:hover {
    background-color: #0a8ad8;
    transform: translateY(-2px);
}

.haroone-brands-container .primary > .action:after,
.haroone-brands-container a.action.primary:after,
.haroone-brands-container .action.primary:after,
.haroone-brands-container .button.primary:after,
.haroone-brands-container a.button.primary:after,
.haroone-brands-container a.button:after,
.haroone-brands-container .button:after,
.haroone-brands-container button:after {
    content: none !important;
    display: none !important;
}

@media (max-width: 1280px) {
    .haroone-brands-container {
        padding: 0 32px;
    }
}

@media (max-width: 992px) {
    :root {
        --haroone-card-min-width: 220px;
        --haroone-card-height: 200px;
    }
    
    .haroone-brands-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --haroone-card-min-width: 200px;
        --haroone-card-height: 190px;
    }
    
    .haroone-brands-grid {
        gap: 24px;
    }
    
    .haroone-brand-link {
        padding: 20px;
    }
    
    .haroone-brands-title {
        font-size: 32px;
    }
    
    .haroone-brands-letter-filter {
        gap: 5.6px;
    }
    
    .haroone-letter-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .haroone-brand-search {
     padding: 11.2px 48px;
    }
    .haroone-brand-card-inner:hover {
       transform: none !important ;
    }
    :root {
        --haroone-card-min-width: 150px;
        --haroone-card-height: 180px;
    }
    
    .haroone-brands-container {
        padding: 0 16px;
        margin: 32px auto 64px;
    }
    
    .haroone-brands-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .haroone-brand-list-info {
        margin-bottom: 32px;
    }
    
    .haroone-brands-grid {
        gap: 16px;
    }
    
    .haroone-brand-name {
        font-size: 15px;
    }
    
    .haroone-brands-sorting {
        justify-content: center;
    }
    
    .haroone-brand-logo-container {
        height: 60px;
        max-width: 400px;
    }
    
    .haroone-brands-letter-filter {
        gap: 3.2px;
    }
    
    .haroone-letter-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

