/* ==========================================================================
   Emerald Theme – WooCommerce stilovi
   by Skyrider Solutions
   ========================================================================== */

/* ---------- Mreža proizvoda ---------- */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0 0 32px;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.woocommerce ul.products.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.woocommerce ul.products.columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.woocommerce ul.products.columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:0 0 16px;display:flex;flex-direction:column;background:#fff;border:1px solid var(--em-line);border-radius:12px;overflow:hidden;transition:box-shadow .25s,transform .25s,border-color .25s;position:relative}
.woocommerce ul.products li.product:hover{box-shadow:var(--em-shadow);transform:translateY(-3px);border-color:transparent}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:var(--em-text)}
.em-card__media{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:var(--em-cream);margin-bottom:14px}
.em-card__media img{width:100%!important;height:100%!important;object-fit:cover;margin:0!important;transition:transform .5s ease}
.woocommerce ul.products li.product:hover .em-card__media img{transform:scale(1.05)}
.em-card__cat{display:block;padding:0 16px;margin-bottom:4px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--em-muted)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 16px!important;margin:0 0 8px!important;font-size:16.5px!important;font-weight:600;line-height:1.3;color:var(--em-text)}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title{color:var(--em-primary)}
.woocommerce ul.products li.product .price{display:block;padding:0 16px;margin:0 0 14px!important;color:var(--em-primary)!important;font-weight:700;font-size:17px!important}
.woocommerce ul.products li.product .price del{color:#9a938c;font-weight:400;font-size:14px;margin-right:6px;opacity:1}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce ul.products li.product .star-rating{margin:0 16px 8px;font-size:13px;color:var(--em-accent)}
.woocommerce ul.products li.product .button{margin:auto 16px 0!important;padding:.7em 1em;font-size:15px;border-radius:6px}
.woocommerce ul.products li.product .added_to_cart{display:block;text-align:center;margin:8px 16px 0;font-size:14px;color:var(--em-primary)}
.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{position:absolute;top:12px;left:12px;right:auto;min-width:0;min-height:0;margin:0;padding:4px 10px;border-radius:5px;background:var(--em-primary);color:#fff;font-size:12.5px;font-weight:700;line-height:1.3;z-index:2}

/* YITH lista želja u kartici (ako je instaliran) */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist{position:absolute;top:12px;right:12px;margin:0;z-index:3}

/* ---------- Gornji deo prodavnice ---------- */
.em-breadcrumb,.woocommerce .woocommerce-breadcrumb{margin:0 0 14px!important;font-size:14px;color:var(--em-muted)}
.em-breadcrumb a{color:var(--em-muted)}
.em-breadcrumb a:hover{color:var(--em-primary)}
.em-bc-sep{margin:0 8px;opacity:.6}
.woocommerce-products-header__title.page-title,.woocommerce .product_title{font-family:var(--em-serif);font-weight:400;font-size:clamp(30px,3vw,42px);line-height:1.1;margin:0 0 14px}
.woocommerce .term-description{color:var(--em-muted);max-width:780px}
.woocommerce .woocommerce-result-count{margin:6px 0 22px;color:var(--em-muted);font-size:14px}
.woocommerce .woocommerce-ordering{margin:0 0 22px}
.woocommerce .woocommerce-ordering select,.woocommerce select,.woocommerce .input-text,.woocommerce-page .input-text,.select2-container .select2-selection--single{height:44px;padding:0 14px;border:1px solid #cfccc8;border-radius:6px;background:#fff;font-size:15px}
.woocommerce textarea.input-text{height:auto;padding:12px 14px}
.select2-container .select2-selection--single .select2-selection__rendered{line-height:42px;padding-left:0}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:42px}
.woocommerce .input-text:focus,.woocommerce select:focus{border-color:var(--em-primary);outline:0;box-shadow:0 0 0 3px rgba(122,27,30,.12)}

/* paginacija */
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:8px;justify-content:center}
.woocommerce nav.woocommerce-pagination ul li{border:0;float:none}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border-radius:8px;border:1px solid var(--em-line);color:var(--em-text)}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--em-primary);border-color:var(--em-primary);color:#fff}

/* ---------- Dugmad ---------- */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--em-primary)!important;color:#fff!important;border-radius:6px;font-weight:600;padding:.8em 1.5em;border:0;line-height:1.2}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--em-primary-dark)!important;color:#fff!important}
.woocommerce a.button.disabled,.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{opacity:.5}
.woocommerce a.button.loading::after,.woocommerce button.button.loading::after{top:.75em}

/* ---------- Pojedinačni proizvod ---------- */
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px 56px}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0}
.woocommerce div.product div.images{position:relative}
.woocommerce div.product div.images img{border-radius:14px}
.woocommerce div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:10px}
.woocommerce div.product div.images .flex-control-thumbs li{width:auto!important;float:none!important}
.woocommerce div.product div.images .flex-control-thumbs img{border-radius:8px;opacity:.6}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,.woocommerce div.product div.images .flex-control-thumbs img:hover{opacity:1}
.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--em-primary);font-size:26px;font-weight:700}
.woocommerce div.product p.price del{color:#9a938c;font-size:18px;font-weight:400}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce div.product .woocommerce-product-details__short-description{color:#3c3832;font-size:16px;line-height:1.65}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0;padding:20px;background:var(--em-cream);border-radius:12px}
.woocommerce div.product form.cart .button{flex:1;min-height:48px}
.woocommerce div.product form.cart.variations_form{display:block}
.woocommerce div.product form.cart .variations{margin-bottom:12px}
.woocommerce div.product form.cart .variations select{min-width:200px}
.woocommerce .quantity .qty{width:84px;height:48px;border:1px solid #cfccc8;border-radius:6px;text-align:center;font-weight:600}
.woocommerce div.product .product_meta{font-size:14px;color:var(--em-muted);display:flex;flex-direction:column;gap:4px}
.woocommerce div.product .product_meta a{color:var(--em-text)}
.woocommerce div.product .woocommerce-tabs{margin-top:30px}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;gap:6px;padding:0;margin:0 0 24px;border-bottom:1px solid var(--em-line)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0;padding:0;border:0;background:none;border-radius:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;padding:12px 18px;font-weight:600;color:var(--em-muted)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--em-primary);box-shadow:inset 0 -2.5px 0 var(--em-primary)}
.woocommerce div.product .woocommerce-tabs .panel{font-size:16px;line-height:1.7}
.woocommerce div.product .woocommerce-tabs .panel h2{font-size:22px}
.woocommerce .related>h2,.woocommerce .upsells>h2,.woocommerce .cross-sells>h2{display:flex;align-items:center;gap:14px;font-size:24px;font-weight:600;margin:40px 0 22px}
.woocommerce .related>h2::before,.woocommerce .upsells>h2::before,.woocommerce .cross-sells>h2::before{content:"";width:28px;height:2.5px;background:var(--em-primary)}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{padding:10px 14px;border-color:var(--em-line)}
.woocommerce table.shop_attributes tr:nth-child(even) td,.woocommerce table.shop_attributes tr:nth-child(even) th{background:var(--em-cream)}
.woocommerce .star-rating span::before,.woocommerce p.stars a{color:var(--em-accent)}

/* ---------- Korpa i plaćanje ---------- */
.woocommerce table.shop_table{border:1px solid var(--em-line);border-radius:12px;border-collapse:separate;overflow:hidden}
.woocommerce table.shop_table th{background:var(--em-cream);font-weight:600}
.woocommerce table.shop_table td,.woocommerce table.shop_table th{padding:14px 16px;border-color:var(--em-line)}
.woocommerce table.shop_table img{width:72px;border-radius:8px}
.woocommerce a.remove{color:var(--em-primary)!important}
.woocommerce a.remove:hover{background:var(--em-primary);color:#fff!important}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals{padding:24px;border-radius:14px;background:var(--em-cream)}
.woocommerce .cart-collaterals .cart_totals table{background:#fff}
.woocommerce-checkout #payment{background:var(--em-cream)!important;border-radius:14px}
.woocommerce-checkout #payment div.payment_box{background:#fff}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:#fff}
.woocommerce form .form-row label{font-weight:500;font-size:14.5px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--em-primary);background:var(--em-cream);border-radius:0 0 10px 10px}
.woocommerce-message::before,.woocommerce-info::before{color:var(--em-primary)}
.woocommerce-store-notice,p.demo_store{background:var(--em-primary)}

/* Moj nalog */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;border:1px solid var(--em-line);border-radius:12px;overflow:hidden}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:12px 18px;color:var(--em-text);border-bottom:1px solid var(--em-line)}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a{border-bottom:0}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--em-cream);color:var(--em-primary)}

/* Blokovi (Cart/Checkout block) – osnovne boje */
.wc-block-components-button:not(.is-link){background:var(--em-primary)!important;color:#fff!important;border-radius:6px!important}
.wc-block-components-button:not(.is-link):hover{background:var(--em-primary-dark)!important}

/* Widgeti prodavnice */
.widget_price_filter .ui-slider .ui-slider-range,.widget_price_filter .ui-slider .ui-slider-handle{background:var(--em-primary)!important}
.widget_price_filter .price_slider_wrapper .ui-widget-content{background:#e6dcd4}
.widget_product_categories .count{color:var(--em-muted);font-size:13px}

/* ---------- Responsive ---------- */
@media (max-width:1180px){
	.woocommerce ul.products,.woocommerce ul.products.columns-5,.woocommerce ul.products.columns-6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
	.woocommerce div.product{grid-template-columns:1fr}
}
@media (max-width:767px){
	.woocommerce ul.products,.woocommerce ul.products[class*=columns-]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
	.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14.5px!important;padding:0 10px!important}
	.em-card__cat,.woocommerce ul.products li.product .price{padding:0 10px}
	.woocommerce ul.products li.product .button{margin:auto 10px 0!important;font-size:13.5px;padding:.7em .6em}
	.woocommerce .woocommerce-ordering{float:none;width:100%}
	.woocommerce .woocommerce-ordering select{width:100%}
}
