/**
 * Estilos frontend para Produtos Adicionais WooCommerce
 */

/* Seção principal de produtos adicionais */
.paw-additional-products-section {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.paw-additional-products-section h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.paw-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Seção de categoria */
.paw-category-section {
    margin-bottom: 30px;
}

.paw-category-section:last-child {
    margin-bottom: 0;
}

.paw-category-title {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 20px;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* Container do carrossel - CORREÇÃO PRINCIPAL */
.paw-products-carousel,
.paw-carousel-container {
    position: relative !important;
    margin: 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    clear: both !important;
}

/* Wrapper do carrossel - CORREÇÃO */
.paw-carousel-wrapper {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 280px !important;
    border-radius: 8px !important;
}

.paw-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    width: 100% !important;
    will-change: transform !important;
    height: auto !important;
}

.paw-carousel-page,
.paw-carousel-slide {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    min-height: 280px !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    width: 100% !important;
    align-items: start !important;
}

/* Container de produtos - CORREÇÃO ESPECÍFICA */
.paw-products-container,
.paw-carousel-page,
.paw-carousel-slide {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    min-height: 280px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Controles do carrossel */
.paw-carousel-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 20px !important;
    width: 100% !important;
    clear: both !important;
}

.paw-carousel-btn {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3) !important;
    line-height: 1 !important;
    padding: 0 !important;
    font-size: 18px !important;
}

.paw-carousel-btn .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.paw-carousel-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4) !important;
}

.paw-carousel-btn:disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.paw-carousel-indicators,
.paw-carousel-dots {
    display: flex !important;
    gap: 8px !important;
}

.paw-carousel-indicator,
.paw-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #c3c4c7 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.paw-carousel-indicator:hover,
.paw-dot:hover {
    background: #8c8f94 !important;
    transform: scale(1.1) !important;
}

.paw-carousel-indicator.active,
.paw-dot.active {
    background: #27ae60 !important;
    transform: scale(1.2) !important;
    border-color: #229954 !important;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3) !important;
}

/* Responsividade para tablet - CORREÇÃO */
@media (max-width: 1200px) {
    .paw-products-container,
    .paw-carousel-page,
    .paw-carousel-slide {
        grid-template-columns: repeat(2, 1fr) !important;
        min-height: 320px !important;
    }
}

/* Responsividade para mobile - CORREÇÃO TOTAL */
@media screen and (max-width: 768px) {
    .paw-products-container,
    .paw-carousel-page,
    .paw-carousel-slide,
    .paw-shortcode-container .paw-products-grid,
    .paw-shortcode-grid,
    .paw-shortcode-container[data-colunas="1"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="2"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="3"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="4"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="5"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="6"] .paw-products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        min-height: 350px !important;
        padding: 15px !important;
    }
    
    .paw-carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .paw-carousel-btn .dashicons {
        font-size: 16px !important;
        width: 16px !important;
        height: 16px !important;
    }
}

/* Item de produto - Design do Grid Administrativo */
.paw-product-item {
    background: #fff !important;
    border: 1px solid #c3c4c7 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
}

.paw-product-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #27ae60, #2ecc71, #58d68d) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.paw-product-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #2271b1 !important;
}

.paw-product-item:hover::before {
    opacity: 1 !important;
}

/* Imagem do produto */
.paw-product-image {
    height: 200px !important;
    overflow: hidden !important;
    background: #f6f7f7 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.paw-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.paw-product-item:hover .paw-product-image img {
    transform: scale(1.05);
}

/* Badge de desconto */
.paw-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d63638;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* Badge de destaque */
.paw-featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dba617;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* Informações do produto */
.paw-product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.paw-product-name {
    margin: 0 0 8px 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Preços */
.paw-product-price {
    margin-bottom: 12px;
}

.paw-regular-price {
    color: #646970;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 8px;
    font-weight: 400;
}

.paw-sale-price {
    color: #d63638;
    font-weight: 600;
    font-size: 18px;
}

.paw-price {
    color: #00a32a;
    font-weight: 600;
    font-size: 18px;
}

/* Descrição do produto */
.paw-product-description {
    color: #7f8c8d;
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Informações de estoque */
.paw-stock-info {
    margin-bottom: 12px;
}

.paw-stock-quantity {
    color: #00a32a;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    display: inline-block;
}

.paw-stock-quantity.low-stock {
    color: #d63638;
    background: #fcf0f1;
    border-color: #f0a5a8;
    animation: pulse 2s infinite;
}

.paw-stock-quantity.medium-stock {
    color: #dba617;
    background: #fef8e7;
    border-color: #f2d675;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Feedback de sucesso */
.paw-product-item.paw-success-feedback {
    border-color: #27ae60 !important;
    background: linear-gradient(145deg, #f0fff4, #e8f8f0) !important;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3) !important;
}

.paw-success-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    animation: successPop 0.5s ease-out;
    z-index: 15;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
}

@keyframes successPop {
    0% {
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* Ações do produto */
.paw-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f0f0f1;
}

/* Controles de quantidade */
.paw-quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #34495e;
    border-radius: 6px;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paw-quantity-btn {
    background: #34495e;
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    font-size: 14px;
}

.paw-quantity-btn:hover {
    background: #2c3e50;
    transform: scale(1.1);
}

.paw-quantity-btn:disabled {
    background: #95a5a6;
    color: #ecf0f1;
    cursor: not-allowed;
    transform: none;
}

.paw-quantity-input {
    border: none;
    width: 40px;
    height: 26px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    background: white;
    outline: none;
    color: #2c3e50;
}

.paw-quantity-input:focus {
    background: #ecf0f1;
    color: #2c3e50;
}

/* Remove setas do input number */
.paw-quantity-input::-webkit-outer-spin-button,
.paw-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.paw-quantity-input {
  -moz-appearance: textfield; /* Firefox */
}

/* Botões de ação */
.paw-add-to-cart-btn,
.paw-update-cart-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.paw-add-to-cart-btn::before,
.paw-update-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.paw-add-to-cart-btn:hover::before,
.paw-update-cart-btn:hover::before {
    left: 100%;
}

.paw-add-to-cart-btn {
    background: #0f7b0f;
    color: white;
    border: 1px solid #0f7b0f;
    font-weight: 600;
}

.paw-add-to-cart-btn:hover {
    background: #0d6b0d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 123, 15, 0.3);
}

.paw-update-cart-btn {
    background: #2271b1;
    color: white;
    border: 1px solid #2271b1;
}

.paw-update-cart-btn:hover {
    background: #135e96;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.paw-add-to-cart-btn:disabled,
.paw-update-cart-btn:disabled {
    background: #95a5a6;
    border-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paw-add-to-cart-btn:active,
.paw-update-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estados de loading - NOVO SPINNER ELEGANTE */
.paw-product-item.loading {
    pointer-events: none;
}

.paw-product-item.loading .paw-product-actions {
    position: relative;
}

/* SPINNER DE TELA INTEIRA ELEGANTE */
.paw-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.paw-fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.paw-loading-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.paw-fullscreen-overlay.active .paw-loading-container {
    transform: scale(1);
}

.paw-elegant-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.paw-elegant-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #f0f0f0;
    border-radius: 50%;
}

.paw-elegant-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    animation: elegantSpin 1s linear infinite;
}

@keyframes elegantSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.paw-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.paw-loading-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* MODAL DE CONFIRMAÇÃO */
.paw-success-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.paw-fullscreen-overlay.success .paw-success-modal {
    transform: scale(1);
}

.paw-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.paw-success-title {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 10px;
}

.paw-success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.paw-success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.paw-success-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.paw-success-btn.primary {
    background: #27ae60;
    color: white;
}

.paw-success-btn.primary:hover {
    background: #229954;
    transform: translateY(-2px);
}

.paw-success-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.paw-success-btn.secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* Responsividade */
@media (max-width: 480px) {
    .paw-loading-container,
    .paw-success-modal {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .paw-elegant-spinner {
        width: 50px;
        height: 50px;
    }
    
    .paw-success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .paw-success-actions {
        flex-direction: column;
    }
}

/* Produtos fora de estoque - NOVA VERSÃO */
.paw-product-item.out-of-stock {
    position: relative;
    /* Remove opacity para manter produto visível */
}

.paw-product-item.out-of-stock .paw-add-to-cart-btn,
.paw-product-item.out-of-stock .paw-update-cart-btn {
    background: #95a5a6 !important;
    border-color: #95a5a6 !important;
    color: #ecf0f1 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.7 !important;
}

/* Tarja "ESGOTADO" em vermelho */
.paw-product-item.out-of-stock::after {
    content: 'ESGOTADO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    border: 2px solid #fff;
    animation: esgotadoPulse 2s infinite;
}

@keyframes esgotadoPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    }
}

/* Overlay com tarja "ESGOTADO" na imagem */
.paw-product-item.out-of-stock .paw-product-image::after {
    content: 'ESGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.6);
    border: 3px solid #fff;
    animation: esgotadoImagePulse 2.5s infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Overlay escuro atrás da tarja */
.paw-product-item.out-of-stock .paw-product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
}

@keyframes esgotadoImagePulse {
    0% { 
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.6);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(-15deg) scale(1.1);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.8);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.6);
    }
}

/* Estoque zerado - estilo especial */
.paw-stock-quantity.no-stock {
    color: #e74c3c !important;
    background: #fdf2f2 !important;
    border-color: #f5c6cb !important;
    font-weight: bold !important;
    animation: noStockBlink 1.5s infinite;
}

@keyframes noStockBlink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Mensagens de feedback */
.paw-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.paw-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.paw-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.paw-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Overlay para carrinho vazio */
.paw-no-regular-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.paw-no-regular-products h4 {
    color: #999;
    margin-bottom: 10px;
}

.paw-no-regular-products p {
    color: #aaa;
    font-style: italic;
}

/* Animações */
.paw-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.paw-slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Customizações para temas específicos */
.woocommerce .paw-additional-products-section {
    clear: both;
}

/* Ajustes para mobile */
@media (max-width: 600px) {
    .paw-additional-products-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .paw-additional-products-section h3 {
        font-size: 20px;
    }
    
    .paw-carousel-wrapper {
        min-height: 360px;
    }
    
    .paw-carousel-page {
        grid-template-columns: 1fr;
        min-height: 360px;
    }
    
    .paw-product-image {
        height: 140px;
    }
    
    .paw-product-info {
        padding: 12px;
        text-align: center;
    }
    
    .paw-product-name {
        font-size: 14px;
        text-align: center;
    }
    
    .paw-product-actions {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    
    .paw-quantity-controls {
        justify-content: center;
    }
    
    .paw-add-to-cart-btn,
    .paw-update-cart-btn {
        width: 100%;
        max-width: 140px;
    }
    
    /* Tarja "ESGOTADO" responsiva para mobile */
    .paw-product-item.out-of-stock .paw-product-image::after {
        font-size: 14px !important;
        padding: 8px 16px !important;
        transform: translate(-50%, -50%) rotate(-12deg) !important;
    }
    
    /* Tarja pequena no canto também responsiva */
    .paw-product-item.out-of-stock::after {
        font-size: 9px !important;
        padding: 4px 8px !important;
        top: 5px !important;
        right: 5px !important;
    }
}

/* Compatibilidade com tema Storefront */
.storefront .paw-additional-products-section {
    margin: 2.617924em 0;
}

/* Compatibilidade com tema Astra */
.ast-theme .paw-additional-products-section {
    margin: 2em 0;
}

/* Print styles */
@media print {
    .paw-additional-products-section {
        display: none;
    }
}

.paw-cart-highlight {
    background: linear-gradient(90deg, #e8f8f5 60%, #d4efdf 100%);
    transition: background 0.7s;
}

/* Mensagens flutuantes */
.paw-floating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.paw-floating-message.paw-floating-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.paw-floating-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.paw-floating-success .paw-floating-content {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.paw-floating-error .paw-floating-content {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.paw-floating-info .paw-floating-content {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.paw-floating-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.paw-floating-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.paw-floating-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.paw-floating-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animação de entrada */
@keyframes floatingSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade para mensagens flutuantes */
@media (max-width: 480px) {
    .paw-floating-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .paw-floating-message.paw-floating-show {
        transform: translateY(0);
    }
    
    .paw-floating-content {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .paw-floating-icon {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
    
    .paw-floating-close {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}

/* EFEITO DE HIGHLIGHT PARA SCROLL AUTOMÁTICO */
.paw-highlight-section {
    animation: paw-highlight-pulse 2s ease-in-out;
    border: 2px solid #0073aa !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.3) !important;
    padding: 10px !important;
    margin: 5px 0 !important;
}

@keyframes paw-highlight-pulse {
    0% { 
        box-shadow: 0 0 0 rgba(0, 115, 170, 0.7);
        border-color: #0073aa;
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 115, 170, 0.7);
        border-color: #005a87;
    }
    100% { 
        box-shadow: 0 0 0 rgba(0, 115, 170, 0.7);
        border-color: #0073aa;
    }
}

/* CARROSSEL SEMPRE VISÍVEL */
.paw-shortcode-container .paw-products-carousel,
.paw-additional-products-section .paw-products-carousel,
.paw-category-section .paw-products-carousel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

/* GRID DO SHORTCODE - CORREÇÃO PRINCIPAL */
.paw-shortcode-container .paw-products-grid,
.paw-shortcode-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: start !important;
}

/* Grid com colunas dinâmicas */
.paw-shortcode-container[data-colunas="1"] .paw-products-grid {
    grid-template-columns: 1fr !important;
}

.paw-shortcode-container[data-colunas="2"] .paw-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.paw-shortcode-container[data-colunas="3"] .paw-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.paw-shortcode-container[data-colunas="4"] .paw-products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.paw-shortcode-container[data-colunas="5"] .paw-products-grid {
    grid-template-columns: repeat(5, 1fr) !important;
}

.paw-shortcode-container[data-colunas="6"] .paw-products-grid {
    grid-template-columns: repeat(6, 1fr) !important;
}

/* Responsividade para Grid do Shortcode */
@media (max-width: 1200px) {
    .paw-shortcode-container[data-colunas="4"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="5"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="6"] .paw-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    .paw-shortcode-container .paw-products-grid,
    .paw-shortcode-grid,
    .paw-shortcode-container[data-colunas="1"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="2"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="3"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="4"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="5"] .paw-products-grid,
    .paw-shortcode-container[data-colunas="6"] .paw-products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .paw-shortcode-container .paw-products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* ESTILOS PARA PRODUTOS ESGOTADOS */
.paw-product-item.paw-out-of-stock {
    opacity: 0.7;
    position: relative;
}

.paw-product-item.paw-out-of-stock .paw-product-image {
    position: relative;
    overflow: hidden;
}

.paw-out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.paw-out-of-stock-badge {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    animation: outOfStockPulse 2s infinite;
}

@keyframes outOfStockPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    }
}

.paw-product-item.paw-out-of-stock .paw-product-name {
    color: #666;
    text-decoration: line-through;
}

.paw-product-item.paw-out-of-stock .paw-product-price {
    opacity: 0.6;
}

.paw-out-of-stock-message {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border: 2px dashed #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
}

.paw-out-of-stock-message span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade para produtos esgotados */
@media (max-width: 600px) {
    .paw-out-of-stock-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .paw-out-of-stock-message {
        padding: 10px;
        font-size: 13px;
    }
}