/* ============================================
   VITRINE PERSONALIZADA - Estilo Laranja
   ============================================ */

.custom-showcase-widget {
    margin: 40px 0;
    padding: 20px 0;
    position:relative
}

/* ============================================
   HEADER DA VITRINE
   ============================================ */

.showcase-header {
    margin-bottom: 25px;
}

.showcase-title {
    font-size: 24px;
    font-weight: 700;
    color: #4d4d4d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-title .arrow-icon {
    font-size: 16px;
}

/* ============================================
   GRID DE PRODUTOS
   ============================================ */

.showcase-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

/* ============================================
   CARD DO PRODUTO
   ============================================ */

.product-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px)
}

/* ============================================
   BADGE DE DESCONTO
   ============================================ */

.discount-badge {
    position: absolute;
    top: 17px;
    right: 20px;
    background: #FF6B00;
    color: #FFFFFF;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
}

.outlet-badge {
    position      : absolute;
    top           : 10px;
    left          : 10px;
    background    : #1237BB;
    color         : #fff;
    font-size     : 11px;
    font-weight   : 700;
    padding       : 3px 8px;
    border-radius : 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
    z-index       : 2;
}
.product-card .discount-badge ~ .outlet-badge {
    top : 36px;
}

/* ============================================
   IMAGEM DO PRODUTO
   ============================================ */

.product-card .product-image-container {
    width: 100%;
    padding-top: 100%; 
    position: relative;
    overflow: hidden;
}
.products.grid .products.list .product-card .product-image-container {
    padding-top: 0;
}
.product-link {
    position: absolute;
    top: 11px;
    left: 50%;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, 0);
    border: 1px solid #0051ff21;
    border-radius: 10px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ============================================
   DETALHES DO PRODUTO
   ============================================ */

.product-details {
    padding: 0px  15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Descrição/Nome */
.product-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 6px 0;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shwocase-swiper .product-description {
    -webkit-line-clamp: 2;
}

/* ============================================
   PREÇOS
   ============================================ */

.product-pricing {
    margin-bottom: 10px;
    line-height: 23px;
}

.price-group {
    margin-bottom: 6px;
}

.price-original {
    display: block;
    font-size: 13px;
    color: #999999;
    margin-bottom: 0;
}

.amount-old {
    text-decoration: line-through;
    font-weight: 500;
}

.price-pix-main {
    display: flex;
    align-items: center;
    grid-gap: .6rem;
}
.price-pix-main .payment-method {
    display: flex;
    align-items: center;
    grid-gap: .5rem;
}

.price-real-product {
    font-size: 16px;
}
.price-real-product>.payment-method {
    font-weight: 500;
    color: #00000091;
}
.price-real-product * {
    color: #00000091;
}
.price-real-product>.price-current-real span {
    font-weight: 600;
}

.price-current {
    display: block;
    font-size: 15px;
    color: #333333;
}
.payment-method {
    font-weight: 800;
    color: black;
}
.amount-current {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

/* Informações de Parcelamento */
.installment-info {
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.installment-info strong {
    color: #333333;
    font-weight: 600;
}

/* ============================================
   BOTÃO COMPRAR
   ============================================ */

.product-card .btn-buy {
    width: 100%;
    background: #FF7E00;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 4px 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .4s ease;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.product-card .btn-buy:hover {
    background: #0051ff;
    box-shadow: 0 4px 8px #0051ff38;
    color: white;
    border: none;
}

.product-card .btn-buy span {
    width:80%;
    text-align: center;
}

.product-card .btn-buy:active {
    transform: translateY(0);
}

.cart-icon {
    width: 18px;
    height: 18px;
}

.product-card .btn-icon-buy {
    background: white;
    border-radius: 8px 2px 2px 8px;
    padding: .2rem 1rem;
}
.product-card .btn-icon-buy svg {
    max-width: 45px;
}
.product-card .btn-icon-buy svg * {
    transition: .4s ease;
}
.product-card .btn-buy:hover .btn-icon-buy svg *:not(:last-child) {
    fill: #0051ff;
}

.showcase-footer {
    text-align: center;
    margin-top: 3rem;
}

.showcase-footer a {
    font-size: 15px;
    padding: .6rem 1rem;
    margin: 2rem 1rem 0;
    background: transparent;
    border: 1px solid #e0e0e0;
    color: black;
    border-radius: 12px;
    transition: .4s ease;
    text-decoration: none;
    font-weight: 500;
    text-transform: capitalize;
}

.showcase-footer a:hover {
    background: #0051ff;
    color: white;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .showcase-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .showcase-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .showcase-title {
        font-size: 20px;
    }
    
    .amount-current {
        font-size: 20px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .showcase-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .custom-showcase-widget {
        margin: 42px 0;
        padding: 10px 0;
    }
    
    .discount-badge {
        top: 10px;
        right: 10px;
        padding: 3px 10px;
        font-size: 12px;
    }
    .showcase-header {
        margin-bottom: 15px;
    }
}


/* ============================================
   BOTÕES DE NAVEGAÇÃO
   ============================================ */

.swiper-navigation {
    display: flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    top: calc(50% + 12px);
    transform: translate(-50%, -50%);
    z-index: 1;
    width: calc(100% + 34px);
    justify-content: space-between;
    left: 50%;
    pointer-events: none;
}

/* Botões Anterior/Próximo */
.swiper-button-prev-showcase,
.swiper-button-next-showcase {
    width: 30px;
    height: 30px !important;
    background: white;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0 !important;
    transform: none !important;
    margin-top: 0 !important;
    border: 2px solid #0051ff;
    pointer-events: all;
}

.swiper-button-prev-showcase:hover,
.swiper-button-next-showcase:hover {
    transform: scale(1.1);
}
.swiper-button-prev-showcase svg, .swiper-button-next-showcase svg {
    max-width: 8px;
    max-height: 23px;
}
.swiper-button-prev-showcase svg {
    transform: rotate(180deg);
}
.swiper-button-prev-showcase svg *, .swiper-button-next-showcase svg * {
    fill: #0051ff;
    stroke: #0051ff;
    stroke-width: 2px;
}

/* Quando desabilitado */
.swiper-button-prev-showcase.swiper-button-disabled,
.swiper-button-next-showcase.swiper-button-disabled {
    opacity: 0;
    cursor: not-allowed;
}

/* ============================================
   PAGINAÇÃO (BOLINHAS)
   ============================================ */

[class*="swiper-pagination"] {
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative;
    margin-top: 16px;
}

[class*="swiper-pagination"] .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #CCCCCC;
    opacity: 1;
    transition: all 0.3s ease;
}

[class*="swiper-pagination"] .swiper-pagination-bullet-active {
    background: #0051ff;
    border-radius: 6px;
}

.products {
    margin: 0;
}

@media(min-width: 1024px){
    .page-products .products-grid .product-item {
        width: calc((100%) / 4);
    }
    .page-products .products-grid .product-item:nth-child(4n + 1) {
        margin-left: 2%!important;
    }
    .cms-home .showcase-swiper .swiper-slide {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    
    .swiper-navigation {
        align-self: flex-end;
    }

    .swiper-button-prev-showcase,
    .swiper-button-next-showcase {
        width: 36px;
        height: 36px!important;
    }
    .swiper-navigation {
        width:calc(100% + 25px);
    }

    .page-products .product-wrapper-catalog {
        grid-template-columns: repeat(auto-fill, minmax(48%, 48%));
        gap: 20px 7px;
    }
    .page-products .btn-buy .btn-icon-buy {
        display: none;
    }
    .page-products .btn-buy {
        text-align: center;
        justify-content: center;
        padding: 1.3rem 0rem;
        background: #0051ff;
        text-transform: uppercase;
        font-weight: 500;
        font-size: 14px;
    }
    .page-products .product-details {
        padding: 15px 8px;
    }
    .page-products .product-description {
        font-size:13px;
    }
    .page-products .amount-current {
        font-size:15px;
    }
    .page-products .installment-info {
        font-size: 11px;
    }
    .page-products .columns {
        padding-top: 12px;
    }
}