.brand-profile-container {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.brand-profile-hero {
    position: relative;
    background: #ffffff;
}

.brand-profile-banner {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: #19191e;
}

.brand-profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-profile-banner-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(113, 75, 255, 0.55),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #151519,
            #2f2c3c
        );
}

.brand-profile-banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.56)
        );
}

.brand-profile-identity {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 24px;

    margin-top: -58px;
    padding: 0 0 36px;
}

.brand-profile-logo {
    display: flex;
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 6px solid #ffffff;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.brand-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-profile-logo span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #17171b;
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
}

.brand-profile-copy {
    flex: 1;
    min-width: 0;
    padding-top: 64px;
}

.brand-profile-copy h1 {
    margin: 0;
    color: #17171b;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -3px;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.brand-profile-copy > span {
    display: block;
    margin-top: 10px;
    color: #74747d;
    font-size: 12px;
}

.brand-profile-eyebrow {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.brand-profile-copy .brand-profile-eyebrow {
    color: #6c4cff;
}

.brand-profile-eyebrow-dark {
    color: #6c4cff;
}

.brand-follow-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 64px;
    padding: 0 22px;
    border: 1px solid #dedee5;
    border-radius: 12px;
    background: #ffffff;
    color: #17171b;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}


.brand-follow-area {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    margin-top: 64px;
}

.brand-follow-area .brand-follow-button {
    margin: 0;
}

.brand-follower-count {
    color: #77777f;
    font-size: 10px;
    font-weight: 600;
}

.brand-follow-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 680px) {
    .brand-follow-area {
        width: 100%;
        margin-top: 0;
    }

    .brand-follow-area .brand-follow-button {
        width: 100%;
    }
}

.brand-follow-button.active {
    border-color: #17171b;
    background: #17171b;
    color: #ffffff;
}

.brand-profile-about {
    padding: 70px 0;
    border-top: 1px solid #ececf0;
    border-bottom: 1px solid #ececf0;
    background: #fafafd;
}

.brand-about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    gap: 80px;
}

.brand-about-grid h2 {
    max-width: 450px;
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -2px;
}

.brand-about-grid > div:last-child > p {
    margin: 0;
    color: #606068;
    font-size: 14px;
    line-height: 1.85;
}

.brand-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.brand-social-links a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid #dedee5;
    border-radius: 10px;
    background: #ffffff;
    color: #34343a;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-social-links a:hover {
    border-color: #17171b;
    color: #17171b;
}

.brand-products-section {
    padding: 85px 0 120px;
    background: #ffffff;
}

.brand-products-heading {
    margin-bottom: 28px;
}

.brand-products-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -2px;
}

.brand-products-heading span {
    display: block;
    margin-top: 9px;
    color: #77777f;
    font-size: 12px;
}

.brand-collections {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.brand-collections a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #e0e0e5;
    border-radius: 999px;
    color: #55555d;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-collections a.active {
    border-color: #17171b;
    background: #17171b;
    color: #ffffff;
}

.brand-collections small {
    font-size: 9px;
    opacity: 0.7;
}

.brand-products-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px auto auto;
    gap: 11px;
    margin-bottom: 35px;
    padding: 14px;
    border: 1px solid #e2e2e8;
    border-radius: 15px;
    background: #fafafd;
}

.brand-products-search {
    position: relative;
}

.brand-products-search i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: #85858e;
    transform: translateY(-50%);
}

.brand-products-search input,
.brand-products-sort select {
    width: 100%;
    height: 47px;
    border: 1px solid #dfdfe5;
    border-radius: 11px;
    background: #ffffff;
    outline: none;
}

.brand-products-search input {
    padding: 0 15px 0 43px;
}

.brand-products-sort select {
    padding: 0 14px;
}

.brand-products-search input:focus,
.brand-products-sort select:focus {
    border-color: #6c4cff;
}

.brand-products-toolbar > button {
    min-height: 47px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: #17171b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.brand-products-toolbar .brand-clear-filters {
    border: 1px solid #dedee5;
    background: #ffffff;
    color: #55555d;
}

.brand-product-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px 18px;
}

.brand-product-grid.loading {
    min-height: 420px;
    opacity: 0.45;
    pointer-events: none;
}

.brand-product-grid.loading::after {
    content: "";
    position: absolute;
    top: 130px;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 3px solid #dedee4;
    border-top-color: #17171b;
    border-radius: 50%;
    animation: brand-loading-spin 0.7s linear infinite;
}

.brand-product-card {
    min-width: 0;
}

.brand-product-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.78;
    border-radius: 15px;
    background: #f1f1f3;
}

.brand-product-media > a:first-child {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 0.35s ease,
        transform 0.45s ease;
}

.brand-product-image-hover {
    opacity: 0;
}

.brand-product-card:hover .brand-product-image-main {
    opacity: 0;
}

.brand-product-card:hover .brand-product-image-hover {
    opacity: 1;
    transform: scale(1.025);
}

.brand-product-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    background: #17171b;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    width: 37px;
    height: 37px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #17171b;
    cursor: pointer;
}

.brand-product-action {
    position: absolute;
    right: 13px;
    bottom: 13px;
    left: 13px;
    z-index: 3;
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #ffffff;
    color: #17171b;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.25s ease;
}

.brand-product-card:hover .brand-product-action {
    opacity: 1;
    transform: translateY(0);
}

.brand-product-details {
    padding: 14px 3px 0;
}

.brand-product-details > p {
    margin: 0 0 6px;
    color: #85858d;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-product-details h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.brand-product-details h3 a {
    color: #17171b;
    text-decoration: none;
}

.brand-product-price {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
}

.brand-product-price strong {
    font-size: 12px;
}

.brand-product-price del {
    color: #9a9aa2;
    font-size: 10px;
}

.brand-products-empty {
    grid-column: 1 / -1;
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed #d7d7dd;
    border-radius: 16px;
    text-align: center;
}

.brand-products-empty i {
    margin-bottom: 16px;
    color: #6c4cff;
    font-size: 34px;
}

.brand-products-empty h3 {
    margin: 0;
}

.brand-products-empty p {
    color: #76767e;
}

.brand-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
}

.brand-pagination > div {
    display: flex;
    gap: 7px;
}

.brand-pagination button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #dfdfe5;
    border-radius: 9px;
    background: #ffffff;
    color: #55555d;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.brand-pagination button.active {
    border-color: #17171b;
    background: #17171b;
    color: #ffffff;
}

.brand-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.brand-profile-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 3000;
    padding: 14px 18px;
    border-radius: 11px;
    background: #17171b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: 0.25s ease;
}

.brand-profile-toast.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes brand-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .brand-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .brand-products-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .brand-about-grid {
        gap: 35px;
    }
}

@media (max-width: 680px) {
    .brand-profile-container {
        width: calc(100% - 24px);
    }

    .brand-profile-banner {
        height: 260px;
    }

    .brand-profile-identity {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-top: -52px;
    }

    .brand-profile-logo {
        width: 105px;
        height: 105px;
        flex-basis: 105px;
        border-width: 4px;
        border-radius: 20px;
    }

    .brand-profile-copy {
        min-width: calc(100% - 130px);
        padding-top: 55px;
    }

    .brand-profile-copy h1 {
        font-size: 34px;
        letter-spacing: -2px;
    }

    .brand-follow-button {
        width: 100%;
        margin: 0;
    }

    .brand-about-grid,
    .brand-products-toolbar {
        grid-template-columns: 1fr;
    }

    .brand-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .brand-product-grid {
        grid-template-columns: 1fr;
    }

    .brand-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}