.authors-grid,
.authors-grid *,
.authors-author-profile,
.authors-author-profile *,
.authors-author-products,
.authors-author-products * {
    box-sizing: border-box;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.authors-author-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.authors-author-card:hover {
    transform: translateY(-3px);
}

.authors-author-card__media {
    position: relative;
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none;
}

.authors-author-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.authors-author-card:hover .authors-author-card__media img {
    transform: scale(1.035);
}

.authors-author-card__placeholder,
.authors-author-profile__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    color: #334155;
    font-size: clamp(42px, 8vw, 88px);
    font-weight: 800;
}

.authors-author-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
}

.authors-author-card__title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
}

.authors-author-card__title a {
    color: inherit;
    text-decoration: none;
}

.authors-author-card__subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.authors-author-card__excerpt {
    margin-top: 12px;
    color: #475569;
    font-size: 14px;
    line-height: 2;
}

.authors-author-card__button,
.authors-author-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.authors-author-card__excerpt + .authors-author-card__button,
.authors-author-card__subtitle + .authors-author-card__button,
.authors-author-card__title + .authors-author-card__button,
.authors-author-product-card__price + .authors-author-product-card__button,
.authors-author-product-card__title + .authors-author-product-card__button {
    margin-top: 16px;
}

.authors-author-card__button:hover,
.authors-author-product-card__button:hover {
    background: #0f172a;
    color: #fff;
    transform: translateY(-1px);
}

.authors-author-card__button svg,
.authors-author-product-card__button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.authors-author-profile {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    padding: 28px;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
}

.authors-author-profile__media {
    flex: 0 0 300px;
    width: 300px;
    height: 360px;
    overflow: hidden;
    border-radius: 18px;
    background: #f1f5f9;
}

.authors-author-profile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.authors-author-profile__content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.authors-author-profile__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.5;
}

.authors-author-profile__subtitle {
    margin-top: 6px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.authors-author-profile__bio {
    margin-top: 22px;
    color: #334155;
    font-size: 15px;
    line-height: 2.1;
}

.authors-author-profile__bio > *:first-child {
    margin-top: 0;
}

.authors-author-profile__bio > *:last-child {
    margin-bottom: 0;
}

.authors-author-profile__contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
}

.authors-author-profile__contact-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 100%;
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
}

.authors-author-profile__contact-item svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-top: 4px;
    fill: currentColor;
}

.authors-author-profile__contact-item a {
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.authors-author-profile__contact-item a:hover {
    text-decoration: underline;
}

.authors-author-profile__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.authors-author-profile__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    transition: transform .2s ease, color .2s ease, background-color .2s ease;
}

.authors-author-profile__social-link:hover {
    background: #0f172a;
    color: #fff;
    transform: translateY(-2px);
}

.authors-author-profile__social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.authors-author-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.authors-author-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.authors-author-product-card:hover {
    transform: translateY(-3px);
}

.authors-author-product-card__image {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8fafc;
    text-decoration: none;
}

.authors-author-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.authors-author-product-card:hover .authors-author-product-card__image img {
    transform: scale(1.035);
}

.authors-author-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.authors-author-product-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

.authors-author-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.authors-author-product-card__price {
    margin-top: 10px;
    color: #0f766e;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.authors-author-product-card__price del {
    margin-left: 6px;
    opacity: .6;
}

.authors-pagination,
.authors-author-products-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.authors-pagination .page-numbers,
.authors-author-products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.authors-pagination .page-numbers.current,
.authors-pagination .page-numbers:hover,
.authors-author-products-pagination .page-numbers.current,
.authors-author-products-pagination .page-numbers:hover {
    background: #0f172a;
    color: #fff;
}

.authors-elementor-empty {
    width: 100%;
    padding: 18px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
}

@media (max-width: 1024px) {
    .authors-grid,
    .authors-author-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .authors-author-profile {
        flex-direction: column;
        gap: 22px;
        padding: 20px;
    }

    .authors-author-profile__media {
        flex-basis: auto;
        width: 100%;
        max-width: none;
        height: 360px;
    }

    .authors-author-profile__content {
        width: 100%;
    }

    .authors-author-card__media,
    .authors-author-product-card__image {
        height: 230px;
    }
}

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

    .authors-author-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .authors-author-product-card__content {
        padding: 12px;
    }

    .authors-author-product-card__title {
        font-size: 14px;
        line-height: 1.8;
    }

    .authors-author-product-card__price {
        font-size: 13px;
    }

    .authors-author-product-card__button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Authors homepage showcase */
.authors-showcase,
.authors-showcase * {
    box-sizing: border-box;
}

.authors-showcase {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.authors-showcase__item {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.authors-showcase__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: inherit;
    text-decoration: none;
    outline-offset: 4px;
}

.authors-showcase__ring {
    display: block;
    width: 110px;
    height: 110px;
    max-width: 100%;
    padding: 4px;
    overflow: hidden;
    border: 3px solid #16a34a;
    border-radius: 50%;
    background: #fff;
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.authors-showcase__image {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background: #f1f5f9;
}

.authors-showcase__image img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
    transition: transform .3s ease;
}

.authors-showcase__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 34px;
    font-weight: 800;
}

.authors-showcase__name {
    display: block;
    width: 100%;
    margin-top: 9px;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .22s ease;
}

.authors-showcase__link:hover .authors-showcase__ring,
.authors-showcase__link:focus-visible .authors-showcase__ring {
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, .12);
}

.authors-showcase__link:hover .authors-showcase__image img,
.authors-showcase__link:focus-visible .authors-showcase__image img {
    transform: scale(1.045);
}

.authors-showcase__link:hover .authors-showcase__name,
.authors-showcase__link:focus-visible .authors-showcase__name {
    color: #15803d;
}

@media (max-width: 1024px) {
    .authors-showcase {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .authors-showcase__ring {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 767px) {
    .authors-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .authors-showcase__ring {
        width: 78px;
        height: 78px;
    }

    .authors-showcase__name {
        font-size: 12px;
    }
}
