/*
Theme Name: SugarFree Atlas
Theme URI: https://sugarfreeatlas.com/
Author: SugarFree Atlas
Description: Discover sugar-free treats by country and category. Responsive directory with editable Atlas Products, searchable listing and outbound shop links.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sugarfree-atlas
*/
:root{--ink:#292137;--muted:#777182;--cream:#fdfbf7;--paper:#fff;--plum:#24172f;--grape:#623e79;--pink:#f8d7d4;--lilac:#efe9f8;--line:#e9e6e8;--teal:#247568;--yellow:#f5d481;--shadow:0 16px 45px rgba(49,29,57,.06)}
    *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.5 'DM Sans',system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ba93ec;outline-offset:3px}
    .shell{width:min(1200px,calc(100% - 44px));margin-inline:auto}.eyebrow{text-transform:uppercase;font-weight:800;font-size:11px;letter-spacing:1.9px;color:#9d6f86}.topline{background:#21182d;color:#eee6ed;text-align:center;padding:9px 16px;font-size:12px;letter-spacing:.15px}.topline span{color:#fadca4;font-weight:700}
    header{background:var(--cream);position:relative;z-index:2}.nav{display:flex;align-items:center;gap:38px;justify-content:space-between;padding:23px 0}.brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.brand-mark{width:37px;height:37px;border-radius:14px;background:#ed8f88;display:grid;place-items:center;transform:rotate(-9deg);box-shadow:inset -3px -3px 0 rgba(0,0,0,.07)}.brand-mark svg{width:24px;height:24px;transform:rotate(9deg)}.brand-word{font-family:Outfit,sans-serif;font-weight:900;font-size:22px;letter-spacing:-1.1px}.brand-word span{color:#d27e78}.navlinks{display:flex;align-items:center;gap:30px;font-size:13px;font-weight:700;color:#5e5765}.navlinks a:hover{color:#d27e78}.nav-actions{display:flex;align-items:center;gap:11px}.favorites-btn,.simple-btn{border:1px solid #e7e0e4;background:white;border-radius:999px;padding:10px 17px;font-weight:800;font-size:12px;white-space:nowrap}.primary-sm{border:0;background:#312039;color:white;border-radius:999px;padding:11px 19px;font-weight:800;font-size:12px;white-space:nowrap}.mobile-nav{display:none}
    .hero{background:var(--plum);border-radius:28px;min-height:495px;color:#fff;display:grid;grid-template-columns:1.04fr .96fr;position:relative;overflow:hidden;isolation:isolate}.hero:before{content:"";position:absolute;inset:auto auto -180px -180px;width:540px;height:540px;border:1px solid rgba(255,255,255,.08);border-radius:50%;z-index:-1}.hero:after{content:"";position:absolute;right:80px;top:-210px;width:500px;height:500px;border:1px solid rgba(255,255,255,.09);border-radius:50%;z-index:-1}.hero-copy{padding:66px 35px 60px 66px;position:relative;z-index:1}.hero-pill{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.24);padding:7px 12px;border-radius:99px;color:#f4d9b2;font-size:11px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase}.hero-pill i{width:7px;height:7px;background:#e99c9f;border-radius:50%}.hero h1{font:800 clamp(44px,5vw,69px)/1.03 Outfit,sans-serif;letter-spacing:-2.8px;margin:28px 0 20px;max-width:600px}.hero h1 em{color:#f8b7ac;font-style:normal}.hero p{font-size:15px;line-height:1.75;max-width:470px;color:#ded6e0}.hero-links{display:flex;align-items:center;gap:22px;margin-top:31px}.hero-button{display:inline-flex;align-items:center;gap:14px;background:#f8b7ac;color:#2d2333;padding:15px 20px 15px 23px;border-radius:12px;font-size:13px;font-weight:900}.hero-button:hover{background:#ffccc2}.hero-quiet{font-size:13px;font-weight:800;color:#f3eaf4}.hero-visual{position:relative;min-height:460px}.hero-orbit{position:absolute;width:425px;height:425px;border-radius:50%;top:34px;left:10px;background:#6b4a78;border:1px solid rgba(255,255,255,.09)}.hero-orbit:after{content:"";position:absolute;inset:30px;border:1px dashed rgba(255,255,255,.2);border-radius:50%}.hero-card{position:absolute;border-radius:16px;box-shadow:0 30px 45px rgba(12,5,22,.25);overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center}.hero-card .packettext{font-family:Outfit,sans-serif;font-weight:900;line-height:1.08;letter-spacing:-1px}.hero-card .packettext small{font-family:'DM Sans',sans-serif;display:block;font-size:11px;letter-spacing:2.5px;text-transform:uppercase;margin-bottom:10px}.hero-card .mini-badge{margin-top:17px;padding:8px 12px;border:1px solid currentColor;border-radius:99px;font-size:10px;font-weight:900;display:inline-block}.packet-1{width:235px;height:294px;left:115px;top:92px;background:#e7c0a3;color:#5d302b;transform:rotate(-11deg);z-index:2}.packet-1:before{content:"";position:absolute;width:220px;height:220px;border:3px solid rgba(255,255,255,.35);border-radius:50%;top:-100px;left:-55px}.packet-1 .packettext{font-size:33px}.packet-2{width:184px;height:245px;left:285px;top:158px;background:#c7e5bd;color:#26493b;transform:rotate(13deg);z-index:3}.packet-2 .packettext{font-size:32px}.packet-3{width:170px;height:178px;left:27px;top:225px;background:#f5bc8d;color:#5d2e36;transform:rotate(15deg);z-index:1;border-radius:30px}.packet-3 .packettext{font-size:26px}.hero-star{position:absolute;font-size:30px;color:#f3d68d}.hero-star.s1{top:66px;right:100px}.hero-star.s2{bottom:67px;right:70px}.hero-note{position:absolute;bottom:38px;right:37px;color:rgba(255,255,255,.74);font-size:10px;z-index:4;transform:rotate(-4deg)}
    .trustbar{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:30px 14px 0}.trustitem{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;font-weight:700;color:#625a69}.trusticon{width:33px;height:33px;background:#f6ebe6;border-radius:11px;display:grid;place-items:center;color:#9c5d58;font-size:19px}
    .section{padding-top:88px}.sectionhead{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:23px}.sectionhead h2,.browse-head h2{font:800 clamp(30px,3vw,39px)/1.12 Outfit,sans-serif;letter-spacing:-1.2px;margin:9px 0 0}.smallcopy{font-size:13px;color:var(--muted);max-width:425px}.linkarrow{color:#805c89;font-size:13px;font-weight:800}.countries{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.country{border:1px solid #ebe6e8;background:#fff;border-radius:17px;min-height:128px;padding:20px 16px;text-align:left;box-shadow:0 6px 22px rgba(33,25,40,.025);transition:transform .18s,border-color .18s;display:flex;align-items:flex-start;flex-direction:column;justify-content:space-between}.country:hover,.country.active{border-color:#a57da9;transform:translateY(-3px)}.country-flag{font-size:33px;line-height:1}.countryline{display:flex;justify-content:space-between;align-items:center;width:100%}.countryname{font-size:15px;font-weight:900}.countrycount{font-size:11px;color:#9b93a0}
    #browse{scroll-margin-top:28px}.browse-section{padding:98px 0 80px}.browse-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:25px}.browse-head p{color:var(--muted);margin:9px 0 0;font-size:13px}.search-row{display:flex;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:13px;border-radius:18px;box-shadow:var(--shadow)}.searchbox{display:flex;align-items:center;gap:12px;background:#faf8f8;border:1px solid #ebe7eb;border-radius:11px;padding:0 15px;flex:1 1 265px;min-height:49px}.searchbox svg{width:18px;opacity:.53;flex-shrink:0}.searchbox input{width:100%;border:0;background:transparent;outline:0;font-size:13px;color:var(--ink)}.selectwrap{flex:0 1 170px;min-width:138px}.selectwrap select{appearance:none;width:100%;height:49px;border-radius:11px;background:#faf8f8;border:1px solid #ebe7eb;padding:0 33px 0 14px;color:#48404f;font-size:12px;font-weight:800;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23746c7a' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}.filter-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:19px 0 24px;flex-wrap:wrap}.pills{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.pill{border:1px solid #e7e0e5;background:transparent;border-radius:99px;font-size:12px;font-weight:800;color:#6d6272;padding:9px 17px}.pill:hover{background:#f4edee}.pill.active{background:#33213e;color:#fff;border-color:#33213e}.count{font-size:12px;color:#8c838e;font-weight:700}.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}.product{min-width:0;background:#fff;border:1px solid #eee8ed;border-radius:17px;overflow:hidden;box-shadow:0 8px 25px rgba(32,20,30,.04);display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.product:hover{transform:translateY(-4px);box-shadow:0 20px 38px rgba(32,20,30,.1)}.visual{height:216px;background:var(--bg);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.visual:before{content:"";position:absolute;width:225px;height:225px;border-radius:50%;background:rgba(255,255,255,.34);top:-90px;right:-80px}.visual:after{content:"";position:absolute;width:120px;height:120px;border:1px solid rgba(255,255,255,.5);border-radius:50%;bottom:-70px;left:-20px}.product-packet{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--fg);background:var(--pack);width:135px;height:163px;border-radius:11px;box-shadow:9px 13px 21px rgba(34,18,25,.18),inset 0 0 0 6px rgba(255,255,255,.17);transform:rotate(var(--rot));padding:12px}.product-packet:before{content:"";width:70px;height:5px;border-radius:10px;background:rgba(255,255,255,.25);position:absolute;top:11px;left:32px}.product-packet strong{font:900 23px/1 Outfit,sans-serif;letter-spacing:-1px;max-width:100%;overflow-wrap:anywhere}.product-packet .symbol{font-size:37px;margin:8px 0 5px;line-height:1.1}.product-packet small{font-size:8px;letter-spacing:1px;font-weight:900;text-transform:uppercase}.product-packet span{font-size:9px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;margin-top:6px}.save{position:absolute;z-index:2;right:11px;top:11px;background:rgba(255,255,255,.92);width:33px;height:33px;border:none;border-radius:50%;font-size:18px;color:#745f78;display:grid;place-items:center}.save.saved{color:#d47b7f;background:#fff0f0}.product-content{padding:19px 18px 17px;display:flex;flex-direction:column;flex:1}.meta{font-weight:800;font-size:10px;letter-spacing:1.1px;text-transform:uppercase;color:#a1777e;display:flex;justify-content:space-between;gap:5px}.product-title{font:800 17px/1.24 Outfit,sans-serif;margin:8px 0 6px;letter-spacing:-.25px;min-height:42px}.desc{color:#837c86;font-size:12px;line-height:1.5;min-height:38px;margin:0 0 15px}.status{display:inline-flex;gap:6px;align-items:center;font-size:10px;font-weight:800;border-radius:6px;padding:5px 8px;max-width:max-content;margin:auto 0 14px}.status.found{background:#e9f4ec;color:#326c52}.status.review{background:#fbf0dd;color:#93632d}.status.no{background:#f4e9e9;color:#965a60}.product-footer{display:flex;gap:8px}.outline-action,.filled-action{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:900;min-height:40px;border-radius:9px;padding:8px 10px}.outline-action{background:#fff;color:#584a60;border:1px solid #ebe5eb;flex:1}.filled-action{background:#33213e;color:#fff;border:1px solid #33213e;flex:1}.filled-action:hover{background:#533264}.filled-action.disabled{background:#f3eef3;color:#978b9b;border-color:#f3eef3}.empty{grid-column:1/-1;text-align:center;padding:54px 18px;background:white;border:1px dashed #ded4de;border-radius:20px}.empty h3{font:800 25px Outfit;margin:10px 0 5px}.empty p{color:var(--muted);font-size:13px}.empty button{margin-top:10px}
    .how{padding:43px 0 76px;border-top:1px solid #e9e3e7}.how-head{display:flex;justify-content:space-between;align-items:end;gap:16px}.how h2{font:800 37px Outfit;letter-spacing:-1.5px;margin:8px 0 27px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.step{background:#fff;border:1px solid #ede7ea;padding:25px;border-radius:17px}.step .step-icon{background:#f2e6f1;width:45px;height:45px;display:grid;place-items:center;border-radius:15px;font-size:22px;margin-bottom:14px}.step h3{font:800 19px Outfit;margin:0 0 7px}.step p{font-size:12px;color:#817884;margin:0;line-height:1.7}
    .feature{background:#f3e5e3;border-radius:22px;margin-bottom:72px;display:grid;grid-template-columns:1.2fr .8fr;overflow:hidden}.feature-copy{padding:40px 47px}.feature h2{font:800 35px/1.1 Outfit;letter-spacing:-1.2px;margin:9px 0 11px}.feature p{font-size:13px;color:#786b74;max-width:470px}.feature button{background:#33213e;border:0;color:white;padding:12px 18px;border-radius:9px;font-size:12px;font-weight:800;margin-top:11px}.feature-art{position:relative;min-height:245px}.feature-circle{width:230px;height:230px;border-radius:50%;background:#dbb8c0;position:absolute;right:22%;top:22px;display:grid;place-items:center;font-size:106px;transform:rotate(-14deg)}.feature-spark{position:absolute;right:15%;top:30px;font-size:50px;color:#9d6384}
    footer{background:#23182c;color:#f9f1f8;padding:39px 0 25px}.footer-grid{display:flex;justify-content:space-between;align-items:start;gap:20px}.footer-brand .brand-word{color:white}.footer-brand p{font-size:12px;max-width:350px;line-height:1.65;color:#bdafc2;margin:12px 0}.footer-links{display:flex;gap:30px;font-size:12px;font-weight:800;color:#d9cbdb}.footer-links a:hover{text-decoration:underline}.fineprint{border-top:1px solid #47364f;padding-top:15px;margin-top:28px;color:#ab9cac;display:flex;justify-content:space-between;gap:16px;font-size:10px;line-height:1.6}
    .overlay{position:fixed;inset:0;z-index:12;background:rgba(24,13,29,.62);display:none;align-items:center;justify-content:center;padding:20px}.overlay.open{display:flex}.modal{max-width:560px;width:100%;background:white;border-radius:20px;padding:30px;position:relative;box-shadow:0 30px 80px rgba(0,0,0,.25);max-height:min(90vh,800px);overflow:auto}.close{position:absolute;right:15px;top:13px;border:0;background:#f5eff4;color:#513857;width:34px;height:34px;border-radius:50%;font-weight:900;font-size:19px}.modal h2{font:800 30px Outfit;letter-spacing:-.9px;margin:8px 0}.modal h3{font:800 15px Outfit;margin:18px 0 7px}.modal p,.modal li{color:#6c6370;font-size:13px;line-height:1.7}.modal-badge{display:inline-block;background:#f0e8f2;color:#735679;border-radius:99px;font-size:10px;font-weight:900;letter-spacing:1px;text-transform:uppercase;padding:6px 10px;margin-bottom:5px}.details-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.details-links a{display:inline-block;background:#312039;color:white;padding:12px 16px;border-radius:9px;font-size:12px;font-weight:900}.details-links a.secondary{background:#f5f0f5;color:#5c4764}.disclaimer{background:#faf6ee;border-radius:10px;padding:12px;font-size:11px;color:#826b52;margin-top:20px}.formfield{display:flex;flex-direction:column;gap:6px;margin-top:14px}.formfield label{font-weight:800;font-size:12px}.formfield input,.formfield textarea{border:1px solid #dcd3dd;border-radius:9px;padding:11px 12px;outline:none;width:100%}.formfield textarea{min-height:90px;resize:vertical}.submitbutton{background:#32213c;color:white;padding:12px 16px;border:0;border-radius:9px;margin-top:15px;font-size:12px;font-weight:900}.form-result{font-size:12px;color:#297b56;margin-top:12px;min-height:19px}
    @media(max-width:1080px){.hero-copy{padding:56px 26px 46px 46px}.packet-1{left:68px}.packet-2{left:235px}.packet-3{left:10px}.hero-orbit{left:-20px}.products{grid-template-columns:repeat(3,1fr)}.navlinks{gap:17px}.nav{gap:17px}}
    @media(max-width:780px){.shell{width:min(100% - 28px,1200px)}.nav{padding:17px 0}.navlinks{display:none}.mobile-nav{display:flex;gap:10px;align-items:center}.nav-actions .favorites-btn{display:none}.hero{grid-template-columns:1fr;min-height:0;border-radius:22px}.hero-copy{padding:47px 29px 16px}.hero h1{font-size:clamp(43px,8vw,64px);max-width:600px}.hero-visual{min-height:310px;max-width:440px;width:100%;margin:0 auto}.hero-orbit{width:360px;height:360px;left:30px;top:-10px}.packet-1{width:190px;height:238px;left:80px;top:30px}.packet-2{width:147px;height:201px;left:221px;top:73px}.packet-3{width:139px;height:145px;left:20px;top:125px}.packet-1 .packettext{font-size:26px}.packet-2 .packettext{font-size:25px}.packet-3 .packettext{font-size:21px}.hero-note{bottom:13px}.trustbar{grid-template-columns:1fr;gap:15px;padding-top:24px}.trustitem{justify-content:flex-start}.section{padding-top:58px}.countries{grid-template-columns:repeat(3,1fr)}.products{grid-template-columns:repeat(2,1fr)}.feature{grid-template-columns:1fr}.feature-art{display:none}.footer-grid{flex-direction:column}.how{padding-top:38px}.steps{grid-template-columns:1fr}.search-row{padding:10px}.browse-section{padding-top:70px}.browse-head{align-items:start;flex-direction:column}}
    @media(max-width:500px){.brand-word{font-size:19px}.nav-actions .primary-sm{display:none}.hero h1{letter-spacing:-1.5px}.hero-copy{padding:36px 23px 15px}.hero-links{gap:15px;flex-wrap:wrap}.hero-button{padding:13px 16px}.countries{grid-template-columns:repeat(2,1fr);gap:10px}.country{min-height:114px}.products{gap:10px}.visual{height:168px}.product-packet{transform:rotate(var(--rot)) scale(.8)}.product-content{padding:13px 11px}.product-title{font-size:15px;min-height:39px}.desc{font-size:11px;min-height:48px}.product-footer{flex-direction:column}.outline-action,.filled-action{min-height:36px}.product .meta{font-size:9px}.fineprint{flex-direction:column}.sectionhead{align-items:start;flex-direction:column}.selectwrap{flex:1 1 135px}.feature-copy{padding:30px 24px}}
    @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* WordPress compatibility adjustments */
body.admin-bar header { z-index: 99; }
@media (max-width: 782px) { body.admin-bar {padding-top:0;} }
.wp-site-blocks, .wp-block-group {max-width:100%;}
.atlas-entry {width:min(900px,calc(100% - 44px));margin:50px auto 110px;min-height:40vh;}
.atlas-entry h1 {font:800 clamp(30px,4vw,50px)/1.1 Outfit,sans-serif;}
.atlas-entry a:not(.button) {color:#805c89;text-decoration:underline;}
.atlas-entry p {line-height:1.8;}
