/*
Theme Name: Hude-Majice (Blocksy)
Template: blocksy
Version: 0.4.4
Description: Otroška tema za hude-majice.si na Blocksy. Iza 2026-11-10.
*/

/* iskalnik v glavi */
.hm-search { display: flex; width: 100%; max-width: 560px; margin: 0 auto; border: 1px solid var(--theme-palette-color-5); border-radius: 8px; background: #fff; overflow: hidden; }
.hm-search input[type=search] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; background: transparent; font-size: 15px; }
.hm-search input[type=search]:focus { outline: none; }
.hm-search:focus-within { border-color: var(--theme-palette-color-1); box-shadow: 0 0 0 3px rgba(230, 57, 70, .15); }
.hm-search button { width: 48px; border: 0; background: var(--theme-palette-color-1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
[data-device=mobile] .hm-search { max-width: none; }

.hm-wl { display: inline-flex; color: var(--theme-palette-color-4); }
.hm-wl:hover { color: var(--theme-palette-color-1); }

/* trak kategorij (samo mobilno) */
.hm-cats { border-bottom: 1px solid var(--theme-palette-color-5); background: #fff; }
.hm-cats ul { display: flex; gap: 4px; margin: 0 auto; padding: 10px 16px; list-style: none; max-width: var(--theme-normal-container-max-width, 1290px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: space-between; }
.hm-cats ul::-webkit-scrollbar { display: none; }
.hm-cats li { flex: 0 0 auto; scroll-snap-align: start; }
.hm-cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 6px 4px; border-radius: 8px; color: var(--theme-palette-color-4); font-size: 13px; line-height: 1.25; font-weight: 600; text-align: center; }
.hm-cats a:hover, .hm-cats a[aria-current] { background: var(--theme-palette-color-6); color: var(--theme-palette-color-1); }
.hm-cats img { width: 56px; height: 56px; object-fit: contain; }
@media (min-width: 1000px) { .hm-cats { display: none; } }
@media (max-width: 999px) {
    .hm-cats ul { justify-content: flex-start; padding: 8px 12px; }
    .hm-cats a { width: 76px; font-size: 12px; }
    .hm-cats img { width: 44px; height: 44px; }
}

/* glava: iskalnik zapolni srednji stolpec */
[data-device=desktop] [data-row*=middle][data-column-set="3"] > div { --middle-column-width: minmax(0, 640px); }
[data-row*=middle] [data-column=middle] .ct-header-text { width: 100%; max-width: 640px; margin: 0 auto; }
.hm-search button svg { width: 18px !important; height: 18px !important; flex: none; }
.ct-header-text p { margin: 0; }

/* glavni meni: podmeniji v stolpcih, ločila skupin, akcija */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a { --theme-text-transform: none; --theme-font-size: 15px; --theme-font-weight: 600; }
.header-menu-1 .hm-cols > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); width: auto; min-width: 440px; padding: 10px; }
.header-menu-1 .hm-cols-3 > .sub-menu { grid-template-columns: repeat(3, minmax(190px, 1fr)); min-width: 600px; }
.header-menu-1 .sub-menu .ct-menu-link { padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.header-menu-1 .sub-menu .ct-menu-link:hover { background: var(--theme-palette-color-6); }
.header-menu-1 .hm-all > a { font-weight: 700; color: var(--theme-palette-color-1); }
.hm-menu-sale > a { color: var(--theme-palette-color-1) !important; }

/* domača stran */
html body { background: #fff !important; } /* hm-schema.php daje body #EAF2F5 !important (inline, za našim CSS) */
.home .hm-sec { padding: 56px 16px; margin: 0 !important; }
.home .hm-sec.hm-alt { background: var(--theme-palette-color-7); border-top: 1px solid var(--theme-palette-color-5); border-bottom: 1px solid var(--theme-palette-color-5); }
.home .hm-wrap { max-width: var(--theme-normal-container-max-width, 1290px); margin: 0 auto; }
.home .hm-narrow { max-width: 860px; }
.home .hm-h { margin: 0 0 8px; text-align: center; }
.home .hm-sub { margin: 0 auto 28px; max-width: 640px; text-align: center; color: var(--theme-palette-color-3); }
.home .hm-more { margin: 24px 0 0; text-align: center; font-weight: 700; }
.home .hm-more a { text-decoration: none; }
.home .hm-xmas { max-width: var(--theme-normal-container-max-width, 1290px); margin: 16px auto 0 !important; }

.home .hm-hero { padding-top: 40px; padding-bottom: 48px; background: linear-gradient(180deg, #fff 0%, #fff5f5 100%); }
.home .hm-hero .wp-block-columns { gap: 48px; margin: 0 auto; }
.home .hm-kicker { margin: 0 0 10px; color: var(--theme-palette-color-1); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.home .hm-hero h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.home .hm-lead { margin: 0 0 24px; font-size: 18px; color: var(--theme-palette-color-3); }
.home .hm-cta { gap: 12px; margin-bottom: 22px; }
.home .hm-center { justify-content: center; margin: 0; }
.home .hm-cta .wp-block-button__link { padding: 14px 26px; font-weight: 700; font-size: 16px; }
.home .hm-cta .is-style-outline .wp-block-button__link { border: 2px solid var(--theme-palette-color-4); color: var(--theme-palette-color-4); background: #fff; }
.home .hm-cta .is-style-outline .wp-block-button__link:hover { border-color: var(--theme-palette-color-1); color: var(--theme-palette-color-1); }
.home .hm-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--theme-palette-color-4); }
.home .hm-ticks li::before { content: "✓"; margin-right: 6px; color: #2a9d55; font-weight: 800; }
.home .hm-hero-img { margin: 0; }
.home .hm-hero-img img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 40px rgba(27, 27, 37, .12); }

.hm-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hm-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--theme-palette-color-5); border-radius: 12px; background: #fff; color: var(--theme-palette-color-4); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hm-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27, 27, 37, .1); color: var(--theme-palette-color-1); }
.hm-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hm-tile-t { padding: 12px 12px 0; font-weight: 700; text-align: center; }
.hm-tile-t:last-child { padding-bottom: 14px; }
.hm-tile-p { padding: 2px 12px 14px; font-size: 14px; color: var(--theme-palette-color-3); text-align: center; }

.home .hm-steps { counter-reset: hm-step; gap: 20px; }
.home .hm-steps > .wp-block-column { padding: 24px; border-radius: 12px; background: #fff; border: 1px solid var(--theme-palette-color-5); }
.home .hm-steps h3 { margin: 0 0 6px; font-size: 18px; }
.home .hm-steps h3::before { counter-increment: hm-step; content: counter(hm-step); display: inline-flex; width: 30px; height: 30px; margin-right: 10px; align-items: center; justify-content: center; border-radius: 50%; background: var(--theme-palette-color-1); color: #fff; font-size: 15px; }
.home .hm-steps p { margin: 0; }
.home .hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; text-align: center; font-size: 14px; color: var(--theme-palette-color-3); }
.home .hm-stats strong { display: block; font-size: 30px; line-height: 1.2; color: var(--theme-palette-color-4); }

.home .hm-cards { gap: 20px; }
.home .hm-cards > .wp-block-column { padding: 22px; border-radius: 12px; border: 1px solid var(--theme-palette-color-5); border-top: 4px solid var(--theme-palette-color-1); }
.home .hm-cards h3 { margin: 0 0 6px; font-size: 18px; }
.home .hm-cards h3 a { color: inherit; text-decoration: none; }
.home .hm-cards h3 a:hover { color: var(--theme-palette-color-1); }
.home .hm-cards p { margin: 0; font-size: 15px; }

.home .hm-table { margin: 0 0 40px; overflow-x: auto; }
.home .hm-table table { min-width: 560px; font-size: 15px; background: #fff; }
.home .hm-table th { background: var(--theme-palette-color-4); color: #fff; }
.home .hm-table figcaption { font-size: 13px; text-align: left; }

.home .hm-faq h3 { margin: 22px 0 6px; font-size: 18px; }
.home .hm-faq > p { margin: 0; }
.home .hm-faq { max-width: 860px; }
.home .hm-review { text-align: center; }

@media (max-width: 999px) {
    .hm-tiles { grid-template-columns: repeat(3, 1fr); }
    .home .hm-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 781px) {
    .home .hm-sec { padding: 40px 16px; }
    .home .hm-hero { padding-top: 24px; }
    .home .hm-hero .wp-block-columns { gap: 24px; }
    .home .hm-lead { font-size: 16px; }
    .home .hm-cta .wp-block-button { flex: 1 1 100%; }
    .home .hm-cta .wp-block-button__link { width: 100%; }
}
@media (max-width: 689px) {
    /* ploščice: vodoraven drsnik namesto treh vrstic */
    .hm-tiles { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
    .hm-tiles::-webkit-scrollbar { display: none; }
    .hm-tile { flex: 0 0 42%; scroll-snap-align: start; }
    .hm-tile:hover { transform: none; }
}

/* stran izdelka */
.hm-size-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; background: none; color: var(--theme-palette-color-1); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex-basis: 100%; }
.hm-size-dlg { max-width: min(640px, calc(100vw - 32px)); padding: 16px; border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.hm-size-dlg::backdrop { background: rgba(27, 27, 37, .55); }
.hm-size-dlg .hm-size-x { position: absolute; top: 8px; right: 8px; display: flex; width: 36px; height: 36px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--theme-palette-color-6); color: var(--theme-palette-color-4); font-size: 24px; line-height: 1; cursor: pointer; }
.hm-size-dlg img { margin-top: 28px; }
.hm-size-dlg img { display: block; width: 100%; height: auto; }
.single-product .entry-content .hm-chk { margin-right: 6px; color: #2a9d55; font-weight: 800; }
.single-product .woocommerce-Tabs-panel--description { max-width: 860px; margin-inline: auto; }
.single-product .woocommerce-Tabs-panel--description img { max-width: 100%; height: auto; }
/* velikosti kot gumbi (woo-variation-swatches, tip button; vtičnik je nastavljen na okrogle) */
.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item { width: auto; min-width: 48px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item.button-variable-item .variable-item-span { border-radius: 8px; padding: 0; }
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item.selected:not(.no-stock) { background: var(--theme-palette-color-1); color: #fff; box-shadow: none; }
/* galerija ostane na zaslonu ob dolgih obrazcih (tisk po želji) */
@media (min-width: 1000px) { .single-product .product-entry-wrapper > .woocommerce-product-gallery { position: sticky; top: 24px; align-self: start; } }
/* piškotna pasica (CookieYes): barva znamke; na mobilniku kompaktno, gumbi v eni vrstici (prej pol zaslona) */
.cky-consent-container .cky-btn-accept { background-color: var(--theme-palette-color-1) !important; border-color: var(--theme-palette-color-1) !important; }
.cky-consent-container .cky-btn-customize, .cky-consent-container .cky-btn-reject { color: var(--theme-palette-color-3) !important; border-color: #c9ced6 !important; }
@media (max-width: 689px) {
	.cky-consent-container .cky-consent-bar { padding: 12px 0 !important; }
	.cky-consent-container .cky-notice .cky-title, .cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-btn-wrapper { padding: 0 16px !important; }
	.cky-consent-container .cky-title { font-size: 15px !important; margin: 0 28px 4px 0 !important; }
	.cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des p { font-size: 13px !important; line-height: 1.45 !important; }
	.cky-consent-container .cky-banner-btn-close { top: 10px !important; right: 10px !important; }
	.cky-consent-container .cky-notice-btn-wrapper { display: flex !important; flex-direction: row !important; gap: 8px !important; margin-top: 10px !important; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn { flex: 1 !important; margin: 0 !important; padding: 9px 4px !important; font-size: 14px !important; }
	.cky-consent-container .cky-btn-customize { order: 2 !important; }
	.cky-consent-container .cky-btn-reject { order: 1 !important; }
	.cky-consent-container .cky-btn-accept { order: 3 !important; }
}
/* oznake na karticah (hude-majice-snippets.php) */
.hm-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; line-height: 1; }
.hm-badges span { color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 4px 7px; border-radius: 4px; }
/* kontakt */
.hm-contact { list-style: none; padding: 0; margin: 1.5em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hm-contact li { margin: 0; padding: 16px 18px; border: 1px solid var(--theme-border-color, #e5e7eb); border-radius: 10px; }
.hm-contact strong { display: block; font-size: 13px; color: #6b7280; font-weight: 600; margin-bottom: 4px; }
.hm-contact a, .hm-contact span { font-size: 17px; font-weight: 600; }

/* Barve znamke iz logotipa: rdeča #eb2030 (paleta 1), črna #111 (paleta 4), rumena #ffbd04 za poudarke (Mato 2026-11-14) */
:root { --hm-yellow: #ffbd04; --hm-yellow-soft: #fff7d6; }
#hm-trust-bar { background: #111 !important; color: #fff !important; }
#hm-trust-bar strong, #hm-trust-bar b { color: var(--hm-yellow); }
.home .hm-hero { background: linear-gradient(180deg, #fff 0%, var(--hm-yellow-soft) 100%); }
.home .hm-kicker { display: inline-block; padding: 4px 10px; border-radius: 4px; background: var(--hm-yellow); color: #111; }
.home .hm-steps h3::before { background: var(--hm-yellow); color: #111; }
.home .hm-cards > .wp-block-column { border-top-color: var(--hm-yellow); }
.home .hm-search button, .hm-search button { background: #111; }
.hm-search button:hover { background: var(--theme-palette-color-1); }
.ct-footer { background: #111 !important; color: #d6d6d6; }
.ct-footer .widget-title { color: var(--hm-yellow); }
.ct-footer a { color: #fff; }
.ct-footer a:hover { color: var(--hm-yellow); }
.ct-footer [data-row*="bottom"] { border-top: 1px solid #2a2a2a; }
.ct-footer [data-id="socials"] svg, .ct-footer .ct-social-box svg { fill: #fff; }
.ct-footer [data-row*="bottom"], .ct-footer .ct-footer-copyright { color: #a3a3a3; }
#hm-newsletter { background: #111 !important; border-top: 1px solid #2a2a2a; }
#hm-newsletter input { background: #1d1d1d !important; border-color: #333 !important; }
#hm-newsletter [style*="#e63946"], #hm-newsletter button { background: var(--theme-palette-color-1) !important; }
/* Pas skupine 5P (mu-plugin iza-network) in povezave pravilnikov (iza-group-policies) temno, da se zlijeta z nogo in novicami */
body .iza-network { background: #161616; color: #a3a3a3; border-top: 1px solid #2a2a2a; }
body .iza-network p, body .iza-network__list span { color: #a3a3a3; }
body .iza-network .iza-network__tisk { color: #e5e5e5 !important; }
body .iza-network .iza-network__h { color: var(--hm-yellow) !important; }
body .iza-network .iza-network__disc { color: #8a8a8a !important; }
body .iza-network a, body .iza-group-policies a { color: #fff; }
body .iza-network a:hover, body .iza-group-policies a:hover { color: var(--hm-yellow); }
body .iza-group-policies { background: #111; color: #a3a3a3; opacity: 1 !important; border-top: 1px solid #2a2a2a; }
