/*
Theme Name: ByThousgaard
Description: Personligt WooCommerce-bloktema i rosa med håndskrevne overskrifter.
Version: 1.1.4
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: bythousgaard
*/
:root{--bth-border:#eedce0;--bth-rose:#af405f;--bth-paper:#fffafb}
*{box-sizing:border-box}
body{margin:0}
.wp-site-blocks>header,.wp-site-blocks>footer,.wp-site-blocks>main{margin-block-start:0}
a{text-underline-offset:3px}a:hover{color:var(--bth-rose)}
button,input,select,textarea{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--bth-rose);outline-offset:4px}
.bth-header,.bth-footer,.bth-main{width:min(1320px,calc(100% - 40px));margin-inline:auto}
.bth-header{padding-block:18px}
.bth-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.bth-header-inner>*{margin-block:0}
.bth-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.bth-brand .custom-logo-link{display:block;flex-shrink:0;line-height:0}
.bth-brand .custom-logo{width:76px;height:76px;object-fit:contain;border-radius:50%}
.bth-wordmark{font-family:var(--wp--preset--font-family--handwriting);font-size:36px;line-height:1.1;text-decoration:none;white-space:nowrap}
.bth-wordmark span{color:var(--bth-rose)}
.bth-brand p{font-size:10px;margin:5px 0 0}
.bth-header .wp-block-navigation{gap:22px}
.bth-header-actions{display:flex;align-items:center;gap:10px}
.bth-header-actions>*{margin:0}
.bth-header .wp-block-search__button{background:transparent;color:#292322;border:0;padding:8px}
.bth-header .wp-block-search__input{max-width:180px;min-width:0;border:1px solid var(--bth-border);border-radius:8px}
.bth-header .wp-block-search__inside-wrapper{padding:0;border:0}
.bth-note{font-family:var(--wp--preset--font-family--handwriting);font-size:28px;line-height:1.15;text-align:center;padding:18px 24px;background:#f8dce3;border-radius:47% 53% 44% 56% / 55% 40% 60% 45%;transform:rotate(-5deg)}
.bth-header .bth-note{font-size:24px;flex-shrink:0}
.bth-home-cover{margin:0;overflow:hidden;border-radius:16px}
.bth-home-cover img{display:block;width:100%;height:auto}
.bth-home-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;background:#fbe7eb;border-radius:0 0 14px 14px;margin-top:0}
.bth-home-intro h1{font-size:clamp(32px,3.5vw,48px);margin:0}
.bth-home-intro p{margin:4px 0 0;font-size:15px}
.bth-home-intro .wp-block-buttons{flex-shrink:0;margin:0;gap:10px}
.wp-block-button__link{text-decoration:none;transition:background .15s}
.wp-block-button__link:hover,.woocommerce button.button.alt:hover{background:#872c46;color:white}
.bth-home-section{margin-block:26px}
.bth-home-section>h2{margin:0 0 16px;font-size:40px}
.bth-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.bth-category-card{display:block;overflow:hidden;background:var(--bth-paper);border:1px solid var(--bth-border);border-radius:12px;text-decoration:none;transition:box-shadow .15s}
.bth-category-card:hover{box-shadow:0 4px 16px #af405f20}
.bth-category-card img,.bth-category-placeholder{height:auto;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;object-fit:cover;background:#f5dbe2;font-family:var(--wp--preset--font-family--handwriting);font-size:64px;color:var(--bth-rose)}
.bth-category-card>span:last-child{display:flex;justify-content:space-between;align-items:center;padding:12px;font-size:14px;font-weight:700;gap:8px}
.bth-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:20px 24px;background:#fbe7eb;border-radius:14px;margin-block:22px}
.bth-benefits>.wp-block-group{display:flex;align-items:center;gap:12px;margin:0}
.bth-benefits p{margin:0;font-size:13px;line-height:1.5}
.bth-benefits .bth-benefit-icon{font-size:42px;line-height:1;color:#ba506c}
.bth-about{display:grid;grid-template-columns:280px minmax(0,1fr) 180px;gap:30px;align-items:center;margin-block:28px}
.bth-about>*{margin:0}
.bth-about figure img{display:block;width:100%;height:auto;border-radius:16px}
.bth-about h2{font-size:40px;margin:0 0 12px}
.bth-about p{margin-block:12px}
.bth-about .bth-note{font-size:30px;padding-block:35px}
.bth-cta{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 36px;background:#fbe7eb;border-radius:16px;margin-block:28px}
.bth-cta>*{margin:0}.bth-cta h2{margin:0;font-size:42px}.bth-cta p{margin:6px 0}.bth-cta strong{font-size:21px}
.bth-cta .bth-note{font-size:28px;background:transparent}
.bth-footer{display:flex;justify-content:space-between;align-items:center;gap:30px;padding-block:28px 40px}
.bth-footer>*{margin:0}.bth-footer-links{font-size:12px;line-height:1.9}.bth-footer-links p{margin:8px 0}.bth-footer-links a{text-decoration:none}.bth-footer .bth-note{font-size:24px;background:transparent}
.bth-catalog,.bth-single{padding-block:10px 35px}
.bth-category-cover{position:relative;isolation:isolate;overflow:hidden;min-height:220px;background:#fbe7eb;border-radius:16px;display:flex;align-items:center}
.bth-category-cover.has-cover{min-height:360px}
.bth-category-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.bth-category-cover.has-cover:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff0f4 0%,#fff0f4f2 30%,#fff0f480 55%,transparent 75%)}
.bth-category-cover-copy{padding:36px 42px;width:100%;max-width:100%}
.bth-category-cover-copy h1{font-size:clamp(38px,4.5vw,64px);margin:0 0 18px;line-height:1.05}
.bth-category-cover-copy h1 span{color:var(--bth-rose)}
.bth-category-cover-copy p{margin:0 0 12px;font-size:17px}
.bth-catalog .woocommerce-breadcrumb,.bth-single .woocommerce-breadcrumb{font-size:13px;margin-block:20px}
.bth-catalog-layout{gap:30px;margin-top:28px}.bth-catalog-layout>.wp-block-column{min-width:0}
.bth-catalog-layout>.wp-block-column:first-child{padding:18px;background:#fdf0f3;border-radius:12px;align-self:flex-start}
.bth-catalog-layout>.wp-block-column:first-child h2,.bth-catalog-layout>.wp-block-column:first-child h3{font-family:var(--wp--preset--font-family--body);font-weight:700;font-size:16px}
.wc-block-product-categories-list{padding-left:16px;list-style:none;font-size:14px}.wc-block-product-categories-list--depth-0{padding-left:0}.wc-block-product-categories-list li{margin-block:10px}.wc-block-product-categories-list a{text-decoration:none}
.bth-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;font-size:14px}.bth-catalog-toolbar>*{margin:0}
.bth-catalog select,.bth-single select{max-width:100%;padding:10px 12px;background:#fffafb;border:1px solid var(--bth-border);border-radius:8px;color:inherit}
.bth-products .wc-block-product-template{gap:16px!important}
.bth-products .wc-block-product{background:var(--bth-paper);border:1px solid var(--bth-border);border-radius:12px;overflow:hidden;padding-bottom:12px;min-width:0}
.bth-products .wc-block-components-product-image{margin:0 0 10px}
.bth-products .wc-block-components-product-image img{aspect-ratio:1;object-fit:cover;width:100%}
.bth-products .wp-block-post-title{font:700 14px/1.4 var(--wp--preset--font-family--body);margin:8px 12px 4px!important}
.bth-products .wp-block-post-title a{text-decoration:none}
.bth-products .wp-block-woocommerce-product-price{margin:0 12px!important;font-size:14px;font-weight:700}
.bth-single>.wp-block-columns{gap:38px;margin-block:24px 36px}.bth-single .wp-block-post-title{font-size:40px;margin-top:0}
.bth-single .woocommerce-product-gallery img{border-radius:12px}.bth-single .woocommerce-product-gallery .flex-control-thumbs{margin-top:12px;display:flex;gap:8px}
.bth-single .wp-block-woocommerce-product-price{font-weight:700}.bth-single .wp-block-post-excerpt{font-size:16px}
.bth-single .wp-block-woocommerce-product-meta{font-size:12px;color:#6c5c60}
.bth-single .wp-block-woocommerce-product-meta .wp-block-group{flex-wrap:wrap}
.woocommerce div.product form.cart .button,.woocommerce button.button.alt{background:var(--bth-rose);color:#fff;border-radius:10px;padding:14px 24px;font-weight:700}
.bth-single .quantity input{border:1px solid var(--bth-border);border-radius:8px;padding:10px}
.bth-single .wp-block-woocommerce-product-details{background:#fbe7eb;border:8px solid #fbe7eb;border-radius:12px;padding:0;margin-block:32px}
.bth-single .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs{display:flex;gap:6px;overflow-x:auto;margin:0;padding:6px 8px 0;background:#fbe7eb;border:0}
.bth-single .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li{flex:0 0 auto;margin:0;padding:0;border:0;border-radius:10px 10px 0 0;background:transparent;opacity:1;font-weight:400}
.bth-single .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li a{display:block;padding:12px 22px;font-size:14px;font-weight:400;white-space:nowrap}
.bth-single .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li.active{background:#fff;border:0}
.bth-single .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li.active a{font-weight:700}
.bth-single .wp-block-woocommerce-product-details.is-style-minimal ul.tabs.wc-tabs li a:focus-visible{outline-offset:-4px;border-radius:10px 10px 0 0}
.bth-single .wp-block-woocommerce-product-details .woocommerce-tabs .woocommerce-Tabs-panel.panel{margin:0;padding:clamp(20px,3vw,36px);border-radius:12px;background:#fff}
.bth-single .wp-block-woocommerce-product-details .woocommerce-Tabs-panel>:first-child{margin-top:0}
.bth-single .related h2{font-size:36px}
.bth-single .wp-block-woocommerce-related-products .wp-block-post-title{font:700 14px/1.4 var(--wp--preset--font-family--body)}
.bth-single iframe{max-width:100%}
@media(min-width:1100px){.bth-home .wc-block-product-template{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(max-width:1150px){.bth-header .bth-note{display:none}.bth-header-inner{gap:16px}.bth-wordmark{font-size:30px}.bth-brand .custom-logo{width:60px;height:60px}.bth-home-intro{align-items:flex-start;flex-direction:column}.bth-about{grid-template-columns:230px minmax(0,1fr)}.bth-about>.bth-note{display:none}.bth-footer{flex-wrap:wrap}.bth-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:781px){.bth-header,.bth-footer,.bth-main{width:calc(100% - 28px)}.bth-header-inner{flex-wrap:wrap}.bth-header .wp-block-navigation{margin-left:auto;order:2}.bth-header-actions{order:1;margin-left:auto}.bth-brand p{font-size:9px}.bth-wordmark{font-size:28px}.bth-brand .custom-logo{width:52px;height:52px}.bth-header{padding-block:12px}.bth-home-cover{border-radius:10px}.bth-home-intro{padding:18px}.bth-home-intro .wp-block-buttons{flex-wrap:wrap}.bth-home-section>h2,.bth-about h2{font-size:34px}.bth-about{grid-template-columns:160px minmax(0,1fr);gap:20px}.bth-cta{padding:24px;flex-wrap:wrap}.bth-cta .bth-note{display:none}.bth-category-cover-copy{padding:28px}.bth-category-cover.has-cover{min-height:280px}.bth-catalog-layout>.wp-block-column:first-child{flex-basis:100%!important}.bth-catalog-layout .wc-block-product-categories-list--depth-0{display:flex;flex-wrap:wrap;gap:4px 20px}.bth-single>.wp-block-columns{gap:24px}.bth-catalog-toolbar{flex-wrap:wrap}.bth-footer .bth-note{display:none}.bth-products .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.bth-header-actions .wp-block-search__input{max-width:110px}.bth-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bth-about{grid-template-columns:1fr}.bth-about figure{width:190px;margin-inline:auto}.bth-benefits{padding:16px;gap:16px 10px}.bth-benefits .bth-benefit-icon{font-size:30px}.bth-benefits p{font-size:11px}.bth-category-cover-copy{max-width:100%;padding:24px}.bth-category-cover.has-cover:after{background:#fff0f4d9}.bth-footer{gap:16px}.bth-home-intro .wp-block-button__link{font-size:12px;padding:12px 16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Keep WooCommerce's price inputs inside the narrow catalog sidebar. */
.bth-catalog .wp-block-woocommerce-product-filters,.bth-catalog .wc-block-product-filters__content,.bth-catalog .wp-block-woocommerce-product-filter-price,.bth-catalog .wp-block-woocommerce-product-filter-price-slider{min-width:0;width:100%;max-width:100%}
.bth-catalog .wc-block-product-filter-price-slider__content{min-width:0;max-width:100%;grid-template-columns:68px minmax(0,1fr) 68px;column-gap:6px}
.bth-catalog .wp-block-woocommerce-product-filter-price-slider input{min-width:0;max-width:100%;accent-color:var(--bth-rose)}
.bth-catalog .wc-block-product-filter-price-slider__left,.bth-catalog .wc-block-product-filter-price-slider__right{min-width:0}
.bth-catalog .wp-block-woocommerce-product-filter-price-slider .text input[type=text]{width:68px;max-width:100%;min-height:0;height:28px;margin:0;border:1px solid var(--bth-border);border-radius:6px;background:var(--bth-paper);padding:3px 5px;font-size:12px;line-height:20px;text-align:center}
