/**
 * Loja do Chope - Cards v2.5.0
 * Design minimalista - integração com qualquer tema
 * 
 * @package Loja_Do_Chope
 * @version 2.5.0
 */

/* ==========================================================================
   Seção do Catálogo - Fundo escuro cervejaria
   ========================================================================== */

.ldc-catalogo-section {
    background: #1a1a1a;
    padding: 50px 0;
    margin: 0;
}

.ldc-catalogo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.ldc-catalogo-header {
    text-align: center;
    margin-bottom: 35px;
}

.ldc-catalogo-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ldc-catalogo-title i {
    color: #d4a04a; /* Cor accent dourada */
}

.ldc-catalogo-subtitle {
    font-size: 16px;
    color: #888888;
    margin: 0;
}

/* ==========================================================================
   Filtros - Chips
   ========================================================================== */

.ldc-style-filters-wrapper {
    margin-bottom: 35px;
}

.ldc-style-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 767px) {
    .ldc-style-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 0 15px;
        -webkit-overflow-scrolling: touch;
    }
    .ldc-style-filters::-webkit-scrollbar { display: none; }
}

.ldc-style-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #444;
    border-radius: 30px;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.ldc-style-chip:hover {
    border-color: #d4a04a;
    color: #d4a04a;
}

.ldc-style-chip.active {
    background: #d4a04a;
    border-color: #d4a04a;
    color: #111;
    font-weight: 600;
}

.ldc-style-chip .chip-count {
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* ==========================================================================
   Grid de Cards - Responsivo
   ========================================================================== */

.ldc-chope-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 600px) {
    .ldc-chope-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .ldc-chope-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Card de Chope - Estilo Produto/E-commerce
   ========================================================================== */

.ldc-chope-card {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.ldc-chope-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Badge Mais Vendido */
.ldc-chope-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f59e0b;
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

/* Corpo do Card */
.ldc-chope-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

/* Header com Logo e Nome */
.ldc-chope-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ldc-chope-card__logo {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    object-fit: contain;
    flex-shrink: 0;
}

.ldc-chope-card__info {
    flex: 1;
}

.ldc-chope-card__name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.2;
}

.ldc-chope-card__brewery {
    font-size: 14px;
    color: #d4a04a;
    margin: 0;
    font-style: italic;
}

/* Rating */
.ldc-chope-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.ldc-chope-card__stars {
    color: #f59e0b;
    display: flex;
    gap: 2px;
}

.ldc-chope-card__stars i { font-size: 14px; }

.ldc-chope-card__rating-value {
    color: #666;
    font-size: 14px;
}

/* Specs - ABV, IBU, Estilo */
.ldc-chope-card__specs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ldc-chope-card__spec {
    text-align: center;
    padding: 10px 15px;
    background: #1a1a1a;
    border-radius: 8px;
    min-width: 60px;
}

.ldc-chope-card__spec-label {
    display: block;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ldc-chope-card__spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #d4a04a;
}

.ldc-chope-card__spec--estilo .ldc-chope-card__spec-value {
    color: #22c55e;
    font-size: 12px;
}

/* Descrição */
.ldc-chope-card__description {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botão CTA */
.ldc-chope-card__footer {
    margin-top: auto;
}

.ldc-chope-card__btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.ldc-chope-card__btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.ldc-chope-card__btn i {
    margin-right: 8px;
}

.ldc-chope-card__btn--added {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Sem Estoque */
.ldc-chope-card--out-of-stock {
    opacity: 0.5;
    pointer-events: none;
}

.ldc-chope-card__out-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ldc-chope-card__out-stock-label {
    background: #fff;
    color: #dc2626;
    padding: 10px 25px;
    font-weight: 800;
    border-radius: 6px;
    transform: rotate(-5deg);
}

/* ==========================================================================
   Modal de Seleção de Barril
   ========================================================================== */

.ldc-barrel-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.ldc-barrel-modal.active {
    display: flex;
}

@media (min-width: 576px) {
    .ldc-barrel-modal {
        align-items: center;
    }
}

.ldc-barrel-modal__content {
    background: #1a1a1a;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

@media (min-width: 576px) {
    .ldc-barrel-modal__content {
        border-radius: 16px;
    }
}

.ldc-barrel-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.ldc-barrel-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ldc-barrel-modal__title i { color: #d4a04a; }

.ldc-barrel-modal__close {
    background: #333;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.ldc-barrel-modal__body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.ldc-barrel-modal__chope-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #222;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ldc-barrel-modal__chope-logo {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    object-fit: contain;
}

.ldc-barrel-modal__chope-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.ldc-barrel-modal__chope-brewery {
    font-size: 13px;
    color: #d4a04a;
    margin: 5px 0 0;
}

.ldc-barrel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ldc-barrel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #222;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ldc-barrel-item:hover {
    border-color: #444;
}

.ldc-barrel-item.selected {
    border-color: #d4a04a;
    background: rgba(212,160,74,0.1);
}

.ldc-barrel-item__size {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ldc-barrel-item__icon {
    font-size: 24px;
    color: #d4a04a;
}

.ldc-barrel-item__liters {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ldc-barrel-item__label {
    font-size: 12px;
    color: #666;
}

.ldc-barrel-item__price-value {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

.ldc-barrel-item__price-unit {
    font-size: 11px;
    color: #666;
    display: block;
    text-align: right;
}

.ldc-barrel-item__qty {
    display: none;
    align-items: center;
    gap: 12px;
}

.ldc-barrel-item.selected .ldc-barrel-item__qty {
    display: flex;
}

.ldc-barrel-item__qty-btn {
    width: 32px;
    height: 32px;
    background: #d4a04a;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ldc-barrel-item__qty-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    min-width: 30px;
    text-align: center;
}

.ldc-barrel-modal__footer {
    padding: 20px;
    border-top: 1px solid #333;
    background: #111;
}

.ldc-barrel-modal__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ldc-barrel-modal__total-label {
    color: #888;
    font-size: 14px;
}

.ldc-barrel-modal__total-value {
    font-size: 28px;
    font-weight: 800;
    color: #d4a04a;
}

.ldc-barrel-modal__add-btn {
    width: 100%;
    padding: 16px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ldc-barrel-modal__add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Estados de Loading/Vazio/Erro
   ========================================================================== */

.ldc-loading-state,
.ldc-empty-state,
.ldc-error-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.ldc-loading-state i,
.ldc-empty-state i,
.ldc-error-state i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.ldc-loading-chip {
    color: #888;
    font-size: 14px;
}

/* ==========================================================================
   Swiper (se usado)
   ========================================================================== */

.ldc-chope-swiper .swiper-button-prev,
.ldc-chope-swiper .swiper-button-next {
    color: #d4a04a;
    background: #222;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.ldc-chope-swiper .swiper-button-prev::after,
.ldc-chope-swiper .swiper-button-next::after {
    font-size: 18px;
}

.ldc-chope-swiper .swiper-pagination-bullet {
    background: #444;
    opacity: 1;
}

.ldc-chope-swiper .swiper-pagination-bullet-active {
    background: #d4a04a;
}

/* ==========================================================================
   Animação de entrada
   ========================================================================== */

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

.ldc-chope-card {
    animation: fadeInUp 0.5s ease-out;
}

.ldc-chope-card:nth-child(2) { animation-delay: 0.1s; }
.ldc-chope-card:nth-child(3) { animation-delay: 0.2s; }
.ldc-chope-card:nth-child(4) { animation-delay: 0.3s; }
.ldc-chope-card:nth-child(5) { animation-delay: 0.4s; }
.ldc-chope-card:nth-child(6) { animation-delay: 0.5s; }
