/* brand.css - Brand page specific styles */

/* ---- Layout ---- */
.brand-layout {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ---- Brand Header ---- */
.brand-header {
    margin-bottom: 32px;
}

.brand-header-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.brand-header-logo img {
    max-width: 198px;
    max-height: 99px;
    object-fit: contain;
}

.brand-header-desc {
    text-align: center;
    max-width: 889px;
    margin: 0 auto 32px;
}

.brand-header-desc p {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 1.6px;
    color: var(--color-text-main);
}

.brand-header-desc p:last-child {
    margin-bottom: 0;
}

.brand-header-divider {
    height: 1px;
    background-color: rgba(42, 25, 14, 0.12);
    margin-top: 8px;
}

/* ---- Toolbar ---- */
.brand-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 32px;
}


.brand-results-count {
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 1.6px;
    color: rgba(0, 0, 0, 0.5);
    text-align: right;
    white-space: nowrap;
}

/* ---- Product Grid ---- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
}

.brand-grid .product-card {
    width: 100%;
    height: auto;
    aspect-ratio: 285 / 426;
    border-color: #efefef;
    min-height: 0;
}

.brand-grid .product-image-container {
    top: 0;
    left: 0;
    right: 0;
    bottom: 16.5%;
    padding: 5% 6%;
    background-color: var(--color-white);
}

.brand-grid .product-image {
    object-fit: contain;
}

.brand-grid .product-top-info {
    top: 5.3%;
    left: 7.97%;
    right: 7.97%;
    z-index: 5;
}

.brand-grid .product-bottom-info {
    bottom: 3%;
    left: 8%;
    right: 8%;
    gap: 11px;
    z-index: 5;
    text-align: center;
}

.brand-grid .product-rate {
    font-size: 11.9px;
    letter-spacing: 1.19px;
    gap: 15.8px;
    color: #2a190e;
}

.brand-grid .product-rate img {
    width: 11.36px;
    height: 11.36px;
}

.brand-grid .product-badge {
    padding: 5.68px 11.36px;
    font-size: 11.9px;
    letter-spacing: 1.19px;
    border-color: rgba(42, 25, 14, 0.24);
    color: #2a190e;
}

.brand-grid .product-price {
    font-size: 19.8px;
    letter-spacing: 1.98px;
    color: #af6f44;
}

.brand-grid .product-name {
    font-size: 15.8px;
    letter-spacing: 1.58px;
    color: #2a190e;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.page-item {
    font-family: var(--font-primary);
    font-size: 15.787px;
    letter-spacing: 1.5787px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.page-item:hover {
    color: var(--color-text-main);
}

.page-item.active {
    color: var(--color-text-main);
    position: relative;
}

.page-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 1px;
    background-color: var(--color-text-main);
}

.page-ellipsis {
    color: rgba(0, 0, 0, 0.5);
}

.page-next {
    width: 36px;
    height: 36px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .brand-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .brand-results-count {
        text-align: center;
    }

    .brand-header-logo img {
        max-width: 140px;
    }

    .brand-header-desc {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }
}