/* Casual products and creators sections for style category */

/* --- Casual Products Section --- */
.stylized-products-section {
    background-color: #f9f9f9;
    padding: 48px 24px;
}
@media (min-width: 768px) {
    .stylized-products-section {
        padding: 70px 48px;
    }
}
@media (min-width: 1024px) {
    .stylized-products-section {
        padding-left: 96px;
        padding-right: 96px;
    }
}

.stylized-products-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.stylized-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.stylized-products-heading {
    font-size: 24px;
    font-weight: 500;
    color: #0c0c0c;
}
@media (min-width: 768px) {
    .stylized-products-heading {
        font-size: 30px;
    }
}

.stylized-products-note {
    margin-bottom: 24px;
    font-size: 16px;
    color: #545454;
}
@media (min-width: 768px) {
    .stylized-products-note {
        font-size: 18px;
    }
}

/* Popular items tags */
.stylized-popular-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.stylized-popular-tag {
    border-radius: 9999px;
    border: 1px solid #e6dff0;
    background-color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #0c0c0c;
}

/* Products grid */
.stylized-products-grid {
    list-style: none;
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
}
@media (min-width: 640px) {
    .stylized-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stylized-product-item {
    list-style: none;
}

.stylized-product-card,
.stylized-product-card:hover,
.stylized-product-card:visited,
.stylized-product-card * {
    text-decoration: none;
}

.stylized-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    border: 1px solid #e6dff0;
    background-color: #ffffff;
    padding: 16px;
    color: inherit;
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
a.stylized-product-card:hover {
    border-color: #7a4ca5;
}

.stylized-product-image {
    flex-shrink: 0;
    height: 80px;
    width: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.stylized-product-info {
    min-width: 0;
    flex: 1;
}

.stylized-product-brand {
    font-size: 14px;
    font-weight: 500;
    color: #7a4ca5;
    margin: 0;
}

.stylized-product-name {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #0c0c0c;
}
@media (min-width: 768px) {
    .stylized-product-name {
        font-size: 16px;
    }
}

/* Navigation buttons */
.stylized-products-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.stylized-products-nav-mobile {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.stylized-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 9999px;
    border: 1px solid #e6dff0;
    background-color: #ffffff;
    color: #7a4ca5;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}
.stylized-nav-button:hover:not(:disabled) {
    border-color: #7a4ca5;
    background-color: #f7f3fb;
}
.stylized-nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.stylized-nav-next {
    background-color: #7a4ca5;
    color: #ffffff;
    border: 1px solid #7a4ca5;
    box-shadow: 0 2px 8px rgba(122, 76, 165, 0.24);
}
.stylized-nav-next:hover:not(:disabled) {
    background-color: #69418e;
}
.stylized-nav-next:disabled {
    opacity: 0.4;
}

.stylized-nav-button svg {
    width: 20px;
    height: 20px;
}

/* --- Casual Creators Section --- */
.stylized-creators-section {
    padding: 48px 24px;
}
@media (min-width: 768px) {
    .stylized-creators-section {
        padding: 70px 48px;
    }
}
@media (min-width: 1024px) {
    .stylized-creators-section {
        padding-left: 96px;
        padding-right: 96px;
    }
}

.stylized-creators-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.stylized-creators-heading {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 500;
    color: #0c0c0c;
}
@media (min-width: 768px) {
    .stylized-creators-heading {
        font-size: 30px;
    }
}

.stylized-creators-intro {
    margin-bottom: 32px;
    font-size: 16px;
    color: #545454;
}

.stylized-creators-grid {
    list-style: none;
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 0;
}
@media (min-width: 640px) {
    .stylized-creators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .stylized-creators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stylized-creator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 28px;
    border: 1px solid #ece8f1;
    background-color: #fdfcff;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
    .stylized-creator-card {
        padding: 28px;
    }
}
.stylized-creator-card:hover {
    transform: translateY(-4px);
    border-color: #dccdea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stylized-creator-avatar {
    height: 80px;
    width: 80px;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 0 0 4px #f1ebf7;
}

.stylized-creator-username {
    margin-top: 20px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    color: #0c0c0c;
}

.stylized-creator-count {
    margin-top: 4px;
    font-size: 14px;
    color: #777777;
}

.stylized-creator-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #7a4ca5;
}
.stylized-creator-card:hover .stylized-creator-link svg {
    transform: translateX(4px);
}

.stylized-creator-link svg {
    width: 16px;
    height: 16px;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utility classes for responsive display */
.hidden {
    display: none;
}

@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
    .sm\:hidden {
        display: none;
    }
}

/* --- Stylized Outfits Section --- */
.stylized-outfits-section {
    padding: 48px 24px;
}
@media (min-width: 768px) {
    .stylized-outfits-section {
        padding: 70px 48px;
    }
}
@media (min-width: 1024px) {
    .stylized-outfits-section {
        padding-left: 96px;
        padding-right: 96px;
    }
}

.stylized-outfits-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.stylized-outfits-heading {
    margin-bottom: 32px;
    font-size: 24px;
    font-weight: 500;
    color: #0c0c0c;
}
@media (min-width: 768px) {
    .stylized-outfits-heading {
        font-size: 30px;
    }
}

.stylized-outfits-empty {
    color: #545454;
}

.stylized-outfits-grid {
    list-style: none;
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 0;
}
@media (min-width: 640px) {
    .stylized-outfits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .stylized-outfits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Outfit card styles */
.outfit-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.outfit-card-inner {
    height: 100%;
}

.outfit-card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 24px;
    background-color: #f1f0f5;
}
@media (min-width: 768px) {
    .outfit-card-image {
        border-radius: 28px;
    }
}

/* The outfit photo, as an <img> so it can be indexed; the pill and overlay sit on top of it. */
.outfit-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.creator-pill {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    max-width: calc(100% - 20px);
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(98, 93, 81, 0.75);
    padding: 4px 12px 4px 4px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 768px) {
    .creator-pill {
        left: 12px;
        top: 12px;
    }
}

.creator-pill-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, #7a4ca5, #8b65ae);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}
@media (min-width: 768px) {
    .creator-pill-avatar {
        height: 28px;
        width: 28px;
    }
}

.creator-pill-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}
@media (min-width: 768px) {
    .creator-pill-username {
        font-size: 14px;
    }
}

.outfit-card-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25) 55%, transparent);
    padding: 56px 12px 12px;
    color: #ffffff;
}
@media (min-width: 768px) {
    .outfit-card-overlay {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
    }
}

.outfit-card-overlay-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}
@media (min-width: 768px) {
    .outfit-card-overlay-row {
        gap: 10px;
        font-size: 14px;
    }
}

.outfit-card-likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.outfit-card-likes svg {
    width: 16px;
    height: 16px;
}

.outfit-card-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
@media (min-width: 768px) {
    .outfit-card-title {
        font-size: 16px;
    }
}
