/* joolpool theme: loaded on the site and in the Site Editor (add_editor_style).
   Colours, fonts and sizes come from theme.json; this file only holds layout rules. */

/* ---------- header ---------- */
.joolpool-header{container-type:inline-size;container-name:jp-header}
.joolpool-header-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:8px 40px 0;max-width:1200px;margin:0 auto}
.joolpool-header-row>*{margin:0}
.joolpool-header-row figure{line-height:0}
.joolpool-header-row .joolpool-logo-globe{justify-self:start}
.joolpool-header-row .joolpool-logo-globe img{width:80px;height:80px;display:block}
.joolpool-header-row .joolpool-logo-word{justify-self:center}
.joolpool-header-row .joolpool-logo-word img{width:260px;height:auto;display:block}
.joolpool-header-nav{display:flex;justify-content:center;padding:0 20px 4px}
.joolpool-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:4px;justify-self:end}
.joolpool-header-tools>*{margin:0}
.joolpool-tool{position:relative}
.joolpool-tool-link{position:relative;display:block;padding:10px 8px;line-height:0}
.joolpool-icon{display:block;overflow:visible;fill:none;stroke:var(--wp--preset--color--primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.joolpool-icon .sh{transition:fill .2s}
.joolpool-tool:hover .joolpool-icon .sh,.joolpool-tool:focus-within .joolpool-icon .sh{fill:var(--wp--preset--color--primary)}
.joolpool-cart-count{position:absolute;right:-2px;top:2px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:9px;background:var(--wp--preset--color--primary);color:var(--wp--preset--color--white);font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--wp--preset--color--white)}
.joolpool-cart-count[data-count="0"]{display:none}
.joolpool-flyout{display:none;position:absolute;right:0;top:100%;z-index:100;width:260px;padding:16px;background:var(--wp--preset--color--white);border:1px solid var(--wp--preset--color--primary);box-shadow:0 4px 10px -2px rgba(0,0,0,.1);font-size:14px;line-height:1.5;text-align:left}
.joolpool-tool:hover .joolpool-flyout,.joolpool-tool:focus-within .joolpool-flyout{display:block}
.joolpool-flyout a{color:var(--wp--preset--color--grey)}
.joolpool-flyout a:hover{color:var(--wp--preset--color--primary)}
.joolpool-flyout-title{margin:0 0 12px;color:var(--wp--preset--color--logo-teal);font-size:16px}
.joolpool-cart-flyout{width:300px}
.joolpool-cart-flyout ul{list-style:none;margin:0 0 12px;padding:0}
.joolpool-cart-flyout li{position:relative;padding:8px 24px 8px 0;border-bottom:1px solid var(--wp--preset--color--tint);overflow:hidden}
.joolpool-cart-flyout li img{float:left;width:48px;height:auto;margin:0 10px 0 0}
.joolpool-cart-flyout a.remove{position:absolute;right:0;top:8px}
.joolpool-cart-flyout .total{margin:0 0 12px}
.joolpool-cart-flyout .total .woocommerce-Price-amount{color:var(--wp--preset--color--primary)}
.joolpool-cart-flyout .buttons,.joolpool-flyout-buttons{display:flex;gap:8px;margin:0}
.joolpool-cart-flyout .buttons .button,.joolpool-flyout-btn{flex:1;padding:.55em 1em;border-radius:999px;background:var(--wp--preset--color--grey);color:var(--wp--preset--color--white)!important;font-size:15px;text-align:center;text-decoration:none;white-space:nowrap}
.joolpool-cart-flyout .buttons .button.checkout,.joolpool-flyout-btn.is-primary{background:var(--wp--preset--color--primary-dark)}
.joolpool-cart-flyout .buttons .button:hover,.joolpool-flyout-btn:hover{background:var(--wp--preset--color--primary)}
.joolpool-cart-flyout .woocommerce-mini-cart__empty-message{margin:0}
.joolpool-header-nav .wp-block-navigation{gap:0}
.joolpool-header-nav .wp-block-navigation__container{gap:0}
.joolpool-header-nav .wp-block-navigation-item__content{padding:6px 15px}
.joolpool-header-nav .wp-block-navigation-item.has-child>.wp-block-navigation-item__content{padding-right:3px}
.joolpool-header-nav .wp-block-navigation__submenu-icon{margin:0 12px 0 0;padding:0;width:.7em}
.joolpool-header-nav .wp-block-navigation-item__content:hover,.joolpool-header-nav .current-menu-item>.wp-block-navigation-item__content{color:var(--wp--preset--color--primary)}
.joolpool-header-nav .wp-block-navigation__submenu-container{width:max-content!important;min-width:240px!important;padding:0;background:var(--wp--preset--color--white);border:1px solid var(--wp--preset--color--primary)!important;box-shadow:0 4px 10px -2px rgba(0,0,0,.1)}
.joolpool-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:13.5px 15px;white-space:nowrap;color:var(--wp--preset--color--grey)}
.joolpool-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover{color:var(--wp--preset--color--primary)}
@container jp-header (max-width:760px){
	.joolpool-header-row{padding:8px 16px 0;gap:10px}
	.joolpool-header-row .joolpool-logo-globe img{width:50px;height:50px}
	.joolpool-header-row .joolpool-logo-word img{width:140px}
}

/* ---------- footer ---------- */
.joolpool-footer{container-type:inline-size;container-name:jp-footer;background:var(--wp--preset--color--white)}
.joolpool-footer-main{padding:80px 90px}
.joolpool-footer-main .wp-block-columns{align-items:center;gap:40px;margin:0}
.joolpool-footer-main :not(.wp-block-column)>.wp-block-columns{display:grid;grid-template-columns:1fr 340px 1fr}
.joolpool-footer-main :not(.wp-block-column)>.wp-block-columns>.wp-block-column{flex:none;width:auto;margin:0}
.joolpool-footer-main :not(.wp-block-column)>.wp-block-columns>.wp-block-column:nth-child(1){max-width:500px}
.joolpool-footer-main :not(.wp-block-column)>.wp-block-columns>.wp-block-column:nth-child(3){max-width:520px;justify-self:end;width:100%}
.joolpool-footer-main .wp-block-columns .wp-block-columns{display:flex;gap:20px}
.joolpool-footer-main .wp-block-columns .wp-block-columns>.wp-block-column{flex:1 1 0;min-width:0}
.joolpool-footer,.joolpool-footer p,.joolpool-footer a{color:var(--wp--preset--color--primary)}
.joolpool-footer a:hover{color:var(--wp--preset--color--grey)}
.joolpool-footer h3.joolpool-footer-bulb{font-weight:500;font-size:1.3em;margin:0 0 20px}
.joolpool-footer h3.joolpool-footer-bulb::before{content:"";display:block;width:50px;height:50px;margin-bottom:20px;background:var(--wp--preset--color--primary);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6M10 21h4M12 2a7 7 0 0 0-4 12.7c.7.6 1 1.3 1 2.3h6c0-1 .3-1.7 1-2.3A7 7 0 0 0 12 2z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6M10 21h4M12 2a7 7 0 0 0-4 12.7c.7.6 1 1.3 1 2.3h6c0-1 .3-1.7 1-2.3A7 7 0 0 0 12 2z'/></svg>") center/contain no-repeat}
.joolpool-footer .joolpool-footer-name{font-size:30px;line-height:1.2;margin:0 0 20px}
.joolpool-footer .wp-block-image{margin:0 0 10px}
.joolpool-footer .wp-block-image img{width:100px;height:auto}
.joolpool-footer .wp-block-social-links{gap:8px;font-size:18px}
.joolpool-footer .wp-social-link{background:var(--wp--preset--color--primary)!important;border-radius:50%}
.joolpool-footer .wp-social-link a,.joolpool-footer .wp-social-link svg{color:#fff;fill:#fff}
.joolpool-footer .wp-social-link a{padding:.6em}
.joolpool-footer h4.wp-block-heading{font-family:var(--wp--preset--font-family--quicksand);font-weight:500;font-size:20px;color:var(--wp--preset--color--primary);margin:0 0 10px}
.joolpool-footer-links{list-style:none;margin:0;padding:0;text-align:center}
.joolpool-footer-links li{margin:0;padding:6px 0;font-size:15px;text-transform:uppercase;line-height:1.6;white-space:nowrap}
.joolpool-footer-links a{font-size:15px}
.joolpool-footer-bar{background:var(--wp--preset--color--bar);padding:1.1em 20px;text-align:center}
.joolpool-footer-bar,.joolpool-footer-bar p{color:var(--wp--preset--color--white);margin:0;font-size:14px}
@container jp-footer (max-width:1000px){
	.joolpool-footer-main{padding:50px 20px}
	.joolpool-footer-main .wp-block-column{text-align:center}
	.joolpool-footer-main h3.joolpool-footer-bulb::before{margin-left:auto;margin-right:auto}
	.joolpool-footer-main :not(.wp-block-column)>.wp-block-columns{grid-template-columns:1fr;row-gap:40px}
	.joolpool-footer-main :not(.wp-block-column)>.wp-block-columns>.wp-block-column:nth-child(n){max-width:none;justify-self:center}
}

/* ---------- content ---------- */
.wp-block-quote{padding-left:1em}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--primary);border:2px solid var(--wp--preset--color--primary)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--primary);color:var(--wp--preset--color--white)}

/* ---------- carried over from the Astra Additional CSS ---------- */
.entry-content p:has(+ .wp-block-list){margin-bottom:.5em}
.entry-content .wp-block-list{margin-top:0}
.joolpool-tiles{gap:2px}
.joolpool-tiles>.wp-block-image{margin:0}
.joolpool-tiles .wp-block-image img{display:block;width:100%;height:auto;transition:filter .3s ease}
.joolpool-tiles .wp-block-image a{display:block;line-height:0}
.joolpool-tiles .wp-block-image a:hover img{filter:brightness(1.15)}
.joolpool-hero-title{text-shadow:0 2px 10px rgba(0,0,0,.45)}
.joolpool-featured ul.products li.product{display:flex;flex-direction:column}
.joolpool-featured ul.products li.product .woocommerce-loop-product__title{min-height:2.8em}
.joolpool-featured ul.products li.product .button{margin-top:auto;align-self:center}

/* all pill buttons share one size (theme.json sets it for block buttons) */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.wc-block-components-button{font-size:15px}

/* basket count shown in the menu when the basket icon is switched off */
.joolpool-nav-basket .joolpool-cart-count{position:static;display:inline;min-width:0;height:auto;padding:0;margin-left:.3em;border-radius:0;background:none;color:inherit;box-shadow:none;font-size:inherit;font-weight:inherit;line-height:inherit}
.joolpool-nav-basket .joolpool-cart-count::before{content:"("}
.joolpool-nav-basket .joolpool-cart-count::after{content:")"}
