/* Product Showcase Styles for Homepage */

/* Featured Products Section */
.featured-products,
.featured-hardware {
    padding: 80px 20px;
    background: var(--white);
}

.featured-hardware {
    background: #f8f9fa;
}

.featured-products h2,
.featured-hardware h2 {
    text-align: center;
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Product Showcase Grid */
.products-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Product Showcase Card */
.product-showcase-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.2);
    border-color: var(--primary);
}

/* Product Image Container */
.product-showcase-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-showcase-card:hover .product-showcase-image img {
    transform: scale(1.08);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.stock-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-badge i {
    font-size: 10px;
}

/* Product Content */
.product-showcase-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-showcase-content h3 {
    font-size: 19px;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 50px;
}

.product-showcase-price {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.product-showcase-price span {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.product-showcase-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-shipping-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-shipping-info i {
    color: var(--primary);
}

/* Buttons */
.btn-cart {
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.3);
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 107, 210, 0.4);
}

.btn-cart i {
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 12px 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.product-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Hardware Specific Styles */
.hardware-card .product-showcase-image {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hardware-card .product-showcase-image img {
    object-fit: contain;
    max-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .featured-products,
    .featured-hardware {
        padding: 60px 20px;
    }

    .featured-products h2,
    .featured-hardware h2 {
        font-size: 28px;
    }

    .products-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-showcase-image {
        height: 200px;
    }

    .product-showcase-content {
        padding: 20px;
    }

    .product-showcase-content h3 {
        font-size: 17px;
        min-height: auto;
    }

    .product-showcase-price {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .featured-products,
    .featured-hardware {
        padding: 40px 15px;
    }

    .featured-products h2,
    .featured-hardware h2 {
        font-size: 24px;
    }

    .product-showcase-image {
        height: 180px;
    }

    .product-showcase-content {
        padding: 18px;
    }

    .product-showcase-content h3 {
        font-size: 16px;
    }

    .product-showcase-price {
        font-size: 24px;
    }

    .btn-cart {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-outline {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Compact Product Grid (para software.php) */
.product-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.product-card-compact {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    text-align: center;
}

.product-card-compact:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.15);
    transform: translateY(-4px);
}

.product-icon-compact {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.product-card-compact h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.product-card-compact p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-compact a {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card-compact a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

@media (max-width: 768px) {
    .product-grid-compact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
