
:root{
  --ink:#101010;
  --muted:#6b6b6b;
  --paper:#ffffff;
  --soft:#f4f4f2;
  --line:#deded9;
  --accent:#d71e2b;
  --accent-dark:#b51621;
  --green:#1b7a41;
  --shadow:0 12px 36px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.container{width:min(1180px,calc(100% - 32px));margin:auto}
.top-strip{background:#111;color:#fff;font-size:13px}
.top-strip-inner{display:flex;justify-content:space-between;padding:8px 0;gap:20px}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.header-inner{min-height:86px;display:grid;grid-template-columns:auto 1fr auto;gap:26px;align-items:center}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{width:48px;height:48px;border-radius:12px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:900}
.brand-name{font-size:23px;font-weight:900;letter-spacing:1px}
.brand-sub{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:var(--muted)}
.header-search input{width:100%;height:46px;border:1px solid var(--line);border-radius:10px;padding:0 15px;background:#fafafa;outline:none}
.header-search input:focus{border-color:#999;background:#fff}
.cart-button{border:1px solid var(--ink);background:#fff;border-radius:10px;padding:11px 14px;display:flex;align-items:center;gap:8px;font-weight:700}
.cart-count{min-width:24px;height:24px;border-radius:999px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:12px}
.category-nav{border-bottom:1px solid var(--line);background:#fff}
.category-row{display:flex;gap:8px;overflow:auto;padding:10px 0;scrollbar-width:thin}
.category-pill{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 15px;font-weight:700}
.category-pill.active,.category-pill:hover{border-color:var(--ink);background:var(--ink);color:#fff}
.hero{background:linear-gradient(135deg,#f6f3ed 0%,#fff 62%);border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:40px;align-items:center;padding:64px 0}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.8px;color:var(--accent);text-transform:uppercase}
.hero h1{font-size:52px;line-height:1.02;margin:12px 0 14px;max-width:720px}
.hero p{font-size:19px;color:#4e4e4e;line-height:1.6;max-width:650px}
.primary-button{border:0;background:var(--accent);color:#fff;border-radius:9px;padding:13px 20px;font-weight:900}
.primary-button:hover{background:var(--accent-dark)}
.primary-button.full{width:100%}
.hero-card{background:#111;color:#fff;border-radius:20px;padding:30px;box-shadow:var(--shadow)}
.hero-card-title{font-size:24px;font-weight:900;margin-bottom:10px}
.hero-card-text{color:#d5d5d5;line-height:1.6}
.hero-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.hero-badges span{border:1px solid #555;border-radius:999px;padding:7px 10px;font-size:12px}
.shop-section{padding:46px 0 70px}
.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}
.section-head h2{font-size:34px;margin:5px 0 0}
.result-info{color:var(--muted)}
.shop-layout{display:grid;grid-template-columns:220px 1fr;gap:28px}
.filter-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px}
.filter-title{font-weight:900;margin-bottom:12px}
.side-category{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 4px;border-bottom:1px solid #eee}
.side-category.active{font-weight:900;color:var(--accent)}
.check-row{display:flex;gap:9px;align-items:center}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.product-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-height:320px;transition:.18s ease}
.product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#ccc}
.product-image{height:150px;background:#f2f2ef;display:grid;place-items:center;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover}
.product-placeholder{font-size:42px;font-weight:900;color:#bbb}
.product-body{padding:15px;display:flex;flex-direction:column;flex:1}
.product-code{font-size:11px;color:var(--muted);margin-bottom:6px}
.product-name{font-size:16px;font-weight:800;line-height:1.35;min-height:44px}
.product-desc{font-size:12px;color:var(--muted);line-height:1.45;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-bottom{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px}
.product-price{font-size:23px;font-weight:900}
.stock{font-size:11px;margin-top:4px}
.stock.ok{color:var(--green)}
.stock.no{color:var(--accent)}
.add-button{border:1px solid var(--ink);background:#fff;border-radius:9px;padding:10px 12px;font-weight:900}
.add-button:hover{background:var(--ink);color:#fff}
.add-button:disabled{opacity:.4;cursor:not-allowed}
.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}
.empty-icon{font-size:50px}
.hidden{display:none!important}
.info-band{background:#111;color:#fff}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:30px 0}
.info-grid div{display:flex;flex-direction:column;gap:5px}
.info-grid span{color:#aaa;font-size:13px}
footer{background:#f5f5f2;border-top:1px solid var(--line);padding:38px 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.footer-title{font-weight:900;margin-bottom:10px}
.footer-grid p,.footer-grid a{color:var(--muted);display:block;margin:7px 0;font-size:14px}
.drawer-backdrop,.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.46);z-index:80}
.cart-drawer{position:fixed;right:0;top:0;width:min(460px,100%);height:100vh;background:#fff;z-index:90;transform:translateX(100%);transition:.22s ease;display:flex;flex-direction:column;box-shadow:-15px 0 40px rgba(0,0,0,.15)}
.cart-drawer.open{transform:translateX(0)}
.drawer-head{padding:20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.drawer-head h2{margin:3px 0 0}
.icon-button{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:26px}
.cart-items{padding:12px 20px;overflow:auto;flex:1}
.cart-empty{padding:40px 0;text-align:center;color:var(--muted)}
.cart-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}
.cart-item-name{font-weight:800}
.cart-item-meta{font-size:12px;color:var(--muted);margin-top:4px}
.qty-controls{display:flex;align-items:center;gap:7px;margin-top:8px}
.qty-controls button{width:30px;height:30px;border:1px solid var(--line);background:#fff;border-radius:6px}
.remove-link{border:0;background:transparent;color:var(--accent);font-size:12px;padding:0;margin-left:7px}
.cart-item-total{font-weight:900}
.cart-footer{border-top:1px solid var(--line);padding:18px 20px}
.cart-total-row{display:flex;justify-content:space-between;font-size:20px;margin-bottom:14px}
.modal-backdrop{display:grid;place-items:center;padding:20px}
.checkout-modal{width:min(760px,100%);max-height:94vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:var(--shadow)}
#checkoutForm{padding:20px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.form-grid .wide{grid-column:1/-1}
.form-grid input,.form-grid select,.form-grid textarea{border:1px solid var(--line);border-radius:8px;padding:11px;background:#fff}
.checkout-summary{display:flex;justify-content:space-between;font-size:20px;padding:18px 0}
.form-message{padding-top:12px;font-size:13px;color:var(--muted)}
@media(max-width:900px){
  .header-inner{grid-template-columns:1fr auto}
  .header-search{grid-column:1/-1;grid-row:2;padding-bottom:12px}
  .hero-grid{grid-template-columns:1fr;padding:42px 0}
  .hero h1{font-size:40px}
  .shop-layout{grid-template-columns:1fr}
  .filters{display:none}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .top-right{display:none}
  .container{width:min(100% - 20px,1180px)}
  .brand-name{font-size:19px}
  .cart-button span:nth-child(2){display:none}
  .hero h1{font-size:34px}
  .product-grid{grid-template-columns:1fr}
  .info-grid,.footer-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .form-grid .wide{grid-column:auto}
}


/* CLEAN SHOP V2 */
.hero-grid-clean{
  grid-template-columns:1fr;
  min-height:320px;
}
.hero-grid-clean .hero-copy{
  max-width:760px;
}
.hero-grid-clean .hero-copy p{
  max-width:620px;
}
.shop-section{
  padding-top:38px;
}
.category-nav{
  position:sticky;
  top:86px;
  z-index:24;
}
@media(max-width:900px){
  .category-nav{top:122px}
  .hero-grid-clean{min-height:auto}
}

/* PAPYRUS LOGO */
.brand-logo{
  display:block;
  max-width:220px;
  max-height:64px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.papyrus-wordmark{
  width:auto;
  min-width:150px;
  padding:0 14px;
  font-size:25px;
  font-weight:900;
  letter-spacing:1px;
}
@media(max-width:700px){
  .brand-logo{max-width:165px;max-height:52px}
  .papyrus-wordmark{min-width:120px;font-size:21px}
}

/* LOGO ONLY HEADER */
.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}
.brand-logo{
  display:block;
  width:auto;
  height:64px;
  max-width:260px;
  object-fit:contain;
}
@media(max-width:700px){
  .brand-logo{
    height:50px;
    max-width:190px;
  }
}
