/* =========================
   SINGLE PRODUCT LAYOUT
========================= */

.bblt-single{
  padding: 24px 0 0;
}

.bblt-single-grid{
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 420px);
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
  width: 100%;
}

.bblt-single-media,
.bblt-single-summary{
  min-width: 0;
}

/* =========================
   GALLERY
========================= */

.bblt-gallery{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bblt-gallery__thumbs{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bblt-gallery__thumb{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 92px;
  transition: border-color .2s ease, opacity .2s ease;
}

.bblt-gallery__thumb:hover{
  border-color: #111;
}

.bblt-gallery__thumb.is-active{
  border-color: #111;
}

.bblt-gallery__thumb img{
  display: block;
  width: 100%;
  height: auto;
}

.bblt-gallery__main{
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 18px;
  min-width: 0;
  position: relative;
}

.bblt-gallery__main-image{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  margin: 0 auto;
}

.bblt-gallery__zoom{
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.96);
  color: #111;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.bblt-gallery__zoom:hover{
  border-color: #111;
}

/* =========================
   SUMMARY
========================= */

.bblt-single-summary{
  position: sticky;
  top: 110px;
}

.bblt-single-summary .product_title{
  margin: 0 0 8px;
  line-height: 1.1;
}

.bblt-single-cat{
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666;
}

.bblt-single-summary .woocommerce-product-rating{
  margin: 0 0 12px;
}

.bblt-single-summary .price{
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.1;
  color: #111;
}

.bblt-perks{
  margin: 0 0 20px;
}

.bblt-perk{
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fafafa;
  font-size: 14px;
  color: #222;
}

.bblt-single-summary form.cart{
  margin: 0 0 20px;
}

.bblt-single-summary form.cart .quantity{
  margin: 0 0 14px;
}

.bblt-single-summary form.cart .qty{
  min-width: 90px;
}

.bblt-single-summary .single_add_to_cart_button{
  width: 100%;
  min-height: 50px;
}

.bblt-single-summary .product_meta{
  margin-top: 18px;
  font-size: 14px;
}

.bblt-single-summary .product_meta > span{
  display: block;
  margin: 0 0 8px;
}

/* =========================
   EXTRA SECTIONS
========================= */

.bblt-sections{
  max-width: 1160px;
  margin: 48px auto 0;
}

.bblt-section + .bblt-section{
  margin-top: 40px;
}

.bblt-h2{
  margin: 0 0 18px;
}

.bblt-desc{
  line-height: 1.7;
}

.bblt-desc ul{
  margin: 0 0 0 20px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px){
  .bblt-single-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bblt-single-summary{
    position: static;
  }

  .bblt-gallery{
    grid-template-columns: 1fr;
  }

  .bblt-gallery__main{
    order: 1;
  }

  .bblt-gallery__thumbs{
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .bblt-gallery__thumb{
    width: 72px;
  }
}


.bblt-gallery__main{
  position: relative;
}

.bblt-gallery__main-image{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  margin: 0 auto;
}


/* Noņem pelēko fonu "Bezmaksas atgriešana" laukam */
.bblt-perk {
    background: transparent !important;
    border: none !important;
    padding-left: 0 !important;
}

/* Noņem pelēko fonu daudzuma laukam */
.woocommerce .quantity .qty,
.woocommerce input.qty,
input[type="number"].qty {
    background: transparent !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
}


/* Select kā moderna poga */
.woocommerce select,
select#izmers {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border-radius: 0; /* taisnas malas kā pogai */
    border: 2px solid #000;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 0.04em;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;
}

/* Custom arrow (melna) */
.woocommerce select,
select#izmers {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23000' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Hover */
.woocommerce select:hover {
    background: #000;
    color: #fff;
}

/* Focus */
.woocommerce select:focus {
    outline: none;
    background: #000;
    color: #fff;
}

/* IZMĒRS label melns */
label {
    color: #000;
    font-weight: 700;
}

/* "Bezmaksas atgriešana" melns */
.bblt-perk {
    color: #000;
}