.sp-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.sp-single-image {
    width: clamp(220px, 40vw, 600px);
    margin: 0 auto;
}

.sp-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sp-single-info h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 32px;
}

.sp-price {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.sp-sold-out {
    display: block;
    font-size: 20px;
    color: #c00;
    margin-bottom: 20px;
}

.sp-single-info p {
    font-size: 16px;
    line-height: 1.6;
}

/*galery*/
.sp-gallery {
    width: 100%;
}

.sp-main-image {
    width: clamp(220px, 40vw, 500px);
    aspect-ratio: 1 / 1;      /* Vienmēr kvadrāts */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.sp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Aizpilda kvadrātu */
    display: block;
}

.sp-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sp-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.sp-thumb.active {
    border-color: #000;
}


@media (max-width: 768px) {
    .sp-single-product {
        grid-template-columns: 1fr;
    }
}

/*BTNS sinle product*/
.sp-add-to-cart {
    background-color: green;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 5px 10px 5px 10px;
}

.sp-add-to-cart:hover {
    background-color: darkgreen;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 5px 10px 5px 10px;
}

.sp-qty-minus {
    background-color: green;
    color: white;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    font-size: large;
}

.sp-qty-minus:hover {
    background-color: darkgreen;
    color: white;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    font-size: large;
}

.sp-qty-plus {
    background-color: green;
    color: white;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    font-size: large;
}

.sp-qty-plus:hover {
    background-color: darkgreen;
    color: white;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    font-size: large;
}
/* Chrome, Safari, Edge, Opera */
.sp-quantity::-webkit-outer-spin-button,
.sp-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0 6px 0 6px;
}

/* Firefox */
.sp-quantity {
    appearance: textfield;        /* standard property */
    -moz-appearance: textfield; 
    margin: 0 6px 0 6px;
}