main {
    width: 80%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 184px); /* Adjust height to fit between header and footer */
    background-color: var(--content-background-color);
    padding: var(--padding-large);
}

h1 {
    font-size: var(--title);
    font-weight: bold;
}

h2 {
    margin-bottom: var(--padding-small);
    font-size: var(--footnote);
    font-weight: normal;
}

h3 {
    padding-bottom: var(--padding-small);
    font-size: var(--subtitle);
    font-weight: bold;    
}

h4 {
    padding-bottom: var(--padding-small);
    font-size: var(--footnote);
    font-weight: bold;
}

h5 {
    font-size: var(--paragraph);
    font-weight: bold;
}

p {
    font-size: var(--paragraph);
    margin: var(--padding-large);
}

.store-grid {
    padding-top: var(--padding-large);
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-card {
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    padding: var(--padding-small);
    text-align: center;
}

.product-card a {
    margin-top: auto;
    text-decoration: none;
    color: var(--text-color);
    text-decoration: none;
}

.product-card a:hover,
.product-card a:focus {
    text-decoration: underline;
}

.product-card img {
    width: 100%;
    height: auto;
    border: 3px solid transparent;
}

.product-card a:hover img,
.product-card a:focus img {
    border-color: var(--trim-color);
    cursor: pointer;
}

.card-description {
    margin: 0;
    font-size: var(--footnote);
}

.card-price {
    margin: 0;
    padding: var(--padding-small) 0;
    font-size: var(--footnote);
    font-weight: bold;
    color: var(--trim-hover-color);
}

.product-card button {
    width: 100%;
    padding: var(--padding-small) var(--padding-large);
    font-size: var(--footnote);
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    font-weight: bold;
    border: none;
    border-radius: 15px;
}

.product-card button:hover,
.product-card button:focus {
    background-color: var(--button-hover-background-color);
    cursor: pointer;
}

.item-detail {
    margin-top: var(--padding-large);
    display: flex;
    flex-direction: column;
}

.product-bar {
    display: flex;
    flex-direction: row;
    gap: var(--padding-large);
    margin-bottom: var(--padding-large);
}

.product-image {
    width: 50%;
}

.product-image img {
    max-width: 100%;
    height: auto;
}

.product-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; /* Distributes content evenly */
}

.description {
    font-size: var(--footnote);
    margin-bottom: var(--padding-large);
}

.price {
    font-size: var(--subtitle);
    color: var(--trim-hover-color);
}

.offer {
    font-size: var(--footnote);
    font-style: italic;    
}

.product-info a {
    width: 200px;
    margin-top: var(--padding-large);
    margin-bottom: var(--padding-large);
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
}

.product-info button {
    width: 100%;
    padding: var(--padding-small);
    font-size: var(--footnote);
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    font-weight: bold;
    border: none;
    border-radius: 15px;
}

.product-info button:hover,
.product-info button:focus {
    background-color: var(--button-hover-background-color);
    cursor: pointer;
}

.description-bar {
    margin-top: var(--padding-large);
}

.description-bar ol,
.description-bar ul {
    margin-left: var(--indent-size);
    padding-left: var(--indent-size);
}

.description-bar ol li ol {
    margin-left: 0;
    list-style-type: lower-alpha; /* Changes markers to a, b, c... */
}


/* Medium screen styles -- only override above as necessary */
@media only screen and (max-width: 875px) {
    .product-bar {
        flex-direction: column;
    }

    .product-image {
        width: 80%;
        margin: 0 auto;
    }

    .product-info {
        width: 80%;
        margin: 0 auto;
    }
}

/* Mobile styles -- only override above as necessary */
@media only screen and (max-width: 720px) {

    main {
        width: 100%;
    }
}