/*
Theme Name: HO Warenhaus Native
Description: Eigenständiges, schlankes Marktplatz-Theme für WooCommerce.
Version: 1.1.9
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ho-warenhaus-native
*/
:root{--navy:#123c60;--blue:#007bbd;--line:#dce4eb;--muted:#f4f7fa;--ink:#172b3b}*{box-sizing:border-box}body{margin:0;font:16px/1.55 system-ui,sans-serif;color:var(--ink);background:white}a{color:#075985;text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #e7a400;outline-offset:3px}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit;max-width:100%}.wrap{width:min(1440px,94%);margin:auto}.top{background:var(--navy);color:white}.top a{color:white}.head{display:flex;align-items:center;gap:24px;padding:18px 0;flex-wrap:wrap}.brand{font-weight:800;font-size:24px;white-space:nowrap}.custom-logo{width:180px;height:auto}.search{flex:1;display:flex;min-width:220px}.search input{flex:1;min-width:0;padding:10px;border:1px solid var(--line);border-radius:5px 0 0 5px}.btn,button,input[type=submit]{background:var(--blue);color:white;border:0;border-radius:5px;padding:10px 16px;cursor:pointer}.actions{display:flex;gap:16px;align-items:center}.nav{background:var(--muted);border-bottom:1px solid var(--line)}.nav ul,.foot ul{display:flex;flex-wrap:wrap;gap:20px;list-style:none;margin:0;padding:12px 0}.nav li ul{display:block;padding:4px 12px}.market{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;padding:24px 0}.categories{border:1px solid var(--line);border-radius:6px;padding:16px;align-self:start}.categories h2{font-size:18px;margin-top:0}.categories ul{list-style:none;padding:0;margin:0}.categories li a{display:block;padding:8px 0;border-bottom:1px solid var(--line)}.hero{background:#e7f2fa;border-radius:8px;padding:32px;margin-bottom:24px}.hero h1{font-size:clamp(25px,4vw,42px);line-height:1.15;margin:0 0 16px}.hero img{display:block;width:100%;border-radius:6px;margin-bottom:16px}.content{padding:24px 0;min-height:50vh}.foot{background:var(--muted);border-top:1px solid var(--line);padding:24px 0}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:white;padding:12px;z-index:9999}.woocommerce ul.products li.product{border:1px solid var(--line);border-radius:6px;padding:12px}.woocommerce ul.products li.product a img{object-fit:contain;aspect-ratio:1}.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:8px}.woocommerce table.shop_table{overflow-wrap:anywhere}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.alignwide{max-width:100%}.aligncenter{display:block;margin:auto}@media(max-width:760px){.head{gap:12px}.search{order:3;flex-basis:100%}.market{grid-template-columns:1fr}.categories{padding:10px}.categories ul{display:flex;overflow:auto;gap:16px}.categories li{flex-shrink:0}.hero{padding:18px}.nav ul{gap:12px}.actions{margin-left:auto;font-size:14px}.brand{font-size:19px}.custom-logo{width:125px}.woocommerce ul.products li.product{padding:8px}}
:root{--ho-primary:#8B1828;--ho-background:#FAF5ED;--ho-ink:#292525;--ho-gold:#C69B53;--tile-height:150px;--mobile-columns:2;--navy:var(--ho-primary);--blue:var(--ho-primary);--ink:var(--ho-ink);--muted:var(--ho-background);--line:#e5d9ca}body{background:var(--ho-background)}a{color:var(--ho-primary)}.head{padding:12px 0;gap:18px}.nav,.foot{background:var(--ho-ink);color:white}.nav a,.foot a{color:white}.search button{background:var(--ho-gold);color:#292525;border-radius:0 5px 5px 0}.market{grid-template-columns:210px minmax(0,1fr);gap:16px;padding:16px 0}.market.no-sidebar{grid-template-columns:minmax(0,1fr)}.market-main{min-width:0}.categories,.tile,.woocommerce ul.products li.product{background:white}.categories h2,.product-section h2{color:var(--ho-primary)}.tiles{display:grid;gap:12px;margin-bottom:16px}.tiles-1{grid-template-columns:1fr}.tiles-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tiles-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tiles-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tile{border:1px solid var(--line);border-radius:6px;overflow:hidden;text-align:center}.tile a{display:block}.tile img{display:block;width:100%;height:var(--tile-height);object-fit:cover}.tile span{display:block;padding:12px 6px;color:var(--ho-primary);font-weight:700}.product-section h2{font-size:22px;margin:12px 0}.woocommerce ul.products li.product .price{color:var(--ho-primary);font-weight:700}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--ho-primary);color:white}.woocommerce ul.products li.product .star-rating{color:#926b28}.woocommerce span.onsale{background:var(--ho-primary);color:white}@media(max-width:760px){.market{grid-template-columns:minmax(0,1fr)}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tiles-1{grid-template-columns:1fr}.tile img{height:min(var(--tile-height),110px)}.woocommerce .product-section ul.products,.product-section .woocommerce ul.products{display:grid;grid-template-columns:repeat(var(--mobile-columns),minmax(0,1fr));gap:10px}.product-section ul.products:before,.product-section ul.products:after{display:none}.product-section .woocommerce ul.products li.product{width:100%!important;float:none!important;margin:0!important;min-width:0}.head{gap:10px}}

/* Consistent product grids, including WooCommerce archives. */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(var(--ho-columns,5),minmax(0,1fr));gap:16px;align-items:stretch;margin:0 0 24px;padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;min-width:0;display:flex;flex-direction:column;position:relative;overflow-wrap:anywhere}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;color:var(--ho-ink)}
.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1;object-fit:contain;margin:0 0 10px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--ho-ink);line-height:1.4}
.woocommerce ul.products li.product .button{margin-top:auto;align-self:stretch;text-align:center;white-space:normal;line-height:1.35}
.woocommerce ul.products li.product .price{margin-bottom:12px}
.woocommerce ul.products li.product .onsale{top:8px;right:8px;left:auto;margin:0;min-height:0;min-width:0;padding:5px 8px;line-height:1.4;border-radius:4px;font-size:12px}
.categories li a{overflow-wrap:anywhere}.product-section{margin-bottom:24px}
.foot .ho-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.foot h2{font-size:17px;color:var(--ho-gold);margin:0 0 12px}.foot ul{display:block;padding:0;margin:0;list-style:none}.foot li{margin:0 0 8px;overflow-wrap:anywhere}.foot li ul{padding-left:12px}.foot .ho-copyright{border-top:1px solid #655950;padding-top:16px;margin-top:24px;color:var(--ho-gold)}
@media(max-width:1000px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.foot .ho-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.woocommerce ul.products{grid-template-columns:repeat(var(--mobile-columns),minmax(0,1fr));gap:10px}.categories li{max-width:85%}}
@media(max-width:480px){.foot .ho-footer-grid{grid-template-columns:1fr}}
/* Four-column footer based on the original shop layout. */
.foot{background:var(--ho-ink);color:var(--ho-background);padding:48px 0 20px}.foot .ho-footer-grid{gap:32px;align-items:start}.foot h2{color:var(--ho-gold);font-size:18px;line-height:1.4;margin:0 0 20px}.foot a{color:var(--ho-background)}.foot p{margin:0 0 16px}.foot .ho-footer-intro,.foot .ho-footer-contact{text-align:center}.foot .ho-footer-links li{margin:0;border-bottom:1px solid #655950}.foot .ho-footer-links li a{display:block;padding:9px 0 9px 16px;position:relative}.foot .ho-footer-links li a::before{content:'›';position:absolute;left:0;color:var(--ho-gold)}.foot .ho-footer-button{display:inline-block;background:var(--ho-primary);color:white;padding:12px 20px;border-radius:4px;text-transform:uppercase;font-weight:600}.foot .ho-footer-partners{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;border-top:1px solid #655950;margin-top:28px;padding-top:18px}.foot .ho-footer-partners a{color:var(--ho-gold)}.foot .ho-copyright{text-align:center;margin:18px 0 0}.foot section{min-width:0;overflow-wrap:anywhere}

/* V1.1.4: Wide Marketplace Edition */
.wrap{width:95%;max-width:1800px;margin-inline:auto}
.foot .ho-footer-grid{grid-template-columns:minmax(0,22fr) minmax(0,23fr) minmax(0,25fr) minmax(0,30fr);gap:clamp(20px,2.5vw,48px);align-items:start}
@media(max-width:1000px){
 .foot .ho-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
}
@media(max-width:600px){
 .foot .ho-footer-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 .foot{padding-top:28px}
}

/* Compact marketplace */
.head,.ho-nav,.market{max-width:1440px}.head{padding:8px 0;gap:14px}.custom-logo{width:135px;max-height:48px;object-fit:contain}.actions a{display:flex;align-items:center}.nav .ho-nav ul{justify-content:space-between;gap:12px;padding:10px 0}.market{grid-template-columns:230px minmax(0,1fr);gap:14px}.categories{padding:12px}.categories li a{hyphens:auto;font-size:14px}.tiles{gap:8px;margin-bottom:8px}.tile span{padding:5px;font-size:14px}.ho-slogan{background:#ede2cf;text-align:center;padding:8px;margin:0 0 12px;border-radius:5px;font-size:14px}.product-section h2{font-size:20px}.woocommerce ul.products{gap:10px}.woocommerce ul.products li.product{padding:8px}.woocommerce ul.products li.product a img{height:clamp(130px,15vw,205px);aspect-ratio:auto;object-fit:contain}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;font-weight:500}.woocommerce ul.products li.product .button{font-size:13px;padding:9px 5px}.woocommerce ul.products li.product .price{font-size:15px}.product-section{margin-bottom:16px}
@media(max-width:760px){.market{grid-template-columns:minmax(0,1fr)}.nav .ho-nav ul{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto}.nav li{flex-shrink:0}.woocommerce ul.products li.product a img{height:140px}.head{gap:8px}.search{min-width:0}.custom-logo{width:110px}}

.actions{flex-shrink:0;gap:10px}.actions a{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:40px;color:#fff}.actions svg{display:block;width:25px;height:25px;flex:none}.actions a[aria-disabled=true]{opacity:.65;cursor:default}.tile img{object-fit:contain;background:#f5eee3}.tile{background:#fff}

.woocommerce nav.woocommerce-pagination{margin:24px 0;text-align:center}.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{padding:10px 14px}.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--ho-primary);color:white}

.ho-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ho-section-heading a{font-weight:600;font-size:14px}

/* Native wishlist, independent of external libraries. */
.actions a{position:relative}.ho-wish-count{position:absolute;top:-7px;right:-8px;background:var(--ho-gold);color:var(--ho-ink);border-radius:20px;padding:0 5px;font-size:11px;font-weight:bold}.ho-wish-count[hidden]{display:none}.woocommerce ul.products li.product .ho-wish-toggle{position:absolute;top:8px;left:8px;z-index:2}.ho-wish-toggle{background:white;color:var(--ho-primary);border:1px solid var(--line);border-radius:50%;width:36px;height:36px;padding:0;font-size:25px;line-height:1;display:inline-grid;place-items:center}.ho-wish-toggle[aria-pressed=true]{background:var(--ho-primary);color:white}#ho-wish-list article{display:flex;align-items:center;gap:16px;padding:12px;background:white;border:1px solid var(--line);margin-bottom:10px;border-radius:6px;flex-wrap:wrap}#ho-wish-list article a{display:flex;align-items:center;gap:12px;flex:1;min-width:180px}#ho-wish-list img{object-fit:contain;width:80px;height:80px}#ho-wish-list button{font-size:14px}
