:root{
  --bg:#f3efe8;
  --bg-soft:#faf7f2;
  --card:#f8f4ee;
  --card-2:#f3eee7;
  --line:#ddd2c2;
  --text:#0f1b2d;
  --muted:#71695d;
  --gold:#d7b04a;
  --gold-2:#e7c76b;
  --gold-deep:#a47821;
  --green:#62c99a;
  --danger:#e47e6d;
  --nav:#f6f3ee;
  --shadow:0 10px 24px rgba(48,34,13,.08);
  --shadow-soft:0 6px 18px rgba(48,34,13,.06);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,sans-serif;background:radial-gradient(circle at top,#faf7f2 0%,#f3efe8 54%,#efe9e0 100%);color:var(--text)}
button,input,select,textarea{font-family:inherit}
a{text-decoration:none}

.header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 30px;background:rgba(246,243,238,.94);border-bottom:1px solid rgba(161,132,82,.18);position:sticky;top:0;z-index:1000;backdrop-filter:blur(12px);box-shadow:0 4px 20px rgba(48,34,13,.05)}
.logo{display:inline-flex;align-items:center;gap:14px;flex-shrink:0;padding:8px 10px 8px 8px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,244,238,.92));border:1px solid rgba(174,149,109,.20);box-shadow:0 10px 24px rgba(48,34,13,.08)}
.logo-mark{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:16px;background:#0f1115;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.logo-mark img{width:58px;height:58px;object-fit:contain;display:block;filter:drop-shadow(0 6px 14px rgba(0,0,0,.18))}
.logo-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.logo-title{font-size:25px;line-height:1;font-weight:900;letter-spacing:-.9px;color:var(--text)}
.logo-title span{color:var(--gold-deep)}
.logo-subtitle{font-size:11px;line-height:1.25;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.search-box{position:relative;flex:1;max-width:500px;margin:0 auto}
#search{width:100%;height:42px;padding:0 18px;border-radius:999px;border:1px solid #e3d8ca;background:rgba(255,255,255,.75);font-size:15px;color:var(--text);transition:.2s;outline:none}
.search-dropdown{position:absolute;top:calc(100% + 10px);left:0;right:0;background:#fff;border:1px solid #e4dbcf;border-radius:20px;box-shadow:0 18px 40px rgba(48,34,13,.12);padding:8px;display:none;z-index:1200;max-height:420px;overflow:auto}
.search-dropdown.show{display:block}
.search-dropdown-empty{padding:14px 16px;color:#8a8174;font-size:14px}
.search-item{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border-radius:14px;cursor:pointer;transition:.18s}
.search-item:hover{background:#f8f4ee}
.search-item-thumb{width:52px;height:52px;border-radius:12px;background:#f5f1ea;border:1px solid #eadfce;display:flex;align-items:center;justify-content:center;overflow:hidden}
.search-item-thumb img{width:100%;height:100%;object-fit:contain}
.search-item-thumb-empty{font-size:20px;color:#b9a992}
.search-item-name{font-size:14px;font-weight:800;line-height:1.35;color:#162033}
.search-item-meta{font-size:12px;color:#776e62;margin-top:4px}
.search-item-price{font-size:14px;font-weight:900;color:#a47821;white-space:nowrap}
#search::placeholder{color:#8a8174}
#search:focus{background:#fff;border-color:#dbc173;box-shadow:0 0 0 4px rgba(215,176,74,.12)}
.header-actions{display:flex;align-items:center;gap:12px}
.admin-link,.cart-icon{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);padding:10px 16px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid #e4dbcf;box-shadow:var(--shadow-soft);transition:.2s}
.admin-link:hover,.cart-icon:hover{transform:translateY(-1px);background:#fff}
.cart-icon{cursor:pointer}
#cart-count{background:linear-gradient(135deg,var(--gold-2),var(--gold));color:#111827;font-size:12px;font-weight:800;padding:3px 8px;border-radius:999px;min-width:26px;text-align:center}

.hero{position:relative;min-height:470px;display:flex;align-items:center;overflow:hidden;background:url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,21,35,.72) 0%,rgba(14,21,35,.52) 44%,rgba(14,21,35,.26) 100%)}
.hero-inner{position:relative;z-index:1;max-width:1240px;width:100%;margin:0 auto;padding:58px 26px;display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:center}
.hero-left{max-width:680px}.hero-badge{display:inline-block;margin-bottom:14px;padding:9px 14px;border-radius:999px;background:rgba(231,199,107,.16);color:#ffe08a;font-size:12px;font-weight:800;letter-spacing:.8px}
.hero-left h1{margin:0 0 14px;font-size:56px;line-height:1.02;font-weight:900;color:#fff;letter-spacing:-1.4px}
.hero-left p{margin:0 0 24px;max-width:580px;font-size:19px;line-height:1.55;color:rgba(255,255,255,.88)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-btn{width:auto;min-width:190px;padding:14px 22px;border-radius:14px;border:none;font-size:15px;font-weight:800;cursor:pointer;transition:.2s}
.hero-btn-main{background:linear-gradient(135deg,var(--gold-2),var(--gold));color:#111827;box-shadow:0 14px 28px rgba(164,120,33,.22)}
.hero-btn-main:hover{transform:translateY(-2px)}
.hero-btn-light{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(6px)}
.hero-btn-light:hover{transform:translateY(-2px);background:rgba(255,255,255,.16)}
.hero-right{display:flex;justify-content:flex-end}
.hero-card{width:100%;max-width:340px;padding:22px;border-radius:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 50px rgba(0,0,0,.18);backdrop-filter:blur(8px)}
.hero-card-title{font-size:22px;font-weight:800;color:#fff;margin-bottom:16px}
.hero-card-list{display:flex;flex-direction:column;gap:10px;color:rgba(255,255,255,.88);font-size:15px;line-height:1.5}

.container{max-width:1240px;margin:0 auto;padding:22px 18px 32px}
.section-title{font-size:22px;margin:26px 0 14px;color:var(--text);letter-spacing:-.4px}
.layout{display:flex;gap:18px;margin-top:12px;align-items:flex-start}
.sidebar{
  width:216px;
  position:sticky;
  top:90px;
  max-height:calc(100vh - 110px);
  overflow:auto;
  background:rgba(255,255,255,.38);
  padding:16px;
  border-radius:22px;
  border:1px solid rgba(161,132,82,.12);
  box-shadow:var(--shadow-soft);
  scrollbar-width:thin;
}
.sidebar h3{margin:0 0 12px;font-size:14px;color:#1f2937}
.content{flex:1;min-width:0}
.categories{
  display:grid;
  gap:10px;
  max-height:420px;
  overflow:auto;
  padding-right:4px;
  scrollbar-width:thin;
}
.category{
  background:rgba(255,255,255,.55);
  padding:12px 10px;
  border-radius:14px;
  text-align:center;
  cursor:pointer;
  transition:.2s;
  font-weight:700;
  border:1px solid #e5dacd;
  color:#2f3745;
  box-shadow:0 2px 10px rgba(48,34,13,.03);
  line-height:1.2;
  word-break:break-word;
}
.category:hover{transform:translateY(-1px);background:#fff}
.category.active{background:linear-gradient(135deg,#efd27a,#d7b04a);color:#111827;border-color:#d7b04a;box-shadow:0 8px 20px rgba(164,120,33,.16)}
.categories::-webkit-scrollbar,.sidebar::-webkit-scrollbar{width:8px}
.categories::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background:#d7b04a;border-radius:999px}
.categories::-webkit-scrollbar-track,.sidebar::-webkit-scrollbar-track{background:rgba(0,0,0,.04);border-radius:999px}
#priceRange{width:100%;accent-color:var(--gold)}.price-value{font-size:14px;color:var(--muted);margin:8px 0 0}#sort{width:100%;height:40px;padding:0 12px;border-radius:14px;border:1px solid #e0d6ca;background:rgba(255,255,255,.72);font-size:14px;color:var(--text);outline:none}

#products,.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.product{background:linear-gradient(180deg,rgba(255,255,255,.62) 0%,rgba(248,244,238,.95) 100%);border-radius:20px;padding:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;text-align:center;min-height:auto;border:1px solid rgba(174,149,109,.16);transition:.2s}
.product:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(48,34,13,.11)}
.product-media{width:100%;height:140px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;padding:12px;border-radius:18px;background:var(--card-2);border:1px solid rgba(174,149,109,.15)}
.product img{max-width:100%;max-height:116px;object-fit:contain;display:block;margin:0 auto}
.product h3{font-size:14px;line-height:1.35;min-height:38px;margin:6px 0;display:flex;align-items:center;justify-content:center;font-weight:800}
.product p{font-size:16px;font-weight:900;color:var(--gold-deep);margin:0 0 10px}
.qty{width:100%;display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:6px;margin:6px 0 10px}
.qty button{width:34px;height:34px;border:none;border-radius:50%;font-size:20px;font-weight:700;color:#fff;cursor:pointer;padding:0;line-height:1;box-shadow:0 8px 16px rgba(0,0,0,.08)}.qty button:first-child{background:linear-gradient(135deg,#ec8b79,var(--danger))}.qty button:last-child{background:linear-gradient(135deg,#7ad8ab,var(--green))}
.qty input{width:100%;height:34px;border:1px solid #dbd1c4;border-radius:11px;text-align:center;font-size:16px;font-weight:700;outline:none;background:rgba(255,255,255,.75);color:var(--text)}
.product>button{width:100%;margin-top:auto;height:40px;border-radius:12px;font-size:14px;font-weight:800;background:linear-gradient(135deg,var(--gold-2),var(--gold));color:#111827;border:none;cursor:pointer;box-shadow:0 10px 18px rgba(164,120,33,.16);transition:.2s}.product>button:hover{transform:translateY(-1px)}
.no-image{width:100%;height:116px;border-radius:16px;background:#f2ede6;border:1px dashed #d4c7b4;display:flex;flex-direction:column;align-items:center;justify-content:center}.no-image-icon{font-size:30px;opacity:.75}.no-image-text{font-size:13px;color:#8a8174}

.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(21,18,13,.34);opacity:0;visibility:hidden;transition:.25s;z-index:1998}.overlay.show{opacity:1;visibility:visible}
.cart-drawer{position:fixed;top:0;right:-420px;width:380px;max-width:100%;height:100%;background:#fbf8f3;box-shadow:-12px 0 34px rgba(48,34,13,.12);transition:.25s;display:flex;flex-direction:column;z-index:1999;border-left:1px solid rgba(161,132,82,.14)}.cart-drawer.open{right:0}
.cart-header{padding:18px;font-size:22px;font-weight:800;display:flex;justify-content:space-between;border-bottom:1px solid #ece3d8}.cart-close{cursor:pointer}
.cart-items{flex:1;overflow:auto;padding:12px}.cart-item{display:flex;gap:10px;align-items:center;margin-bottom:12px;padding:10px;border-radius:14px;background:rgba(255,255,255,.58);border:1px solid #ebe0d2}.cart-img{width:56px;height:56px;object-fit:cover;border-radius:10px;background:#fff}.cart-info{flex:1}.cart-name{font-weight:700;margin-bottom:5px;font-size:14px}.cart-controls{display:flex;align-items:center;gap:8px;margin:5px 0}.cart-controls button{width:28px;height:28px;border:none;border-radius:8px;cursor:pointer;color:#fff}.cart-controls button:first-child{background:var(--danger)}.cart-controls button:last-child{background:var(--green)}.cart-price{font-size:13px;color:var(--muted)}.remove-btn{background:#e8dfd2;color:#7b594e;border:none;padding:6px 10px;border-radius:8px;cursor:pointer;font-weight:700}
.cart-footer{padding:16px;border-top:1px solid #ece3d8;display:flex;flex-direction:column;gap:10px;background:#f8f2ea}.cart-total{font-size:21px;font-weight:800}.checkout-btn,.clear-btn{border:none;border-radius:12px;padding:12px 14px;font-weight:800;cursor:pointer}.checkout-btn{background:linear-gradient(135deg,var(--gold-2),var(--gold));color:#111827}.clear-btn{background:#ece4d8;color:#43372c}
.empty-cart{min-height:55vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 20px}.empty-cart-icon{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#fff,#f4ecdf);display:flex;align-items:center;justify-content:center;font-size:38px;margin-bottom:16px;box-shadow:var(--shadow-soft)}.empty-cart-title{font-size:24px;font-weight:800;color:#1f1f1f;margin-bottom:8px}.empty-cart-text{font-size:14px;line-height:1.5;color:#777;max-width:260px;margin-bottom:20px}.empty-cart-btn{width:auto!important;min-width:210px;padding:13px 20px;border:none;border-radius:14px;background:linear-gradient(135deg,var(--gold-2),var(--gold));color:#111827;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(164,120,33,.16)}

.footer{margin-top:54px;background:#141d2d;color:#e5e7eb}.footer-container{max-width:1200px;margin:0 auto;padding:36px 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.footer-col{display:flex;flex-direction:column;gap:10px}.footer-logo{display:inline-flex;align-items:center;gap:14px;max-width:max-content;padding:10px 14px 10px 10px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}.footer-logo-mark{display:flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:14px;background:#0f1115;overflow:hidden}.footer-logo-mark img{width:54px;height:54px;object-fit:contain;display:block;filter:drop-shadow(0 8px 18px rgba(0,0,0,.2))}.footer-logo-text{display:flex;flex-direction:column;gap:4px}.footer-logo-title{font-size:24px;line-height:1;font-weight:900;color:#fff;letter-spacing:-.8px}.footer-logo-title span{color:#e7c76b}.footer-logo-subtitle{font-size:11px;line-height:1.3;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#b9c0cb}.footer-title{font-weight:700;margin-bottom:10px;color:#fff}.footer a{color:#b9c0cb;text-decoration:none;transition:.2s}.footer a:hover{color:#fff}.footer-text{color:#b9c0cb;line-height:1.5}.footer-bottom{text-align:center;padding:16px;border-top:1px solid #243146;font-size:14px;color:#b9c0cb}
.doc-page{max-width:900px;margin:40px auto;padding:0 20px 40px;background:transparent}.doc-page h1{font-size:34px}.doc-page p{line-height:1.7;color:#374151}

@media (max-width:980px){.hero{min-height:auto}.hero-inner{grid-template-columns:1fr;padding:44px 20px}.hero-right{justify-content:flex-start}.hero-left h1{font-size:42px}.hero-left p{font-size:17px}.layout{flex-direction:column}.sidebar{width:auto;position:static}}
@media (max-width:768px){.header{padding:14px 16px;gap:12px;flex-wrap:wrap}.logo{padding:8px 10px;border-radius:18px}.logo-mark{width:60px;height:60px}.logo-mark img{width:48px;height:48px}.logo-title{font-size:22px}.logo-subtitle{font-size:10px}#search{margin:0;max-width:none;order:3;flex:1 1 100%}.header-actions{gap:8px}.products,#products{grid-template-columns:1fr 1fr}.footer-container{grid-template-columns:1fr}.footer-logo{padding:10px 12px}.footer-logo-mark{width:60px;height:60px}.footer-logo-mark img{width:46px;height:46px}.footer-logo-title{font-size:21px}.footer-logo-subtitle{font-size:10px}.cart-drawer{width:100%}.container{padding:18px 14px 28px}}
@media (max-width:560px){.hero{min-height:320px}.hero-left h1{font-size:34px}.hero-btn{width:100%;min-width:0}.hero-card{max-width:100%}.products,#products{grid-template-columns:1fr}.product-media{height:150px}.product img{max-height:120px}}


/* ===== Mobile adaptation ===== */
img{max-width:100%}
@media (max-width:768px){
  body{overflow-x:hidden}
  .header{padding:12px 12px 14px;align-items:stretch;justify-content:flex-start}
  .logo{width:100%;justify-content:center;padding:8px 10px}
  #search{order:2;width:100%;height:44px;font-size:15px}
  .header-actions{order:3;width:100%;display:grid;grid-template-columns:1fr 1fr}
  .admin-link,.cart-icon{justify-content:center;padding:11px 12px;border-radius:14px}
  .hero{min-height:auto;background-position:center}
  .hero-inner{padding:26px 14px 28px;gap:18px}
  .hero-left h1{font-size:32px;line-height:1.06}
  .hero-left p{font-size:15px;line-height:1.5}
  .hero-badge{font-size:11px;padding:8px 12px}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .hero-btn{width:100%;min-width:0;padding:13px 16px}
  .hero-card{padding:16px;border-radius:18px}
  .hero-card-title{font-size:18px}
  .container{padding:16px 12px 24px}
  .section-title{font-size:20px;margin:20px 0 12px}
  .layout{gap:14px}
  .sidebar{width:100%;padding:14px;border-radius:18px}
  .categories{grid-template-columns:1fr;max-height:320px}
  .category{padding:11px 8px;font-size:13px}
  #sort{height:42px}
  .products,#products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product{padding:12px;border-radius:18px}
  .product-media{height:120px;padding:10px;margin-bottom:8px}
  .product img{max-height:96px}
  .product h3{font-size:13px;min-height:34px;margin:4px 0}
  .product p{font-size:15px;margin-bottom:8px}
  .qty{grid-template-columns:30px 1fr 30px;gap:5px;margin:5px 0 8px}
  .qty button{width:30px;height:30px;font-size:18px}
  .qty input{height:30px;font-size:15px}
  .product>button{height:38px;font-size:13px}
  .cart-header{padding:14px 16px;font-size:20px}
  .cart-items{padding:10px}
  .cart-item{align-items:flex-start;padding:10px;gap:8px}
  .cart-img{width:52px;height:52px}
  .cart-controls{gap:6px}
  .cart-controls button{width:26px;height:26px}
  .cart-footer{padding:14px}
  .cart-total{font-size:19px}
  .checkout-btn,.clear-btn{padding:11px 12px}
  .footer{margin-top:36px}
  .footer-container{padding:28px 14px;gap:20px}
  .footer-bottom{padding:14px 12px;font-size:13px}
}

@media (max-width:480px){
  .header{gap:10px}
  .logo-mark{width:54px;height:54px}
  .logo-mark img{width:42px;height:42px}
  .logo-title{font-size:20px}
  .logo-subtitle{font-size:9px}
  .hero-inner{padding:22px 12px 24px}
  .hero-left h1{font-size:28px}
  .hero-left p{font-size:14px}
  .hero-card-list{font-size:14px;gap:8px}
  .categories{grid-template-columns:1fr}
  .products,#products{grid-template-columns:1fr}
  .product{padding:11px}
  .product-media{height:132px}
  .product img{max-height:106px}
  .cart-drawer{width:100%}
  .cart-item{display:grid;grid-template-columns:52px 1fr auto}
  .remove-btn{padding:6px 8px}
  .empty-cart{min-height:48vh}
  .empty-cart-title{font-size:21px}
  .doc-page{margin:24px auto;padding:0 14px 28px}
  .doc-page h1{font-size:28px}
}


.checkout-logo{display:inline-flex;align-items:center}.checkout-logo img{height:62px;width:auto;display:block}
.login-brand{margin-bottom:20px}.login-brand img{height:80px;width:auto;display:block;filter:drop-shadow(0 10px 22px rgba(0,0,0,.22))}

@media (max-width:768px){.checkout-logo img{height:54px}.footer-logo img{height:62px}}
@media (max-width:560px){.logo img{height:48px}.checkout-logo img{height:48px}.login-brand img{height:68px}}


@media (max-width: 900px){
  .cart-drawer{width:100vw;right:-100vw;border-left:none}
  .cart-drawer.open{right:0}
}
