/* HG House news. Scoped to custom elements. */
.hg-news,.hg-news-categories{color:#202534}
.hg-news h3,.hg-news-categories h3{font-size:20px;line-height:1.4;margin:0 0 16px;color:inherit}
.hg-news-categories ul{list-style:none;margin:0;padding:0}
.hg-news-categories li{margin:0 0 12px;margin-left:0!important}
.hg-news-categories a{display:flex;align-items:center;gap:12px;font-size:14px;color:inherit}
.hg-news-categories a:before{content:"";width:14px;height:14px;flex:0 0 14px;border:1px solid var(--fs-color-primary,var(--primary-color,#a66b23));border-radius:50%;box-sizing:border-box}
.hg-news-categories a.is-active:before{background:var(--fs-color-primary,var(--primary-color,#a66b23));box-shadow:inset 0 0 0 3px #fff}
.hg-news-categories a:hover,.hg-news-card h4 a:hover{color:var(--fs-color-primary,var(--primary-color,#a66b23))}
.hg-news-items{display:grid;grid-template-columns:repeat(var(--hg-cols,2),minmax(0,1fr));gap:24px 20px}
.hg-news-card{min-width:0;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.045);display:flex;flex-direction:column}
.hg-news-image{display:block;aspect-ratio:1.46;overflow:hidden;background:#f4f4f4}
.hg-news-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.hg-news-image:hover img{transform:scale(1.035)}
.hg-news-placeholder{display:block;width:100%;height:100%;background:#f0eeeb}
.hg-news-body{padding:10px 10px 12px;display:flex;flex-direction:column;flex:1}
.hg-news-card h4{font-size:16px;line-height:1.35;margin:0 0 6px;color:inherit}
.hg-news-card h4 a{color:inherit}
.hg-news-category{font-size:13px;color:#909095;margin-bottom:8px;display:block}
.hg-news-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;line-height:1.4;color:#929499;margin-top:auto}
.hg-news-meta>span{display:inline-flex;align-items:center;gap:6px}
.hg-news-meta img{width:13px;height:13px;object-fit:contain;display:block}
.hg-news-meta .hg-news-views img{width:15px}
.hg-news-featured .hg-news-items{display:flex;flex-direction:column;gap:16px}
.hg-news-featured .hg-news-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;border-radius:0;box-shadow:none;background:transparent}
.hg-news-featured .hg-news-image{width:52px;height:52px;aspect-ratio:1;border-radius:5px}
.hg-news-featured .hg-news-body{padding:0}
.hg-news-featured h4{font-size:13px;font-weight:400;margin-bottom:4px}
.hg-news-featured .hg-news-meta{font-size:11px;flex-wrap:wrap;gap:4px;margin-top:0}
.hg-news-pagination{margin-top:28px}
.entry-header .hg-news-meta{justify-content:center;margin:12px 0 18px;font-size:13px;text-transform:none}
@media(max-width:849px){.hg-news-items{grid-template-columns:repeat(var(--hg-cols-md,2),minmax(0,1fr))}}
@media(max-width:549px){.hg-news-items{grid-template-columns:repeat(var(--hg-cols-sm,1),minmax(0,1fr));gap:20px}.hg-news-card h4{font-size:16px}}
/* Single composite element. */
.hg-news-page.row{width:100%;margin:0;align-items:flex-start}
.hg-news-page>.hg-news-sidebar.col,.hg-news-page>.hg-news-main.col{min-width:0}
.hg-news-sidebar-divider{height:1px;background:#e8e8e8;margin:24px 0 18px}
.hg-news-main{min-width:0;position:relative}
@media(max-width:549px){.hg-news-sidebar{margin-bottom:8px}.hg-news-categories ul{display:flex;gap:10px 16px;flex-wrap:wrap}.hg-news-categories li{margin:0}.hg-news-featured .hg-news-items{display:grid;grid-template-columns:1fr 1fr}.hg-news-featured .hg-news-card{grid-template-columns:44px minmax(0,1fr);gap:8px}.hg-news-featured .hg-news-image{width:44px;height:44px}}

.hg-news-main[aria-busy="true"]>.col-inner{opacity:.5;transition:opacity .15s}
.hg-news-status{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:32px;height:32px;margin:0;z-index:5;pointer-events:none}
.hg-news-status[hidden]{display:none!important}
.hg-news-status:before{content:"";display:block;width:100%;height:100%;box-sizing:border-box;border:3px solid rgba(0,0,0,.12);border-top-color:var(--fs-color-primary,var(--primary-color,#a66b23));border-radius:50%;animation:hg-news-spin .7s linear infinite}
.hg-news-main[aria-busy="true"]{min-height:100px}
@keyframes hg-news-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hg-news-status:before{animation-duration:1.5s}}

/* Shared Flatsome pagination: applies to news, projects and native archives. */
.page-numbers.nav-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;list-style:none;padding:0;margin:30px 0 0}
.page-numbers.nav-pagination>li{margin:0!important;display:block}
.page-numbers.nav-pagination>li>.page-number,
.page-numbers.nav-pagination>li>.page-numbers{display:flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border:1px solid #eee;border-radius:4px;background:#fff;color:#202534;font-size:14px;line-height:1;text-decoration:none;margin:0}
.page-numbers.nav-pagination>li>.current,
.page-numbers.nav-pagination>li>a:hover{background:var(--fs-color-primary,#a66b23);border-color:var(--fs-color-primary,#a66b23);color:#fff}
.page-numbers.nav-pagination>li>.dots{border-color:transparent;background:transparent}
.page-numbers.nav-pagination a:focus-visible{outline:2px solid var(--fs-color-primary,#a66b23);outline-offset:3px}
/* HG project element. */
.hg-projects{position:relative;color:#202534}
.hg-projects-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.hg-projects-tabs{display:flex;flex-wrap:wrap;gap:0}
.hg-projects-tabs a{display:flex;align-items:center;justify-content:center;padding:10px 18px;min-height:40px;font-size:13px;border:1px solid #eee;color:inherit;background:#fff;margin-right:-1px}
.hg-projects-tabs a:first-child{border-radius:5px 0 0 5px}
.hg-projects-tabs a:last-child{border-radius:0 5px 5px 0}
.hg-projects-tabs a.is-active,.hg-projects-tabs a:hover{background:var(--fs-color-primary,#a66b23);border-color:var(--fs-color-primary,#a66b23);color:#fff;position:relative}
.hg-projects-search{position:relative;flex:0 0 230px;margin:0}
.hg-projects-search input[type=search]{margin:0;height:40px;padding:0 42px 0 12px;border:1px solid #e5e5e5;border-radius:5px;box-shadow:none;font-size:13px}
.hg-projects-search button{position:absolute;top:0;right:0;width:40px;height:40px;min-height:0;padding:0;margin:0;border:0;background:transparent;color:#202534;line-height:40px}
.hg-projects-grid{display:grid;grid-template-columns:repeat(var(--hg-project-cols,3),minmax(0,1fr));gap:24px 20px}
.hg-project-card{min-width:0;overflow:hidden;border-radius:6px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.05);border:1px solid #f0eeeb}
.hg-project-image{display:block;aspect-ratio:1.45;overflow:hidden;background:#f3f1ed}
.hg-project-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.hg-project-image:hover img{transform:scale(1.035)}
.hg-project-placeholder{display:block;width:100%;height:100%;background:#f3f1ed}
.hg-project-body{padding:12px}
.hg-project-body h3{font-size:16px;line-height:1.4;margin:0 0 9px;color:inherit}
.hg-project-body h3 a{color:inherit}
.hg-project-body h3 a:hover{color:var(--fs-color-primary,#a66b23)}
.hg-project-location{display:flex;align-items:center;gap:7px;font-size:13px;color:#888}
.hg-project-location img{width:14px;height:17px;object-fit:contain}
.hg-projects-results{position:relative;min-height:80px}
.hg-projects[aria-busy=true] .hg-projects-results{opacity:.5;transition:opacity .15s}
.hg-projects-loader{position:absolute;z-index:5;width:32px;height:32px;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}
.hg-projects-loader[hidden]{display:none!important}
.hg-projects-loader:before{content:"";display:block;width:100%;height:100%;box-sizing:border-box;border:3px solid #ddd;border-top-color:var(--fs-color-primary,#a66b23);border-radius:50%;animation:hg-news-spin .7s linear infinite}
.hg-projects-empty{grid-column:1/-1;margin:20px 0}
@media(max-width:849px){.hg-projects-toolbar{flex-wrap:wrap}.hg-projects-grid{grid-template-columns:repeat(var(--hg-project-cols-md,2),minmax(0,1fr))}}
@media(max-width:549px){.hg-projects-search{flex:1 1 100%}.hg-projects-tabs a{padding:9px 12px}.hg-projects-grid{grid-template-columns:repeat(var(--hg-project-cols-sm,1),minmax(0,1fr));gap:20px}}
@media(prefers-reduced-motion:reduce){.hg-projects-loader:before{animation-duration:1.5s}}

/* Simple project-card shortcode: no filtering toolbar or pagination. */
.hg-projects-showcase .hg-projects-toolbar{display:none}
.hg-projects-showcase .hg-project-image{aspect-ratio:1.85}
.hg-projects-showcase .hg-project-body{padding:16px}

/* HG House WooCommerce product cards — shop, categories and product grids. */
.products .product-small.col{display:flex}
.products .product-small.col>.col-inner{width:100%;display:flex;flex-direction:column}
.products .product-small.box{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid #e9e9e9;border-radius:6px;background:#fff;box-shadow:none}
.products .product-small .box-image{width:100%;margin:0;overflow:hidden;border-radius:5px 5px 0 0}
.products .product-small .box-image .image-fade_in_back,
.products .product-small .box-image .image-zoom,
.products .product-small .box-image .image-none{padding-top:72%!important;height:0;position:relative}
.products .product-small .box-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.products .product-small .box-text{display:flex;flex-direction:column;flex:1;padding:10px 10px 9px;text-align:left;background:#fff}
.products .product-small .title-wrapper{margin:0 0 5px}
.products .product-small .category{display:none}
.products .product-small .name{font-size:14px;line-height:1.45;font-weight:400;margin:0}
.products .product-small .name a{color:#292929;display:block}
.products .product-small .name a:hover{color:var(--fs-color-primary,var(--primary-color,#b46e24))}
.products .product-small .price-wrapper{margin:0 0 8px}
.products .product-small .price{display:block;font-size:15px;line-height:1.4;font-weight:700;margin:0;color:#b45f0b}
.products .product-small .price .amount{color:#b45f0b;font-weight:700}
.products .product-small .price del{font-size:12px;color:#999;font-weight:400;margin-right:5px}
.products .product-small .price del .amount{color:#999;font-weight:400}
.products .product-small .price ins{background:transparent;text-decoration:none}
.products .product-small .add-to-cart-button{margin-top:auto;padding-top:0}
.products .product-small .add-to-cart-button .button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:32px;margin:0;padding:5px 8px;border:1px solid #dfb887;border-radius:5px;background:#fff;color:#b45f0b;box-shadow:none;font-size:13px;font-weight:600;line-height:1.35;letter-spacing:0;text-transform:none;white-space:normal}
.products .product-small .add-to-cart-button .button:before{content:"";display:inline-block;flex:0 0 16px;width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h3l3 13h11l3-10H6'/%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3C/svg%3E") center/contain no-repeat}
.products .product-small .add-to-cart-button .button:hover{background:var(--fs-color-primary,var(--primary-color,#b46e24));border-color:var(--fs-color-primary,var(--primary-color,#b46e24));color:#fff}
.products .product-small .add-to-cart-button .button:focus-visible{outline:2px solid var(--fs-color-primary,#b46e24);outline-offset:3px}
.products .product-small .added_to_cart{display:block;text-align:center;font-size:12px;margin-top:6px}
@media(max-width:549px){
 .products .product-small .box-text{padding:8px}
 .products .product-small .name{font-size:13px}
 .products .product-small .price{font-size:14px}
 .products .product-small .add-to-cart-button .button{font-size:12px;padding:6px 4px;gap:5px}
}
