/*
Theme Name: 3DJoia
Description: Loja de arquivos STL e modelos 3D para joalheria.
Version: 2.0.1
Requires PHP: 8.1
Text Domain: tema-3djoia
*/
:root{--ink:#24231f;--muted:#5e5b54;--paper:#f7f5ef;--light:#fffdf8;--line:#ded9cf;--gold:#80592e;--night:#252720;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55}
a{color:inherit;text-underline-offset:.2em}a:hover{color:var(--gold)}
img{max-width:100%;height:auto;vertical-align:middle}
button,input,select,textarea{font:inherit}button,.dj-button{cursor:pointer}
:focus-visible{outline:3px solid #947043;outline-offset:4px}
h1,h2,h3{line-height:1.1;font-weight:400}h1,h2{font-family:var(--serif)}
h1{font-size:clamp(2.4rem,6vw,5.1rem);margin:0 0 .36em}h2{font-size:clamp(1.9rem,4vw,3.1rem);margin:0 0 .55em}
.dj-wrap{width:min(100% - 2rem,1240px);margin-inline:auto}
.dj-skip{position:absolute;top:-200px;left:1rem;background:white;padding:1rem;z-index:100}.dj-skip:focus{top:1rem}
.dj-header{background:var(--light);border-bottom:1px solid var(--line)}
.dj-header-row{min-height:83px;display:grid;grid-template-columns:auto minmax(190px,1fr) auto;align-items:center;gap:clamp(1rem,4vw,4rem)}
.dj-brand{text-decoration:none;white-space:nowrap;font:2rem/1 var(--serif);letter-spacing:-.055em}.dj-brand strong{font-weight:400;color:var(--gold)}
.dj-actions,.dj-nav .dj-wrap{display:flex;align-items:center;gap:clamp(.9rem,3vw,2rem)}
.dj-actions a,.dj-nav a{text-decoration:none;font-size:.875rem;font-weight:600}
.dj-nav{border-top:1px solid #ece8df}.dj-nav .dj-wrap{min-height:46px;flex-wrap:wrap;padding-block:.4rem}
.dj-search{display:flex;min-width:0;background:white;border:1px solid var(--line);border-radius:5px;overflow:clip}
.dj-search input{width:100%;min-width:0;border:0;background:transparent;padding:.7rem .8rem}.dj-search input:focus-visible{outline-offset:-3px}
.dj-search button{border:0;background:#332d25;color:white;padding:.65rem .95rem;font-size:.875rem;font-weight:650}
.dj-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dj-hero{background:var(--night);color:#fbf6e9}
.dj-hero-grid{display:grid;grid-template-columns:1.02fr 1fr;align-items:center;min-height:470px}
.dj-hero-copy{padding:clamp(2.5rem,7vw,6rem) clamp(1rem,5vw,4.5rem) clamp(2.5rem,7vw,6rem) 0}
.dj-kicker{letter-spacing:.15em;text-transform:uppercase;font-size:.72rem;font-weight:700;color:inherit;margin:0 0 1rem}
.dj-hero p:not(.dj-kicker){max-width:39ch;color:#e0dbcc;margin:0 0 1.65rem}
.dj-hero-media{height:100%;min-height:320px;display:grid;margin:0;position:relative;overflow:hidden;background:#342f26}
.dj-hero-media img{grid-area:1/1;width:100%;height:100%;object-fit:cover}.dj-hero-media::after{content:"";grid-area:1/1;background:linear-gradient(90deg,#25272033,transparent);pointer-events:none}
.dj-button{display:inline-flex;align-items:center;justify-content:center;background:#322a21;color:#fff9ea;border:1px solid transparent;padding:.75rem 1.1rem;border-radius:4px;font-weight:650;font-size:.88rem;text-decoration:none}
.dj-button:hover{background:#694a2b;color:white}.dj-button-light{background:#eadbbd;color:#27241e}.dj-button-light:hover{background:#fff3d6;color:#27241e}
.dj-section{padding-block:clamp(2.75rem,6vw,5.5rem)}.dj-section + .dj-section{border-top:1px solid var(--line)}
.dj-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1.35rem}.dj-section-head h2{margin-bottom:0}
.dj-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.dj-category{display:flex;min-height:6rem;flex-direction:column;justify-content:space-between;gap:1rem;border:1px solid var(--line);background:var(--light);padding:1.1rem;text-decoration:none}
.dj-category strong{font:1.55rem/1.15 var(--serif)}.dj-category span{font-size:.8rem;color:var(--muted)}
.dj-content{padding-block:clamp(2rem,5vw,4rem);min-height:45vh}.dj-prose{max-width:76ch}
.dj-footer{background:var(--night);color:#fbf6e9;padding-block:2rem}.dj-footer-grid{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1.5rem}
.dj-footer ul{display:flex;flex-wrap:wrap;gap:.7rem 1.3rem;padding:0;margin:0;list-style:none}
.dj-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;align-items:end;margin:1rem 0 1.5rem;background:var(--light);border:1px solid var(--line);padding:1rem}
.dj-filters label{display:grid;gap:.25rem;font-size:.83rem;font-weight:650}
.dj-filters input,.dj-filters select{width:100%;min-width:0;background:white;border:1px solid var(--line);border-radius:3px;padding:.62rem;color:var(--ink)}
.woocommerce ul.products li.product{background:var(--light);border:1px solid var(--line);padding:0 .85rem .9rem;overflow:hidden}
.woocommerce ul.products li.product a img{max-width:none;width:calc(100% + 1.7rem);margin:0 -.85rem .7rem;aspect-ratio:1;object-fit:contain;background:#f1eee6}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--sans);font-size:.92rem;font-weight:650;line-height:1.38;padding:.12rem 0 .42rem}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:#634920;font-weight:650}
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:4px;background:#eae2d2;color:#28241e;line-height:1.35}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:#332d25;color:white}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#694a2b}
.woocommerce nav.woocommerce-pagination ul{display:inline-flex;flex-wrap:wrap;max-width:100%}
.dj-stock-note{color:var(--muted);font-size:.9rem}.dj-stock-note[hidden]{display:none}
.dj-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.dj-posts article{background:var(--light);border:1px solid var(--line);padding:1.1rem}.dj-posts h2{font-size:1.6rem}
.dj-posts a{text-decoration:none}.dj-posts img{width:100%;aspect-ratio:16/10;object-fit:cover;margin-bottom:.75rem}
@media(max-width:800px){.dj-header-row{grid-template-columns:1fr auto;gap:.8rem;padding-block:.8rem}.dj-header-row .dj-search{grid-row:2;grid-column:1/-1}.dj-actions{gap:.8rem}.dj-hero-grid{min-height:0;grid-template-columns:1fr}.dj-hero-copy{padding:2.6rem 0}.dj-hero-media{min-height:0;aspect-ratio:4/3;margin:0 -1rem}.dj-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dj-filters label:first-child{grid-column:1/-1}.dj-categories,.dj-posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.dj-nav a,.dj-actions a{font-size:.8rem}.dj-section-head{display:block}.dj-section-head h2{margin-bottom:.35rem}.dj-posts{grid-template-columns:1fr}}

.dj-filters label:first-child{grid-column:span 2}.dj-filter-actions{display:flex;align-items:center;gap:.75rem;font-size:.85rem}.dj-filter-actions a{padding:.45rem 0}
.dj-download-panel{margin:0 0 1.25rem;padding:1.2rem;background:#f1ebdf;border:1px solid var(--line);border-radius:6px}
.dj-download-panel h2{font-size:1.55rem;margin:0 0 .35rem}.dj-download-panel p{margin:.25rem 0 .85rem;max-width:65ch}
.dj-download-panel div{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem 1rem}
@media(max-width:800px){.dj-hero-media img{object-position:center 75%}}

:root{
  --ink:#18251d;--muted:#4f6155;--paper:#f3f6f1;--light:#fff;--line:#d8e2d9;
  --gold:#216333;--night:#080d0a;--green:#216333;--accent:#ccedaa;
  --serif:Georgia,'Times New Roman',serif;
}
body{line-height:1.58}
h1,h2{letter-spacing:-.055em}
h1{font-size:clamp(2.4rem,5vw,5.5rem)}
h2{font-size:clamp(1.8rem,3.5vw,3.25rem)}
:focus-visible{outline-color:#357947}
.dj-wrap{width:min(100% - clamp(2rem,8vw,7rem),1320px)}
.dj-header{box-shadow:0 1px 0 #15261b08}
.dj-header-row{min-height:88px;grid-template-columns:auto minmax(220px,1fr) auto;gap:clamp(1rem,4vw,4.25rem)}
.dj-brand{display:inline-flex;align-items:center;justify-content:center;width:104px;height:82px;overflow:hidden;vertical-align:middle}
.dj-brand img{width:104px;height:104px;max-width:none;object-fit:contain}
.dj-nav .dj-wrap{gap:clamp(1rem,3vw,2.55rem);min-height:48px}
.dj-nav a:hover,.dj-actions a:hover{color:var(--green);text-decoration:underline}
.dj-search{border-radius:10px;background:#f8faf7}
.dj-search input{padding:.8rem 1rem}
.dj-search button{background:var(--green);padding:.7rem 1.2rem}
.dj-hero{background:#080d0a}
.dj-hero-grid{grid-template-columns:1fr 1fr;min-height:550px}
.dj-hero-copy{padding:3.5rem clamp(1rem,4vw,3.2rem) 3.5rem 0}
.dj-hero h1{max-width:11ch;color:#f5f9f3;line-height:.98;margin:0 0 .38em}
.dj-hero p:not(.dj-kicker){color:#d2ddd2;max-width:42ch}
.dj-kicker{color:var(--green);font-size:.72rem;letter-spacing:.13em}
.dj-hero .dj-kicker{color:var(--accent)}
.dj-hero-actions{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap}
.dj-hero-actions>a:not(.dj-button){font-size:.88rem;color:#ecf4ec;font-weight:650}
.dj-hero-media{min-height:0;display:block;align-self:stretch;background:#080d0a;isolation:isolate}
.dj-hero-media img{position:absolute;inset:0;object-fit:contain;object-position:center;mix-blend-mode:screen}
.dj-hero-media::after{display:none}
.dj-hero-media figcaption{position:absolute;bottom:1rem;right:1rem;color:#d2ddd2;font-size:.72rem;letter-spacing:.04em}
.dj-button{gap:.7rem;background:var(--green);color:white;border-radius:8px;padding:.75rem 1.1rem}
.dj-button:hover{background:#154522;color:white}
.dj-button-light{background:var(--accent);color:#172517}
.dj-button-light:hover{background:#e4f9d4;color:#172517}
.dj-section{padding-block:clamp(2.8rem,6.4vw,6.25rem)}
.dj-section-head{margin-bottom:1.8rem}.dj-section-head a{color:var(--green);font-weight:650;font-size:.9rem}
.dj-section-head .dj-kicker{margin-bottom:.35rem}
.dj-section-products{background:#fff}
.dj-footer{background:#111b15;color:#eaf3e9;padding-block:3rem}
.dj-footer .dj-brand{background:white;width:96px;height:65px;border-radius:10px}
.dj-footer .dj-brand img{width:87px;height:87px}
.dj-footer p{color:#d1ded0;margin:.8rem 0 0}
.dj-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr}
.dj-footer ul{display:grid;margin:.6rem 0 0;gap:.45rem}
.dj-footer a:hover{color:var(--accent)}
.dj-trail{display:flex;flex-wrap:wrap;gap:.45rem;color:var(--muted);font-size:.85rem;margin:0 0 1.6rem}
.dj-trail a{text-decoration:none}.dj-trail a:hover{text-decoration:underline}
.dj-page-heading{padding:clamp(1.7rem,4vw,3.6rem);margin:0 0 1.65rem;border:1px solid var(--line);border-radius:18px;background:radial-gradient(ellipse at 98% 0,#d9ebd0,transparent 61%),#fff}
.dj-page-heading h1{font-size:clamp(2.35rem,5vw,4.5rem);margin:0}
.dj-page-heading p:not(.dj-kicker){margin:.75rem 0 0;color:var(--muted);max-width:65ch}
.dj-two-col{display:grid;grid-template-columns:minmax(205px,248px) minmax(0,1fr);gap:clamp(1.2rem,3vw,2.6rem);align-items:start}
.dj-side{position:sticky;top:1.1rem;background:#fff;border:1px solid var(--line);border-radius:13px;min-width:0;overflow:hidden}
.disclosure summary{cursor:pointer;font-weight:700;padding:1rem 1.05rem}
.dj-side summary{background:#edf4ec}
.dj-side nav{display:grid;padding:.5rem;gap:.15rem}
.dj-side nav a{border-radius:6px;padding:.62rem .63rem;text-decoration:none;font-size:.93rem}
.dj-side nav a:hover,.dj-side a[aria-current="page"]{background:#e6f0e3;color:#164723}
.dj-side a[aria-current="page"]{font-weight:700}
.dj-side-cta{display:block;margin:.2rem 1rem 1rem;color:var(--green);font-size:.9rem;font-weight:700}
.dj-explore-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.dj-catalog-main .dj-explore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.dj-explore-card,.dj-collection{position:relative;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:13px;background:white;text-decoration:none;transition:border-color .18s,box-shadow .18s}
.dj-explore-card:hover,.dj-collection:hover{border-color:#73a474;box-shadow:0 8px 28px #203c2020}
.dj-explore-image,.dj-collection-image{display:block;background:#e9efe8;overflow:hidden}
.dj-explore-image{aspect-ratio:4/3}
.dj-collection-image{aspect-ratio:16/10}
.dj-explore-image img,.dj-collection-image img{width:100%;height:100%;object-fit:cover}
.dj-explore-copy,.dj-collection-copy{display:grid;gap:.45rem;padding:1rem}
.dj-explore-copy{padding-right:1.65rem}
.dj-explore-copy strong,.dj-collection-copy strong{font-family:var(--serif);font-size:clamp(1.3rem,2vw,1.65rem);font-weight:500;line-height:1.13}
.dj-explore-copy>span,.dj-collection-copy>span{color:var(--muted);font-size:.86rem;line-height:1.4}
.dj-card-arrow{position:absolute;bottom:.85rem;right:.75rem;color:var(--green);font-weight:700}
.dj-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.dj-catalog-toolbar{display:flex;align-items:center;gap:.95rem;flex-wrap:wrap;margin:0 0 1rem;color:var(--green);font-weight:650;font-size:.9rem}
.dj-catalog-toolbar:empty{display:none}
.dj-catalog-terms{margin-top:2rem}
.dj-catalog-terms h2{font-size:1.95rem}
.dj-catalog-terms ul{display:flex;flex-wrap:wrap;gap:.6rem;padding:0;list-style:none}
.dj-catalog-terms a{display:flex;gap:.6rem;padding:.55rem .72rem;border:1px solid var(--line);border-radius:7px;background:white;text-decoration:none;font-size:.88rem}
.dj-catalog-terms a:hover{border-color:#73a474}.dj-catalog-terms a span{color:var(--muted);font-size:.8em}
.dj-catalog-help{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.4rem;padding:1.3rem 1.5rem;border:1px solid var(--line);border-radius:13px;background:#edf4ec}
.dj-catalog-help p{margin:0}.dj-catalog-help>a:not(.dj-button){font-weight:700;color:var(--green)}
.dj-catalog-help h2{margin:.2rem 0 .5rem}
.dj-guide-content{min-width:0}
.dj-guide-panel,.dj-faqs{background:white;border:1px solid var(--line);border-radius:13px;padding:clamp(1rem,3.3vw,2.5rem);margin-bottom:1.25rem}
.dj-guide-panel h2{font-size:clamp(1.55rem,3vw,2.3rem)}
.dj-faqs details+details{border-top:1px solid var(--line)}
.dj-faqs details p{padding:0 1.05rem 1rem;margin:0;color:var(--muted)}
.dj-shop-layout .dj-side{top:.85rem}
.dj-shop-layout .dj-filters{display:grid;grid-template-columns:1fr;margin:0;padding:.9rem;border:0;background:white}
.dj-shop-layout .dj-filters label:first-child{grid-column:auto}
.dj-shop-results{min-width:0}
.dj-shop-results h1{font-size:clamp(2rem,4.5vw,3.65rem);margin-bottom:.75rem}
.woocommerce ul.products li.product{border-radius:10px}
.woocommerce ul.products li.product a img{background:#eef2ed}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:#1c5b2e}
.woocommerce ul.products li.product .button{background:#e5f1e2;color:#164723}
.woocommerce #respond input#submit,.woocommerce button.button,.woocommerce input.button{border-radius:7px}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--green);color:white}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{background:#154522}
.dj-download-panel{background:#edf4ec}
@media(max-width:1024px){
  .dj-collection-grid,.dj-catalog-main .dj-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
  .dj-wrap{width:calc(100% - 2rem)}
  .dj-header-row{grid-template-columns:1fr auto;gap:.5rem;padding:.15rem 0 .75rem}
  .dj-header-row .dj-search{grid-row:2;grid-column:1/-1}
  .dj-brand{width:86px;height:63px}.dj-brand img{width:86px;height:86px}
  .dj-nav .dj-wrap{column-gap:1rem;row-gap:.45rem;padding-block:.65rem}
  .dj-hero-grid{grid-template-columns:1fr;min-height:0}
  .dj-hero-copy{padding:2.6rem 0 .9rem}
  .dj-hero h1{font-size:clamp(2.75rem,9.9vw,4.2rem)}
  .dj-hero-media{margin:0;aspect-ratio:6/5;max-height:455px}
  .dj-hero-media img{object-position:center}
  .dj-hero-media figcaption{right:.15rem;bottom:.65rem}
  .dj-two-col{grid-template-columns:minmax(0,1fr);gap:1rem}
  .dj-side{position:static}
  .dj-shop-layout .dj-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dj-shop-layout .dj-filters label:first-child{grid-column:1/-1}
  .dj-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dj-footer-grid{grid-template-columns:1fr 1fr}.dj-footer-grid>div{grid-column:1/-1}
}
@media(max-width:440px){
  .dj-collection-grid{grid-template-columns:minmax(0,1fr)}
  .dj-explore-copy,.dj-collection-copy{padding:.75rem}
  .dj-explore-copy{padding-bottom:1.35rem}
  .dj-card-arrow{bottom:.3rem}
  .dj-page-heading{padding:1.4rem 1.1rem}
}
@media(prefers-reduced-motion:reduce){.dj-explore-card,.dj-collection{transition:none}}

/* Shared component surfaces and responsive commerce layout. */
.dj-explore-card,.dj-collection,.dj-guide-panel,.dj-faqs,.dj-side,.dj-catalog-help,.woocommerce ul.products li.product{
  border-radius:22px;
  box-shadow:0 4px 14px #10251a07;
}
.dj-explore-card:hover,.dj-collection:hover{box-shadow:0 12px 32px #16331a18}
.dj-page-heading{border-radius:26px}
.dj-explore-copy,.dj-collection-copy{padding:1.1rem 1.2rem 1.23rem}
.dj-explore-copy{padding-right:2rem}
.dj-page-body{min-width:0}
.dj-full-catalog{margin-top:1.3rem}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0 0 1.1rem;padding:.55rem;border:1px solid var(--line);border-radius:16px;background:white}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:.65rem .8rem;border-radius:10px;text-decoration:none}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:#e8f2e6;color:#164723}
.woocommerce div.product .summary{background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(1rem,2.8vw,2rem)}
.woocommerce div.product h1.product_title{font-size:clamp(1.75rem,3vw,3rem);overflow-wrap:anywhere}
.woocommerce div.product div.images img{border-radius:20px}
.woocommerce table.shop_table{border-radius:15px;background:white}
.woocommerce .woocommerce-breadcrumb{color:var(--muted);margin-bottom:1rem}
@media(max-width:560px){
  .dj-explore-card,.dj-collection,.dj-guide-panel,.dj-faqs,.dj-side,.dj-catalog-help,.woocommerce ul.products li.product{border-radius:17px}
  .dj-explore-copy,.dj-collection-copy{padding:.85rem}
  .dj-explore-copy{padding-bottom:1.6rem}
  .dj-page-heading{border-radius:20px}
}
.dj-editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dj-editorial-grid article{border-radius:20px}
.dj-editorial-grid img{border-radius:13px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
  min-height:4.4em;
}
@media(max-width:600px){.dj-editorial-grid{grid-template-columns:1fr}}
.dj-search input{flex:1 1 0;width:0}
.dj-search button{flex:0 0 auto;width:auto}
.dj-collection-image img{object-fit:contain}
.dj-collection:not(:has(.dj-collection-image)){
  justify-content:center;min-height:118px;background:linear-gradient(150deg,#fff 38%,#e8f2e6 100%);
}
.dj-collection:focus-visible,.dj-explore-card:focus-visible{outline-offset:3px}
.dj-header .dj-search button{background:#216333!important;color:#fff!important}
.dj-header .dj-search button:hover{background:#154522!important}
.dj-collection,.dj-collection:not(:has(.dj-collection-image)){
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  min-height:118px;justify-content:stretch;
}
.dj-collection-image{
  grid-column:2;grid-row:1;width:clamp(54px,6.3vw,92px);margin-right:.7rem;
  aspect-ratio:1;border-radius:14px;
}
.dj-collection-copy{grid-column:1;grid-row:1}
