/* Front Page Styles */

/* Product Card Equal Height Layout */
.products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-grid .product-card .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.products-grid .product-card .product-info-content {
    flex: 1;
    min-height: auto;
}

/* Category Card Layout */
.categories-grid .category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.categories-grid .category-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background: #338E5E;
}

.notification.error {
    background: #dc3545;
}

/* Favorite button styles for front page product cards */
.product-card .product-image {
    position: relative;
}

.product-card .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 10;
}

.product-card .favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card .favorite-btn.favorite-active {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.product-card .favorite-btn.favorite-active svg {
    color: #e74c3c;
}

.product-card .favorite-btn.login-required {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ccc;
}

.product-card .favorite-btn.login-required svg {
    color: #999;
}

.product-card .favorite-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://honorhealthcarevn.com/wp-content/uploads/2025/09/honor-background-scaled.jpg');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-button {
    background: #fff;
    color: #338E5E;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 18px;
}

.hero-button:hover {
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background: #F2F1F6;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #338E5E;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-icon {
    font-size: 48px;
    color: #338E5E;
    margin-bottom: 20px;
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    height: auto;
    max-height: none;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    max-width: none;
    max-height: none;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-content {
    font-size: 18px;
}

.category-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.category-description {
    color: #666;
    line-height: 1.6;
    font-size: 18px;
    margin: 0;
}

/* Featured Products Section */
.featured-products {
    padding: 60px 0;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.sale-badge {
    left: 10px;
    background: #ff6b35;
    color: white;
}

.featured-badge {
    right: 10px;
    background: #338E5E;
    color: white;
}

.product-info {
    padding: 15px 15px 20px 15px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    height: 28px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.product-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #338E5E;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 14px;
}

.star {
    font-size: 14px;
    color: #ddd;
}

.star.filled {
    color: #ffd700;
}

.rating-text {
    font-size: 12px;
    color: #666;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #338E5E;
}

.product-price .current-price {
    font-size: 20px;
    font-weight: 700;
}

.product-price .original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-actions-bottom {
    margin-top: 0;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px 16px;
    background: #338E5E;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #276A47;
}

.out-of-stock {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    text-align: center;
    padding: 12px 24px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: not-allowed;
    width: 100%;
}

.product-button {
    background: #338E5E;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.product-button:hover {
    background: #276A47;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* About Section */
.about-section {
    padding-bottom: 50px;
}

.about-section p {
    font-size: 18px;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: 80vh;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .hero-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .category-title {
        font-size: 18px;
    }

    .product-title {
        font-size: 18px;
        height: 25.2px;
    }

    .product-price .current-price {
        font-size: 18px;
    }

    .product-price .original-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .category-title {
        font-size: 17px;
    }

    .category-description {
        font-size: 16px;
    }

    .product-title {
        font-size: 16px;
        height: 22.4px;
    }

    .add-to-cart-btn {
        font-size: 16px;
        padding: 8px 14px;
    }

    .product-price .current-price {
        font-size: 16px;
    }

    .product-price .original-price {
        font-size: 13px;
    }
}