/* Shop-specific styles */
.shop-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.shop-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.shop-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--white);
}

.products-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card.featured {
    border: 3px solid var(--accent-color);
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-image {
    text-align: center;
    margin-bottom: 2rem;
}

.product-image i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.product-price {
    margin-bottom: 2rem;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.9rem;
}

.buy-now {
    background: linear-gradient(135deg, var(--accent-color), #5cb85c);
    color: var(--white);
    border: none;
}

.buy-now:hover {
    background: linear-gradient(135deg, #5cb85c, var(--accent-color));
    transform: translateY(-2px);
}

.product-stock {
    text-align: center;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-indicator.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-indicator.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--text-light);
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--light-gray);
}

.remove-item {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-item:hover {
    color: #a71e2a;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
    border-radius: 0 0 15px 15px;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Admin Section */
.admin-section {
    padding: 50px 0;
    background: var(--primary-dark);
    color: var(--white);
}

.admin-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.admin-panel h3 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.admin-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.command-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.command-item code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    font-weight: 600;
}

.command-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .cart-content {
        width: 95%;
        margin: 1rem;
    }
    
    .admin-commands {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 100px 0 60px;
    }
    
    .shop-hero h1 {
        font-size: 2rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-image i {
        font-size: 3rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}
