/* Main Store */
#productsWrap {
    clear:both;
    gap: 0.5rem;
}
.groupCard {
    user-select: none;
    pointer-events: auto;
    margin-right:4px;
    flex: 1 1 200px;
    max-width: 200px;
}
.image-container img {
    max-width:200px;
    border-radius: 6px;
    border: 1px solid #ebebeb;
}
header h3 {
    vertical-align: top;
    margin-top:0;
    line-height: 1.2em;
    border-bottom: 0;
}
.paypalButton {
    margin-top:15px;
    padding: 7px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

@media (max-width : 600px) {
    #productsWrap {
        gap:0;
    }
    .groupCard {
        flex: 1 1 calc(50% - 3rem);
    }
    header h3 {
        font-size: 1.1rem;
        line-height: 1.2em;
    }
    .image-container img {
        max-width:100%;
    }
}
@media (max-width : 400px) {
    header {
        font-size: 0.9rem;
    }
    header h2 {
        font-size: 1rem;
    }
}


/* Item Page */
.leftColumn {
    width: fit-content;
    margin-right: 15px;
}
.leftColumn.item-image-container img {
    width: 100%;
    max-width: 350px;
    border-radius: 6px;
    border: 1px solid #ebebeb;
}
.rightColumn {
    width: 40%;
}
.rightColumn h1 {
    margin-top:0;
    margin-bottom:15px;
    font-size: 1.3em;
    font-weight: 500;
}
.flex-grow .leftColumn a,
.flex-grow .leftColumn img {
    border-radius: 6px;
    border: 1px solid #999;
}
#productDiv {
    margin-bottom:80px;
    user-select:none;
}
.productPrice {
    font-size: 1.1em;
    font-weight: bold;
}
.productDescription {
    margin-top:15px;
    user-select: text;
}
.productColors {
    margin-top:15px;
}
.color-label,
.size-label,
.qty-label {
    font-weight: bold;
    color:#999999;
    padding-right:10px;
}
.color-value,
.size-value {
    font-weight: bold;
    color: var(--text-primary-color);
}
.sizeqty-value {
    font-weight: normal;
    font-size: 0.8em;
    padding-left:15px;
}
.sizeqty-low {
    color: var(--text-error-color);
}
.productSizes {
    margin-top:15px;
}
.productQuantity {
    width:fit-content;
    margin-top:15px;
}
.productColorBox {
    width: 40px;
    height: 40px;
    margin: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}
.productColorBox:hover,
.productColorBox:active,
.productColorBox.selected {
    border: 2px solid transparent;
    outline: 3px solid #999999;
    outline-offset: 3px;
}
.productAddToCart {
    width:fit-content;
    margin-top:15px;
}
.color-box {
    display: inline-block;
    width: 80px;
    height: 40px;
    margin: 10px;
    text-align: center;
    line-height: 50px;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #fff;
}
.size-box {
    display: inline-block;
    width: 60px;
    height: 40px;
    margin: 10px;
    text-align: center;
    line-height: 40px;
    color: #999999;
    font-weight: bold;
    background-color: #fdfdfd;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
}
.size-box:hover {
    background-color: #e0e0e0;
}
.size-box.selected {
    color: #000;
    background-color: #d0d0d0;
    border: 2px solid #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.size-box.unavailable {
    color: #666;
    pointer-events: none;
    background-color: #f9f9f9;
    border-color: #ddd;
    opacity: 0.7;
}
.size-box.unavailable::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    width: 200%;
    height: 2px;
    background-color: rgba(255, 0, 0, 0.6);
    transform: rotate(-45deg);
    transform-origin: center;
    z-index: 10;
}
#decrementButton,
#incrementButton {
    width:30px;
    height:30px;
    background-color: #999999;
    font-size: 1.5em;
    user-select: none;
}
#quantityInput:disabled {
    background-color: #f9f9f9;
    color: #aaa;
    cursor: not-allowed;
}
.qty-input {
    display: block;
    margin: 10px auto;
    width: 60px;
    height: 30px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
button {
    display: block;
    margin: 10px auto;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.paypalButton:disabled {
    background-color: #ccc;
    color: #777;
    cursor: not-allowed;
}

@media (max-width : 300px) {
    .flex-grow {
        width:100%;
    }
    .leftColumn {
        margin-right:0;
    }
    .leftColumn .item-image-container img {
        max-width: 100%;
    }
}