/* Shop/Store Styles */

.shop-section {
    min-height: 100vh;
    background: var(--black);
    padding: 140px 60px 80px;
}

.shop-container {
    max-width: 1600px;
    margin: 0 auto;
}

.shop-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Archivo', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--white);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: var(--white);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.remaining-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    min-height: 40px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.btn-add-cart {
    padding: 10px 20px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-add-cart.disabled {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray);
    cursor: not-allowed;
}

.btn-add-cart.disabled:hover {
    transform: none;
}

/* Unavailable Products */
.product-card.unavailable {
    opacity: 0.6;
}

.product-card.unavailable .product-image {
    position: relative;
}

.unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.unavailable-overlay span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
}

.product-badge.unavailable {
    background: #ef4444;
    color: var(--white);
}

/* Cart Button */
.btn-cart {
    position: relative;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Archivo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444; /* Vermelho chamativo */
    color: var(--white);
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 1;
    transform: scale(1);
}

/* Esconde APENAS quando zero ou vazio */
.cart-count:empty {
    display: none !important;
}

.cart-count[data-count="0"] {
    display: none !important;
}

/* Animação quando atualiza */
@keyframes cart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-count.updated {
    animation: cart-pulse 0.3s ease;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--black);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.show {
    right: 0;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    color: var(--gray);
    padding: 40px 20px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-summary {
    margin-bottom: 20px;
}

.cart-subtotal,
.cart-shipping {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.cart-shipping span:last-child {
    color: #10b981;
    font-weight: 600;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-info h5 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.cart-item-category {
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cart-remove:hover {
    opacity: 1;
    color: #ef4444;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    color: var(--black);
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cart-notification.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

