:root{
  --parchment:#F4E9D8;
  --saddle:#7A4E2D;
  --charcoal:#2B2B2B;
  --dusty:#8C3B2E;
  --teal:#2F6F6D;
  --card:#FFFFFF;
  --muted: rgba(43,43,43,.75);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--charcoal);
  background: linear-gradient(180deg, var(--parchment), #fff);
}

a{ color:inherit; text-decoration:none; }

.header{
  position:sticky; top:0;
  z-index:10;
  background: rgba(244,233,216,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(43,43,43,.1);
}

.container{ max-width:1100px; margin:0 auto; padding:18px; padding-right:410px; }
@media (max-width: 900px){ .container{ padding-right:18px; } }

.nav{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{ width:56px; height:56px; object-fit:contain; }
.brand .title{
  font-weight:800; letter-spacing:.5px;
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border:1px solid rgba(43,43,43,.2);
  border-radius:999px;
  color:var(--muted);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(43,43,43,.2);
  background:var(--card);
  cursor:pointer;
  font-weight:650;
}
.btn.primary{
  background: var(--saddle);
  color: #fff;
  border-color: rgba(0,0,0,.1);
}
.btn.ghost{
  background: transparent;
}
.btn.small{ padding:8px 10px; border-radius:12px; font-size:14px; }

.hero{
  border-radius:24px;
  overflow:hidden;
  background: #111;
  color:#fff;
  margin-top:18px;
}
.hero-inner{
  padding:34px 22px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.25)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=2000&q=60");
  background-size: cover;
  background-position:center;
}
.hero h1{ margin:0 0 10px 0; font-size:40px; line-height:1.05; }
.hero p{ margin:0; color: rgba(255,255,255,.85); max-width:720px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:18px;
}
@media (max-width: 900px){ .grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: var(--card);
  border: 1px solid rgba(43,43,43,.12);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.card h3{ margin:0 0 6px 0; }
.card p{ margin:0; color:var(--muted); }

.section-title{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:.2px;
}

.row{
  display:flex; gap:10px; align-items:center; justify-content:space-between;
  padding:12px 0;
  border-top:1px dashed rgba(43,43,43,.18);
}
.row:first-child{ border-top:none; }
.row .left{ display:flex; flex-direction:column; gap:2px; }
.row .left .name{ font-weight:700; font-size:15px; }
.row .left .hint{ font-size:13px; color:var(--muted); }
.row .right{ display:flex; gap:8px; align-items:center; }

.input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(43,43,43,.18);
  background:#fff;
  font-size:14px;
}
textarea{ min-height:90px; resize:vertical; }

.footer{
  margin-top:34px;
  padding:16px 0 30px;
  color:var(--muted);
  font-size:14px;
}
.footer a{ text-decoration:underline; }

.sticky-cart{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:20;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.notice{
  padding:12px 14px;
  border-radius:16px;
  background: rgba(47,111,109,.10);
  border:1px solid rgba(47,111,109,.22);
}
.notice strong{ color: var(--teal); }

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; } }

.mini{
  font-size:13px; color:var(--muted);
}

/* Cart Sidebar */
.cart-sidebar{
  position:fixed;
  top:0;
  right:0;
  width:380px;
  max-width:90vw;
  height:100vh;
  background:var(--card);
  border-left:1px solid rgba(43,43,43,.12);
  box-shadow: -4px 0 20px rgba(0,0,0,.08);
  z-index:100;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  /* Always visible on desktop */
  transform:translateX(0);
}
/* On mobile, hide by default and slide in */
@media (max-width: 900px){
  .cart-sidebar{
    width:100vw;
    max-width:100vw;
    transform:translateX(100%);
    transition:transform 0.3s ease;
  }
  .cart-sidebar.open{
    transform:translateX(0);
  }
}
.cart-sidebar-header{
  padding:18px;
  border-bottom:1px solid rgba(43,43,43,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(244,233,216,.5);
  position:sticky;
  top:0;
  z-index:10;
}
.cart-sidebar-header h3{
  margin:0;
  font-size:18px;
}
.cart-sidebar-close{
  background:none;
  border:none;
  font-size:24px;
  cursor:pointer;
  color:var(--charcoal);
  padding:0;
  width:32px;
  height:32px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  /* Hide close button on desktop, show only on mobile */
  display:none;
}
@media (max-width: 900px){
  .cart-sidebar-close{
    display:flex;
  }
}
.cart-sidebar-close:hover{
  background:rgba(43,43,43,.08);
}
.cart-sidebar-content{
  flex:1;
  padding:18px;
  padding-bottom:120px;
}
.cart-sidebar-footer{
  position:sticky;
  bottom:0;
  padding:18px;
  border-top:1px solid rgba(43,43,43,.12);
  background:var(--card);
  box-shadow:0 -4px 12px rgba(0,0,0,.06);
}
.cart-sidebar-toggle{
  position:fixed;
  right:18px;
  top:80px;
  z-index:99;
  box-shadow:0 4px 16px rgba(0,0,0,.15);
  /* Hide toggle button on desktop, show only on mobile */
  display:none;
}
@media (max-width: 900px){
  .cart-sidebar-toggle{
    display:inline-flex;
  }
}
.cart-sidebar-overlay{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,.3);
  z-index:99;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.3s ease;
  /* Hide overlay on desktop, show only on mobile */
  display:none;
}
@media (max-width: 900px){
  .cart-sidebar-overlay{
    display:block;
  }
}
.cart-sidebar-overlay.open{
  opacity:1;
  pointer-events:all;
}
