/* Založba Gatartini – dopolnila Magento CSS-ju za WordPress/WooCommerce markup */

/* --- meni: podmeni na hover (v Magentu to dela JS widget) --- */
@media (min-width: 768px) {
	.navigation .level0 { position: relative; }
	.navigation .level0 > .submenu { display: none; position: absolute; left: 0; top: 100%; z-index: 20; }
	.navigation .level0:hover > .submenu { display: block; }
}
@media (max-width: 767px) {
	.navigation .level0 > .submenu { display: none; }
	.navigation .level0.gt-open > .submenu { display: block; position: static; }
}

/* --- Woo: povezava "Prikaži košarico" po AJAX dodajanju --- */
.added_to_cart.wc-forward { display: none !important; }
.gt-tocart { margin: 0; }
.gt-tocart button.loading { opacity: .5; }

/* --- galerija na strani izdelka --- */
.gt-gallery { visibility: hidden; }
.gt-gallery.slick-initialized { visibility: visible; }
.gt-gallery .gt-gallery-item img { display: block; margin: 0 auto; max-width: 100%; height: auto; max-height: 500px; object-fit: contain; }

/* --- obvestila Woo v Magento obliki --- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 20px; padding: 12px 20px 12px 25px; font-size: 1.3rem; position: relative; border: 0;
}
.woocommerce-message { background: #e5efe5; color: #006400; }
.woocommerce-info { background: #fdf0d5; color: #6f4400; }
.woocommerce-error { background: #fae5e5; color: #e02b27; }
.woocommerce-message .button, .woocommerce-info .button { float: right; color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; }
.messages .message { margin: 0 0 20px; padding: 12px 20px; }

/* --- stranski filter na mobilnem --- */
@media (max-width: 767px) {
	.page-with-filter .sidebar-main { display: none; }
	.page-with-filter .sidebar-main.gt-filter-open { display: block; }
}

/* --- WP vsebina --- */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* --- hero banner (Sparsh_Banner) --- */
.sparsh_banner_slider { display: none; }
.slick-initialized.sparsh_banner_slider { display: block; }
.sparsh_banner_slider .slick-prev:before, .sparsh_banner_slider .slick-next:before { content: none !important; }

/* --- slike izdelkov v gridu (Magento inline stil product-image-container-*) --- */
.product-image-container { width: 240px; }
.product-image-container span.product-image-wrapper { padding-bottom: 125%; }

/* --- obvestilo o poštnini (v Magentu inline <style> v predlogi kategorije) --- */
.custom-notice { margin-top: 40px; margin-bottom: 20px; padding: 10px; width: 100%; text-align: center; }
@media only screen and (min-width: 768px) { .custom-notice { margin-top: 70px; margin-bottom: 40px; } }
.custom-notice a { color: #e9524d; }
.page-products .column.main { margin-top: 0 !important; }
.page-products .sidebar-main { margin-top: 0 !important; }

/* --- košarica: kupon (zložljiv kot v Magentu) --- */
.cart-summary .block.discount .title { cursor: pointer; }
.cart-summary .checkout-methods-items .action.primary.checkout { display: block; text-align: center; text-decoration: none; }
.cart-empty { margin: 40px 0 60px; }

/* --- blagajna --- */
.checkout-index-index .custom-catalog-banner { display: block; }
.gt-woo-page { padding-top: 40px; padding-bottom: 60px; }
.gt-checkout { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.gt-checkout .gt-checkout-main { flex: 1 1 560px; min-width: 0; }
.gt-checkout .gt-checkout-sidebar { flex: 0 1 467px; background: #f5f5f5; padding: 22px 30px; box-sizing: border-box; }
.gt-checkout .step-title, .gt-checkout-sidebar > .title { display: block; font-size: 26px; font-weight: 300; border-bottom: 1px solid #ccc; padding-bottom: 12px; margin: 0 0 28px; }
.gt-checkout-sidebar > .title { font-size: 26px; border-bottom-color: #ccc; }
.gt-checkout #customer_details .woocommerce-billing-fields > h3 { display: none; }
.gt-checkout .woocommerce-shipping-fields h3, .gt-checkout .woocommerce-additional-fields h3 { font-size: 18px; font-weight: 400; margin: 20px 0 10px; }
.woocommerce form .form-row label { font-size: 15px; font-weight: 400; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce-page form .form-row .input-text {
	border: 1px solid #c2c2c2; border-radius: 1px; height: 40px; padding: 0 12px; font-size: 14px; font-family: inherit; box-sizing: border-box;
}
.woocommerce form .form-row textarea.input-text { height: 90px; padding: 10px 12px; }
.woocommerce form .form-row .required { color: #e02b27; text-decoration: none; }
.gt-checkout-sidebar table.shop_table { border: 0; border-radius: 0; margin: 0 0 20px; background: transparent; }
.gt-checkout-sidebar table.shop_table th, .gt-checkout-sidebar table.shop_table td { border-top: 1px solid #ddd; padding: 10px 0; background: transparent; font-weight: 400; }
.gt-checkout-sidebar table.shop_table td:last-child, .gt-checkout-sidebar table.shop_table th:last-child { text-align: right; }
.gt-checkout-sidebar table.shop_table .order-total th, .gt-checkout-sidebar table.shop_table .order-total td { font-weight: 600; font-size: 18px; }
.gt-checkout-sidebar #shipping_method { list-style: none; margin: 0; padding: 0; text-align: left; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0 0 15px; border-bottom: 1px solid #ddd; }
.woocommerce-checkout #payment ul.payment_methods li { list-style: none; line-height: 2; }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: #333; font-size: 14px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-checkout #payment div.form-row { padding: 15px 0 0; }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce button.button.alt, .woocommerce a.button.alt {
	background: #000; color: #fff; border: 1px solid #000; border-radius: 0; font-family: inherit; font-weight: 500; font-size: 18px; text-transform: uppercase; padding: 14px 20px; width: 100%; float: none;
}
.woocommerce #payment #place_order:hover, .woocommerce button.button.alt:hover { background: #333; border-color: #333; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { background: #fdf0d5; border: 0; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
.woocommerce .woocommerce-privacy-policy-text p { font-size: 13px; }
.woocommerce .button, .woocommerce button.button { border-radius: 0; font-family: inherit; }
@media (max-width: 767px) { .gt-checkout .gt-checkout-sidebar { flex-basis: 100%; padding: 20px; } }

/* --- zahvalna stran in moj račun --- */
.woocommerce-order { margin-bottom: 40px; }
.woocommerce-order-overview { padding-left: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0 0 10px; }
.gt-checkout > .woocommerce-NoticeGroup, .gt-checkout > .woocommerce-error, .gt-checkout > .woocommerce-message { flex: 0 0 100%; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row { padding: 5px 0; }
.woocommerce-checkout #gdpr_consent_field label { font-size: 13px; line-height: 1.5; }
.cart.items .product-item-photo .product-image-wrapper { padding-bottom: 0 !important; height: auto; }
.cart.items .product-item-photo .product-image-photo { position: static; width: 110px; height: auto; max-width: none; }
