/*
 * Smash Padel Shop – prodavnica, kategorije i brendovi u stilu nove početne.
 * Učitava se samo na tim stranama (mu-plugin smash-prodavnica.php); kartice proizvoda i traku koristi i strana proizvoda (smash-proizvod.php).
 */
.smash-shop-page,
.smash-product-page {
	--sh-ink: #0E1116;
	--sh-ink-2: #161B22;
	--sh-line-dark: #232A33;
	--sh-accent: #D4F23C;
	--sh-accent-hover: #E4FF5C;
	--sh-ground: #F3F4EF;
	--sh-line: #E2E5DC;
	--sh-muted: #4A535E;
	--sh-muted-dark: #A9B2BE;
	--sh-display: 'Barlow Condensed', 'Lato', sans-serif;
	background: var(--sh-ground);
}
.smash-shop-page .site-content { background: transparent; }
.sh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.sh-disp { font-family: var(--sh-display); font-weight: 700; letter-spacing: .01em; line-height: 1.02; text-transform: uppercase; margin: 0; }

/* Traka sa obaveštenjem */
.sh-ann { background: var(--sh-accent); color: var(--sh-ink); font-size: 14px; font-weight: 700; font-family: 'Lato', sans-serif; text-align: center; padding: 9px 16px; line-height: 1.4; }
.sh-ann span + span::before { content: "·"; margin: 0 14px; }

/* Naslovna traka */
.sh-shop-head { background: var(--sh-ink); color: #fff; }
.sh-shop-head .sh-wrap { padding-top: 40px; padding-bottom: 36px; }
.sh-crumbs { font-size: 14px; color: var(--sh-muted-dark); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sh-crumbs a, .sh-crumbs a:visited { color: var(--sh-muted-dark); text-decoration: none; }
.sh-crumbs a:hover, .sh-crumbs a:focus { color: var(--sh-accent); }
.sh-shop-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.sh-shop-head h1 { font-size: 64px; color: #fff; }
.sh-shop-count { color: var(--sh-accent); font-weight: 700; font-size: 16px; }
.sh-shop-desc { max-width: 680px; margin-top: 12px; color: #C3CAD3; font-size: 17px; }
.sh-shop-desc p { margin: 0; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sh-chips a, .sh-chips a:visited { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid #3A434F; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sh-chips a:hover, .sh-chips a:focus { border-color: var(--sh-accent); color: var(--sh-accent); }
.sh-chips a[aria-current] { background: var(--sh-accent); border-color: var(--sh-accent); color: var(--sh-ink); }

/* Raspored: Astra-ine bele kutije postaju providne, kartice nose belu boju. */
.smash-shop-page .site-content > .ast-container { padding-top: 40px; padding-bottom: 72px; }
.smash-shop-page.ast-separate-container .ast-woocommerce-container,
.smash-shop-page #primary { background: transparent; }
.smash-shop-page.ast-separate-container .ast-woocommerce-container { padding: 0; }
.smash-shop-page #primary { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.smash-shop-page .woocommerce-products-header:empty,
.smash-shop-page .woocommerce-products-header .page-description:has(.uagb-container-inner-blocks-wrap:empty) { display: none; }
.smash-shop-page .woocommerce-result-count { margin: 0 0 20px; line-height: 44px; color: var(--sh-muted); font-size: 15px; }
.smash-shop-page .woocommerce-ordering { margin: 0 0 20px; }
.smash-shop-page .woocommerce-ordering select { min-height: 44px; border: 1px solid var(--sh-line); border-radius: 22px; background-color: #fff; padding: 0 40px 0 18px; font-weight: 700; color: var(--sh-ink); }

/* Bočni meni sa kategorijama */
.smash-shop-page #secondary { margin-top: 0; }
.smash-shop-page #secondary .sidebar-main,
.smash-shop-page #secondary .ast-filter-wrap { padding: 0; background: transparent; }
.smash-shop-page #secondary .widget { background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; padding: 10px 6px; margin: 0; }
.smash-shop-page #secondary .widget-title:empty { display: none; }
.smash-shop-page #secondary .wpb_category_n_menu_accordion a { color: var(--sh-ink); font-weight: 700; border-radius: 8px; }
.smash-shop-page #secondary .wpb_category_n_menu_accordion .children a { font-weight: 400; color: var(--sh-muted); }
.smash-shop-page #secondary .wpb_category_n_menu_accordion a:hover,
.smash-shop-page #secondary .wpb_category_n_menu_accordion a:focus { color: var(--sh-ink); background: var(--sh-ground); }
.smash-shop-page #secondary .current-cat > a { background: var(--sh-ground); }

/* Kartice proizvoda (i "Slični proizvodi" na strani proizvoda) */
:is(.smash-shop-page, .smash-product-page) ul.products { gap: 20px; margin: 0; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product { position: relative; display: flex; flex-direction: column; margin: 0 !important; padding: 0; background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; overflow: hidden; text-align: left; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .astra-shop-thumbnail-wrap { position: relative; aspect-ratio: 1 / 1; margin: 0; background: #fff; border-bottom: 1px solid #EEF0EA; overflow: hidden; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .astra-shop-thumbnail-wrap > a { position: absolute; inset: 0; display: block; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .astra-shop-thumbnail-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 18px; object-fit: contain; box-sizing: border-box; transition: transform .3s; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.04); }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .onsale { position: absolute; top: 14px; left: 14px; right: auto; z-index: 2; min-width: 0; min-height: 0; margin: 0; padding: 4px 10px; border-radius: 6px; background: var(--sh-accent); color: var(--sh-ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .ast-shop-product-out-of-stock { position: absolute; left: 14px; right: 14px; bottom: 14px; top: auto; z-index: 2; padding: 6px 10px; border-radius: 6px; background: var(--sh-ink); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; line-height: 1.4; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .outofstock .astra-shop-thumbnail-wrap img,
:is(.smash-shop-page, .smash-product-page) ul.products li.product.outofstock .astra-shop-thumbnail-wrap img { opacity: .55; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .astra-shop-summary-wrap { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .woocommerce-loop-product__title { margin: 0; padding: 0; font-family: 'Lato', sans-serif; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--sh-ink); }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .ast-loop-product__link:hover .woocommerce-loop-product__title { text-decoration: underline; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .ast-woo-product-category { order: -1; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sh-muted); opacity: 1; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .price { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 6px 0 14px; font-size: 20px; font-weight: 700; color: var(--sh-ink); }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .price del { font-size: 15px; font-weight: 400; color: #5A636E; opacity: 1; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .price ins { text-decoration: none; background: none; font-weight: 700; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .review-rating { display: none; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: auto 0 0; padding: 8px 16px; border-radius: 22px; border: 2px solid var(--sh-ink); background: #fff; color: var(--sh-ink); font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; text-transform: none; letter-spacing: 0; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .button:hover,
:is(.smash-shop-page, .smash-product-page) ul.products li.product .button:focus { background: var(--sh-ink); color: #fff; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .button.loading { opacity: .6; }
:is(.smash-shop-page, .smash-product-page) ul.products li.product .added_to_cart { display: block; margin-top: 8px; text-align: center; font-size: 14px; font-weight: 700; color: var(--sh-ink); text-decoration: underline; }

/* Stranice */
.smash-shop-page .woocommerce-pagination { margin-top: 40px; }
.smash-shop-page .woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; border: 0; }
.smash-shop-page .woocommerce-pagination ul.page-numbers li { border: 0; }
.smash-shop-page .woocommerce-pagination .page-numbers a,
.smash-shop-page .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px; border: 1px solid var(--sh-line); background: #fff; color: var(--sh-ink); font-weight: 700; }
.smash-shop-page .woocommerce-pagination .page-numbers a:hover,
.smash-shop-page .woocommerce-pagination .page-numbers a:focus { border-color: var(--sh-ink); }
.smash-shop-page .woocommerce-pagination .page-numbers span.current { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; }

@media (min-width: 922px) {
	/* Same 1200 px column as the header and the band above. */
	.smash-shop-page .site-content > .ast-container { display: flex; align-items: flex-start; gap: 32px; max-width: 1240px; padding-left: 20px; padding-right: 20px; }
	.smash-shop-page.ast-left-sidebar #secondary { flex: 0 0 250px; width: 250px; margin: 0; padding: 0; border: 0; }
	.smash-shop-page.ast-left-sidebar #primary { flex: 1; width: auto; min-width: 0; margin: 0; padding: 0; border: 0; }
}
@media (max-width: 1000px) {
	.sh-shop-head h1 { font-size: 52px; }
}
@media (max-width: 921px) {
	/* Astra stacks the sidebar under the products here; the quick links at the top take its place. */
	.smash-shop-page #secondary { margin-top: 48px; }
}
@media (max-width: 640px) {
	.sh-wrap { padding: 0 16px; }
	.sh-ann { font-size: 13px; padding: 8px 12px; }
	.sh-ann span:nth-child(3) { display: none; }
	.sh-ann span + span::before { margin: 0 8px; }
	.sh-shop-head .sh-wrap { padding-top: 24px; padding-bottom: 22px; }
	.sh-crumbs { margin-bottom: 10px; font-size: 13px; }
	.sh-shop-head h1 { font-size: 42px; }
	.sh-shop-count { font-size: 14px; }
	.sh-shop-desc { font-size: 15px; margin-top: 8px; }
	/* One scrolling row of quick links instead of several lines. */
	.sh-chips { flex-wrap: nowrap; overflow-x: auto; margin: 18px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
	.sh-chips::-webkit-scrollbar { display: none; }
	/* Astra sets a narrower side padding with a stronger selector. */
	.smash-shop-page #content > .ast-container { padding: 20px 16px 44px !important; }
	.smash-shop-page .woocommerce-result-count { line-height: 1.4; margin: 0 0 10px; font-size: 14px; }
	.smash-shop-page .woocommerce-ordering { float: none; margin: 0 0 16px; }
	.smash-shop-page .woocommerce-ordering select { width: 100%; }
	:is(.smash-shop-page, .smash-product-page) ul.products { gap: 10px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .astra-shop-thumbnail-wrap img { padding: 10px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .onsale { top: 8px; left: 8px; font-size: 13px; padding: 3px 8px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .ast-shop-product-out-of-stock { left: 8px; right: 8px; bottom: 8px; font-size: 11px; padding: 4px 6px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .astra-shop-summary-wrap { padding: 12px 12px 14px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .ast-woo-product-category { font-size: 11px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .price { font-size: 17px; margin: 4px 0 12px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .price del { font-size: 13px; }
	:is(.smash-shop-page, .smash-product-page) ul.products li.product .button { min-height: 44px; font-size: 14px; padding: 6px 10px; }
	.smash-shop-page .woocommerce-pagination ul.page-numbers { gap: 6px; }
	.smash-shop-page .woocommerce-pagination .page-numbers a,
	.smash-shop-page .woocommerce-pagination .page-numbers span { min-width: 40px; height: 40px; padding: 0 6px; }
}
