/* ═══════════════════════════════════════════════════════════════
   VIRGINA STORE - Handmade Jewelry E-Commerce
   Color Palette: #595047, #e0dbd4, #ffffff, #3d3630, #8b7e72
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #595047;
  --secondary: #e0dbd4;
  --accent: #ffffff;
  --text-dark: #3d3630;
  --text-light: #8b7e72;
  --success: #5a7d5a;
  --danger: #a65d5d;
  --warning: #c4973b;
  --gradient: linear-gradient(135deg, #595047 0%, #8b7e72 50%, #a68b6b 100%);
  --shadow-sm: 0 2px 8px rgba(89, 80, 71, 0.08);
  --shadow-md: 0 4px 20px rgba(89, 80, 71, 0.1);
  --shadow-lg: 0 8px 30px rgba(89, 80, 71, 0.15);
  --shadow-xl: 0 20px 60px rgba(89, 80, 71, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f5f2ee;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}
a:hover {
  color: var(--text-dark);
}

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

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

/* ─── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.btn-primary:hover {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.btn-whatsapp:hover {
  background: #128c7e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ─── Navbar ──────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--primary) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-icon {
  font-size: 1.2rem;
  color: var(--text-light);
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--secondary);
}
.nav-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-btn {
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
}
.nav-logout-form {
  margin: 0;
}
.cart-link {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}
.lang-dropdown {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.lang-btn:hover {
  background: var(--primary);
  color: var(--accent);
}
.lang-chevron {
  font-size: 0.6rem;
  transition: var(--transition);
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 150px;
  z-index: 100;
}
.lang-menu.show {
  display: block;
  animation: fadeDown 0.2s ease;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.lang-option:hover {
  background: var(--secondary);
}
.lang-option.active {
  background: var(--secondary);
  font-weight: 600;
}

/* Hamburger */
.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .navbar-toggler {
    display: flex;
  }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--accent);
    padding: 1rem;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .navbar-menu.active {
    display: flex;
    animation: fadeDown 0.3s ease;
  }
  .navbar-links {
    flex-direction: column;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  .lang-switcher {
    width: 100%;
  }
  .lang-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Messages / Alerts ───────────────────────────────── */
.messages-container {
  position: fixed;
  top: 70px;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}
.alert {
  border-radius: var(--radius-md);
  overflow: hidden;
  animation: slideIn 0.3s ease;
}
.alert-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success {
  background: #e8f5e8;
  color: var(--success);
  border-left: 4px solid var(--success);
}
.alert-error {
  background: #fde8e8;
  color: var(--danger);
  border-left: 4px solid var(--danger);
}
.alert-warning {
  background: #fef3d4;
  color: var(--warning);
  border-left: 4px solid var(--warning);
}
.alert-info {
  background: #e8eff5;
  color: var(--primary);
  border-left: 4px solid var(--primary);
}
.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  margin-left: auto;
}
.alert-close:hover {
  opacity: 1;
}

/* ─── Hero Section ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f2ee 0%, #e0dbd4 50%, #d4cdc4 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(89, 80, 71, 0.03) 0%,
    transparent 60%
  );
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(89, 80, 71, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image-wrapper {
  position: relative;
}
.hero-image-frame {
  width: 400px;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--text-light) 100%
  );
  color: var(--accent);
}
.hero-placeholder-img i {
  font-size: 4rem;
  opacity: 0.8;
}
.hero-placeholder-img span {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  opacity: 0.9;
}
.hero-float-card {
  position: absolute;
  background: var(--accent);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  animation: float 3s ease-in-out infinite;
}
.card-1 {
  top: 15%;
  left: -30px;
  color: var(--danger);
}
.card-1 i {
  color: var(--danger);
}
.card-2 {
  bottom: 20%;
  right: -30px;
  color: var(--warning);
  animation-delay: 1.5s;
}
.card-2 i {
  color: var(--warning);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-scroll-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  animation: scrollBounce 1.5s ease-in-out infinite;
}
.hero-scroll-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-scroll-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero p {
    margin: 0 auto 2rem;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-image-frame {
    width: 280px;
    height: 340px;
  }
  .hero-float-card {
    display: none;
  }
}

/* ─── Section Styles ──────────────────────────────────── */
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── About Section ───────────────────────────────────── */
.about-section {
  padding: 6rem 0;
  background: var(--accent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-frame {
  width: 100%;
  max-width: 450px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #d4cdc4 100%);
  color: var(--primary);
}
.about-placeholder-img i {
  font-size: 5rem;
  opacity: 0.4;
}
.about-image {
  position: relative;
}

.about-badge {
  position: absolute;
  bottom: -1rem;
  right: 4rem;
  background: var(--accent);
  color: var(--primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.badge-year {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.badge-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}
.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.about-content > p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}
.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.feature-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-img-frame {
    max-width: 100%;
    height: 300px;
  }
  .about-badge {
    bottom: -0.5rem;
    right: -0.5rem;
    padding: 0.75rem;
  }
  .badge-year {
    font-size: 1.2rem;
  }
}

/* ─── Featured Products ───────────────────────────────── */
.featured-section {
  padding: 6rem 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.featured-card {
  background: var(--accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.featured-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-card:hover .featured-img-wrapper img {
  transform: scale(1.05);
}
.product-blur {
  filter: blur(8px);
}
.blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(89, 80, 71, 0.3);
  color: white;
  font-weight: 600;
}
.blur-overlay i {
  font-size: 1.5rem;
}
.featured-info {
  padding: 1.25rem;
}
.featured-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.featured-category {
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.75rem;
}
.featured-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.blurred-price {
  filter: blur(4px);
}
.featured-cta {
  text-align: center;
  margin-top: 3rem;
}
.featured-cta p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ─── Testimonials ────────────────────────────────────── */
.testimonials-section {
  padding: 6rem 0;
  background: var(--accent);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: #faf9f7;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-rating {
  margin-bottom: 1rem;
  color: var(--warning);
  font-size: 1rem;
  display: flex;
  gap: 2px;
}
.testimonial-message {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ─── CTA Section ─────────────────────────────────────── */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--text-dark) 100%);
  text-align: center;
}
.cta-content h2 {
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-content .text-gradient {
  background: linear-gradient(135deg, #e0dbd4, #c4b5a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-section .btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.cta-section .btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}
.cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--accent);
}
.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* ─── Auth Pages ──────────────────────────────────────── */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 100%;
  background: var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.auth-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--text-dark) 100%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-visual-content {
  color: var(--accent);
  text-align: center;
}
.auth-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  display: block;
}
.auth-visual h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.auth-visual p {
  opacity: 0.8;
  margin-bottom: 2rem;
}
.auth-visual-features {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.auth-visual-features div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
  font-size: 0.9rem;
}
.auth-visual-features i {
  color: var(--success);
}
.auth-form-wrapper {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.auth-form-header h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.auth-form-header p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
}

/* ─── Forms ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #e8e4df;
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--accent);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(89, 80, 71, 0.1);
}
textarea.form-control {
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-error-box {
  background: #fde8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-error-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Products Page ───────────────────────────────────── */
.products-section {
  padding: 3rem 0 6rem;
}
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--text-light);
}

.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filters-left {
  flex: 1;
}
.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  background: var(--accent);
  color: var(--text-light);
  border: 1.5px solid #e8e4df;
  transition: var(--transition);
  font-weight: 500;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}
.filters-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.search-box form {
  display: flex;
}
.search-input {
  padding: 0.5rem 1rem;
  border: 2px solid #e8e4df;
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.85rem;
  width: 180px;
  transition: var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
}
.search-btn {
  padding: 0.5rem 0.75rem;
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: var(--transition);
}
.sort-select {
  padding: 0.5rem 1rem;
  border: 2px solid #e8e4df;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--accent);
  cursor: pointer;
}
.results-info {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filters-right {
    flex-direction: column;
  }
  .search-input {
    width: 100%;
  }
  .filter-pills {
    flex-wrap: wrap;
  }
  .filter-pill {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ─── Product Cards ───────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.08);
}
.product-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), #d4cdc4);
  color: var(--primary);
}
.product-placeholder-img i {
  font-size: 3rem;
  opacity: 0.3;
}
.product-placeholder-img.large i {
  font-size: 5rem;
}
.product-placeholder-img.small {
  height: 100%;
}
.product-placeholder-img.small i {
  font-size: 2rem;
}

.product-card-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}
.action-btn:hover {
  background: var(--primary);
  color: var(--accent);
}
.wishlist-btn.active {
  color: var(--danger);
}
.wishlist-btn.active:hover {
  background: var(--danger);
  color: var(--accent);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-limited {
  background: var(--warning);
  color: white;
}

.product-card-body {
  padding: 1.25rem;
}
.product-category {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-card-body h3 {
  font-size: 1rem;
  margin: 0.25rem 0 0.75rem;
}
.product-card-body h3 a {
  color: var(--text-dark);
}
.product-card-body h3 a:hover {
  color: var(--primary);
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-footer .add-cart-form {
  width: 100%;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.btn-cart-sm {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.btn-cart-sm:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
}
.add-cart-form {
  margin: 0;
}

/* ─── Pagination ──────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: var(--accent);
}

/* ─── Product Detail ──────────────────────────────────── */
.product-detail-section {
  padding: 2rem 0 6rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--text-light);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb i {
  font-size: 0.6rem;
}
.breadcrumb span {
  color: var(--primary);
  font-weight: 600;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--secondary);
}
.gallery-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: none;
  padding: 0;
}
.gallery-thumb.active {
  border-color: var(--primary);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-category-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  background: var(--secondary);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.product-info h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.product-price-lg {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", serif;
}
.product-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.product-description {
  margin-bottom: 2rem;
}
.product-description h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.product-description p {
  color: var(--text-light);
  line-height: 1.8;
}

.quantity-selector {
  margin-bottom: 1.5rem;
}
.quantity-selector label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid #e8e4df;
  border-radius: var(--radius-sm);
  width: fit-content;
  overflow: hidden;
}
.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.85rem;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--primary);
  color: var(--accent);
}
.qty-input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}
.btn-add-cart {
  flex: 1;
  justify-content: center;
}
.btn-wishlist {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid #e8e4df;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}
.btn-wishlist:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.btn-wishlist.active {
  color: var(--danger);
  border-color: var(--danger);
  background: #fde8e8;
}

.out-of-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: #fde8e8;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 2rem;
}
.quick-order {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: #f0faf0;
  border: 1px solid rgba(90, 125, 90, 0.2);
}
.quick-order p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.quick-order i {
  color: #25d366;
}

.related-products {
  margin-top: 4rem;
}
.related-products h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-main img {
    height: 350px;
  }
}

/* ─── Cart Page ───────────────────────────────────────── */
.cart-section {
  padding: 3rem 0 6rem;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.cart-item:hover {
  box-shadow: var(--shadow-md);
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.cart-item-info h3 a {
  color: var(--text-dark);
}
.cart-item-category {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
}
.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-light);
}
.cart-item-qty .qty-controls {
  border: 1.5px solid #e8e4df;
}
.cart-item-qty .qty-btn {
  width: 32px;
  height: 32px;
}
.cart-item-qty .qty-input {
  width: 40px;
  height: 32px;
  font-size: 0.85rem;
}
.btn-update-qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: none;
  border: 1px solid #e8e4df;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}
.btn-update-qty:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.subtotal-label {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
}
.subtotal-value {
  font-weight: 700;
  color: var(--primary);
}
.btn-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fde8e8;
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.85rem;
}
.btn-remove:hover {
  background: var(--danger);
  color: white;
}

.summary-card {
  background: var(--accent);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 5rem;
}
.summary-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e4df;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 1rem;
  border-top: 2px solid #e8e4df;
  margin-bottom: 1.5rem;
}
.checkout-btn {
  margin-bottom: 1rem;
}
.checkout-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1rem;
}
.checkout-note i {
  color: var(--primary);
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
  }
  .cart-item-qty,
  .cart-item-subtotal,
  .cart-item-remove {
    grid-column: 2;
    padding-left: 0;
  }
  .cart-item-img {
    width: 60px;
    height: 60px;
  }
}

/* ─── Profile Page ────────────────────────────────────── */
.profile-section {
  padding: 3rem 0 6rem;
}
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.profile-card {
  background: var(--accent);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: sticky;
  top: 5rem;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}
.profile-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.profile-email {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e4df;
}
.profile-stat {
  text-align: center;
}
.profile-stat i {
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: block;
}
.profile-stat span {
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
}
.profile-stat small {
  font-size: 0.75rem;
  color: var(--text-light);
}

.profile-form-card {
  background: var(--accent);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}
.profile-form-card h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #faf9f7;
  transition: var(--transition);
}
.wishlist-item:hover {
  background: var(--secondary);
}
.wishlist-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.wishlist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wishlist-info {
  flex: 1;
}
.wishlist-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.wishlist-info h4 a {
  color: var(--text-dark);
}
.wishlist-actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-card {
    position: static;
  }
}

/* ─── Empty State ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--accent);
  border-radius: var(--radius-md);
}
.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  opacity: 0.4;
  margin-bottom: 1rem;
  display: block;
}
.empty-state h3 {
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-3px);
}
.footer-links h4,
.footer-contact h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.footer-tagline {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ─── Mobile Cart Bar ─────────────────────────────────── */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 0.75rem 1rem;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.mobile-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .mobile-cart-bar {
    display: block;
  }
  .main-content {
    padding-bottom: 60px;
  }
}

/* ─── Animations ──────────────────────────────────────── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes scrollBounce {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-animate="fade-right"] {
  transform: translateX(-30px);
}
[data-animate="fade-left"] {
  transform: translateX(30px);
}
[data-animate].visible {
  opacity: 1;
  transform: translate(0);
}
