/* Otava Fitness - E-commerce Styles */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Product Cards */
.product-card {
    background: rgba(23, 23, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #262626;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.product-badge.new {
    background: #22c55e;
}

.product-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #171717;
}

.product-action-btn:hover {
    background: #22c55e;
    color: white;
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.75rem;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.product-name a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-name a:hover {
    color: #22c55e;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-rating svg {
    width: 0.875rem;
    height: 0.875rem;
    fill: #fbbf24;
    color: #fbbf24;
}

.product-rating span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.25rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.price-old {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.product-footer {
    padding: 0 1rem 1rem;
}

.add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.add-to-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.add-to-cart svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #22c55e;
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.375rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #22c55e;
}

.cart-item-remove {
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: #ef4444;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-name {
        font-size: 0.875rem;
    }
    
    .price-current {
        font-size: 1rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-footer {
        padding: 0 0.75rem 0.75rem;
    }
}
