/* Products Page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 3rem;
}

.product-card-full {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    align-items: center; /* Vertically center image with content */
    overflow: hidden;
}

.product-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    text-align: left;
}

.product-details h4 {
    font-size: 2rem;
}

.product-details p {
    font-size: 1.2rem;
}

.pricing-options {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.price-column {
    flex: 1;
    text-align: center;
}

.price-column h4 {
    color: var(--primary-color);
}

.checkout-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-button:hover {
    background-color: #e65100;
}

/* Product Table Styles */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: var(--card-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures the rounded corners are applied to the table */
}

.product-table th,
.product-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--background-color);
}

.product-table thead th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Remove top border from the first row of the body */
.product-table tbody tr:first-child td {
    border-top: none;
}

/* Zebra-striping for rows */
.product-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-table-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.product-pricing-table div {
    margin-bottom: 0.5rem;
}

.product-pricing-table span {
    display: inline-block;
    width: 70px; /* Aligns the prices */
}

.add-to-cart-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-button:hover {
    background-color: #2980b9;
}

.add-to-cart-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-pricing {
    margin-bottom: 1rem;
}

.product-price {
    margin: 0.25rem 0;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.buy-now-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px; /* Rounded corners */
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.buy-now-btn:hover {
    background-color: #2980b9; /* A slightly darker blue */
    transform: translateY(-2px);
}

main {
    max-width: 1400px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .product-image {
        width: 80px;
        height: 80px;
    }

    .product-details {
        padding: 1rem;
    }

    .product-details h4 {
        font-size: 1.7rem;
    }

    .product-details p {
        font-size: 1.2rem;
    }
}
