/**
 * Storefront CSS for WHMCS Template
 * This file contains styling for product listings, homepage, and storefront pages
 */

/* ===========================
   Homepage Hero Section
   =========================== */
#home-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    margin-bottom: 2rem;
}

#home-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

#home-banner .input-group {
    max-width: 600px;
    margin: 0 auto;
}

#home-banner .form-control {
    height: 50px;
    font-size: 1.1rem;
}

#home-banner .btn {
    height: 50px;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===========================
   Home Shortcuts
   =========================== */
.home-shortcuts {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.home-shortcuts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.home-shortcuts li {
    flex: 1;
    min-width: 200px;
    margin: 0.5rem;
}

.home-shortcuts a {
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-shortcuts a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #007bff;
}

.home-shortcuts i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.home-shortcuts p {
    margin: 0;
    font-weight: 600;
}

/* ===========================
   Product Grid Layout
   =========================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.product-card-description {
    color: #666;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1rem;
}

.product-card-price small {
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
}

.product-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.product-card .btn {
    width: 100%;
}

/* ===========================
   Product Category Section
   =========================== */
.product-category {
    margin: 3rem 0;
}

.product-category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.product-category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-category-description {
    color: #666;
    font-size: 1.1rem;
}

/* ===========================
   Featured Products
   =========================== */
.featured-products {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem 0;
    margin: 2rem 0;
}

.featured-products .product-card {
    border: 2px solid #007bff;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffc107;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Product Details Page
   =========================== */
.product-details {
    margin: 2rem 0;
}

.product-details-header {
    margin-bottom: 2rem;
}

.product-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-details-price {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features i {
    color: #28a745;
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* ===========================
   Pricing Tiers
   =========================== */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-tier {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-tier.featured {
    border: 3px solid #007bff;
    transform: scale(1.05);
}

.pricing-tier-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.pricing-tier-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-tier-features li {
    padding: 0.5rem 0;
}

/* ===========================
   Cart Enhancements
   =========================== */
.cart-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    #home-banner h2 {
        font-size: 1.75rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .home-shortcuts ul {
        flex-direction: column;
    }
    
    .home-shortcuts li {
        margin: 0.5rem 0;
    }
    
    .pricing-tiers {
        grid-template-columns: 1fr;
    }
    
    .product-details-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    #home-banner {
        padding: 2rem 0;
    }
    
    #home-banner h2 {
        font-size: 1.5rem;
    }
    
    .product-card-body {
        padding: 1rem;
    }
}
