:root {
    --primary: #343d49;
    --bg: #ebebeb;
    --card: #ffffff;
    --text: #364250;
}

.content {
    font-family: "Montserrat";
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: grid;
    grid-template-columns: 1fr minmax(180px, 15%);
}

.header {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    justify-self: center;
    padding: 40px;
    max-width: 80%;
}

.sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 10;
    display: flex;
    font-size: 1.5em;
}

.product-grid {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 40px;
    max-width: 70%;
    margin: auto auto;
    align-self: center;
    margin-bottom: 100px;
    padding: 20px;
}

.product-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.product-details {
    padding-left: 20px;
    flex-grow: 1;
}

.product-details h3,h5{
    margin: 0 0 0 0;
}

.product-info{
    visibility: hidden;
    position: absolute;
    top: 1%;
    right: 2%;
    left: 2%;
    width: auto;
    height: auto;
    padding: 10px;
    border-radius: 16px;
    background-color: #ededed;
    z-index: 5;
}

.product-info a{
    position: relative;
    margin-top: 30px;
    bottom: 5%;
}

.info-btn{
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    border-radius: 50%;
    background-color: #ebebeb;
    z-index: 2;
    padding: 5px;
    width: 15px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.product-card .show {
    visibility: visible;
}


.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.card-actions {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    outline: 0;
}

.counter-btn:active { opacity: 0.7; }

.qty-display {
    margin: 0 20px;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

.checkout-summary {
    display: flex;
    justify-content: left;
    align-items: center;
}

.checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    outline: 0;
}

.checkout-btn:active { opacity: 0.7; }

#discount-section{
    text-align: left;
    visibility: hidden;
}

.popup-background{
    z-index: 5;
    visibility: hidden;
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: #ededed99;
}

.proceed-popup{
    visibility: hidden;
    z-index: 10;
    position: absolute;
    top: 2%;
    left: 25%;
    font-size: 20px;
    line-height: 1.7em;
    width: 30%;
    padding: 2% 5%;
    background-color: #ededed;
    border-style: solid;
    border-color: #2f2f2f;
    border-radius: 30px;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: #364250;
    animation: fadeIn 0.5s linear;
  }

.proceed-popup .submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    outline: 0;
}
.proceed-popup .submit:active { opacity: 0.7; }

#popup-total{
    text-align: center;
    font-weight: bold;
    font-style: oblique;
}

.form-field{
    border-radius: 10px;
    height: 2em;
    border: none;
    padding: 5px;
    width: 100%;
}

.submit-form{
    align-content: center;
}

.swapper-btn{
    position: absolute;
    border-radius: 10px;
    right: 5%;
    bottom: 20px;
    height: 30px;
}