@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #F8F6F1;
  --white: #FFFFFF;
  --charcoal: #171717;
  --text-secondary: #6B6B6B;
  --gold: #C9A227;
  --gold-light: #E8C84A;
  --champagne: #D8B65C;
  --border: #E7E1D5;
  --success: #2E7D32;
  --danger: #B3261E;

  --delivered-bg: #dcfce7;
  --delivered-text: #15803d;
  --confirmed-bg: #e0f2fe;
  --confirmed-text: #0369a1;
  --processing-bg: #fef3c7;
  --processing-text: #b45309;
  --cancelled-bg: #fee2e2;
  --cancelled-text: #b91c1c;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(23,23,23,0.08);
  --shadow-md: 0 4px 12px rgba(23,23,23,0.12);
  --shadow-lg: 0 16px 40px rgba(23,23,23,0.14);
  --shadow-gold: 0 4px 20px rgba(201,162,39,0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 3.5rem;
  }
}

@media (min-width: 1536px) {
  .container {
    padding: 0 5rem;
  }
}

/* ── Global Buttons ── */
.btn-primary-custom {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--charcoal);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--charcoal);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--charcoal);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

/* ── Global Form Elements ── */
.fieldGroup {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.fieldLabel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
}

.required {
  color: var(--danger);
  margin-left: 0.2rem;
}

.fieldInput {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

select.fieldInput {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
  cursor: pointer;
}

textarea.fieldInput {
  min-height: 90px;
  resize: vertical;
}

.fieldInput:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.fieldInput.error,
.fieldInputError {
  border-color: var(--danger) !important;
  background-color: #fff8f8;
}

.fieldError {
  color: var(--danger);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.serverError {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--danger);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

/* ── Toast Notifications ── */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-custom {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  max-width: 350px;
}

.toast-custom.success {
  background-color: #171717;
  color: #fff;
  border-left: 4px solid var(--gold);
}

.toast-custom.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border-left: 4px solid var(--danger);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

@keyframes badgePop {
  0%   { transform: scale(0); opacity: 0; }
  80%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-fade-up  { animation: fadeUp  0.8s cubic-bezier(0.16,1,0.3,1) both; }
.animate-fade-in  { animation: fadeIn  0.5s ease both; }
.hover-zoom       { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.hover-zoom:hover { transform: scale(1.03); }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

.text-gold-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── CUSTOMER REVIEWS MARQUEE GALLERY (GLOBAL) ── */
.marqueeRoot {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviewMarqueeTrack {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: reviewMarquee 40s linear infinite;
}

.reviewMarqueeTrack:hover {
  animation-play-state: paused;
}

@keyframes reviewMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reviewMarqueeItem {
  position: relative;
  width: 220px;
  height: 280px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .reviewMarqueeItem {
    width: 260px;
    height: 330px;
  }
}

.reviewMarqueeItem:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.reviewMarqueeImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
