/*
 * Štýly pre WooCommerce bez kopírovania šablón — cielené priamo na
 * predvolené triedy, ktoré WooCommerce vykresľuje. Načítava sa iba na
 * stránkach obchodu/košíka/pokladne/účtu (viď functions.php).
 */
.woocommerce ul.products{ display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:1.2rem!important; width:100%!important; list-style:none; padding:0; margin:0!important; }
.woocommerce ul.products::before,.woocommerce ul.products::after{ display:none!important; content:none!important; }
.woocommerce ul.products li.product{ float:none!important; clear:none!important; width:auto!important; min-width:0; margin:0!important; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:1.2rem; display:flex; flex-direction:column; }
.woocommerce ul.products li.product img{ display:block; width:100%!important; height:auto; aspect-ratio:1/1; object-fit:contain; background:#fff; border-radius:var(--radius); margin-bottom:.8rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-size:1rem; line-height:1.35; overflow-wrap:anywhere; }
.woocommerce ul.products li.product .button{ margin-top:auto; align-self:flex-start; }
.woocommerce ul.products li.product .price{ font-family:var(--font-mono); color:var(--gold); }
@media (max-width:900px){ .woocommerce ul.products{ grid-template-columns:repeat(2,minmax(0,1fr))!important; } }
@media (max-width:600px){ .woocommerce ul.products{ grid-template-columns:1fr!important; } }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-Button{
	background:var(--ink); color:var(--bg); border-radius:var(--radius);
	padding:.85em 1.6em; font-weight:600; border:0; font-family:var(--font-body);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{ background:var(--gold); color:var(--ink); }

.woocommerce table.shop_table{ border-collapse:collapse; width:100%; background:var(--bg-card); }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td{ padding:.8em 1em; border-bottom:1px solid var(--line); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce-page form .form-row textarea{
	border:1px solid var(--line); border-radius:var(--radius); padding:.7em; font-family:var(--font-body);
}

.woocommerce-message,
.woocommerce-info{ border-top-color:var(--gold); }
.woocommerce-error{ border-top-color:#b3564a; }

.woocommerce nav.woocommerce-breadcrumb{ font-family:var(--font-mono); font-size:.82rem; color:var(--steel); margin-bottom:1.5rem; }
.woocommerce nav.woocommerce-breadcrumb a{ color:var(--steel); }

/* Prihlásenie a registrácia: oba formuláre zostanú čitateľné aj po zapnutí účtov. */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register{
	min-height:100%; padding:clamp(1rem,3vw,2rem); border:1px solid var(--line);
	background:var(--bg-card);
}
.woocommerce-account #customer_login{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.2rem,4vw,3rem); }
.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after{ display:none; content:none; }
.woocommerce-account #customer_login>.u-column1,
.woocommerce-account #customer_login>.u-column2{ float:none; width:auto; }
@media (max-width:700px){ .woocommerce-account #customer_login{ grid-template-columns:1fr; } }

/* Gravírovanie patrí iba k nožom. Pri službách a inom tovare sa neponúka. */
body.single-product:not(.secansky-knife-product) .secansky-engraving{ display:none!important; }

/* Produkt musí obsahovať vlastné plávajúce stĺpce; pätička začne až pod celým obsahom. */
body.single-product .woocommerce,
body.single-product .woocommerce div.product{ display:flow-root; width:100%; }
body.single-product .woocommerce div.product .woocommerce-tabs,
body.single-product .woocommerce div.product .related{ clear:both; width:100%; }
body.single-product .site-footer{ clear:both; position:relative; }

/* Súvisiace produkty: pevná responzívna mriežka bez úzkych rozhádzaných kariet. */
.woocommerce .related.products{ clear:both; width:100%; margin-top:clamp(2.5rem,6vw,5rem); }
.woocommerce .related.products>h2{ margin-bottom:1.4rem; font-size:clamp(1.7rem,3vw,2.6rem); }
.woocommerce .related.products ul.products{
	display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important;
	gap:1.2rem!important; width:100%!important; margin:0!important;
}
.woocommerce .related.products ul.products li.product{
	float:none!important; clear:none!important; width:auto!important; margin:0!important;
	display:flex; flex-direction:column; min-width:0;
}
.woocommerce .related.products ul.products li.product a.woocommerce-LoopProduct-link{ display:block; }
.woocommerce .related.products ul.products li.product img{ display:block; width:100%!important; height:auto; aspect-ratio:1/1; object-fit:contain; background:#fff; }
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title{ font-size:1rem; line-height:1.35; overflow-wrap:anywhere; }
.woocommerce .related.products ul.products li.product .button{ margin-top:auto; align-self:flex-start; }
@media (max-width:900px){ .woocommerce .related.products ul.products{ grid-template-columns:repeat(2,minmax(0,1fr))!important; } }
@media (max-width:540px){ .woocommerce .related.products ul.products{ grid-template-columns:1fr!important; } }
