@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Nunito:wght@300;400;600&display=swap');

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */

:root {
  --clay-orange: #C46A2F;
  --soft-peach: #F6E6D8;
  --dusty-blue: #4E6478;
  --paper-cream: #FBF4EC;
  --ink-blue: #2F4154;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--paper-cream);
  color: var(--dusty-blue);
}

/* ============================================
   NAVIGATION — DESKTOP
   ============================================ */

nav {
  background: rgba(251, 244, 236, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 900;
  overflow: visible;
  border-bottom: 1px solid rgba(196, 106, 47, 0.12);
}

nav strong {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  color: var(--clay-orange);
  z-index: 1002;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-blue);
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--clay-orange);
  background: rgba(196, 106, 47, 0.08);
}

.nav-links a.nav-active {
  color: var(--clay-orange);
  background: rgba(196, 106, 47, 0.1);
}

/* Checkout pill button */
.nav-links a[href="cart.html"] {
  background: var(--clay-orange);
  color: white !important;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  margin-left: 0.5rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links a[href="cart.html"]:hover {
  opacity: 0.88;
  background: var(--clay-orange);
  color: white;
  transform: translateY(-1px);
}

/* ============================================
   HAMBURGER BUTTON
   ============================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  z-index: 1002;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  transition: background 0.15s ease;
}

.menu-toggle:hover {
  background: rgba(196, 106, 47, 0.1);
}

/* CSS-drawn 3-line icon — animates to × when open */
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clay-orange);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE DRAWER OVERLAY
   ============================================ */

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 898;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.nav-overlay.visible {
  display: block;
}

.nav-overlay.active {
  opacity: 1;
}

/* Brand label shown inside the drawer on mobile */
.nav-drawer-brand {
  display: none;
}

/* ============================================
   CART NAV BADGE
   ============================================ */

.cart-nav-badge {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--clay-orange);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  margin-left: 3px;
  vertical-align: middle;
  line-height: 1;
}

.cart-nav-badge.visible {
  display: inline-flex;
}

/* ============================================
   NAV LOGIN BUTTON
   ============================================ */

.nav-login-btn {
  background: var(--clay-orange) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: opacity 0.3s !important;
}

.nav-login-btn:hover {
  opacity: 0.85 !important;
  background: var(--clay-orange) !important;
}

/* ============================================
   CAR ANIMATION
   ============================================ */

.car-container {
  position: absolute;
  bottom: -10px;
  left: -150px;
  width: 120px;
  height: 80px;
  animation: driveForward 8s linear infinite;
  pointer-events: none;
  z-index: 899;
}

.car-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  animation: bounce 0.8s ease-in-out infinite;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.smoke-container {
  position: absolute;
  bottom: 15px;
  left: -20px;
  width: 60px;
  height: 40px;
  overflow: visible;
  z-index: 1;
}

.smoke {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(59, 57, 57, 0.6);
  border-radius: 50%;
  animation: smokeRise 1.5s ease-out infinite;
}

.smoke:nth-child(1) { animation-delay: 0s; }
.smoke:nth-child(2) { animation-delay: 0.3s; }
.smoke:nth-child(3) { animation-delay: 0.6s; }
.smoke:nth-child(4) { animation-delay: 0.9s; }
.smoke:nth-child(5) { animation-delay: 1.2s; }

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--soft-peach) 0%, var(--paper-cream) 100%);
  padding: 6rem 2rem;
  text-align: center;
}

.hero img {
  max-width: 500px;
  width: 100%;
  height: auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-top: 2rem;
  color: var(--clay-orange);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: rgba(255,255,255,0.85);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  transition: transform 0.4s;
}

.card:hover {
  transform: translateY(-6px);
}

/* ============================================
   GRID
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

/* ============================================
   SECTION
   ============================================ */

section {
  padding: 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */

button {
  background: var(--clay-orange);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   FORMS
   ============================================ */

input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--clay-orange);
}

/* ============================================
   ITEM CARDS
   ============================================ */

.item-card {
  text-align: center;
}

.item-image-container {
  background: var(--dusty-blue);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
}

.item-image-container img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.item-card p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-blue);
  margin-bottom: 1rem;
}

/* ============================================
   SEARCH & FILTER BAR
   ============================================ */

.shop-controls {
  max-width: 1100px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

.search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-wrapper input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 2.8rem;
  border-radius: 50px;
  border: 2px solid #dde4ea;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--ink-blue);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--clay-orange);
  box-shadow: 0 0 0 3px rgba(193,105,42,0.12);
}

.search-wrapper .s-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.search-wrapper .s-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #9ab0bc;
  display: none;
  padding: 0;
  width: auto;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  background: white;
  color: var(--dusty-blue);
  border: 2px solid #dde4ea;
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-tab:hover {
  border-color: var(--clay-orange);
  color: var(--clay-orange);
}

.filter-tab.active {
  background: var(--clay-orange);
  color: white;
  border-color: var(--clay-orange);
}

.search-result-bar {
  display: none;
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
  padding: 0.7rem 1.2rem;
  background: #fff8f0;
  border-left: 4px solid var(--clay-orange);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #5a3e2b;
}

.no-results-msg {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  color: #9ab0bc;
}

.no-results-msg .nr-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.category-section.hidden {
  display: none;
}

/* ============================================
   OUT OF STOCK
   ============================================ */

.item-card.out-of-stock {
  position: relative;
  opacity: 0.55;
  filter: grayscale(30%);
  order: 999;
}

.item-card.out-of-stock::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 3px solid #c0392b;
  border-radius: 28px;
  pointer-events: none;
  z-index: 2;
}

.out-of-stock-ribbon {
  position: absolute;
  top: 18px;
  right: -8px;
  background: #c0392b;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  z-index: 3;
  border-radius: 4px 4px 4px 0;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.4);
  pointer-events: none;
}

.out-of-stock-ribbon::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 0;
  border-left: 8px solid #8e1a10;
  border-bottom: 7px solid transparent;
}

.item-card.out-of-stock button {
  background: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

.item-card.out-of-stock button:hover {
  opacity: 0.6;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 9999;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
  color: white;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================
   CHECKOUT / MODALS
   ============================================ */

.checkout-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  padding: 1rem;
}

.checkout-modal.show {
  display: flex;
}

.checkout-content {
  background: var(--paper-cream);
  padding: 3rem;
  border-radius: 28px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.5s ease;
}

.checkout-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--clay-orange);
  font-size: 2rem;
  margin: 1rem 0;
}

.checkout-content p {
  color: var(--dusty-blue);
  margin: 0.5rem 0;
}

.close-modal-btn {
  margin-top: 1.5rem;
  background: var(--clay-orange);
}

/* ============================================
   TRUCK ANIMATION
   ============================================ */

.truck-animation-container {
  position: relative;
  height: 120px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.delivery-truck {
  position: absolute;
  width: 150px;
  height: auto;
  left: -200px;
  bottom: 10px;
  animation: truckDriveLoop 2.5s ease-in-out infinite;
}

.truck-smoke-container {
  position: absolute;
  bottom: 25px;
  left: -200px;
  width: 80px;
  height: 50px;
  animation: truckDriveLoop 2.5s ease-in-out infinite;
  pointer-events: none;
}

.truck-smoke {
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 15px;
  height: 15px;
  background: rgba(200, 200, 200, 0.5);
  border-radius: 50%;
  animation: exhaustRise 1.2s ease-out infinite;
}

.truck-smoke:nth-child(1) { animation-delay: 0s; }
.truck-smoke:nth-child(2) { animation-delay: 0.25s; }
.truck-smoke:nth-child(3) { animation-delay: 0.5s; }
.truck-smoke:nth-child(4) { animation-delay: 0.75s; }
.truck-smoke:nth-child(5) { animation-delay: 1s; }

/* ============================================
   EMPTY CART
   ============================================ */

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: cartBounce 1s ease-in-out infinite;
}

/* ============================================
   QUANTITY MODAL
   ============================================ */

.quantity-selector {
  text-align: left;
  margin: 1.5rem 0;
}

.quantity-dropdown {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 2px solid var(--dusty-blue);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: white;
  color: var(--ink-blue);
  cursor: pointer;
  transition: 0.3s;
}

.quantity-dropdown:focus { outline: none; border-color: var(--clay-orange); }
.quantity-dropdown:hover { border-color: var(--clay-orange); }

.confirm-btn {
  flex: 1;
  background: var(--clay-orange);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}

.confirm-btn:hover { opacity: 0.9; }

.cancel-btn {
  flex: 1;
  background: var(--dusty-blue);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}

.cancel-btn:hover { opacity: 0.9; }

/* ============================================
   SUCCESS CHECKMARK
   ============================================ */

.success-checkmark {
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  background: var(--clay-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3rem;
  color: white;
  animation: checkmarkPop 0.5s ease;
}

/* ============================================
   CART ITEMS DISPLAY
   ============================================ */

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  margin-bottom: 1rem;
  border: 1px solid rgba(78, 100, 120, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-item-info { flex: 1; min-width: 200px; }

.cart-item-name {
  font-weight: 600;
  color: var(--ink-blue);
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.cart-item-quantity {
  color: var(--dusty-blue);
  margin: 0;
  font-size: 0.9rem;
}

.remove-btn {
  background: #d9534f;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.3s;
}

.remove-btn:hover { background: #c9302c; }

/* ============================================
   FORM STYLING
   ============================================ */

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--ink-blue);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-divider {
  height: 1px;
  background: rgba(78, 100, 120, 0.2);
  margin: 2rem 0;
}

/* ============================================
   RADIO BUTTONS
   ============================================ */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(78, 100, 120, 0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.radio-option:hover {
  border-color: var(--clay-orange);
  background: rgba(255, 255, 255, 0.9);
}

.radio-option input[type="radio"] {
  margin-right: 1rem;
  margin-top: 0.2rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--clay-orange);
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked ~ .radio-label { color: var(--clay-orange); }

.radio-label { flex: 1; color: var(--ink-blue); }
.radio-label small { color: var(--dusty-blue); font-size: 0.85rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon { font-size: 1.5rem; min-width: 40px; }

.contact-item strong {
  display: block;
  color: var(--ink-blue);
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.contact-item p {
  color: var(--dusty-blue);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-item a {
  color: var(--clay-orange);
  text-decoration: none;
  transition: 0.3s;
}

.contact-item a:hover { text-decoration: underline; }

.social-links { margin-top: 2rem; }

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-icon {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: rgba(78, 100, 120, 0.1);
  border-radius: 15px;
  color: var(--ink-blue);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.social-icon:hover {
  background: var(--clay-orange);
  color: white;
  transform: translateX(5px);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-weight: normal !important;
  color: var(--dusty-blue) !important;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--clay-orange);
  flex-shrink: 0;
}

.map-placeholder {
  width: 100%;
  min-height: 200px;
}

.quick-contact-card { text-align: center; }

.quick-contact-card strong {
  display: block;
  color: var(--ink-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.quick-contact-card a {
  color: var(--clay-orange);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
  word-break: break-word;
}

.quick-contact-card a:hover { text-decoration: underline; }

/* ============================================
   FEATURE & COLLECTION CARDS
   ============================================ */

.feature-card { text-align: center; }
.feature-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--clay-orange); margin-bottom: 0.8rem; font-size: 1.5rem; }
.feature-card p { color: var(--dusty-blue); line-height: 1.6; }

.collection-card { text-align: center; }
.collection-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.collection-card p { color: var(--dusty-blue); font-size: 0.95rem; margin-bottom: 0; }

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-step:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 145, 91, 0.5) !important;
  box-shadow: 0 12px 32px rgba(216, 145, 91, 0.15);
}

/* ============================================
   FOOTER & LINKS
   ============================================ */

footer {
  background: var(--ink-blue);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

footer h3, footer h4 { font-family: 'Playfair Display', serif; }

a { text-decoration: none; }

/* ============================================
   FIREBASE AUTH STYLES
   ============================================ */

#errorMessage {
  display: none;
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}

.success-message {
  display: none;
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

#resetModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  padding: 1rem;
}

#resetModal.show { display: flex; }

.reset-modal-content {
  background: var(--paper-cream);
  padding: 2.5rem;
  border-radius: 28px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
}

#resetMessage {
  display: none;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

#forgotPassword {
  color: var(--dusty-blue);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}

#forgotPassword:hover {
  color: var(--clay-orange);
  text-decoration: underline;
}

.auth-form-container { max-width: 550px; margin: auto; }

.auth-card {
  background: rgba(255,255,255,0.85);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.auth-card input:focus {
  outline: none;
  border-color: var(--clay-orange);
  box-shadow: 0 0 0 3px rgba(196, 106, 47, 0.1);
}

.auth-button {
  width: 100%;
  background: var(--clay-orange);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 106, 47, 0.3);
}

.auth-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-button-secondary { background: var(--dusty-blue); }
.auth-button-secondary:hover:not(:disabled) { background: #3d5063; }

.auth-link {
  color: var(--clay-orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.auth-link:hover { color: var(--ink-blue); text-decoration: underline; }

.reset-button-container {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reset-button-container button { flex: 1; }

.welcome-animation { margin-bottom: 1.5rem; }

.pottery-spin {
  font-size: 5rem;
  display: inline-block;
  animation: potterySpin 2s ease-in-out infinite;
}

.auth-success-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clay-orange);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  animation: checkPop 0.5s ease;
}

.auth-loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes driveForward {
  0% { left: -150px; }
  100% { left: calc(100% + 150px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes smokeRise {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0.8; }
  50% { opacity: 0.4; }
  100% { transform: translate(-40px, -30px) scale(1.5); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes truckDriveLoop {
  0% { left: -200px; transform: translateY(0); }
  25% { transform: translateY(-5px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-5px); }
  100% { left: calc(100% + 50px); transform: translateY(0); }
}

@keyframes exhaustRise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { transform: translate(-30px, -25px) scale(1.3); opacity: 0; }
}

@keyframes cartBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes checkmarkPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes potterySpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(10deg) scale(1.1); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(-10deg) scale(1.1); }
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   MOBILE RESPONSIVE (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  nav {
    padding: 0 1.25rem;
    height: 62px;
  }

  .menu-toggle {
    display: flex;
  }

  /* GPU-accelerated slide drawer — starts below the nav bar */
  .nav-links {
    position: fixed;
    top: 62px;
    right: 0;
    width: min(300px, 80vw);
    height: calc(100dvh - 62px);
    background: var(--paper-cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Hide the drawer brand — nav bar brand is already visible above */
  .nav-drawer-brand {
    display: none;
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 0.75rem;
    border-radius: 10px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(196, 106, 47, 0.1);
    margin-left: 0;
    color: var(--ink-blue);
    background: none;
  }

  .nav-links a:hover {
    background: rgba(196, 106, 47, 0.07);
    color: var(--clay-orange);
  }

  /* Cart pill overrides in drawer */
  .nav-links a[href="cart.html"] {
    margin: 1.25rem 0 0 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    border-radius: 12px;
    border-bottom: none;
    padding: 0.85rem 1.1rem;
    transform: none;
  }

  .nav-links a[href="cart.html"]:hover {
    transform: none;
    opacity: 0.88;
  }

  .nav-login-btn {
    margin-top: auto !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    padding: 1rem !important;
    border-radius: 10px !important;
  }

  /* Page content */
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero img { max-width: 300px; }

  .grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card { padding: 1.5rem; }
  section { padding: 1.5rem 1rem; }
  footer { padding: 2rem 1rem; }

  .item-image-container {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    padding: 1.5rem;
  }

  .item-image-container img { max-height: 180px; }

  .feature-icon { font-size: 2.5rem; }
  .feature-card h3 { font-size: 1.2rem; }

  .checkout-content { padding: 2rem 1.5rem; margin: 1rem; }
  .checkout-content h2 { font-size: 1.5rem; }

  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item-info { width: 100%; }
  .remove-btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }

  .reset-modal-content { padding: 2rem 1.5rem; margin: 1rem; }
  .pottery-spin { font-size: 4rem; }
  .auth-card { padding: 1.5rem; }
  .reset-button-container { flex-direction: column; }

  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 0.85rem; border-radius: 50%; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; height: 58px; }

  .nav-links { width: 85vw; }

  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem !important; }

  button { padding: 0.7rem 1.5rem; font-size: 0.85rem; }

  .item-image-container {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    padding: 1rem;
  }

  .item-image-container img { max-height: 160px; }

  .checkmark-circle { width: 60px; height: 60px; font-size: 2rem; }
  .empty-cart-icon { font-size: 3.5rem; }
  .pottery-spin { font-size: 3rem; }
  #errorMessage, #resetMessage { font-size: 0.85rem; }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  pointer-events: none;
  width: min(420px, 92vw);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  pointer-events: all;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: white;
}

.toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background: #2d8a4e; }
.toast-error   { background: #c0392b; }
.toast-warning { background: #b8650a; }
.toast-info    { background: var(--dusty-blue); }

.toast-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 20px;
  text-align: center;
}

.toast-msg {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.1rem;
  line-height: 1;
  transition: color 0.2s;
  width: auto;
  border-radius: 0;
}

.toast-close:hover {
  color: white;
  opacity: 1;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

#backToTop {
  position: fixed;
  bottom: 5.5rem;
  right: 1.8rem;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-blue);
  color: white;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  pointer-events: none;
  padding: 0;
}

#backToTop.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#backToTop:hover {
  background: var(--clay-orange);
}

/* ============================================
   ITEM SKELETON LOADER
   ============================================ */

.skeleton-card {
  background: rgba(255,255,255,0.85);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.skeleton-img {
  width: 100%;
  height: 250px;
  border-radius: 20px;
  background: linear-gradient(90deg, #e8e0d8 25%, #f0e8e0 50%, #e8e0d8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 1rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8e0d8 25%, #f0e8e0 50%, #e8e0d8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 0.6rem;
}

.skeleton-line.short { width: 50%; }
.skeleton-line.medium { width: 70%; }

.skeleton-btn {
  height: 38px;
  border-radius: 30px;
  background: linear-gradient(90deg, #e8e0d8 25%, #f0e8e0 50%, #e8e0d8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-top: 0.75rem;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonial-card {
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.07);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(196,106,47,0.12);
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--clay-orange);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  color: var(--ink-blue);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clay-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: var(--ink-blue);
  font-size: 0.9rem;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-item {
  border-bottom: 1px solid rgba(196, 106, 47, 0.15);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
  border-radius: 0;
}

.faq-question:hover {
  color: var(--clay-orange);
  opacity: 1;
}

.faq-chevron {
  font-size: 0.85rem;
  color: var(--clay-orange);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  color: var(--dusty-blue);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}