/*
Theme Name: Hakan Global Woodmart
Template: woodmart
Version: 1.0.0
Text Domain: hakan-global-woodmart
*/

:root { --hg-navy:#11263e; --hg-blue:#173f65; --hg-gold:#b9a06b; --hg-ink:#172b40; --hg-muted:#607083; --hg-line:#e5ebef; }
html { scroll-behavior:smooth; }
body { color:var(--hg-ink); }
.hgwm-skip { position:absolute; left:-9999px; top:auto; }
.hgwm-skip:focus { left:12px; top:12px; z-index:9999; padding:10px 16px; background:#fff; color:var(--hg-ink); }
.hgwm-header { position:relative; z-index:100; background:var(--hg-navy); color:#fff; }
.wd-toolbar { display:none !important; }
.hgwm-header-inner { width:min(100% - 48px,1280px); min-height:72px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.hgwm-brand { display:inline-flex; align-items:center; flex:none; }
.hgwm-brand img { display:block; width:225px; max-width:100%; height:auto; }
.hgwm-nav { display:flex; align-items:center; gap:28px; }
.hgwm-nav a { color:#fff !important; font-size:13px; font-weight:700; text-decoration:none; text-transform:uppercase; letter-spacing:.02em; white-space:nowrap; }
.hgwm-nav a:hover,.hgwm-nav a[aria-current=page] { color:#d9c49b !important; }
.hgwm-header .hgwm-menu-toggle { display:none !important; border:1px solid rgba(255,255,255,.45); background:transparent !important; color:#fff !important; width:42px; min-width:42px; height:42px; min-height:42px; padding:0; border-radius:6px; align-items:center; justify-content:center; font-size:24px; line-height:1; cursor:pointer; }
.hgwm-home { overflow:hidden; }
.hgwm-slider { position:relative; width:100%; overflow:hidden; background:#0c2340; }
.hgwm-slider-track { position:relative; width:100%; aspect-ratio:6336/2688; min-height:240px; }
.hgwm-slide { position:absolute; inset:0; opacity:0; transition:opacity .55s ease; pointer-events:none; }
.hgwm-slide.is-active { opacity:1; pointer-events:auto; }
.hgwm-slide img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.hgwm-slider .hgwm-slider-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:1px solid rgba(255,255,255,.65); border-radius:50%; background:rgba(9,28,50,.38); color:#fff; font-size:30px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.hgwm-slider .hgwm-slider-arrow:hover { background:rgba(9,28,50,.75); color:#fff; }
.hgwm-slider-prev { left:18px; }.hgwm-slider-next { right:18px; }
.hgwm-slider-dots { position:absolute; z-index:2; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.hgwm-slider .hgwm-slider-dots button { width:8px; min-width:8px; height:8px; min-height:8px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.6); cursor:pointer; }
.hgwm-slider .hgwm-slider-dots button.is-active { width:24px; border-radius:8px; background:#fff; }
.hgwm-wrap { width:min(100% - 48px,1180px); margin-inline:auto; }
.hgwm-intro { padding:76px 0; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:56px; align-items:center; }
.hgwm-kicker { display:block; margin-bottom:14px; color:#9d7e48; font-size:12px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.hgwm-intro h1 { margin:0 0 22px; color:var(--hg-navy); font-size:clamp(32px,4.2vw,56px); line-height:1.1; }
.hgwm-intro p { max-width:680px; color:var(--hg-muted); font-size:17px; line-height:1.75; }
.hgwm-intro-panel { background:#f2f6f8; border-left:4px solid var(--hg-gold); padding:32px; border-radius:0 14px 14px 0; }
.hgwm-intro-panel p { margin:0; color:var(--hg-ink); font-size:16px; }
.hgwm-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.hgwm-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:11px 22px; border-radius:5px; background:var(--hg-blue); color:#fff !important; font-size:14px; font-weight:700; text-decoration:none !important; }
.hgwm-button:hover { background:#0e2b48; }
.hgwm-button-outline { background:#fff; border:1px solid var(--hg-blue); color:var(--hg-blue) !important; }
.hgwm-button-outline:hover { background:#ecf3f8; }
.hgwm-section { padding:68px 0; }
.hgwm-section-soft { background:#f6f8fa; }
.hgwm-section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.hgwm-section-head h2 { margin:0; color:var(--hg-navy); font-size:clamp(27px,3vw,38px); }
.hgwm-section-head p { margin:8px 0 0; color:var(--hg-muted); }
.hgwm-section-link { flex:none; color:var(--hg-blue); font-weight:700; text-decoration:none; }
.hgwm-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.hgwm-category { position:relative; min-height:180px; padding:26px; display:flex; flex-direction:column; justify-content:space-between; background:#fff; border:1px solid var(--hg-line); border-radius:12px; color:var(--hg-navy); text-decoration:none !important; transition:transform .2s ease,box-shadow .2s ease; }
.hgwm-category:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(17,38,62,.09); }
.hgwm-category svg { width:40px; height:40px; fill:none; stroke:#9d7e48; stroke-width:1.6; }
.hgwm-category strong { font-size:18px; line-height:1.3; }
.hgwm-category span { color:var(--hg-muted); font-size:13px; }
.hgwm-products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.hgwm-product { display:block; min-width:0; padding:18px; border:1px solid var(--hg-line); border-radius:12px; background:#fff; text-decoration:none !important; color:var(--hg-ink); }
.hgwm-product:hover { box-shadow:0 14px 30px rgba(17,38,62,.09); }
.hgwm-product-media { display:flex; align-items:center; justify-content:center; height:220px; background:#fff; }
.hgwm-product-media img { width:100%; height:100%; object-fit:contain; }
.hgwm-product strong { display:block; margin-top:16px; font-size:15px; line-height:1.45; }
.hgwm-brands { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:20px; align-items:center; }
.hgwm-brands img { width:100%; height:64px; object-fit:contain; filter:saturate(.9); }
.hgwm-cta { background:var(--hg-navy); color:#fff; padding:62px 0; }
.hgwm-cta .hgwm-wrap { display:flex; justify-content:space-between; align-items:center; gap:30px; }
.hgwm-cta h2 { margin:0 0 9px; color:#fff; font-size:clamp(25px,3vw,36px); }
.hgwm-cta p { margin:0; color:#d8e4ec; }
.hgwm-cta .hgwm-button { background:#fff; color:var(--hg-navy) !important; }
.hgwm-page { min-height:55vh; }
.hgwm-page > .entry-content { width:100%; }
.hgwm-page .wp-block-cover.alignfull { width:100%; }
.hgwm-footer { background:var(--hg-navy); color:#eef4f8; padding:58px 24px 24px; }
.hgwm-footer-grid { width:min(100%,1180px); margin:auto; display:grid; grid-template-columns:1.4fr 1fr 1.3fr; gap:42px; }
.hgwm-footer h2 { margin:0 0 17px; color:#fff; font-size:20px; }
.hgwm-footer p { margin:0 0 12px; line-height:1.7; }
.hgwm-footer nav a { display:block; margin:0 0 11px; }
.hgwm-footer a { color:inherit !important; text-decoration:none; }
.hgwm-footer a:hover { color:#d9c49b !important; }
.hgwm-footer-bottom { width:min(100%,1180px); margin:36px auto 0; padding-top:20px; border-top:1px solid #42566b; text-align:center; font-size:14px; }
@media(max-width:980px){
 .hgwm-header-inner { width:min(100% - 32px,1280px); min-height:66px; }
 .hgwm-brand img { width:190px; }
 .hgwm-header .hgwm-menu-toggle { display:inline-flex !important; }
 .hgwm-nav { display:none; position:absolute; left:0; right:0; top:100%; padding:14px 24px 22px; background:var(--hg-navy); flex-direction:column; align-items:stretch; gap:0; box-shadow:0 12px 18px rgba(0,0,0,.15); }
 .hgwm-nav.is-open { display:flex; }
 .hgwm-nav a { padding:12px 0; border-top:1px solid rgba(255,255,255,.12); }
 .hgwm-category-grid,.hgwm-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hgwm-brands { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .hgwm-intro { gap:28px; }
}
@media(max-width:640px){
 .hgwm-wrap { width:min(100% - 32px,1180px); }
 .hgwm-slider-track { min-height:0; aspect-ratio:6336/2688; }
 .hgwm-slide img { object-fit:contain; object-position:center; }
 .hgwm-slider .hgwm-slider-arrow { width:28px; min-width:28px; height:28px; min-height:28px; font-size:21px; }
 .hgwm-slider-prev { left:7px; }.hgwm-slider-next { right:7px; }
 .hgwm-slider-dots { bottom:6px; }
 .hgwm-intro { display:block; padding:52px 0; }
 .hgwm-intro h1 { font-size:34px; }
 .hgwm-intro-panel { margin-top:28px; padding:22px; }
 .hgwm-section { padding:48px 0; }
 .hgwm-section-head { align-items:start; flex-direction:column; gap:12px; }
 .hgwm-category-grid,.hgwm-products { gap:12px; }
 .hgwm-category { padding:18px; min-height:155px; }
 .hgwm-category strong { font-size:16px; }
 .hgwm-product { padding:12px; }
 .hgwm-product-media { height:150px; }
 .hgwm-product strong { font-size:13px; }
 .hgwm-brands { gap:14px; }
 .hgwm-brands img { height:45px; }
 .hgwm-cta .hgwm-wrap { align-items:start; flex-direction:column; }
 .hgwm-footer-grid { grid-template-columns:1fr; gap:24px; }
}
@media(prefers-reduced-motion:reduce){.hgwm-slide,.hgwm-category{transition:none}}

/* Navigation and product category tree */
.hgwm-categories-nav{position:relative}
.hgwm-nav .hgwm-categories-toggle{padding:0;background:none;border:0;color:#fff;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;cursor:pointer}
.hgwm-nav .hgwm-categories-toggle:hover,.hgwm-nav .hgwm-categories-toggle:focus{background:transparent!important;color:#d9c49b!important}
.hgwm-categories-toggle span{margin-left:5px;font-size:17px}
.hgwm-category-tree{display:none;position:absolute;top:calc(100% + 23px);right:0;width:min(900px,calc(100vw - 40px));padding:26px;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;background:#fff;border:1px solid var(--hg-line);border-radius:12px;box-shadow:0 18px 40px rgba(16,34,55,.15);z-index:200}
.hgwm-categories-nav.is-open .hgwm-category-tree{display:grid}
.hgwm-category-tree:before{content:"";position:absolute;top:-25px;left:0;right:0;height:25px}
.hgwm-category-branch{display:flex;flex-direction:column;gap:10px}
.hgwm-category-tree .hgwm-category-branch a{color:var(--hg-muted)!important;font-size:13px;font-weight:500;text-transform:none;letter-spacing:0;white-space:normal;line-height:1.35}
.hgwm-category-tree .hgwm-category-branch .hgwm-category-parent{margin-bottom:3px;color:var(--hg-navy)!important;font-size:15px;font-weight:800}
.hgwm-category-tree .hgwm-category-branch a:hover{color:var(--hg-blue)!important}

/* Homepage sections */
.hgwm-intro{width:min(100% - 48px,1280px);grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:42px;background:#f6f7fe}
.hgwm-intro h1{max-width:550px}
.hgwm-feature-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hgwm-feature-card{display:flex;flex-direction:column;min-width:0;min-height:365px;overflow:hidden;background:#fff;border-radius:12px;text-decoration:none!important;color:var(--hg-navy)}
.hgwm-feature-card img{display:block;width:100%;height:200px;object-fit:contain;padding:10px;background:#fff}
.hgwm-feature-card strong{padding:16px 16px 0;font-size:16px;line-height:1.3}
.hgwm-feature-card span{padding:12px 16px 20px;color:var(--hg-muted);font-size:13px;line-height:1.5}
.hgwm-portfolio{padding:72px 0;background:#eff1ff}
.hgwm-portfolio-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:45px;align-items:center}
.hgwm-portfolio-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.hgwm-portfolio-images img{width:100%;height:360px;object-fit:cover;border-radius:18px;background:#fff}
.hgwm-portfolio-copy h2{margin:0 0 20px;color:var(--hg-navy);font-size:clamp(28px,3vw,38px);line-height:1.15}
.hgwm-portfolio-copy p{font-size:16px;line-height:1.7}
.hgwm-voices-head{text-align:center;max-width:820px;margin:0 auto 34px}
.hgwm-voices-head h2{margin:0 0 12px;color:var(--hg-navy);font-size:clamp(28px,3vw,38px)}
.hgwm-voices-head p{color:var(--hg-muted);line-height:1.65}
.hgwm-voices-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hgwm-voice{display:flex;flex-direction:column;align-items:center;position:relative;min-height:300px;padding:30px 24px 46px;background:#526dff;border-radius:16px;color:#fff;text-align:center}
.hgwm-voice p{flex:1;margin:0 0 22px;color:#fff;font-size:14px;line-height:1.65}
.hgwm-voice strong{color:#fff;font-size:20px}
.hgwm-voice span{color:#f3f5ff;font-size:14px}
.hgwm-voice img{position:absolute;bottom:-34px;width:72px;height:72px;object-fit:cover;border:4px solid var(--hg-navy);border-radius:50%}
.hgwm-voices{padding-bottom:100px}

/* WooCommerce archive and single product */
body.woodmart-archive-shop .main-page-wrapper,body.single-product .main-page-wrapper{padding-top:30px}
body.woodmart-archive-shop .main-page-wrapper>.container,body.single-product .main-page-wrapper>.container{width:min(100% - 40px,1200px);max-width:1200px;margin-inline:auto}
.hgwm-archive-intro{margin:14px 0 25px}
.shop-loop-head{display:flex;flex-direction:column;align-items:stretch;gap:0}
.shop-loop-head .wd-shop-tools{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.shop-loop-head .hgwm-archive-intro{flex:0 0 100%;margin:12px 0 8px}
.shop-loop-head .wd-products-shop-view{display:none!important}
.hgwm-archive-intro h1{margin:0;color:var(--hg-navy);font-size:clamp(28px,3vw,40px)}
body.woodmart-archive-shop .wd-products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
body.woodmart-archive-shop .wd-products .wd-product{width:auto!important;min-width:0;margin:0!important;border:1px solid var(--hg-line);border-radius:10px;overflow:hidden;background:#fff}
body.woodmart-archive-shop .wd-products .product-element-top{height:250px;display:flex;align-items:center;justify-content:center;background:#fff}
body.woodmart-archive-shop .wd-products .product-element-top img{width:100%;height:240px;object-fit:contain!important}
body.woodmart-archive-shop .wd-products .product-information{padding:12px 14px 18px}
body.woodmart-archive-shop .wd-products-per-page,body.woodmart-archive-shop .wd-grid-switch{display:none!important}
body.single-product .single-product-page{padding-top:12px}
body.single-product .wd-wishlist-btn,body.single-product .wd-wishlist-btn-wrap,body.single-product .wd-product-wishlist,body.single-product .wd-action-btn.wd-wishlist-btn{display:none!important}
.hgwm-quote{margin:50px 0 35px;padding:42px 0;background:#f5f7fb;border-radius:16px}
.hgwm-quote-heading h2{margin:0 0 8px;color:var(--hg-navy);font-size:30px}
.hgwm-quote-heading p{margin:0 0 24px;color:var(--hg-muted)}
.hgwm-quote .wpcf7-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.hgwm-quote .wpcf7-form>p{margin:0}
.hgwm-quote .wpcf7-form>p.hgwm-form-full{grid-column:1/-1}
.hgwm-quote label{display:block;color:var(--hg-ink);font-size:13px;font-weight:700}
.hgwm-quote input:not([type=submit]),.hgwm-quote textarea{width:100%;margin-top:6px;border:1px solid #ccd6df;border-radius:6px;background:#fff}
.hgwm-quote textarea{min-height:100px}
.hgwm-quote input[type=submit]{min-height:46px;padding:0 28px;background:var(--hg-blue);border-radius:6px;color:#fff;font-weight:700}
.hgwm-quote .wpcf7-response-output{grid-column:1/-1;margin:0!important}

@media(max-width:980px){
 .hgwm-category-tree{position:static;right:auto;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;margin-top:10px;box-shadow:none}
 .hgwm-nav .hgwm-categories-toggle{padding:12px 0;text-align:left;width:100%;border-top:1px solid rgba(255,255,255,.12)}
 .hgwm-intro{grid-template-columns:1fr}
 .hgwm-portfolio-images img{height:280px}
 body.woodmart-archive-shop .wd-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:640px){
 .hgwm-intro{width:min(100% - 32px,1280px)}
 .hgwm-feature-cards{grid-template-columns:1fr;gap:10px}
 .hgwm-feature-card{display:grid;grid-template-columns:110px 1fr;min-height:110px;align-items:center}
 .hgwm-feature-card img{grid-row:span 2;height:110px}
 .hgwm-feature-card strong{padding:12px 12px 0}
 .hgwm-feature-card span{padding:0 12px 12px}
 .hgwm-portfolio{padding:48px 0}
 .hgwm-portfolio-grid{grid-template-columns:1fr;gap:25px}
 .hgwm-portfolio-images{gap:10px}
 .hgwm-portfolio-images img{height:220px}
 .hgwm-voices-grid{grid-template-columns:1fr;gap:48px}
 .hgwm-voice{min-height:250px}
 .hgwm-category-tree{grid-template-columns:1fr}
 body.woodmart-archive-shop .main-page-wrapper>.container,body.single-product .main-page-wrapper>.container{width:min(100% - 28px,1200px)}
 body.woodmart-archive-shop .wd-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.woodmart-archive-shop .wd-products .product-element-top{height:175px}
 body.woodmart-archive-shop .wd-products .product-element-top img{height:165px}
 .hgwm-quote{padding:26px 0}
 .hgwm-quote .wpcf7-form{grid-template-columns:1fr}
}
