/*
Theme Name: SL Catering
Description: SL Cateringi tootekataloog ja tellimispäringud.
Version: 0.5.3
Requires at least: 6.8
Requires PHP: 8.0
*/
:root{--ink:#173d32;--muted:#5e7068;--green:#245747;--mint:#e8f0e9;--line:#dae3db;--paper:#fff;--yellow:#e8ed9c}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:var(--ink);background:#fafbf8;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7b9346;outline-offset:4px}.container{width:min(1220px,calc(100% - 64px));margin:auto}.site-header{height:96px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:700;letter-spacing:.035em}.brand img{width:69px;height:69px;object-fit:contain;mix-blend-mode:multiply}.site-header nav{display:flex;align-items:center;gap:32px;font-size:14px}.site-header nav a{text-decoration:none}.cart-trigger,.button{border:0;border-radius:6px;background:var(--green);color:white;min-height:46px;padding:12px 22px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none}.cart-count{background:var(--yellow);color:var(--ink);border-radius:50%;min-width:23px;line-height:23px;text-align:center;font-size:12px}.hero{display:grid;grid-template-columns:1fr 1fr;background:var(--mint);border-radius:12px;overflow:hidden;min-height:435px}.hero-copy{padding:56px 48px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:700;display:block;margin-bottom:19px}h1,h2,h3,p{margin-top:0}h1{font:normal clamp(40px,4.5vw,62px)/1.05 Georgia,serif;letter-spacing:-.035em;max-width:460px;margin-bottom:22px}h1 em{font-weight:normal}p{color:var(--muted)}.hero p{max-width:375px;margin-bottom:27px}.hero-image{position:relative;min-height:360px}.hero-image img{height:100%;width:100%;object-fit:cover;position:absolute}.hero-image span{position:absolute;bottom:20px;left:22px;background:white;padding:9px 14px;border-radius:4px;font-size:12px}.benefits{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);padding:25px 0;margin-bottom:52px;gap:20px}.benefits div{display:flex;align-items:center;gap:12px;font-size:13px}.benefits b{font-weight:600}.benefits .number{width:33px;height:33px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:11px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}h2{font:normal 38px/1.15 Georgia,serif;letter-spacing:-.02em;margin-bottom:10px}.section-heading p{font-size:14px;margin:0}.sample{font-size:11px!important;color:#6b6330;background:#f2f1d6;padding:7px 11px;border-radius:4px;max-width:265px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px}.filter{border:1px solid var(--line);border-radius:40px;padding:8px 18px;color:var(--ink);background:transparent;font-size:13px}.filter.active{background:var(--ink);color:white;border-color:var(--ink)}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.product{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden;display:flex;flex-direction:column}.product-photo{height:210px;overflow:hidden;background:#edf1eb;position:relative;display:grid;place-items:center}.product-photo img{width:100%;height:100%;object-fit:cover}.photo-placeholder{font:italic 28px Georgia,serif;color:#71867a;text-align:center}.photo-placeholder small{display:block;font:11px Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;margin-top:12px}.product-body{padding:23px;display:flex;flex-direction:column;flex:1}.category{color:#637c6b;font-size:10px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px}h3{font:normal 25px Georgia,serif;margin-bottom:11px}.product-description{font-size:13px;line-height:1.6;margin-bottom:9px}.allergens{font-size:11px;color:#67756d;margin-bottom:17px}.product-bottom{margin-top:auto}.price{font-size:20px;font-weight:600}.price small{font-size:12px;font-weight:normal;color:var(--muted)}.minimum{font-size:11px;color:var(--muted);margin:5px 0 17px}.add{width:100%;border:1px solid var(--green);background:white;color:var(--green);border-radius:5px;padding:10px 16px;font-size:13px;font-weight:600;display:flex;justify-content:space-between;align-items:center}.add:hover{background:var(--mint)}.how{display:grid;grid-template-columns:1.1fr 2fr;gap:70px;margin:70px 0;padding:42px;border-radius:9px;background:var(--mint)}.how h2{font-size:32px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.step-number{font:26px Georgia,serif;color:#7e9588;display:block;margin-bottom:15px}.steps h3{font:600 15px Arial,sans-serif}.steps p{font-size:12px}.site-footer{border-top:1px solid var(--line);padding:32px 0;display:flex;justify-content:space-between;font-size:12px}.site-footer p{margin:0}.site-footer strong{display:block;margin-bottom:5px}.empty-menu{padding:40px;background:var(--mint);border-radius:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:6px;padding:12px 24px;z-index:30;box-shadow:0 5px 25px #0002;max-width:90%;font-size:14px}.toast[hidden]{display:none}dialog{border:0;border-radius:12px;padding:0;width:min(680px,calc(100% - 24px));max-height:90vh;color:var(--ink);box-shadow:0 20px 80px #0003}dialog::backdrop{background:#102c2490;backdrop-filter:blur(3px)}.dialog-header{position:sticky;top:0;background:white;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:23px 28px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:29px;margin:0}.close{border:0;background:var(--mint);width:34px;height:34px;border-radius:50%;font-size:23px;color:var(--ink)}.dialog-content{padding:25px 28px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:18px}.cart-line strong{font-size:15px}.cart-line small{display:block;color:var(--muted);font-size:11px}.cart-line .line-price{align-self:center;font-weight:600}.qty{display:inline-flex;align-items:center;margin-top:10px;border:1px solid var(--line);border-radius:4px;overflow:hidden}.qty button{width:32px;height:32px;border:0;background:var(--mint);color:var(--ink)}.qty span{min-width:70px;text-align:center;font-size:12px}.remove{border:0;background:transparent;text-decoration:underline;color:var(--muted);font-size:11px;margin-left:14px}.total{display:flex;justify-content:space-between;font-size:19px;font-weight:600;margin:22px 0 8px}.transport-note{font-size:12px}.order-form{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}.order-form h3{font-size:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.field input,.field select,.field textarea{width:100%;padding:11px;border:1px solid #bdcfc3;border-radius:5px;background:white;min-height:44px;font-weight:normal;font-size:14px;color:var(--ink)}.wide{grid-column:1/-1}.field small{font-weight:normal;color:var(--muted);font-size:11px}.field[hidden]{display:none}.notice{padding:14px;background:var(--mint);font-size:12px;margin:19px 0;border-radius:5px}.error{color:#982c2c;background:#fff0ed;padding:12px;border-radius:5px;font-size:13px}.error[hidden]{display:none}.submit-order{width:100%;margin-top:6px}.success{padding:28px 0;text-align:center}.success h3{font-size:31px}.success .check{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:var(--mint);font-size:28px;margin:0 auto 20px}.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.demo-note{font-size:11px;color:var(--muted);text-align:center;margin-top:13px}.no-products{padding:20px}.product[hidden]{display:none}@media(max-width:900px){.container{width:calc(100% - 36px)}.hero-copy{padding:35px 28px}.hero{min-height:360px}.products{grid-template-columns:repeat(2,1fr)}.how{grid-template-columns:1fr;gap:25px;padding:30px}.site-header nav{gap:18px}}@media(max-width:600px){.container{width:calc(100% - 28px)}.site-header{height:82px;gap:10px}.brand{font-size:12px;gap:7px}.brand img{width:50px;height:50px}.site-header nav>a{display:none}.cart-trigger{padding:10px 13px;font-size:12px;min-height:42px}.hero{grid-template-columns:1fr}.hero-copy{padding:32px 26px}h1{font-size:45px}.hero-image{min-height:240px}.hero p{font-size:14px}.benefits{grid-template-columns:1fr;padding:23px 0;gap:15px;margin-bottom:34px}.section-heading{align-items:start;flex-direction:column;gap:12px}h2{font-size:32px}.products{gap:14px}.product-photo{height:155px}.product-body{padding:15px}.photo-placeholder{font-size:22px}.photo-placeholder small{font-size:8px}.product h3{font-size:21px}.product-description{font-size:12px}.price{font-size:17px}.minimum{min-height:34px}.add{font-size:12px;padding:10px}.how{margin:40px 0;padding:25px}.steps{grid-template-columns:1fr;gap:16px}.step-number{float:left;margin-right:18px;margin-bottom:35px}.site-footer{flex-direction:column;gap:20px}.dialog-content{padding:21px}.dialog-header{padding:19px 21px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}}

.card-quantity{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 15px}.card-quantity .qty{margin:0}.card-quantity small{font-size:13px;font-weight:600}.card-quantity .qty button{width:36px;height:36px}.card-quantity .qty span{min-width:62px}.add.in-cart{background:var(--mint)}

.order-calendar{border:1px solid #bdcfc3;border-radius:8px;padding:16px;background:white;max-width:450px}.calendar-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;font-size:16px}.calendar-heading strong{text-transform:capitalize}.calendar-heading button{border:1px solid var(--line);background:var(--mint);color:var(--ink);border-radius:5px;width:36px;height:36px;font-size:24px}.calendar-days,.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.calendar-weekdays{color:var(--muted);margin-bottom:8px;font-size:12px}.calendar-day{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:5px;min-height:39px;font-size:14px}.calendar-day:hover:not(:disabled){background:var(--mint)}.calendar-day:disabled{background:#eff0ef;color:#929792;border-color:#eff0ef;text-decoration:line-through;opacity:1;cursor:not-allowed}.calendar-day.selected{background:var(--green);color:white;border-color:var(--green)}.calendar-legend{font-size:11px;font-weight:normal;color:var(--muted);margin:13px 0 0}.calendar-heading button:disabled{cursor:default}@media(max-width:400px){.order-calendar{padding:10px}.calendar-days{gap:3px}.calendar-day{min-height:35px}}

/* Editable content pages */
.story-main{max-width:900px;margin:45px auto 90px;min-height:45vh}.story-main h1{font-size:clamp(38px,6vw,68px);line-height:1.12;letter-spacing:-.035em;margin:18px 0 35px}.story-image{margin:0 0 36px}.story-image img{display:block;max-width:100%;height:auto;border-radius:12px}.story-content{font-size:18px;line-height:1.8;overflow-wrap:anywhere}.story-content h2{font-size:30px;line-height:1.25;margin-top:1.5em}.story-content img{max-width:100%;height:auto;border-radius:8px}.story-content figure{max-width:100%;margin-left:0;margin-right:0}.story-content a{text-decoration:underline}.story-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:40px}.site-header nav a[aria-current=page]{text-decoration:underline;text-underline-offset:6px}.site-header nav{gap:22px}.story-page .site-header nav a{display:inline-flex}@media(max-width:900px){.site-header{height:auto;min-height:96px;flex-wrap:wrap;padding:15px 0}.site-header nav{flex-wrap:wrap;gap:14px}.site-header nav a{display:inline-flex}.story-main{margin-top:25px}.story-content{font-size:17px}}

/* Separate page navigation, version 0.3 */
.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:15px;top:15px;z-index:100;background:white;padding:12px}.site-header nav a[aria-current=page]{text-decoration:underline;text-underline-offset:7px}.site-header nav{gap:22px}.mobile-nav{display:none}.catalogue-main{padding:36px 0 64px}.catalogue-main h1{margin-bottom:20px}.checkout-main{max-width:740px;margin:36px auto 65px;background:white;border:1px solid var(--line);border-radius:12px;padding:32px}.home-story{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin:55px 0}.home-story p{font-size:17px}.story-main{min-height:45vh}.story-content{max-width:760px}.story-content a{overflow-wrap:anywhere}.site-footer a{overflow-wrap:anywhere}.mobile-nav summary{cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:10px 14px;font-weight:600}.mobile-nav[open] nav{display:flex;position:absolute;left:14px;right:14px;top:75px;padding:18px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 25px #0002;z-index:50;flex-direction:column;align-items:stretch;gap:5px}.mobile-nav nav a{padding:10px}.mobile-nav nav a.cart-trigger{color:white}.mobile-nav nav a{display:block!important}.cart-trigger{white-space:nowrap}.order-form[hidden]{display:none}
@media(max-width:800px){.site-header .desktop-nav{display:none}.mobile-nav{display:block}.site-header{position:relative;height:85px}.home-story{grid-template-columns:1fr;gap:14px}.checkout-main{padding:22px;margin-top:20px}.catalogue-main{padding-top:20px}.site-header nav a{display:block}}@media(max-width:420px){.products{grid-template-columns:1fr}.product-photo{height:240px}.minimum{min-height:0}.product-description{font-size:14px}.checkout-main{padding:16px}.brand{font-size:12px}.mobile-nav summary{font-size:13px}}

/* Appearance preference applies to every page, without changing photographs. */
:root{color-scheme:light;--canvas:#fafbf8;--surface:#fff;--button-bg:#245747;--button-text:#fff;--disabled-bg:#eff0ef;--disabled-text:#6b746d;--error-bg:#fff0ed;--error-text:#982c2c}
:root[data-appearance="dark"]{color-scheme:dark;--canvas:#101b17;--surface:#172820;--ink:#e8eee6;--muted:#b6c6bb;--green:#b4d7bf;--mint:#22392e;--line:#466052;--paper:#172820;--yellow:#e8ed9c;--button-bg:#b4d7bf;--button-text:#10261a;--disabled-bg:#1c2822;--disabled-text:#819187;--error-bg:#442a2b;--error-text:#ffb9af;}
@media(prefers-color-scheme:dark){:root:not([data-appearance="light"]){color-scheme:dark;--canvas:#101b17;--surface:#172820;--ink:#e8eee6;--muted:#b6c6bb;--green:#b4d7bf;--mint:#22392e;--line:#466052;--paper:#172820;--yellow:#e8ed9c;--button-bg:#b4d7bf;--button-text:#10261a;--disabled-bg:#1c2822;--disabled-text:#819187;--error-bg:#442a2b;--error-text:#ffb9af;}}
body{background:var(--canvas)}.product,.checkout-main,.order-calendar,.field input,.field select,.field textarea,.add,.dialog-header,.mobile-nav[open] nav,.hero-image span,.skip-link:focus,dialog{background:var(--surface);color:var(--ink)}.category,.allergens,.photo-placeholder,.step-number{color:var(--muted)}.product-photo{background:var(--mint)}.cart-trigger,.button,.mobile-nav nav a.cart-trigger,.calendar-day.selected{background:var(--button-bg);color:var(--button-text)}.cart-count{color:#173d32}.filter.active,.toast{background:var(--ink);color:var(--canvas)}.calendar-day{background:var(--surface);color:var(--ink)}.calendar-day.selected{border-color:var(--button-bg)}.calendar-day:disabled{background:var(--disabled-bg);color:var(--disabled-text);border-color:var(--disabled-bg)}.field input,.field select,.field textarea,.order-calendar{border-color:var(--line)}.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:1}.error{background:var(--error-bg);color:var(--error-text)}.brand img{mix-blend-mode:normal;background:#fafbf8;border-radius:50%}.appearance-toggle{margin-left:auto;flex-shrink:0;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:13px;white-space:nowrap}.appearance-toggle[hidden]{display:none}.site-header{gap:18px}.site-header nav{gap:18px}.site-header .desktop-nav{flex-wrap:nowrap}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:var(--green)}
@media(max-width:1000px){.site-header .desktop-nav{display:none}.mobile-nav{display:block}.site-header{position:relative;flex-wrap:nowrap;min-height:85px;height:auto}.brand{flex-shrink:0}.mobile-nav[open] nav{top:80px}}@media(max-width:420px){.site-header{gap:7px}.brand{gap:5px;font-size:11px}.brand img{width:43px;height:43px}.appearance-toggle{padding:8px;font-size:12px}.mobile-nav summary{padding:10px;font-size:12px}} 

/* News shares the light/dark palette. */
.home-news{margin:65px 0}.news-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:26px}.news-heading h2{margin:12px 0}.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}.news-card{max-width:580px;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.news-image{display:block}.news-image img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.news-copy{padding:26px}.news-copy h2{font-size:30px;line-height:1.2;margin:14px 0}.news-copy h2 a{text-decoration:none}.news-copy time,.news-article time{font-size:14px;color:var(--muted)}.news-copy p,.news-intro{color:var(--muted);line-height:1.7}.news-intro{max-width:660px;margin-bottom:35px}.news-pagination{margin-top:30px;display:flex;gap:15px}.news-article .story-content{margin-top:30px}.news-article figcaption{font-size:14px;color:var(--muted);margin-top:8px}.news-article figure{margin:30px 0}.news-article h1{font-size:clamp(36px,5vw,60px)}
@media(max-width:1200px){.desktop-nav{display:none!important}.mobile-nav{display:block}.appearance-toggle{margin-left:auto}.site-header{position:relative}}
