/* Zab Digital Prints — shared storefront styles.
   Keep the existing identity: black on white, Inter for UI, Playfair for display. */

:root {
  --primary: #d46a84;        /* Soft, elegant blush rose */
  --bg-body: #ffffff;
  --text-main: #2d2628;      /* Deep warm charcoal for high readability */
  --text-muted: #9c8a8f;     /* Muted rose-gray */
  --border: #f3e1e6;         /* Very soft baby-pink tinted border */
  --secondary: #fff5f7;      /* Extremely light baby pink background */
  --white: #ffffff;
  --success: #2d8a56;
  --danger: #d93025;
  --warn: #b26a00;
  --pad-x: 5%;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--bg-body);
  color: var(--text-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-top: 0;
}

a { color: inherit; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(15px);
  padding-top: env(safe-area-inset-top);
}
.announcement-bar {
  background: var(--primary); color: var(--white); text-align: center;
  padding: 10px 15px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}
.site-nav { padding: 15px var(--pad-x); display: flex; justify-content: space-between; align-items: center; }
.brand-mark { font-family: 'Playfair Display', serif; font-size: 1.5rem; letter-spacing: 2px; margin: 0; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.nav-links { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-muted); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.cart-icon-btn {
  position: relative; background: none; border: none; cursor: pointer; padding: 5px;
  font-family: inherit; font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
}
.cart-count { display: inline-block; min-width: 20px; margin-left: 4px; background: var(--primary); color: #fff; font-size: 0.65rem; padding: 3px 6px; border-radius: 50px; font-weight: 700; }
.mobile-menu-btn, .mobile-close-btn { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; padding: 0; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline {
  font-family: inherit; font-weight: 600; text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 1px; padding: 16px 35px;
  cursor: pointer; transition: 0.3s; text-decoration: none;
  display: inline-block; text-align: center; border-radius: 0;
}
.btn-primary { background: var(--primary); color: var(--white); border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--white); color: var(--primary); }
.btn-primary:disabled { background: #ccc; border-color: #ccc; color: #fff; cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); }
.btn-full { width: 100%; }

/* ---------- Generic page furniture ---------- */
.page-head { padding: 70px var(--pad-x) 40px; border-bottom: 1px solid var(--border); max-width: 900px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 16px; }
.page-head p { color: var(--text-muted); line-height: 1.7; margin: 0; max-width: 60ch; }
.section { padding: 70px var(--pad-x); }
.section-alt { background: var(--secondary); }
.section-title { font-size: 1.6rem; margin: 0 0 30px; }

.state-msg { padding: 60px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.state-msg strong { display: block; color: var(--text-main); font-size: 1rem; margin-bottom: 8px; text-transform: uppercase; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; width: 100%; }
.card { background: var(--white); position: relative; cursor: pointer; text-decoration: none; display: block; }
.card img { width: 100%; height: 350px; object-fit: cover; background: var(--secondary); border: 1px solid var(--border); transition: 0.5s; }
.card:hover img { transform: scale(1.03); }
.badge {
  position: absolute; top: 15px; left: 15px; padding: 6px 12px; font-size: 0.65rem;
  font-weight: 700; background: var(--white); text-transform: uppercase; z-index: 10; border: 1px solid var(--border);
}
.badge-soldout { color: var(--danger); border-color: var(--danger); }
.card-body { padding: 20px 0; }
.card-body h3 { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; margin: 0 0 5px; text-transform: uppercase; }
.price { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 7px; }
input, select, textarea {
  width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 0;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; background: var(--white); color: var(--text-main);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 120px; }
.row-inputs { display: flex; gap: 12px; }
.row-inputs > * { flex: 1; }
.form-note { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Cart drawer ---------- */
#cartDrawer {
  position: fixed; top: 0; right: -110%; width: 100%; max-width: 460px; height: 100vh;
  background: var(--white); border-left: 1px solid var(--border); z-index: 3000;
  box-shadow: -10px 0 40px rgba(0,0,0,0.05);
  transition: right 0.4s cubic-bezier(0.16,1,0.3,1); display: flex; flex-direction: column;
}
#cartDrawer.active { right: 0; }
.cart-header { padding: 26px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { margin: 0; font-size: 1.4rem; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 26px 30px; }
.cart-item { display: flex; gap: 18px; margin-bottom: 22px; }
.cart-item img { width: 72px; height: 90px; object-fit: cover; border: 1px solid var(--border); }
.cart-line-name { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.cart-line-meta { font-size: 0.75rem; color: var(--text-muted); margin: 4px 0; }
.chip { display: inline-block; font-size: 0.62rem; background: var(--success); color: #fff; padding: 2px 7px; letter-spacing: 0.5px; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.4rem; line-height: 1; padding: 0; }
.cart-footer { padding: 26px 30px; border-top: 1px solid var(--border); background: var(--secondary); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 18px; }
#drawerScrim { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 2900; display: none; }
#drawerScrim.active { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--white); padding: 70px var(--pad-x) 34px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.site-footer h2 { color: var(--white); font-size: 2rem; margin: 0 0 12px; letter-spacing: 2px; }
.site-footer p { color: #fce8ec; line-height: 1.7; font-size: 0.85rem; max-width: 34ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-family: 'Inter', sans-serif; letter-spacing: 2px; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 13px; }
.footer-links a { text-decoration: none; color: #fce8ec; font-size: 0.85rem; transition: 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 24px; font-size: 0.72rem; color: #fce8ec; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: -100%; height: 100vh; width: 82%; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 100px 40px; transition: left 0.4s; z-index: 1001;
    border-right: 1px solid var(--border);
  }
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  .brand-mark { font-size: 1.05rem; letter-spacing: 1px; }
  .nav-links .mobile-close-btn { display: block; position: absolute; top: 28px; right: 30px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .card img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  #cartDrawer { max-width: 100%; border-left: none; }
  .row-inputs { flex-direction: column; gap: 0; }
}
