.shox-pe {
    --pe-text: #161616;
    --pe-muted: #595959;
    --pe-border: #e7e7e7;
    --pe-button: #333333;
    --pe-button-hover: #111111;
    --pe-skeleton: #eeeeee;
    --pe-skeleton-highlight: #f7f7f7;
    box-sizing: border-box;
    width: 100%;
    margin: 34px 0;
    color: var(--pe-text);
    font-family: inherit;
}

.shox-pe[hidden] {
    display: none !important;
}

.shox-pe *,
.shox-pe *::before,
.shox-pe *::after {
    box-sizing: border-box;
}

.shox-pe__header {
    margin: 0 0 24px;
    text-align: center;
}

.shox-pe__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shox-pe__title {
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--pe-text);
}

.shox-pe__bolt {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.shox-pe__subtitle {
    min-height: 1.4em;
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--pe-text);
}

.shox-pe__container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Layout de colunas é responsabilidade do Bootstrap já carregado pelo site. */
.shox-pe__grid {
    margin-bottom: -16px;
}

.shox-pe__col {
    margin-bottom: 16px;
}

.shox-pe__card {
    width: 100%;
    min-width: 0;
    min-height: 365px;
    height: 100%;
    padding: 26px 30px 24px;
    border: 1px solid var(--pe-border);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.shox-pe__product {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .28s ease, transform .28s ease;
}

.shox-pe--loaded .shox-pe__product {
    opacity: 1;
    transform: translateY(0);
}

.shox-pe__sizes {
    min-height: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--pe-muted);
}

.shox-pe__sizes strong {
    font-weight: 700;
}

.shox-pe__sizes--empty {
    visibility: hidden;
}

.shox-pe__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.7 / 1;
    margin: 0 0 24px;
    text-decoration: none;
    overflow: hidden;
}

.shox-pe__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .28s ease;
}

.shox-pe--loaded .shox-pe__image {
    opacity: 1;
}

.shox-pe__product-title {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 24px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shox-pe__product-title a {
    color: var(--pe-text);
    text-decoration: none;
}

.shox-pe__product-title a:hover {
    text-decoration: underline;
}

.shox-pe__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.shox-pe__price {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.shox-pe__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 4px;
    background: var(--pe-button);
    color: #fff !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background-color .18s ease;
}

.shox-pe__button:hover {
    background: var(--pe-button-hover);
}

.shox-pe__all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.shox-pe__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 7px;
    background: #000;
    color: #fff !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: lowercase;
}

/* Skeleton inicial */
.shox-pe__skeleton {
    overflow: hidden;
}

.shox-pe__skeleton-line,
.shox-pe__skeleton-image,
.shox-pe__skeleton-button {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--pe-skeleton);
}

.shox-pe__skeleton-line::after,
.shox-pe__skeleton-image::after,
.shox-pe__skeleton-button::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--pe-skeleton-highlight), transparent);
    animation: shox-pe-shimmer 1.4s infinite;
}

.shox-pe__skeleton-line {
    width: 100%;
    height: 14px;
    margin-bottom: 9px;
}

.shox-pe__skeleton-line--size {
    width: 35%;
    margin-bottom: 18px;
}

.shox-pe__skeleton-line--short {
    width: 72%;
    margin: 0 auto 28px;
}

.shox-pe__skeleton-line--price {
    width: 42%;
    margin: 0;
}

.shox-pe__skeleton-image {
    width: 100%;
    aspect-ratio: 1.7 / 1;
    margin-bottom: 26px;
}

.shox-pe__skeleton-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.shox-pe__skeleton-button {
    width: 105px;
    height: 38px;
}

@keyframes shox-pe-shimmer {
    100% { transform: translateX(100%); }
}

@media (max-width: 1100px) {
    .shox-pe__card {
        padding: 22px 18px 20px;
    }

    .shox-pe__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .shox-pe__button {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .shox-pe {
        margin: 28px 0;
    }

    .shox-pe__header {
        margin-bottom: 18px;
    }

    .shox-pe__title {
        font-size: 20px;
    }

    .shox-pe__subtitle {
        padding: 0 16px;
        font-size: 13px;
    }

    /* Bootstrap col-6 / col-xs-6 mantém 2 cards por linha no mobile. */
    .shox-pe__col {
        margin-bottom: 12px;
    }

    .shox-pe__grid {
        margin-bottom: -12px;
    }

    .shox-pe__card {
        min-height: 330px;
        padding: 16px 12px;
    }

    .shox-pe__image-wrap {
        margin-bottom: 16px;
    }

    .shox-pe__product-title {
        min-height: 42px;
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1.35;
    }

    .shox-pe__sizes {
        font-size: 12px;
    }

    .shox-pe__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

    .shox-pe__price {
        font-size: 15px;
        text-align: center;
    }

    .shox-pe__button {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 11px;
    }

    .shox-pe__all-wrap {
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shox-pe__product,
    .shox-pe__image,
    .shox-pe__button {
        transition: none;
    }

    .shox-pe__skeleton-line::after,
    .shox-pe__skeleton-image::after,
    .shox-pe__skeleton-button::after {
        animation: none;
    }
}
