/* ═══════════════════════════════════════════════════════════
   Merritt Event Rentals — Shared Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; overflow-y: overlay; }
body { background: #FDFBF7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; width: 100%; margin: 0; padding: 0; }
#root { min-height: 100vh; width: 100%; overflow-x: hidden; }
::selection { background: #2C4A3E; color: #F5F0E8; }
input:focus, textarea:focus { outline: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(58, 95, 80, 0.27); border-radius: 3px; }

/* ─── Typography ─── */
.font-heading { font-family: 'Cormorant Garamond', serif; }
.font-body { font-family: 'DM Sans', sans-serif; }

/* ─── Animations ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes heroReveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ─── Responsive Nav ─── */
.nav-mobile { display: none !important; }
@media (max-width: 768px) {
  .nav-desktop { display: none !important; }
  .nav-mobile { display: flex !important; }
}

/* ─── Buttons ─── */
.btn-primary {
  background: #2C4A3E; color: #F5F0E8; border: none;
  padding: 16px 40px; border-radius: 2px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  transition: all 0.3s ease;
}
.btn-primary:hover { background: #C4A35A; color: #1E3A2F; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-primary:disabled:hover { background: #ccc; color: #F5F0E8; }

.btn-outline {
  background: transparent; border: 1px solid rgba(245, 240, 232, 0.33);
  padding: 16px 40px; border-radius: 2px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 2.5px; text-transform: uppercase; font-weight: 400;
  color: #F5F0E8; transition: all 0.4s ease;
}
.btn-outline:hover { border-color: #F5F0E8; }

.btn-add {
  background: #2C4A3E; color: #F5F0E8; border: none;
  padding: 10px 20px; border-radius: 2px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
  transition: all 0.3s ease;
}
.btn-add:hover { background: #C4A35A; color: #1E3A2F; }

.btn-service {
  background: transparent; color: #D4B76A;
  border: 1px solid rgba(212, 183, 106, 0.27);
  padding: 14px 28px; border-radius: 2px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.3s ease; align-self: flex-start;
}
.btn-service:hover { background: #C4A35A; color: #1E3A2F; border-color: #C4A35A; }

/* ─── Form Inputs ─── */
.input, .textarea {
  width: 100%; border: 1px solid #E8E0D0; border-radius: 2px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: #2A2A2A; outline: none; box-sizing: border-box;
  transition: border-color 0.2s; background: transparent;
}
.input { padding: 12px 14px; }
.textarea { padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus { border-color: #2C4A3E; }

.form-label {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: #999;
  margin-bottom: 6px;
}

/* ─── Cards ─── */
.product-card {
  background: #FDFBF7; border-radius: 2px; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,74,62,0.1); }

.service-card {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 2px; height: 100%;
  display: flex; flex-direction: column;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.service-card:hover { border-color: rgba(196, 163, 90, 0.27); background: rgba(245, 240, 232, 0.06); }

/* ─── Category Filter Buttons ─── */
.cat-btn {
  padding: 10px 24px; border-radius: 2px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.3s ease; border: 1px solid #E8E0D0;
  background: transparent; color: #1E3A2F; font-weight: 400;
}
.cat-btn:hover { border-color: #2C4A3E; }
.cat-btn.active {
  background: #2C4A3E; color: #F5F0E8;
  border-color: #2C4A3E; font-weight: 600;
}

/* ─── Nav Link ─── */
.nav-link {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.3s ease; padding: 4px 0;
  border-bottom: 1px solid transparent; opacity: 0.7;
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; font-weight: 600; }

/* ─── Quote Drawer ─── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 9998;
}
.drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 90vw); background: #FDFBF7; z-index: 9999;
  overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  padding: 28px; animation: slideIn 0.3s ease;
}

/* ─── Remove Button ─── */
.btn-remove {
  background: none; border: none; cursor: pointer;
  color: #bbb; font-size: 16px; line-height: 1;
  padding: 2px; transition: color 0.2s;
}
.btn-remove:hover { color: #e55; }

/* ─── Footer Links ─── */
.footer-link {
  text-decoration: none; transition: all 0.3s ease;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 24px; border-radius: 2px;
  border: 1px solid rgba(245, 240, 232, 0.08);
}
.footer-link:hover { border-color: rgba(245, 240, 232, 0.2); background: rgba(245, 240, 232, 0.03); }

.photo-credit {
  font-family: 'DM Sans', sans-serif; font-size: 10px;
  color: rgba(245, 240, 232, 0.3); letter-spacing: 1px;
  text-decoration: none; margin-top: 12px; display: inline-block;
  transition: color 0.3s;
}
.photo-credit:hover { color: rgba(245, 240, 232, 0.5); }

/* ─── Product Page ─── */
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #2C4A3E; }

.size-btn {
  border: 1px solid #E8E0D0; padding: 10px 20px; border-radius: 2px;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  cursor: pointer; transition: all 0.2s; position: relative;
  background: transparent; color: #1E3A2F; font-weight: 400;
}
.size-btn:hover { border-color: #2C4A3E; }
.size-btn.active {
  background: #2C4A3E; color: #F5F0E8;
  border-color: #2C4A3E; font-weight: 600;
}

/* ─── Floating Quote Bar ─── */
.quote-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1E3A2F; color: #F5F0E8;
  padding: 14px 32px; border-radius: 60px;
  box-shadow: 0 8px 40px rgba(30, 58, 47, 0.4);
  display: flex; align-items: center; gap: 16px;
  z-index: 100; cursor: pointer;
  animation: fadeIn 0.4s ease;
  max-width: calc(100vw - 48px);
}
.quote-bar:hover { box-shadow: 0 12px 48px rgba(30, 58, 47, 0.5); }


/* Force overlay scrollbar to prevent right-side gap */
html { scrollbar-width: thin; }
html::-webkit-scrollbar { width: 8px; background: transparent; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }

/* ─── Product Nav Arrows ─── */
.product-nav a:hover { color: #C4A35A !important; }
