/* COFFEE TIME — premium editorial roastery redesign (2026-10-13)
   Intent: warm paper, forest green, espresso ink, copper accents, generous editorial spacing. */
:root{
  --bg:#f5f0e7;--panel:#fffdf8;--panel-2:#eee6d8;--line:rgba(44,57,43,.13);--line-strong:rgba(44,57,43,.28);
  --gold:#b87943;--gold-bright:#d69a5c;--cream:#252b22;--muted:#77786d;--green:#315b42;--danger:#b54d3d;
  --shadow:0 26px 70px rgba(49,43,32,.10);--radius:22px;
}
html{background:#f5f0e7;scroll-padding-top:110px}
body{background:#f5f0e7;color:#252b22;font-family:Vazirmatn,system-ui,sans-serif}
.ambient{opacity:.06;filter:blur(110px)}
.topbar{width:min(1460px,calc(100% - 48px));margin:16px auto 0;padding:13px 20px;background:rgba(252,249,242,.93);border:1px solid rgba(47,65,47,.12);border-radius:18px;box-shadow:0 10px 35px rgba(39,42,32,.07);backdrop-filter:blur(24px)}
.brand-mark{background:#284735;color:#f7edda;border:0;border-radius:12px;width:44px;height:44px}
.brand b{color:#243729;letter-spacing:.13em;font-size:14px}.brand small{color:#8a7259;letter-spacing:.18em}
.desktop-nav{gap:clamp(15px,2.3vw,34px)}.desktop-nav a{color:#555b50;font-size:13px;font-weight:600}.desktop-nav a:hover{color:#b87943}
.icon-btn{background:#f0eadf;border:1px solid rgba(47,65,47,.10);color:#344235;border-radius:12px}.icon-btn:hover{background:#e7ddcd;color:#254632;border-color:#b9c2af;box-shadow:none}
#cart-count{background:#bd7c46;color:white}
.page-shell{width:min(1460px,calc(100% - 48px));margin:28px auto 100px}
.hero{position:relative;min-height:630px;grid-template-columns:.92fr 1.08fr;gap:0;border:1px solid rgba(41,61,44,.10);border-radius:8px 30px 8px 30px;background:#e9e0d1;box-shadow:0 28px 80px rgba(53,44,30,.12);overflow:hidden}
.hero-copy{position:relative;z-index:2;padding:clamp(38px,6vw,92px);background:linear-gradient(115deg,#f3ecdf 0%,#f3ecdf 72%,rgba(243,236,223,.91) 100%)}
.eyebrow{color:#a76b3d;letter-spacing:.16em;font-size:11px;font-weight:900}.eyebrow::before{background:#b87943;width:30px}
.hero h1{color:#26382a;font-size:clamp(43px,5.5vw,82px);line-height:1.2;letter-spacing:-.055em;margin:24px 0 20px;max-width:680px}
.hero h1 span{color:#a76b3d}.hero p{max-width:520px;color:#64675c;font-size:15px;line-height:2.25}
.hero-visual{position:relative;min-height:630px;background:#3d3024;overflow:hidden}
.hero-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(28,33,25,.20),transparent 55%),linear-gradient(0deg,rgba(28,25,19,.32),transparent 50%);pointer-events:none}
.hero-visual img{width:100%;height:100%;min-height:630px;object-fit:cover;filter:saturate(.82) contrast(1.03)}
.hero-badge{position:absolute;z-index:2;bottom:30px;right:30px;left:auto;display:grid;gap:5px;padding:17px 20px;background:rgba(248,241,228,.94);color:#27382a;border:1px solid rgba(255,255,255,.35);border-radius:4px 16px 4px 16px;box-shadow:0 12px 40px #20180d30}
.hero-badge strong{font-family:Georgia,serif;font-size:19px;letter-spacing:.03em}.hero-badge span{color:#76766a;font-size:11px}
.btn{border-radius:8px;padding:12px 20px;font-weight:800;transition:transform .22s,background .22s,border-color .22s;box-shadow:none}
.btn:hover{transform:translateY(-2px)}.btn-primary{background:#2e4d37;color:#fff8e9;border:1px solid #2e4d37}.btn-primary:hover{background:#213d2b;border-color:#213d2b;box-shadow:0 12px 25px #2e4d3725}
.btn-ghost{background:rgba(255,255,255,.42);border:1px solid rgba(44,64,45,.2);color:#344632}.btn-ghost:hover{background:#e7dfd0;border-color:#b5bea9}
.stats-band{margin:22px 0 86px;padding:25px 24px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;background:#294633;border-radius:6px 18px 6px 18px;color:#f8f0df;border:0;box-shadow:0 18px 40px #29463316}
.stat{display:grid;gap:5px;text-align:center;border-left:1px solid #ffffff20}.stat:last-child{border-left:0}.stat strong{color:#e1b17b;font-family:Georgia,serif;font-size:clamp(24px,3vw,34px);letter-spacing:.02em}.stat span{color:#d6ddce;font-size:12px}
.section-head{align-items:end;margin:0 0 25px;gap:20px}.section-head h2,.section-head h3{font-size:clamp(24px,3vw,38px);line-height:1.4;letter-spacing:-.04em;color:#26382a}.section-head p{color:#77776c;line-height:2}.section-link{color:#a76b3d;font-weight:800}
.product-grid{gap:20px}.product-card{position:relative;background:#fffdf8;border:1px solid rgba(48,65,45,.10);border-radius:7px 18px 7px 18px;overflow:hidden;box-shadow:0 10px 35px rgba(44,41,29,.045);transition:transform .28s,box-shadow .28s,border-color .28s}
.product-card:hover{transform:translateY(-6px);box-shadow:0 22px 50px rgba(44,41,29,.11);border-color:#d6c4a8}
.product-image{background:#e8dfd0;aspect-ratio:1/1.03;overflow:hidden}.product-image img{transition:transform .5s;object-fit:cover}.product-card:hover .product-image img{transform:scale(1.045)}
.product-pill{background:#e4eadc;color:#34533a;border:1px solid #d5dfcc;border-radius:3px;font-weight:800}
.product-info{padding:20px}.product-info h3,.product-info h4{color:#2d382d;font-size:16px}.product-meta{color:#8b8578}.product-flavor-mini{color:#6c7164}.product-price{color:#2d4d36}.product-price .price{font-size:19px;color:#2d4d36;font-weight:900}.product-actions{gap:8px}.product-actions .btn{flex:1}
.home-showcase{border-radius:8px 24px 8px 24px;overflow:hidden;border:1px solid #e0d4c0;box-shadow:0 20px 60px #44352012;background:#293e2f;color:#f8f0df}
.home-showcase-copy{padding:clamp(24px,4vw,56px)}.home-showcase-en{color:#d9a66f;letter-spacing:.14em;font-size:11px}.home-showcase-copy h2,.home-showcase-copy h3{font-size:clamp(30px,4vw,50px);line-height:1.3}.home-showcase-meta{color:#e2d9c8}.showcase-arrow{background:#f4eddf;color:#2b4632;border:0}
.story-card,.panel,.contact-panel,.dashboard,.product-detail{background:#fffdf8;border:1px solid rgba(48,65,45,.11);border-radius:8px 20px 8px 20px;box-shadow:0 12px 40px rgba(44,41,29,.05)}
.story-card{padding:28px}.story-card h3,.story-copy h2{color:#293a2c}.story-card p,.story-point p{color:#707469;line-height:2}.story-point{border-color:#e6dfd3}
.shop-toolbar,.filters{background:#ede6d9;border:1px solid #e0d7c8;border-radius:12px;padding:12px}.searchbox,.field input,.field select,.field textarea,input,select,textarea{background:#fffdf8;color:#29372b;border-color:#d8d0c2}.searchbox:focus,.field input:focus,.field select:focus,.field textarea:focus,input:focus,select:focus,textarea:focus{outline-color:#a8b99e;border-color:#688366}
.filter-chip{background:#fffdf8;color:#596253;border:1px solid #ddd5c7;border-radius:999px}.filter-chip.active,.filter-chip[aria-pressed="true"]{background:#2e4d37;color:#fff8e9;border-color:#2e4d37}
.product-detail{padding:clamp(18px,3vw,40px)}.product-detail-copy h1,.product-detail-copy h2{color:#29392c}.detail-price,.product-price{color:#2f5239}.detail-chip{background:#edf0e6;color:#455c43;border:1px solid #dbe3d2}
.panel{padding:24px}.panel-head{border-bottom:1px solid #e8e0d3;padding-bottom:16px}.panel-head h3{color:#29392c}.panel-head p,.panel p{color:#72766b}
.field label,.field span{color:#555e50}.field input,.field select,.field textarea{border-radius:9px}
.modal-backdrop,.drawer-backdrop{background:rgba(24,31,24,.60);backdrop-filter:blur(6px)}.modal,.drawer-panel{background:#faf6ed;color:#28362a;border:1px solid #e3d8c5;box-shadow:0 30px 90px #151c16aa}.modal-head{border-bottom:1px solid #e6ddce}.modal-head h2,.modal-head h3{color:#29392c}.modal-body{color:#555e50}
.status{border-radius:99px}.site-footer{margin-top:80px;padding:54px max(24px,calc((100vw - 1380px)/2));background:#202f24;color:#f1eadb;border-top:5px solid #b87943}.site-footer p,.site-footer a,.site-footer span{color:#c5cbbb}.site-footer h4{color:#e0b27c}.footer-brand b{color:#f4ead8}.footer-brand small{color:#d1b18b}.footer-brand .brand-mark{background:#b87943;color:#fff8eb}.footer-bottom{border-top:1px solid #ffffff20;color:#aeb8a9}
/* Customer club */
.club-hero,.loyalty-hero,.customer-club-hero{background:linear-gradient(120deg,#294633,#1d3024)!important;color:#f8f0df!important;border-radius:8px 24px 8px 24px!important}
.club-hero h1,.loyalty-hero h1,.customer-club-hero h1{color:#fff5e4!important}.club-card,.loyalty-card,.club-stat-card{background:#fffdf8!important;color:#29392c!important;border:1px solid #e2d8c8!important;border-radius:8px 18px 8px 18px!important;box-shadow:0 12px 35px #3028180b!important}
/* Admin stays readable, but uses the same brand palette. */
.admin-shell{background:#f1ebdf;border:1px solid #e1d7c7;border-radius:18px}.admin-side{background:#253a2b;color:#f5eddd}.admin-side a,.admin-side button{color:#d8ddcf}.admin-side a.active,.admin-side button.active{background:#3d5940;color:white}.admin-main{color:#29372b}.kpi{background:#fffdf8;border:1px solid #e2d8c8;border-radius:8px 16px 8px 16px}.kpi strong{color:#2e4d37}.table-wrap{border:1px solid #e5dccd;border-radius:12px}table{color:#303a2f}th{background:#eee6d9;color:#4d5b4a}td{border-color:#eee6d9}
.empty{background:#fffdf8;color:#72766b;border:1px dashed #d8cebd;border-radius:12px;padding:28px}
:focus-visible{outline:3px solid #b87943;outline-offset:3px}
@media(max-width:900px){.topbar{width:calc(100% - 24px);gap:12px;padding:10px 12px}.page-shell{width:calc(100% - 24px);margin-top:18px}.hero{grid-template-columns:1fr;min-height:0}.hero-copy{padding:36px 26px 30px}.hero-visual,.hero-visual img{min-height:360px;height:360px}.hero-visual{grid-row:1}.hero-copy{grid-row:2}.stats-band{margin:14px 0 56px;grid-template-columns:repeat(2,1fr);padding:18px 12px}.stat:nth-child(2){border-left:0}.stat:nth-child(-n+2){padding-bottom:14px;border-bottom:1px solid #ffffff20}.stat:nth-child(n+3){padding-top:8px}.site-footer{padding:38px 22px}.home-showcase{border-radius:8px 18px 8px 18px}}
@media(max-width:560px){.topbar{border-radius:14px}.brand b{font-size:12px}.brand-mark{width:38px;height:38px}.nav-actions{gap:5px}.icon-btn{width:37px;height:37px}.hero h1{font-size:clamp(39px,12vw,56px)}.hero p{font-size:13px}.hero-visual,.hero-visual img{min-height:280px;height:280px}.hero-badge{right:14px;bottom:14px;padding:12px 14px}.stats-band{gap:10px}.stat strong{font-size:25px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-info{padding:12px}.product-info h3,.product-info h4{font-size:13px}.product-price .price{font-size:15px}.product-actions{flex-wrap:wrap}.product-actions .btn{padding:9px 10px;font-size:11px}.section-head h2,.section-head h3{font-size:25px}.panel{padding:16px}.admin-shell{border-radius:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* COFFEE TIME polish pass: consistent controls, readable feedback, no near-black error cards. */
:root{--ct-paper:#fffdf8;--ct-ink:#28362a;--ct-border:#e3d8c7;--ct-danger:#a63e35;--ct-danger-bg:#fff0ec;--ct-success:#286344;--ct-success-bg:#edf7ef;--ct-info:#355b72;--ct-info-bg:#eef6fa}
button, .btn, a.btn, input, select, textarea{font-family:inherit}
button:not(:disabled),.btn:not(:disabled){cursor:pointer}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.btn:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bd8b54;outline-offset:3px}
.btn{min-height:44px;gap:9px;line-height:1.55}
.btn svg,.btn i{flex:0 0 auto}
.icon-btn{transition:background .18s,border-color .18s,color .18s,transform .18s}
.icon-btn:active:not(:disabled){transform:scale(.96)}
#toast-root.toast-root{width:min(420px,calc(100vw - 28px));inset-inline-start:14px;inset-inline-end:auto;bottom:14px;gap:10px;pointer-events:none}
#toast-root .toast{pointer-events:auto;position:relative;display:block;min-width:0;max-width:100%;padding:15px 17px 15px 18px;background:#fffdf8!important;color:#29372b!important;border:1px solid #e1d7c7!important;border-inline-start:4px solid #71816a!important;border-radius:13px!important;box-shadow:0 14px 38px rgba(38,48,35,.16)!important;font-size:12px;line-height:1.95;font-weight:600;overflow-wrap:anywhere;backdrop-filter:blur(14px)}
#toast-root .toast.success{border-inline-start-color:#38845a!important;background:linear-gradient(110deg,#fffdf8,#f1f8f0)!important}
#toast-root .toast.error{border-inline-start-color:#c44f43!important;background:linear-gradient(110deg,#fffdf8,#fff0ec)!important;color:#71352e!important}
#toast-root .toast:not(.success):not(.error){border-inline-start-color:#b87943!important;background:#fffaf0!important}
.toast-root .toast::selection{background:#d8c3a4;color:#26382a}
/* Common inline alerts/validation cards used across checkout, account and admin. */
.alert,.notice,.error-message,.form-error,.field-error,[data-error-message],[role="alert"]:not(.toast){background:#fff4ef!important;color:#763b31!important;border:1px solid #efd0c7!important;border-radius:12px!important;padding:12px 15px!important;line-height:1.9}
.success-message,.form-success,.alert-success,.notice-success{background:#f0f8ef!important;color:#2e6040!important;border-color:#d4e7d2!important}
.info-message,.alert-info,.notice-info{background:#eff6f8!important;color:#315a69!important;border-color:#d3e4e8!important}
.premium-confirm-backdrop{z-index:130;background:rgba(30,38,29,.52)!important;backdrop-filter:blur(9px)!important}
.premium-confirm{width:min(520px,100%)!important;background:#fffdf8!important;color:#29372b!important;border:1px solid #e2d7c6!important;border-radius:18px!important;box-shadow:0 30px 90px rgba(34,41,31,.24)!important;overflow:hidden}
.premium-confirm .modal-head{padding:20px 22px!important;border-bottom:1px solid #ece3d5!important;align-items:center}
.premium-confirm .modal-head h3{margin:5px 0 0;color:#29372b!important;font-size:20px}
.premium-confirm-kicker{color:#a76b3d;font-size:10px;font-weight:900;letter-spacing:.08em}
.premium-confirm-close{width:36px;height:36px;display:grid;place-items:center;font-size:23px;line-height:1}
.premium-confirm .modal-body{padding:22px!important;color:#505b4d!important}
.premium-confirm-message{margin:0 0 22px;color:#505b4d!important;font-size:13px;line-height:2.1;white-space:pre-line}
.premium-confirm-actions{display:flex;gap:10px;flex-wrap:wrap}
.premium-confirm-actions .btn{flex:1;min-width:130px}
/* Readability across the remaining reusable surfaces. */
.empty{background:#fffdf8!important;color:#687064!important;border-color:#d9cfbd!important}
.status{font-weight:800}
::placeholder{color:#93978b!important;opacity:1}
@media(max-width:560px){#toast-root.toast-root{inset-inline-start:10px;bottom:10px;width:calc(100vw - 20px)}#toast-root .toast{font-size:11px;padding:12px 13px}.premium-confirm-actions{display:grid;grid-template-columns:1fr}.premium-confirm-actions .btn{width:100%}}


/* COFFEE TIME contrast hotfix — 2026-10-14
   Keep form controls and search readable in the light editorial theme. */
.searchbox { background: transparent !important; }
.searchbox input,
.global-searchbox input,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select,
.field textarea {
  background-color: #fffdf8 !important;
  color: #29372b !important;
  -webkit-text-fill-color: #29372b !important;
  border-color: #d8d0c2;
  caret-color: #29372b;
  opacity: 1;
}
.searchbox input::placeholder,
.global-searchbox input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #77786d !important;
  -webkit-text-fill-color: #77786d !important;
  opacity: 1;
}
.field select option,
select option { background: #fffdf8 !important; color: #29372b !important; }
.field label,
.field > span { color: #555e50 !important; }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #29372b !important;
  -webkit-box-shadow: 0 0 0 1000px #fffdf8 inset !important;
  caret-color: #29372b;
}
