/* Product Page Styles - Matching Home Page Design */

.products-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #F5F2E8 100%);
    min-height: 100vh;
}

.page-title {
    font-size: var(--font-size-4xl);
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 78, 61, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--accent-color);
}

.product-name {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
    position: relative;
}

.product-name::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.product-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    text-align: center;
    display: flex;
    font-weight: lighter;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px
}

.product-packages {
    list-style: none;
    margin: 0 0 2rem 0;
    background: var(--background-light);
    border-radius: 12px;
    border: 2px solid rgba(107, 78, 61, 0.1); /* Set a minimum height for the container */
    width: 100%;          /* Fill the full width */
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-packages li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    font-weight: 500;
}

.product-packages li:last-child {
    border-bottom: none;
}

.product-packages li::before {
    margin-right: 0.5rem;
    color: var(--secondary-color);
    font-size: var(--font-size-lg);
}

/* Button container for better layout */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Updated button styles to match home page */
.product-card .btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.product-card .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.product-card .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    color: var(--white);
    text-decoration: none;
}

.product-card .btn-primary:focus {
    outline: var(--focus-width) solid var(--focus-color);
    outline-offset: 2px;
}

.product-card .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px var(--shadow-light);
}

/* Special styling for different package sizes */
.product-card .btn:nth-of-type(1) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

.product-card .btn:nth-of-type(2) {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-color: var(--secondary-color);
}

.product-card .btn:nth-of-type(3) {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: bold;
}

.product-card .btn:nth-of-type(3):hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
}

/* Add some visual hierarchy with icons */
.product-card::after {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-page {
        padding: 3rem 0;
    }

    .page-title {
        font-size: var(--font-size-3xl);
        margin-bottom: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .product-name {
        font-size: var(--font-size-xl);
    }

    .product-description {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .products-page {
        padding: 2rem 0;
    }

    .page-title {
        font-size: var(--font-size-2xl);
    }



    .product-packages li {
        font-size: var(--font-size-base);
    }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card .btn {
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card .btn:hover {
        transform: none;
    }
}}
