* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background-color: goldenrod;
    font-family: verdana;
    background-image: url(../images/topo-bg.webp);
    min-height: 100vh;
}

div#container {
    background-color: hsla(200, 80%, 80%, 0.2);
    width: calc(100vw - 1.5in); /* Adjusted width */
    height: auto;
    margin: 100px auto; /* Adjusted margin */
    padding: 20px; /* Added padding */
    border-top: 8px solid darkmagenta;
    position: relative;
}

div#c2a_buttons {
    margin: 50px 0; /* Adjusted margin */
    display: flex; /* Added to align buttons horizontally */
    justify-content:left; /* Added to center align buttons */
    align-items: center;
    gap: 20px;
}

div#c2a_buttons a {
    border: 2px solid #000;
    padding: 12px 16px;
    margin: 0 20px; /* Adjusted margin */
    text-decoration: none;
}

div#c2a_buttons a:first-child {
    background-color: #000;
    color: #fff;
}

div#c2a_buttons a:first-child:hover {
    background-color:forestgreen;
    border-color: darkgreen;
    border-style:solid;
    border: 15px solid;
    color: darkblue;
}

div#c2a_buttons a:last-child {
    background-color: #fff;
    color: #000;
}

div#c2a_buttons a:last-child:hover {
    background-color: goldenrod;
    color:red;
    border-style:solid;
    border: 15px solid;
}

div#promo_section {
    width: 100%; /* Adjusted width */
    margin: 150px auto; /* Adjusted margin */
    display: flex;
    flex-wrap: wrap; /* Added to ensure wrapping */
    justify-content: space-around; /* Added to evenly space items */
    gap: 20px; /* Added gap between items */
    background-image: url(../images/topo-bg.webp);
    background-size: 100%;
    background-position: center 10%;
    background-repeat: no-repeat;
    position: relative;
    padding: 20px;
    border: 4px solid darkmagenta;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    
}

figure.product_card {
    flex: 0 0 calc(33.33% - 20px); /* Adjusted flex basis */
    aspect-ratio: 1/1.1;
    border: 4px solid transparent;
    background-image: url(../images/shoe1.avif);
    background-size: 100%;
    background-position: center 0%;
    background-repeat: no-repeat;
    transition: background-size 500ms ease-in-out, border 500ms ease-in-out;
    position: relative;
    margin-bottom: 20px; /* Added margin */
}

figure.product_card:hover {
    border: 25px solid darkmagenta;
    border-style:ridge;
    background-size: 110%;
    background-position: center 10%;
}

figure.product_card a {
    display: block;
    width: 100%;
    height: 100%;
}

.product_card figcaption {
    background-color: rgb(26, 2, 105);
    font-size: medium;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    line-height: 1.2;
    position: absolute;
    bottom: 0;
    left: 0;
    color: hotpink;
    font-weight: bold;
    width: 100%;
    height: 20%;
    padding: 10px;
}

p.price {
    background-color:aqua;
    color:brown;
    padding: 10px;
    font-weight: bold;
    text-decoration:none;
    display: inline-block;
    width: 100px;
    height: 65px;
    line-height: 50px;
    font-size:x-large;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    text-align: center;
    position: absolute;
    bottom: calc(100% + 25px);
    left: 75%;
    border-radius: 5px;
    transform: rotate(-25deg);
    text-shadow: 0px 0px 4px white;
    box-shadow: 8px 20px 25px white;
    font-family: verdana;
    z-index: 1;
}

p.price::after {
    content: "";
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 35px;
    border-style: solid;
    border-color: aqua transparent transparent transparent;
}
