/* Rishi Ahara — shared design refinements and commerce components. */
:root{--green:#173f31;--deep:#102b22;--gold:#916526;--cream:#f7f6ef;--ink:#20392e;--muted:#57665c;--line:#d7dfd2;--error:#a33027;--glass:rgba(255,255,250,.86)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.navbar{background:var(--glass);border-color:#ffffffcc;box-shadow:inset 0 1px 0 #fff,0 12px 38px #102b2212;gap:21px;transition:background .2s,padding .2s}
.nav-wrap.scrolled .navbar{background:#fffef4f5;padding-top:10px;padding-bottom:10px}
.navlinks{gap:20px}.navlinks>a,.navlinks summary{font-size:14px}.brand small{font-size:10px}.lang{font-size:14px}
.cart-trigger{display:flex;gap:8px;align-items:center;border:1px solid #173f3126;background:#173f31;color:#fff;border-radius:100px;min-height:46px;padding:9px 14px;white-space:nowrap;font-size:14px}
.cart-count{background:#f3ead4;color:var(--green);display:grid;place-items:center;border-radius:50%;min-width:23px;height:23px;padding:0 4px;font-size:12px;font-weight:700}
.hero{min-height:740px;padding-top:131px}.hero-copy{padding-top:45px;padding-bottom:65px}.hero-photo{min-height:585px;border-radius:110px 26px 26px 26px}.hero-copy h1{font-size:clamp(3rem,5.1vw,5.35rem)}
.hero-note{background:#fefdefdb;box-shadow:inset 0 1px 0 #fff,0 12px 32px #102b2222}.hero-bottom{font-size:13px}
.eyebrow{font-size:12px;letter-spacing:.13em}.hero-note small,.strip span{font-size:13px}.section{padding:80px 0}.brand strong{letter-spacing:-.035em}.btn{font-size:14px}.text-link{font-size:14px}
.product{display:flex;flex-direction:column;border-radius:23px;box-shadow:0 2px 3px #173f3103}.product-visual{height:300px;background:#eaeadd}.product-info{padding:23px;display:flex;flex-direction:column;flex:1}.product-info h3{font-size:18px;min-height:50px}.product-info>p:not(.price-note){font-size:15px;line-height:1.65;margin-bottom:6px}.product-info footer{margin-top:auto;padding-top:18px}.product-info .price{font-size:18px;white-space:nowrap}.product-info .text-link{font-size:14px}.tag{font-size:12px;letter-spacing:.07em}
.product-placeholder{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:18px;padding:30px;background:#e0e6d5;width:100%;border:1px solid #fff8;border-radius:18px}.product-placeholder>span{letter-spacing:.18em;font-size:12px;color:var(--gold)}.product-placeholder strong{font:400 28px/1.25 'Playfair Display','Noto Sans Sinhala',serif;color:var(--green)}.product-placeholder small{font-size:12px;color:var(--muted)}
.add-form{display:flex;align-items:center;gap:12px;margin-top:18px;flex-wrap:wrap}.quantity-stepper{display:flex;align-items:center;border:1px solid #cdd7c9;border-radius:100px;background:#f8f9f3;overflow:hidden;flex-shrink:0}.quantity-stepper button{width:40px;min-height:44px;border:0;background:none;color:var(--green);font-size:21px;display:grid;place-items:center;padding:0}.quantity-stepper button:hover{background:#e3eadd}.quantity-stepper button:disabled{color:#9ca59c;cursor:default}.quantity-stepper input,.quantity-stepper>span{font-size:16px;width:35px;min-width:0;text-align:center;border:0;padding:0;background:transparent;color:var(--ink);appearance:textfield;line-height:44px}.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-stepper input:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;border-radius:4px}.quantity-stepper button:focus-visible{outline-offset:-4px;border-radius:50%}
.add-button{flex:1;min-height:46px;padding:9px 13px;gap:9px;border-radius:100px;white-space:nowrap;transition:background .2s,transform .2s}.add-button:after{content:none}.add-button svg{width:17px}.add-button.just-added{background:#458051;transform:scale(.98)}.quantity-error{flex-basis:100%;margin-top:-7px}.detail-add{max-width:440px}.detail-add .add-button{min-height:52px}.detail-add .quantity-stepper button{min-height:50px;width:45px}.price-note,.product-info>.price-note{font-size:12px!important;line-height:1.5!important;color:#745522;margin-top:11px!important;display:block}
.page-products>.nav-wrap+main>.page-hero{padding:159px 0 42px}.page-products .page-hero h1{font-size:clamp(2.6rem,4.6vw,4.2rem)}.page-products .section{padding-top:44px}.filterbar{margin-bottom:20px}.filter{font-size:14px}.catalogue-meta{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.catalogue-meta .results{order:-1;margin:0;font-size:13px}.sort-label{font-size:13px;color:var(--muted);display:flex;gap:10px;align-items:center;flex-shrink:0}.sort-label select{font-size:14px;color:var(--green);padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}
body:has(dialog[open]){overflow:hidden}.commerce-dialog{border:1px solid #fff9;background:#fcfdf7f7;color:var(--ink);box-shadow:0 25px 100px #102b222e;border-radius:26px;max-width:calc(100vw - 32px);padding:30px;max-height:calc(100dvh - 40px);overscroll-behavior:contain}.commerce-dialog[open]{animation:dialog-enter .24s ease-out}.commerce-dialog::backdrop{background:#102b2280;backdrop-filter:blur(6px)}.cart-drawer{margin:0 0 0 auto;width:510px;max-height:100dvh;height:100dvh;border-radius:26px 0 0 26px;padding:30px;top:0;right:0}.checkout-dialog{width:920px}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.dialog-head h2{font-size:34px;letter-spacing:-.035em;line-height:1.22}.dialog-head .eyebrow{margin:0 0 12px;font-size:11px}.dialog-intro{font-size:15px;margin:18px 0 25px;line-height:1.65}.icon-button{background:#e9eddf;border:1px solid #d9e0d1;border-radius:50%;width:44px;height:44px;flex-shrink:0;font-size:27px;line-height:1;color:var(--green);display:grid;place-items:center}
.cart-items{border-top:1px solid var(--line)}.cart-item{display:grid;grid-template-columns:72px 1fr auto;gap:14px;border-bottom:1px solid var(--line);padding:23px 0;align-items:start}.cart-item-image{border-radius:13px;background:#e9ecdf;overflow:hidden;min-height:78px;display:grid;place-items:center}.cart-item-image img{object-fit:contain;width:72px;height:85px;padding:5px}.cart-image-fallback{font:18px/1.15 'Playfair Display',serif;color:var(--green)}.cart-item-info{min-width:0}.cart-item-info>a{font-size:15px;font-weight:600;line-height:1.45;display:block}.cart-item-info>p{font-size:13px;margin-top:5px}.cart-item-info .price-note{font-size:11px!important;margin-top:6px!important}.cart-item-actions{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}.cart-item .quantity-stepper button{width:34px;min-height:40px}.cart-item .quantity-stepper>span{width:32px;line-height:40px;font-size:14px}.remove-item{font-size:12px;background:transparent;color:#746154;border:0;border-bottom:1px solid #a99c87;padding:6px 0}.line-total{font-size:14px;text-align:right;max-width:110px;line-height:1.5}.cart-bottom{padding:26px 0 0}.total-row{display:flex;align-items:baseline;justify-content:space-between;gap:20px;font-size:14px;margin:12px 0}.total-row strong{font-size:18px;white-space:nowrap}.total-row>span{max-width:65%}.fine-print{font-size:13px;line-height:1.65}.full{width:100%;margin-top:20px}.quiet-button{display:block;border:0;background:none;color:var(--green);font-size:14px;margin:12px auto 0;min-height:44px;padding:8px 12px;text-decoration:underline;text-underline-offset:5px}.cart-empty{text-align:center;padding:70px 15px}.cart-empty>svg{width:46px;height:46px;margin:0 auto 22px;color:var(--gold)}.cart-empty h3{font:28px 'Playfair Display',serif;margin-bottom:14px}.cart-empty p{font-size:15px;margin-bottom:25px}
.checkout-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:30px}.checkout-fields .field input,.checkout-fields .field textarea{background:#fff;font-size:16px}.checkout-fields .field textarea{min-height:115px}.field label{font-size:14px}.field-error{font-size:13px;color:var(--error);line-height:1.5}.field-error:empty{display:none}.field [aria-invalid=true]{border-color:var(--error);box-shadow:0 0 0 1px var(--error)}.payment-fieldset{border:0;padding:0;margin:22px 0}.payment-fieldset legend{font-size:14px;font-weight:600;margin-bottom:11px}.payment-option{padding:16px;border:1px solid #cad6c5;border-radius:14px;display:flex;align-items:flex-start;gap:11px;background:#fff;cursor:pointer}.payment-option:has(input:checked){border-color:var(--green);background:#eaf0e3;box-shadow:0 0 0 1px var(--green)}.payment-option input{width:18px;height:18px;accent-color:var(--green);margin:3px 0 0;flex-shrink:0}.payment-option strong{font-size:14px;display:block}.payment-option small{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:5px}.privacy-note{font-size:12px;line-height:1.6}.order-summary{background:#edf1e7;border:1px solid #dfe6d8;border-radius:18px;padding:20px;align-self:start}.order-summary h3{font-size:17px;margin-bottom:7px}.summary-line{display:flex;justify-content:space-between;align-items:flex-start;gap:17px;padding:18px 0;border-bottom:1px solid #d2dcca;font-size:14px}.summary-line>div{min-width:0}.summary-line strong{font-size:14px;line-height:1.5;display:block}.summary-line span{display:block;font-size:12px;color:var(--muted);margin-top:7px}.summary-line b{font-size:13px;white-space:nowrap}.summary-total{border-top:1px solid #d0dbc8;padding-top:12px}.order-summary .total-row strong{font-size:16px}.text-button{color:var(--green);font-size:14px;border:0;border-bottom:1px solid #9dac93;background:none;padding:9px 0;line-height:1.5;cursor:pointer}.order-summary .text-button{margin-top:12px}.review-details{padding:0 0 25px}.review-details dl{margin:15px 0 0}.review-details dl>div{display:grid;grid-template-columns:140px 1fr;gap:15px;padding:9px 0;font-size:14px}.review-details dt{color:var(--muted)}.review-details dd{margin:0;font-weight:500;overflow-wrap:anywhere}.order-notice{font-size:13px;padding:16px 0;line-height:1.65}.whatsapp-button{background:#245a3e}.whatsapp-button:after{content:'↗'}.ready-state{text-align:center;padding:10px 35px 25px}.ready-icon{width:68px;height:68px;background:#e4efdc;color:#315e3c;border:1px solid #c8d9bb;border-radius:50%;display:grid;place-items:center;font-size:35px;margin:10px auto 25px}.ready-state h3{font-family:'Playfair Display','Noto Sans Sinhala',serif;font-size:30px;font-weight:400;line-height:1.3}.ready-state p{font-size:16px;margin:18px auto 25px;max-width:540px}.ready-state .actions{justify-content:center}
.toast{position:fixed;z-index:40;bottom:28px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:24px;max-width:min(640px,92vw);padding:16px 22px;background:#fffef4f5;border:1px solid white;box-shadow:0 12px 60px #102b2230;backdrop-filter:blur(16px);border-radius:18px;font-size:14px}.toast button{background:none;border:0;border-bottom:1px solid var(--green);color:var(--green);font-weight:600;white-space:nowrap;min-height:40px}.mobile-cart{display:none}.footer-grid h3{font-size:14px}.footer p,.footer a:not(.brand){font-size:14px}.footer-bottom{font-size:12px}.value p{font-size:15px}.media-copy p{font-size:15px}.media-copy small{font-size:12px}.media-copy .text-link{font-size:14px}.form-note{font-size:14px}.contact-card .field textarea{min-height:150px}
@keyframes dialog-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(min-width:1600px){.hero{min-height:790px}.hero-photo{min-height:625px}}
@media(max-width:1200px){.navlinks{gap:15px}.navbar{gap:16px;padding:14px 18px}.cart-word{display:none}.brand strong{font-size:22px}.navlinks>a,.navlinks summary{font-size:13px}.product-info{padding:20px}.add-form{gap:8px}.quantity-stepper button{width:36px}.quantity-stepper input{width:30px}.add-button{padding:9px 10px;font-size:13px}}
@media(max-width:980px){.navlinks{display:none;position:absolute;top:87px;left:4%;right:4%;margin:0;background:#fffef6fa;backdrop-filter:blur(20px);padding:20px;border:1px solid white;border-radius:20px;box-shadow:var(--shadow);max-height:75vh;overflow:auto}.navlinks.open{display:block}.navlinks>a,.navlinks summary,.language-si .navlinks>a,.language-si .navlinks summary{display:block;font-size:16px;padding:13px 10px}.navlinks .dropdown{position:static;box-shadow:none;background:transparent;border:0}.menu-toggle{display:block;margin-left:auto;min-width:40px;min-height:44px;font-size:20px}.navbar{gap:16px}.hero-photo{min-height:510px}.hero{min-height:665px}.hero-copy h1{font-size:clamp(3rem,5.4vw,4.6rem)}.checkout-grid{gap:20px}}
@media(max-width:820px){.hero{min-height:auto;padding-top:105px}.hero-copy{padding:38px 6% 40px}.hero-copy h1{font-size:clamp(3rem,8vw,4.9rem)}.hero-photo{min-height:430px;border-radius:75px 22px 22px 22px}.section{padding:60px 0}.navbar{padding:11px 15px;min-height:72px}.product-info{padding:24px}.quantity-stepper button{width:40px}.add-button{font-size:14px}.checkout-dialog{padding:25px}.page-products>.nav-wrap+main>.page-hero{padding:132px 0 35px}.catalogue-meta{flex-wrap:wrap;align-items:start}.catalogue-meta .results{flex-basis:100%}.checkout-grid{grid-template-columns:1fr}.order-summary{margin:0 0 12px}.checkout-fields .field input{min-height:48px}.dialog-head h2{font-size:30px}.commerce-dialog{max-height:calc(100dvh - 24px)}.cart-drawer{max-height:100dvh}.toast{bottom:94px;width:90%;gap:14px}.mobile-cart:not([hidden]){position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:4%;right:4%;z-index:28;border-radius:100px;border:1px solid #fff8;background:#173f31f5;backdrop-filter:blur(18px);box-shadow:0 9px 36px #102b223b;color:white;display:flex;gap:12px;align-items:center;padding:15px 20px;min-height:58px;font-size:14px}.mobile-cart>[data-cart-total]{margin-left:auto;font-size:14px}.mobile-cart:not([hidden])~*{}.footer{padding-bottom:92px}}
@media(max-width:540px){.navbar{padding:10px;gap:9px}.brand strong{font-size:18px}.brand small{font-size:8px;letter-spacing:.06em}.brand img{width:31px;height:36px}.lang{border:0;padding-left:0!important;font-size:12px!important;min-height:44px;display:flex;align-items:center}.menu-toggle{padding:4px;min-width:33px}.cart-trigger{padding:8px;gap:4px;min-height:44px}.cart-trigger svg{width:19px}.cart-count{min-width:19px;height:19px;font-size:11px}.hero-copy h1{font-size:clamp(2.6rem,9.2vw,3.3rem)}.hero-copy{padding-top:32px}.hero-copy .eyebrow{font-size:11px;letter-spacing:.08em}.hero-bottom{font-size:12px}.hero-photo{min-height:340px}.hero-note small{font-size:11px}.hero-note strong{font-size:14px}.strip span{font-size:12px}.product-visual{height:290px}.product-info h3{min-height:0}.product-info>p{margin-bottom:14px!important}.product-info footer{padding-top:15px}.product-info .add-form{flex-wrap:wrap}.product-info .price-note{margin-bottom:0!important}.commerce-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:21px;border-radius:22px;max-height:calc(100dvh - 16px)}.cart-drawer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:22px}.dialog-head h2{font-size:28px}.cart-item{grid-template-columns:60px 1fr;gap:12px}.cart-item-image img{width:60px}.line-total{grid-column:2;justify-self:end;margin-top:-6px}.cart-item-info .quantity-stepper button{width:40px;min-height:44px}.cart-item-actions{gap:18px}.summary-line{gap:12px}.summary-line b{max-width:100px;white-space:normal;text-align:right}.total-row{gap:12px;font-size:13px}.total-row strong{font-size:16px;white-space:normal;text-align:right}.review-details dl>div{grid-template-columns:1fr;gap:3px}.ready-state{padding:10px 0 20px}.ready-state h3{font-size:27px}.page-products .page-hero h1{font-size:2.5rem}.page-products .page-hero .breadcrumb{margin-bottom:18px}.page-products .section{padding-top:32px}.checkout-dialog .dialog-head .eyebrow{font-size:10px}.language-si .brand strong{font-size:13px}.language-si .brand small{font-size:8px}.language-si .cart-word{display:none}.language-si .dialog-head h2{font-size:23px;line-height:1.5}.language-si .add-button{font-size:13px}.language-si .hero-copy h1{font-size:2.3rem}}
@media(max-width:360px){.brand small{display:none}.brand strong{font-size:16px}.brand{gap:5px}.navbar{gap:6px}.brand img{width:28px}.language-si .brand strong{font-size:12px}.cart-trigger{padding:7px}.cart-trigger svg{width:17px}.hero-copy .eyebrow{font-size:10px}.add-form{gap:7px}.quantity-stepper button{width:36px}.product-info{padding:20px}.mobile-cart{font-size:12px;padding:14px}.mobile-cart>[data-cart-total]{font-size:12px}.cart-drawer{padding:18px}.hero-copy h1{font-size:2.65rem}.language-si .hero-copy h1{font-size:2rem}}
@media(prefers-reduced-motion:reduce){.commerce-dialog[open],.just-added{animation:none!important;transform:none!important}}
