/* ============================================================
   Zamaney — Douceurs Tunisiennes | Global Stylesheet
   ============================================================ */

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

:root {
  --rose: #F4A7B9;
  --rose-light: #FAD4DE;
  --rose-pale: #FFF0F3;
  --mint: #A8D8C8;
  --mint-light: #D4EDE6;
  --cream: #FDF6F0;
  --caramel: #C9845A;
  --caramel-dark: #8B5A3A;
  --text: #3D2B1F;
  --text-light: #7A5C4E;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(61,43,31,0.10);
  --shadow-lg: 0 12px 48px rgba(61,43,31,0.15);
  --radius: 20px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--rose-pale); }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 99px; }

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rose-light);
  padding: 12px 40px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(244,167,185,0.15);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; cursor: pointer;
}
.nav-logo img {
  width: 54px; height: 54px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(244,167,185,0.4));
  transition: transform 0.3s ease;
}
.nav-logo img:hover { transform: scale(1.05) rotate(-3deg); }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600;
  color: var(--caramel-dark); letter-spacing: 1px;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--text-light); text-decoration: none;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--caramel); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.cart-btn {
  position: relative; cursor: pointer;
  background: var(--rose); border: none; border-radius: 50px;
  padding: 10px 20px; display: flex; align-items: center; gap: 8px;
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500;
  color: white; transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(244,167,185,0.4);
  text-decoration: none;
}
.cart-btn:hover {
  background: var(--caramel);
  box-shadow: 0 6px 20px rgba(201,132,90,0.4);
  transform: translateY(-1px);
}
.cart-count {
  background: white; color: var(--caramel);
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--caramel); color: white;
  border: none; border-radius: 50px;
  padding: 14px 36px; font-family: 'Jost', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(201,132,90,0.35);
  display: inline-block; text-decoration: none; text-align: center;
}
.btn-primary:hover {
  background: var(--caramel-dark);
  box-shadow: 0 8px 28px rgba(139,90,58,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent; border: 2px solid var(--rose);
  color: var(--caramel-dark); border-radius: 50px;
  padding: 12px 32px; font-family: 'Jost', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block; text-decoration: none; text-align: center;
}
.btn-outline:hover {
  background: var(--rose); color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-light);
  padding: 8px 0; font-family: 'Jost', sans-serif;
  transition: color 0.2s; text-decoration: none;
}
.btn-ghost:hover { color: var(--caramel); }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease; position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  width: 100%; aspect-ratio: 1;
  background: var(--rose-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; position: relative; overflow: hidden;
}
.product-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(61,43,31,0.07));
}

.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--caramel); color: white;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px;
  letter-spacing: 0.5px; z-index: 1;
}

.product-info { padding: 18px 20px 20px; }
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.product-desc {
  font-size: 13px; color: var(--text-light);
  line-height: 1.6; margin-bottom: 14px;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-price {
  font-size: 18px; font-weight: 600; color: var(--caramel);
  font-family: 'Cormorant Garamond', serif;
}
.add-btn {
  background: var(--rose); color: white;
  border: none; border-radius: 50%; width: 36px; height: 36px;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(244,167,185,0.4);
}
.add-btn:hover { background: var(--caramel); transform: scale(1.1); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center; padding: 60px 40px 40px;
}
.section-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--rose); margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; font-weight: 300;
  color: var(--caramel-dark); line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--rose); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--caramel-dark); color: white;
  padding: 14px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 1000; transform: translateY(100px);
  transition: transform 0.35s cubic-bezier(.175,.885,.32,1.275);
}
.toast.show { transform: translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--caramel-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 40px 30px; margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 12px 0; }
.footer-brand img { width: 70px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--rose-light); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.7);
  text-decoration: none; margin-bottom: 10px; cursor: pointer;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--rose-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ============================================================
   FORM ELEMENTS (shared)
   ============================================================ */
.form-label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-light); margin-bottom: 6px; letter-spacing: 0.5px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--rose-light); border-radius: var(--radius-sm);
  font-family: 'Jost', sans-serif; font-size: 15px;
  color: var(--text); background: white; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244,167,185,0.18);
}
.form-input::placeholder { color: var(--rose-light); }
select.form-input { cursor: pointer; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.08); opacity: 1; }
}
@keyframes bounceIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.fade-in { animation: fadeInUp 0.5s ease both; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-header { padding: 40px 20px 28px; }
  .section-title { font-size: 30px; }
}
