/* Style for product list container */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Style for individual product cards */
.product-card {
    background: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 20px); /* Adjust to fit 3 cards per row */
    min-width: 200px;
    max-width: 300px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Adjust card width for smaller screens */
@media (max-width: 768px) {
    .product-card {
        width: calc(50% - 20px); /* 2 cards per row */
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%; /* 1 card per row */
    }
}

/* Style for product images */
.product-image {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-flex;
}

/* Style for product titles */
.product-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
    color: inherit;
    text-decoration: none;
}

/* Style for product descriptions */
.product-description {
    font-size: 0.9em;
    color: inherit;
    margin: 10px 0;
}

/* Style for "View Details" link */
.product-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007acc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.product-more:hover {
    background-color: #005f99;
}

/* Remove underline from specific links */
.product-link {
    text-decoration: none;
}

/* Add underline on hover (optional) */
a:hover {
    text-decoration: none;
}

/* Define colors for light mode */
:root {
    --bg-color: #ffffff; /* Background color */
    --text-color: #333333; /* Text color */
    --header-bg-color: #f4f4f4; /* Table header background */
    --row-bg-color: #f9f9f9; /* Alternating row color */
    --row-hover-color: #e6e6e6; /* Row hover color */
    --border-color: #dddddd; /* Border color */
}

/* Define colors for dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #f1f1f1;
        --header-bg-color: #333333;
        --row-bg-color: #1e1e1e;
        --row-hover-color: #2c2c2c;
        --border-color: #444444;
    }
}

/* Style for purchasing information section */
.purchase-info {
    margin-top: 20px;
    column-count: 2;
    column-gap: 40px;
}

.col-break {
    break-before: column;
}

/* Style for the table */
.purchase-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Header row styles */
.purchase-table th {
    background-color: var(--header-bg-color);
    color: var(--text-color);
    text-align: left;
    padding: 10px;
    border: 1px solid var(--border-color);
}

/* Table body styles */
.purchase-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* Alternating row colors */
.purchase-table tbody tr:nth-child(odd) {
    background-color: var(--row-bg-color);
}

/* Hover effect */
.purchase-table tbody tr:hover {
    background-color: var(--row-hover-color);
}

/* Markdown content styling */
.purchase-info p {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
}
