/* ============================================
   PAWALERT STORE - Full Merch Page
   ============================================ */

/* ========== STORE HERO ========== */
.store-hero {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.store-hero h1 {
    font-size: 3rem;
    font-weight: 900;
}

.store-hero h1 span {
    color: var(--primary-orange);
}

.store-hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-top: var(--spacing-sm);
}

/* ========== FILTERS ========== */
.store-filters {
    padding: var(--spacing-lg) 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.filter-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: var(--gray-100);
    border: none;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.filter-btn:hover {
    background: var(--gray-300);
}

.filter-btn.active {
    background: var(--primary-orange);
    color: var(--white);
}

/* ========== PRODUCT GRID ========== */
.store-grid {
    padding: var(--spacing-xl) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Product Card */
.product-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image i {
    font-size: 5rem;
    color: rgba(255,255,255,0.8);
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--love-red);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--love-red);
}

.product-badge.new {
    background: var(--success-green);
}

.product-info {
    padding: var(--spacing-lg);
}

.product-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
    letter-spacing: 0.05em;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.product-price .current {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark);
}

.product-price .original {
    font-size: 1rem;
    color: var(--gray-600);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-300);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-600);
}

/* ========== MINI CART ========== */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.2rem;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--love-red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
}

.cart-overlay.open {
    display: block;
}

.mini-cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 300;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mini-cart.open {
    right: 0;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-100);
}

.mini-cart-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.mini-cart-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-600);
}

.mini-cart-items {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--gray-600);
    padding: var(--spacing-xl) 0;
}

.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-600);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.cart-item-qty button {
    background: var(--gray-100);
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-qty span {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 0.8rem;
}

.mini-cart-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-100);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.btn-checkout {
    width: 100%;
    justify-content: center;
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .store-hero h1 {
        font-size: 2.2rem;
    }
    
    .mini-cart {
        width: 100%;
        right: -100%;
    }
    
    .filter-group {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: var(--spacing-md);
    }
    
    .product-info h3 {
        font-size: 0.95rem;
    }
    
    .product-price .current {
        font-size: 1.1rem;
    }
    
    .product-actions .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}
