/*
Theme Name: Valtys 24
Theme URI: https://wpastra.com/
Template: astra
Author: Egidijus Šatas
Author URI: https://www.linkedin.com/in/egidijus-šatas/
Version: 4.8.10.1742470207
Updated: 2025-03-20 11:30:07

*/

.valtys24-hidden {
	display: none !important;
}
/* orderby dropdown styling */
.woocommerce-ordering select.orderby {
  max-width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  font-family: inherit !important;
  background-color: #ffffff !important;
  color: #333333 !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease !important;
}

.woocommerce-ordering select.orderby:hover {
  border-color: #1e5a96 !important;
}

.woocommerce-ordering select.orderby:focus {
  outline: none !important;
  border-color: #1e5a96 !important;
  box-shadow: 0 0 0 3px rgba(30, 90, 150, 0.1) !important;
}

/* Limit height of product images on product page */
.woocommerce-product-gallery {
	max-height: 55vh;
	overflow: hidden;
}

.woocommerce-product-gallery__image img {
	max-height: 55vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.woocommerce-product-gallery__image {
	max-height: 55vh;
}

/* Responsive: Reduce max height on tablets and smaller screens */
@media (max-width: 768px) {
	.woocommerce-product-gallery {
		max-height: 70vh;
	}

	.woocommerce-product-gallery__image img {
		max-height: 70vh;
	}

	.woocommerce-product-gallery__image {
		max-height: 70vh;
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	.woocommerce-product-gallery {
		max-height: 60vh;
	}

	.woocommerce-product-gallery__image img {
		max-height: 60vh;
	}

	.woocommerce-product-gallery__image {
		max-height: 60vh;
	}
}

/* Hide sidebar menu on tablet and mobile */
@media (max-width: 920px) {
	.sidebar-main {
		display: none !important;
	}
}

/* Override Spectra Pro's inconsistent uag-hide-desktop rule - hide phone icon on all desktop pages */
@media (min-width: 768px) {
  .uagb-block-8c6c12f4.uag-hide-desktop {
    display: none !important;
  }
}

/*shop cart X icon fix*/
.woocommerce .widget_shopping_cart .cart_list li, .woocommerce.widget_shopping_cart .cart_list li{
	padding-right: 1em;
}

/* Unified close button styling for menu and cart drawers */
.ast-mobile-popup-header .menu-toggle-close svg,
.astra-cart-drawer-header .astra-cart-drawer-close .ast-close-svg {
  width: 30px !important;
  height: 30px !important;
}

/*slidout meniu close button fix*/
.ast-mobile-popup-drawer .ast-mobile-popup-header {
	justify-content: flex-start !important;
}

.astra-cart-drawer-title {font-size: 1.3em !important;}

/* ============================================
   VALTYS24 CUSTOM CATEGORY MENU STYLES
   Replacement for Iks Menu - Identical styling
   ============================================ */

.valtys24-category-menu {
    width: 100%;
}

.valtys24-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.valtys24-menu-item {
    position: relative;
    background-color: #ffffff;
    min-height: 44px;
    transition: background-color 250ms;
}

.valtys24-menu-item:hover {
    background-color: #ececec;
}

.valtys24-menu-item.valtys24-current {
    background-color: #d4d4d4;
}

/* Item wrapper - flex container */
.valtys24-item-wrapper {
    display: flex;
    align-items: center;
    min-height: 44px;
    position: relative;
}

/* Category image */
.valtys24-item-image {
    width: 70px;
    height: 70px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 15px;
    padding-right: 15px;
    flex-shrink: 0;
    transition: all 400ms;
}

/* Category link */
.valtys24-item-link {
    flex: 1;
    color: #646464;
    font-size: 17px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 15px 5px 15px;
    transition: color 400ms;
    display: block;
}

.valtys24-item-link:hover {
    color: #323232;
}

.valtys24-item-text {
    text-transform: none;
}

/* Toggle button */
.valtys24-toggle {
    width: 40px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 250ms;
    flex-shrink: 0;
}

.valtys24-toggle:hover .valtys24-chevron {
    color: #000000;
}

/* Chevron icon */
.valtys24-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #858585;
    transition: transform 400ms;
}

.valtys24-toggle.valtys24-expanded .valtys24-chevron {
    transform: rotate(-90deg);
}

/* Submenu */
.valtys24-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

/* Nested levels - indentation */
.valtys24-submenu .valtys24-menu-item {
    padding-left: 30px;
}

.valtys24-submenu .valtys24-submenu .valtys24-menu-item {
    padding-left: 60px;
}

.valtys24-submenu .valtys24-submenu .valtys24-submenu .valtys24-menu-item {
    padding-left: 90px;
}

/* Child category text styling */
.valtys24-submenu .valtys24-item-link {
    font-weight: 400;
    font-size: 16px;
}

/* Show images on child categories too */
.valtys24-submenu .valtys24-item-image {
    display: block;
}
