/*
Theme Name: Vaikiškos Dainelės – Divi Child
Theme URI: https://vaikiskosdaineles.lt/
Description: Saugus Divi child theme svetainės dizaino, WooCommerce ir mobilios versijos suvienodinimui.
Author: Vaikiškos Dainelės
Template: Divi
Version: 1.1.0
Text Domain: vaikiskos-daineles-divi-child
WPVibe: yes
*/

:root{
  --vd-bg:#fbf8f3;
  --vd-surface:#ffffff;
  --vd-ink:#28313f;
  --vd-muted:#697386;
  --vd-green:#6f8058;
  --vd-purple:#695675;
  --vd-rose:#d7849a;
  --vd-blue:#bdd8e5;
  --vd-line:rgba(40,49,63,.12);
  --vd-shadow:0 10px 30px rgba(40,49,63,.08);
  --vd-radius:18px;
  --vd-radius-sm:12px;
  --vd-max:1180px;
}

html{scroll-behavior:smooth}
body{
  background:var(--vd-bg);
  color:var(--vd-ink);
  font-size:16px;
  line-height:1.65;
}
#page-container,
#main-content{background:var(--vd-bg)}

#main-content .container,
.et_pb_row{
  width:min(92%,var(--vd-max));
}

h1,h2,h3,h4,h5,h6{
  color:var(--vd-ink);
  line-height:1.18;
  letter-spacing:-.015em;
}
a{color:var(--vd-purple)}
a:hover{color:var(--vd-green)}

.et-l--header .et_pb_section{
  background:rgba(255,255,255,.96)!important;
}
.et-l--header .menu-spenel{
  max-width:var(--vd-max);
  padding-top:10px!important;
  padding-bottom:10px!important;
}
.et-l--header .et_pb_menu{
  background:transparent!important;
}
.et-l--header .et_pb_menu__logo img{
  max-height:68px;
  width:auto;
}
.et-l--header .et-menu>li>a{
  color:var(--vd-ink)!important;
  font-weight:700;
  letter-spacing:.01em;
}
.et-l--header .et-menu>li>a:hover{
  color:var(--vd-green)!important;
  opacity:1;
}
.mobile_menu_bar:before{color:var(--vd-purple)!important}

.woocommerce-products-header{
  margin:34px 0 24px;
}
.woocommerce-products-header__title{
  font-size:clamp(30px,4vw,48px)!important;
  margin-bottom:14px!important;
}
.woocommerce-products-header .page-description{
  max-width:820px;
  color:var(--vd-muted);
}
.woocommerce-products-header .page-description p{
  margin-bottom:8px;
}

.woocommerce-result-count,
.woocommerce-ordering{
  margin-bottom:26px!important;
}
.woocommerce-ordering select{
  min-height:44px;
  border:1px solid var(--vd-line);
  border-radius:999px;
  background:var(--vd-surface);
  padding:0 38px 0 16px;
  color:var(--vd-ink);
}

.woocommerce ul.products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin:0!important;
}
.woocommerce ul.products:before,
.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{
  float:none!important;
  width:auto!important;
  margin:0!important;
  background:var(--vd-surface);
  border:1px solid var(--vd-line);
  border-radius:var(--vd-radius);
  padding:12px 12px 16px!important;
  box-shadow:var(--vd-shadow);
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(40,49,63,.12);
}
.woocommerce ul.products li.product .et_shop_image,
.woocommerce ul.products li.product img{
  border-radius:14px;
  overflow:hidden;
}
.woocommerce ul.products li.product img{
  width:100%!important;
  aspect-ratio:1/1;
  object-fit:cover;
  margin:0 0 14px!important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:17px!important;
  line-height:1.28;
  padding:0!important;
  margin:0 0 8px!important;
  min-height:44px;
}
.woocommerce ul.products li.product .price{
  color:var(--vd-purple)!important;
  font-size:16px!important;
  font-weight:800;
  margin:0!important;
}
.woocommerce ul.products li.product .et_overlay{
  border:0!important;
  border-radius:14px;
  background:rgba(105,86,117,.08);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button{
  border:0!important;
  border-radius:999px!important;
  background:var(--vd-purple)!important;
  color:#fff!important;
  font-weight:800!important;
  padding:13px 20px!important;
  line-height:1.2!important;
  min-height:46px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover{
  background:var(--vd-green)!important;
  color:#fff!important;
  padding:13px 20px!important;
}
.woocommerce a.button:after,
.woocommerce button.button:after{display:none!important}

.single-product .et-l--body .et_pb_section{
  background:var(--vd-bg)!important;
}
.single-product .et-l--body .et_pb_row{
  max-width:var(--vd-max);
}
.single-product .woocommerce-product-gallery,
.single-product .et_pb_wc_images{
  background:var(--vd-surface);
  border:1px solid var(--vd-line);
  border-radius:var(--vd-radius);
  padding:14px;
  box-shadow:var(--vd-shadow);
}
.single-product .woocommerce-product-gallery img{
  border-radius:12px;
}
.single-product .et_pb_wc_title h1,
.single-product .product_title{
  font-size:clamp(28px,3.4vw,44px)!important;
  line-height:1.1!important;
}
.single-product .price{
  color:var(--vd-purple)!important;
  font-weight:800;
}
.single-product .et_pb_wc_description,
.single-product .woocommerce-product-details__short-description{
  color:var(--vd-muted);
}
.single-product .quantity .qty{
  min-height:46px;
  border:1px solid var(--vd-line)!important;
  border-radius:12px;
  background:#fff!important;
}
.single-product .product_meta{
  color:var(--vd-muted);
  font-size:14px;
}
.single-product .woocommerce-tabs,
.single-product .et_pb_wc_tabs{
  margin-top:24px;
}
.single-product .et_pb_tabs_controls{
  background:transparent!important;
  border-bottom:1px solid var(--vd-line);
}
.single-product .et_pb_tabs_controls li{
  background:transparent!important;
  border:0!important;
}
.single-product .et_pb_tabs_controls li.et_pb_tab_active{
  border-bottom:3px solid var(--vd-green)!important;
}
.single-product .et_pb_all_tabs{
  background:var(--vd-surface)!important;
  border:1px solid var(--vd-line)!important;
  border-radius:0 0 var(--vd-radius) var(--vd-radius);
}
.single-product .up-sells,
.single-product .related{
  margin-top:42px;
}
.single-product .up-sells>h2,
.single-product .related>h2{
  font-size:28px!important;
  margin-bottom:18px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  border:1px solid var(--vd-line)!important;
  border-top:4px solid var(--vd-green)!important;
  background:#fff!important;
  color:var(--vd-ink)!important;
  border-radius:var(--vd-radius-sm);
  box-shadow:none!important;
}
.woocommerce-info:before,
.woocommerce-message:before{color:var(--vd-green)!important}

.ins-fixed-toogle .ins-toggle-btn{
  box-shadow:0 10px 26px rgba(40,49,63,.18)!important;
}

.page-id-52 #sidebar{display:none!important}
.page-id-52 #left-area{
  width:100%!important;
  padding-right:0!important;
}
.page-id-52 #main-content .container:before{display:none!important}

.et-l--footer{
  margin-top:56px;
}
.et-l--footer .et_pb_section{
  background:var(--vd-ink)!important;
  color:#fff;
}
.et-l--footer a{color:#fff!important}
.et-l--footer a:hover{color:var(--vd-blue)!important}

.vd-category-nav{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:22px 0 30px;
}
.vd-category-card{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-height:122px;
  padding:18px;
  border:1px solid var(--vd-line);
  border-radius:var(--vd-radius);
  background:var(--vd-surface);
  box-shadow:var(--vd-shadow);
  text-decoration:none!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.vd-category-card:hover{
  transform:translateY(-2px);
  border-color:rgba(105,86,117,.28);
  box-shadow:0 14px 32px rgba(40,49,63,.11);
}
.vd-category-card strong{
  color:var(--vd-ink);
  font-size:17px;
  line-height:1.25;
}
.vd-category-card span{
  color:var(--vd-muted);
  font-size:13px;
  line-height:1.45;
}
.et-l--header .vd-menu-categories>a{
  font-size:14px!important;
}
.et_mobile_menu .vd-menu-categories>a{
  font-size:15px!important;
}

@media (max-width:980px){
  .vd-category-nav{grid-template-columns:repeat(2,minmax(0,1fr))}

  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .et-l--header .et_pb_menu__logo img{max-height:58px}
  .single-product .et_pb_row{width:92%!important}
  .single-product .et_pb_column{margin-bottom:22px!important}
}

@media (max-width:600px){
  body{font-size:15px}
  #main-content .container,
  .et_pb_row{width:92%}
  .woocommerce-products-header{margin-top:24px}
  .woocommerce ul.products{gap:12px}
  .woocommerce ul.products li.product{
    padding:9px 9px 13px!important;
    border-radius:14px;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size:14px!important;
    min-height:54px;
  }
  .woocommerce ul.products li.product .price{font-size:14px!important}
  .single-product .et_pb_wc_title h1,
  .single-product .product_title{font-size:30px!important}
  .single-product .et_pb_wc_images{padding:9px}
  .single-product .up-sells>h2,
  .single-product .related>h2{font-size:23px!important}
  .woocommerce a.button,
  .woocommerce button.button,
  .single_add_to_cart_button{
    width:100%;
    text-align:center;
  }
}
