

section.product {
    display: flex;
    background: #ffffff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    padding: 10px;
    box-shadow: 0 2px 5px #0000002b;
    justify-content: space-between;
    gap: 20px;
    min-height: 440px;
}

.in_stock {
    color: #5b8548;
}


.in_stock svg {
    cursor: pointer;
    width: 12px;
    height: 10px;
    color: #5b8548;
    fill: currentColor;
}


.out_of_stock {
    color: #d84f19;
}


.out_of_stock svg {
    cursor: pointer;
    width: 12px;
    height: 10px;
    color: #d84f19;
    fill: currentColor;
}

.product__media {
    width: 100%;
    overflow: hidden;
}


.product__img { 
    max-width: 550px; 
    aspect-ratio: 1 / 1; 
    width: 100%;
    

}
.product__img img {
    aspect-ratio: 1 / 1; 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    display: block;
}

.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.img-modal img {
  max-width: 95%;
  max-height: 95%;
  background: #fff;
  border-radius: 6px;
}

.meta-row {
    padding: 5px;
    margin: 5px;
    line-height: 1.5;
}

.meta-row svg.icon {
    width: 12px;
    height: 12px;
}

.product__info .price-regular {
    font-size: 1.6rem; 
    font-weight: 700;
    color: #df7e12;
}

.product__info .price-new {
    font-size: 1.6rem; 
    font-weight: 700;
    color: #d84f19;
}

.product__info .price-old {
    font-size: 1.2rem; 
    color: #676968; 
    position: relative;
}

.price {
    display: grid;
    position: relative;
}

.product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

section.product-details {
    background: #ffffff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    margin-top: 30px;
    padding: 20px;
    box-shadow: 0 2px 5px #0000002b;
    min-height: 340px;
    overflow: hidden;
}

form#addToCartForm {
    border: 1px solid #ebebeb;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-top: 10%;
    overflow: hidden;
}

.disc_label {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 45px;
    width: 45px;
}

.disc_label div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d84f19;
    font-weight: 700;
    line-height: 1;
}

div#variantBox {
    gap: 10px;
    display: grid;
    padding: 10px;
}

.variant-group__title {
    font-weight: 700;
    grid-column: 1 / -1;
    color: #df7e12;
    text-transform: uppercase;
    margin-bottom: -8px;
}

.variant-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.variant-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0px;
    border: 2px solid #d0d0d0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
    line-height: 1;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.variant-option:has(input[data-was-checked="1"]) {
  border-color: #df7e12;
}

.variant-option.is-disabled {
  opacity: .45;
  pointer-events: none;
  border-style: dashed;
}

.variant-option input[type="radio"]:disabled + span {
  color: #888;
}

.price-note {
    color: #676968;
    font-size: 0.6rem;
}

.attribute-row {
    border: 1px solid #ebebeb;
    padding: 10px;
    margin-top: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin: 10px;
}

.attribute-row .meta-label {
    padding: 5px;
    display: block;
    text-align: center;
    font-weight: 700;
    color: #df7e12;
    border-bottom: 1px solid #ebebeb;
    margin: 0;
    text-transform: uppercase;
}

.attribute-row .meta-value {
    padding: 5px;
    display: block;
    text-align: center;
    font-size: 0.8rem;
    margin: 0;
}


.product__info {
    min-width: 40%;
    min-height: 200px;
}

.product_attributes {
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

button.btn.btn-primary {
    background: #df7e12;
        -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0px 40px;
    cursor: pointer;
    height: 35px;
    width: 65%;
}

button.btn.btn-primary:hover {
    background: #d84f19 ;
}

.product__actions .favorite {
    width: 10%;
    min-width: 45px;
    text-align: center;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #ebebeb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: #f5f5f5;
}

span.meta-value.in-stock {
    color: #df7e12;
}

.product__price {
    padding: 20px 10px 10px;
}

h1.product__title {
    margin-bottom: 0;
}

table.composition {
    border-collapse: collapse;
    width: 100%;
    border-bottom: 1px solid #f5f5f5;
    border-top: 1px solid #f5f5f5;
}





.product_attributes .brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
}

.brand-card__img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.product__media--grid{
   display:flex;
   align-items:flex-start;
}

.product__thumbs {
    width: 110px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 430px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    overflow: auto;
    
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}

.product__thumbs .thumb{
    border: none;
    padding: 0;
    background: #fff;
    cursor: pointer;
}

.product__thumbs img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ebebeb;
    background: #fff;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
}








table.composition {
  border-collapse: collapse;
  width: 100%;
  border-bottom: 1px solid #f5f5f5;
  border-top: 1px solid #f5f5f5;
}
table.composition th, table.composition td {
  text-align: left;
  padding: 8px;
  min-width: 60px;
}
table.composition tr {
   border-bottom: 1px solid #f5f5f5;
}

table.composition tr:hover {
    background-color: #f5f5f5;
}


@media only screen and (max-width: 724px){

section.product {
    display: grid;
}

button.btn.btn-primary {
    width: 100%;
    order: 3;
}

.product__media--grid {
    display: grid;
}

.product__thumbs {
    order: 2;
    flex-direction: row;
    width: 100%;
    overflow: auto;
}

.product__actions .favorite {
    order: 2;
}

.qty {
    order: 1;
}

}