/**
 * Rydan Catálogo OOP (CMS v5) - Estilos Modernos de Cards de Produto
 * Suporta: Grade Vitrine (Model A) e Recomendações (Model B)
 * Variações: Deslogada (B2B Showcase Seguro) e Logada (Atacado Completo)
 */

:root {
    --ry-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ry-card-bg: #ffffff;
    --ry-card-border: #e2e8f0;
    --ry-card-hover-border: #3b82f6;
    --ry-card-radius: 12px;
    --ry-card-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --ry-card-shadow-hover: 0 16px 28px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -3px rgba(15, 23, 42, 0.06);

    --ry-blue-primary: #0c3866;
    --ry-blue-hover: #072647;
    --ry-blue-subtle: #eff6ff;

    --ry-red-promo: #dc2626;
    --ry-red-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);

    --ry-pkg-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --ry-cart-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);

    --ry-text-dark: #1e293b;
    --ry-text-muted: #64748b;
    --ry-text-light: #94a3b8;

    --ry-pill-bg: #f8fafc;
    --ry-pill-border: #e2e8f0;
}

/* ========================================================
   1. GRADE DE PRODUTOS (VITRINE / LISTAGEM)
   ======================================================== */
.ry-catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#cx-listar-produtos {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .ry-catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px 10px !important;
    }
    #cx-listar-produtos {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 420px) {
    .ry-catalog-grid {
        grid-template-columns: 1fr !important;
        padding: 10px 6px !important;
    }
}

.ry-card-wrapper {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ========================================================
   2. CARD PRINCIPAL (MODELO A - LISTAGEM)
   ======================================================== */
.ry-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    background: var(--ry-card-bg);
    border: 1px solid var(--ry-card-border);
    border-radius: var(--ry-card-radius);
    box-shadow: var(--ry-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--ry-font-main);
}

.ry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ry-card-shadow-hover);
    border-color: #cbd5e1;
}

/* Destaque sutil para card que já está no carrinho */
.ry-card--in-cart {
    border-color: #a7f3d0;
}

/* 2.1 Media / Imagem & Badges Overlay */
.ry-card__media-wrap {
    position: relative;
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    border-radius: var(--ry-card-radius) var(--ry-card-radius) 0 0;
}

.ry-card__badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.ry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 6px;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ry-badge--promo {
    background: var(--ry-red-gradient);
    animation: ryBadgePulse 2.5s infinite ease-in-out;
}

.ry-badge--package {
    background: var(--ry-pkg-gradient);
}

.ry-badge--in-cart {
    background: var(--ry-cart-gradient);
}

.ry-badge--min {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.ry-badge--stock {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.ry-badge--brand {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.ry-badge--cat {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.ry-badge--step {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

@keyframes ryBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Botão Favorito no Canto Superior Direito */
.ry-card__btn-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 11;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.ry-card__btn-fav:hover {
    color: #ef4444;
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.ry-card__media-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.ry-card__img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ry-card:hover .ry-card__img-container {
    transform: scale(1.04);
}

.ry-card__img-placeholder {
    display: none;
    color: var(--ry-text-light);
    font-size: 18px;
}

/* 2.2 Corpo do Card */
.ry-card__body {
    padding: 14px 14px 10px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ry-card__code-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 5px;
    font-size: 11px;
}

.ry-card__meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.ry-card__tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.ry-card__code {
    color: var(--ry-text-muted);
}

.ry-card__code strong {
    color: var(--ry-text-dark);
}

.ry-card__brand,
.ry-tag-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.25;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.ry-tag-brand i {
    font-size: 9px;
    color: #0284c7;
}

.ry-tag-brand:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #075985;
}

.ry-card__cat,
.ry-tag-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.25;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.ry-tag-cat i {
    font-size: 9px;
    color: #64748b;
}

.ry-tag-cat:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Título com suporte a até 3 linhas aceitável ou título inteiro completo */
.ry-card__title {
    margin: 0 0 10px 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 55px;
}

.ry-card__title--clamp3,
.ry-card__title:not(.ry-card__title--full) {
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    max-height: 55px !important;
    min-height: 55px !important;
}

.ry-card__title--full {
    display: block !important;
    height: auto !important;
    min-height: 55px !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-overflow: unset !important;
}

.ry-card__title a {
    color: var(--ry-text-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ry-card__title a:hover {
    color: var(--ry-blue-primary);
}

/* Pills Técnicas de Atacado */
/* Pills Técnicas de Atacado */
.ry-card__wholesale-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
}

.ry-pill {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--ry-pill-bg);
    border: 1px solid var(--ry-pill-border);
    color: var(--ry-text-dark);
    line-height: 1.15;
    letter-spacing: -0.1px;
}

.ry-pill strong {
    color: var(--ry-blue-primary);
    margin-right: 2px;
    font-weight: 700;
}

.ry-pill--min {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ry-pill--pkg {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.ry-pill--step {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.ry-pill--max {
    background: #fff7ed;
    border-color: #fed7aa;
}

.ry-pill--stock {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* 2.3 Rodapé do Card (Área de Preço / Ação com Fundo Cinza Claro) */
.ry-card__footer {
    padding: 12px 14px 14px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 var(--ry-card-radius) var(--ry-card-radius);
    margin-top: auto;
}

/* Variação Deslogada */
.ry-card--guest .ry-card__footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.ry-card__guest-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.ry-card__guest-specs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 0 4px 0;
}

.ry-card__guest-spec-min {
    font-size: 11px;
    color: var(--ry-text-dark);
}

.ry-card__guest-spec-min i {
    color: var(--ry-blue-primary);
    margin-right: 3px;
}

.ry-card__guest-spec-min strong {
    color: var(--ry-blue-primary);
    font-weight: 700;
}

.ry-card__guest-spec-pkg {
    font-size: 10px;
    color: #0369a1;
    font-weight: 500;
}

.ry-card__guest-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    color: var(--ry-text-muted);
    font-size: 11.5px;
    font-weight: 500;
}

.ry-card__lock-icon {
    color: #f59e0b;
    font-size: 13px;
}

.ry-card__guest-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ry-card__guest-link {
    font-size: 11.5px;
    color: var(--ry-blue-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.ry-card__guest-link:hover {
    text-decoration: underline;
}

/* Variação Logada */
.ry-card__pricing-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.ry-card__pricing--normal .ry-card__price-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--ry-text-dark);
}

.ry-card__pricing--promo .ry-card__price-de {
    font-size: 11.5px;
    color: var(--ry-text-muted);
}

.ry-card__pricing--promo .ry-card__price-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--ry-red-promo);
}

.ry-card__price-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--ry-text-muted);
    margin-left: 2px;
}

.ry-card__price-note {
    font-size: 10px;
    color: var(--ry-red-promo);
    font-style: italic;
    margin-top: 1px;
}

.ry-card__price-package {
    font-size: 11px;
    color: #0369a1;
    margin-top: 4px;
    font-weight: 500;
}

/* Stepper e Botão de Ação */
.ry-card__action-box {
    width: 100%;
}

.ry-card__form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
}

.ry-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    height: 36px;
    overflow: hidden;
    flex-shrink: 0;
}

.ry-stepper__btn {
    width: 28px;
    height: 100%;
    background: #f8fafc;
    border: none;
    color: var(--ry-text-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    user-select: none;
}

.ry-stepper__btn:hover {
    background: #e2e8f0;
    color: var(--ry-blue-primary);
}

.ry-stepper__btn:active {
    background: #cbd5e1;
}

.ry-stepper__input {
    width: 44px;
    height: 100%;
    border: none;
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ry-text-dark);
    padding: 0;
    -moz-appearance: textfield;
}

.ry-stepper__input::-webkit-outer-spin-button,
.ry-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botões Modernos Rydan */
.ry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--ry-font-main);
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
    box-sizing: border-box;
}

.ry-btn--full {
    width: 100%;
}

.ry-btn--primary {
    background: var(--ry-blue-primary);
    color: #ffffff !important;
}

.ry-btn--primary:hover {
    background: var(--ry-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(12, 56, 102, 0.25);
}

.ry-btn--buy {
    flex-grow: 1;
    height: 36px;
    background: var(--ry-blue-primary);
    color: #ffffff;
}

.ry-btn--buy:hover {
    background: var(--ry-blue-hover);
    box-shadow: 0 4px 10px rgba(12, 56, 102, 0.25);
}

.ry-btn--promo-action {
    background: var(--ry-red-gradient);
}

.ry-btn--promo-action:hover {
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.ry-btn--outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: var(--ry-text-dark);
}

.ry-btn--outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.ry-btn--sm {
    font-size: 11.5px;
    padding: 6px 10px;
}

/* Feedback de Carrinho */
.ry-card__feedback {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    min-height: 16px;
}

/* Rótulo explicativo da quantidade e embalagem */
.ry-stepper__unit-info {
    font-size: 11px;
    color: #0369a1;
    font-weight: 600;
    margin-top: 5px;
    text-align: left;
    line-height: 1.25;
}

/* ========================================================
   3. MODELO B: RECOMENDADOS (ler_item.php)
   ======================================================== */
.ry-recommendations-wrapper,
#itens-recomendados.ry-recommendations-wrapper {
    margin: 36px 0 20px 0 !important;
    padding: 24px 20px !important;
    background: #ffffff !important;
    border: 1px solid var(--ry-card-border) !important;
    border-radius: var(--ry-card-radius) !important;
    box-shadow: var(--ry-card-shadow) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: left !important;
}

.ry-rec-heading {
    margin-bottom: 20px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
    background: transparent !important;
    width: 100% !important;
    display: block !important;
    text-align: left !important;
}

.ry-rec-heading h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--ry-blue-primary) !important;
    margin: 0 0 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: 0.5px !important;
    padding: 0 !important;
    background: transparent !important;
}

.ry-rec-sub {
    font-size: 12px !important;
    color: var(--ry-text-muted) !important;
    display: block !important;
}

/* Grid Base Uniforme e Distribuído */
.ry-recommendations-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

/* Variações por quantidade de cards para distribuição uniforme impecável */
.ry-recommendations-grid.ry-rec-grid--count-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.ry-recommendations-grid.ry-rec-grid--count-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.ry-recommendations-grid.ry-rec-grid--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.ry-recommendations-grid.ry-rec-grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.ry-recommendations-grid.ry-rec-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.ry-recommendations-grid.ry-rec-grid--count-1 {
    grid-template-columns: minmax(0, 260px) !important;
    justify-content: center !important;
}

/* Breakpoints responsivos garantindo linhas completas e equilibradas */
@media (max-width: 1200px) {
    .ry-recommendations-grid,
    .ry-recommendations-grid.ry-rec-grid--count-6,
    .ry-recommendations-grid.ry-rec-grid--count-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .ry-recommendations-grid.ry-rec-grid--count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .ry-recommendations-grid,
    .ry-recommendations-grid.ry-rec-grid--count-6,
    .ry-recommendations-grid.ry-rec-grid--count-5,
    .ry-recommendations-grid.ry-rec-grid--count-4,
    .ry-recommendations-grid.ry-rec-grid--count-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .ry-recommendations-wrapper,
    #itens-recomendados.ry-recommendations-wrapper {
        padding: 16px 12px !important;
    }
}

@media (max-width: 420px) {
    .ry-recommendations-grid,
    .ry-recommendations-grid.ry-rec-grid--count-6,
    .ry-recommendations-grid.ry-rec-grid--count-5,
    .ry-recommendations-grid.ry-rec-grid--count-4,
    .ry-recommendations-grid.ry-rec-grid--count-3,
    .ry-recommendations-grid.ry-rec-grid--count-2 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Isolamento e padronização dos cards de recomendação */
#itens-recomendados .ry-recommendations-grid .area-item,
#itens-recomendados .ry-card-rec-wrapper,
.ry-recommendations-grid .area-item,
.ry-card-rec-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: 100% !important;
}

.ry-card--rec {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid var(--ry-card-border) !important;
    box-shadow: var(--ry-card-shadow) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.ry-card--rec:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--ry-card-shadow-hover) !important;
    border-color: #cbd5e1 !important;
}

.ry-card__media-wrap--rec {
    border-radius: 10px 10px 0 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.ry-card__media-wrap--rec .ry-card__img-container {
    height: 140px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.ry-card__body--rec {
    padding: 10px 10px 6px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.ry-card__title--rec {
    font-size: 12px !important;
    line-height: 1.35 !important;
    min-height: 48px !important;
    margin: 0 0 6px 0 !important;
}

.ry-card__title--rec.ry-card__title--clamp3,
.ry-card__title--rec:not(.ry-card__title--full) {
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    max-height: 48px !important;
    min-height: 48px !important;
}

.ry-card__title--rec.ry-card__title--full {
    display: block !important;
    height: auto !important;
    min-height: 48px !important;
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-overflow: unset !important;
}

.ry-card__wholesale-pills--compact {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-top: auto !important;
    padding-top: 4px !important;
}

.ry-card__wholesale-pills--compact .ry-pill {
    font-size: 9px !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
}

.ry-card__footer--rec {
    padding: 10px 10px 12px 10px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 0 10px 10px !important;
    margin-top: auto !important;
}

.ry-card--guest .ry-card__footer--rec {
    background: #f1f5f9 !important;
}

.ry-card__pricing--rec {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 8px;
}

.ry-card__pricing--rec .ry-card__price-val {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ry-text-dark);
}

.ry-card__price-package-sm {
    width: 100%;
    font-size: 10px;
    color: #0369a1;
}

.ry-card__rec-cta {
    width: 100%;
}

.ry-card__guest-rec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ry-card__rec-lock {
    font-size: 10.5px;
    font-weight: 600;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Modal de Promoção em Tela Cheia (Full Screen) - Imune a Transform / Overflow dos Cards */
body.ry-promo-modal-open {
    overflow: hidden !important;
}

.caixa-promocao,
.ry-promo-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.caixa-promocao.is-open,
.ry-promo-modal.is-open {
    display: flex !important;
}

.caixa-promocao__palco,
.ry-promo-modal__dialog {
    background: #ffffff !important;
    border-radius: 16px !important;
    max-width: 480px !important;
    width: 100% !important;
    padding: 26px 22px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    position: relative !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    animation: ryModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ryModalIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.caixa-promocao__palco--btn-promo,
.ry-promo-modal__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.caixa-promocao__palco--btn-promo:hover,
.ry-promo-modal__close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: scale(1.08) !important;
}

.caixa-promocao__palco--titulo,
.ry-promo-modal__title {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
    background: transparent !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.caixa-promocao__palco--txt-produto,
.ry-promo-modal__prod-name {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin: 0 0 14px 0 !important;
    padding: 10px 12px !important;
    line-height: 1.4 !important;
}

.caixa-promocao__palco--txt-pergunta,
.ry-promo-modal__question {
    font-size: 13px !important;
    color: #475569 !important;
    background: transparent !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
}

.caixa-promocao__palco--botoes-carrinho,
.ry-promo-modal__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 0 !important;
}

.ry-promo-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 14px 10px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    line-height: 1.25 !important;
    border: none !important;
    margin: 0 !important;
}

.ry-promo-btn__line1 {
    font-size: 13px !important;
    font-weight: 700 !important;
    display: block !important;
}

.ry-promo-btn__line2,
.ry-promo-btn .subtitulo {
    font-size: 11px !important;
    font-weight: 500 !important;
    opacity: 0.85 !important;
    display: block !important;
    margin-top: 1px !important;
    margin-bottom: 4px !important;
}

.ry-promo-btn__price,
.ry-promo-btn strong {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    display: block !important;
}

.ry-promo-btn--normal,
.caixa-promocao__palco--botoes-carrinho button.c-normal {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.ry-promo-btn--normal:hover,
.caixa-promocao__palco--botoes-carrinho button.c-normal:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.ry-promo-btn--promo,
.caixa-promocao__palco--botoes-carrinho button.c-promo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
}

.ry-promo-btn--promo:hover,
.caixa-promocao__palco--botoes-carrinho button.c-promo:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35) !important;
}

@media (max-width: 480px) {
    .caixa-promocao__palco--botoes-carrinho,
    .ry-promo-modal__actions {
        grid-template-columns: 1fr !important;
    }
}
