/* ============================================================
   DI GIACOMO PERNA ELETTRODOMESTICI — Premium Italian Appliance Store
   Complete Frontend Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   1. ROOT VARIABLES & RESET
   ============================================================ */

:root {
  /* Brand */
  --primary: #5B2D8E;
  --primary-dark: #4A2378;
  --primary-light: #7B3FA0;
  --primary-subtle: rgba(91, 45, 142, 0.08);
  --primary-rgb: 91, 45, 142;
  --secondary: #1A1A2E;
  --secondary-dark: #111122;
  --accent: #E94560;
  --accent-dark: #D63851;

  /* Neutrals */
  --white: #ffffff;
  --light: #f8f9fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Semantic */
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5b;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #007bff;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.16);
  --shadow-primary: 0 8px 28px rgba(91, 45, 142, 0.25);
  --shadow-accent: 0 8px 28px rgba(233, 69, 96, 0.30);

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.3s var(--ease);
  --transition-fast: all 0.2s var(--ease);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1050;
  --z-modal: 1060;
  --z-toast: 1080;
  --z-float: 9998;
  --z-float-top: 9999;

  /* Layout */
  --navbar-height: 72px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background-color: var(--light);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
  max-width: 100vw;
}

html {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

::selection {
  background: var(--primary);
  color: var(--white);
}


/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   3. NAVBAR
   ============================================================ */

.navbar {
  background: transparent !important;
  padding: 0 0;
  min-height: var(--navbar-height);
  box-shadow: none;
  z-index: var(--z-sticky);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: calc(100% - 32px);
  max-width: 1400px;
  border-radius: 20px;
  margin-top: 16px;
  border: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--secondary) !important;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

body {
  padding-top: 0;
}

.navbar .container {
  max-width: var(--container-max);
  gap: 4px;
  overflow: hidden;
}

.navbar-nav {
  flex-wrap: nowrap !important;
  overflow: hidden;
}

.navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white) !important;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.navbar .navbar-brand:hover {
  opacity: 0.9;
}

.navbar .navbar-brand span {
  color: #fff;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem !important;
  transition: var(--transition);
  position: relative;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 1px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 50%;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-toggler:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.navbar .btn-outline-light:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Navbar: let Bootstrap handle collapse natively */
@media (max-width: 991.98px) {
  .navbar-brand img {
    max-height: 38px;
  }
  .navbar .navbar-brand {
    font-size: 1.2rem;
  }
  .navbar-collapse {
    background: #1a1a2e;
    border-radius: 0 0 12px 12px;
    padding: 10px 15px;
    margin: 5px -5px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .navbar-collapse .nav-link {
    padding: 0.7rem 0.5rem !important;
    border-radius: 8px;
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
  }
  .navbar-collapse .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
  }
  .navbar-collapse .nav-link::after {
    display: none;
  }
  .navbar-collapse .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
  }
}


/* ============================================================
   4. HERO CAROUSEL
   ============================================================ */

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel .owl-stage-outer {
  overflow: hidden;
}

.hero-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 5;
}

.hero-carousel .owl-nav button {
  pointer-events: all;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-carousel .owl-nav button:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

.hero-carousel .owl-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.hero-carousel .owl-dot span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.hero-carousel .owl-dot.active span,
.hero-carousel .owl-dot:hover span {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}

.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 45, 142, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero .btn-hero-primary {
  background: var(--accent);
  border: none;
  padding: 0.85rem 2.6rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  color: var(--white);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero .btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.hero .btn-hero-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  padding: 0.85rem 2.6rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  transition: var(--transition);
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero .btn-hero-secondary:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
  transform: translateY(-3px);
}


/* ============================================================
   5. SECTION HEADINGS
   ============================================================ */

.section {
  padding: 5.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.section-title p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-title .divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 1rem auto;
  border-radius: 2px;
}

.section-bg {
  background: var(--white);
}


/* ============================================================
   6. PRODUCT CARDS
   ============================================================ */

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
  padding-top: 75%;
  background: var(--gray-100);
}

.product-card .product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-card .product-image .badge-promo,
.product-card .product-image .badge-new,
.product-card .product-image .badge-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.product-card .product-image .badge-promo {
  background: var(--accent);
  color: var(--white);
}

.product-card .product-image .badge-new {
  background: var(--primary);
  color: var(--white);
}

.product-card .product-image .badge-category {
  background: var(--secondary);
  color: var(--white);
}

.product-card .product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .product-category {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 0.35rem;
}

.product-card .product-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.product-card .product-name a {
  color: inherit;
}

.product-card .product-name a:hover {
  color: var(--primary);
}

.product-card .product-description {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-card .price-old {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: 0.88rem;
  font-weight: 400;
}

.product-card .price-new {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

.product-card .price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
}

.product-card .btn-add-cart {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
}

.product-card .btn-add-cart:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}


/* ============================================================
   7. CATEGORY CARDS
   ============================================================ */

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  padding: 2.2rem 1.5rem;
  position: relative;
  border: 1px solid var(--gray-200);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.category-card .category-icon {
  width: 82px;
  height: 82px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(91, 45, 142, 0.25);
}

.category-card:hover .category-icon {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 8px 28px rgba(91, 45, 142, 0.35);
}

.category-card h5 {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

.category-card a {
  display: block;
}


/* ============================================================
   8. ADVANTAGE CARDS
   ============================================================ */

.advantage-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.advantage-card .icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.85rem;
  color: var(--white);
  transition: var(--transition);
}

.advantage-card:hover .icon {
  transform: scale(1.08);
}

.advantage-card h5 {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.advantage-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}


/* ============================================================
   9. STEP CARDS
   ============================================================ */

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-card .step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(91, 45, 142, 0.3);
}

.step-card::after {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: var(--gray-200);
}

.step-card:last-child::after {
  display: none;
}

.step-card h5 {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.55;
}


/* ============================================================
   10. DELIVERY BANNER
   ============================================================ */

.delivery-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.delivery-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.delivery-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.delivery-banner * {
  position: relative;
  z-index: 1;
}

.delivery-banner h3 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.delivery-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 1.05rem;
}

.delivery-banner .btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.75rem 2.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: var(--transition);
}

.delivery-banner .btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}


/* ============================================================
   11. FOOTER
   ============================================================ */

footer.bg-dark,
footer.bg-dark * {
  color: var(--white) !important;
}

footer.bg-dark a:hover {
  color: var(--primary-light) !important;
}

.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 0;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.85rem;
  font-size: 1.1rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer .footer-logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer .footer-logo span {
  color: var(--primary-light);
}

.footer .social-links {
  display: flex;
  gap: 0.6rem;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-circle);
  color: var(--white);
  margin-right: 0;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  padding-left: 0;
}


/* ============================================================
   12. WHATSAPP FLOAT BUTTON
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: var(--whatsapp);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  z-index: var(--z-float-top);
  transition: var(--transition);
  cursor: pointer;
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg,
.whatsapp-float img {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.whatsapp-float i {
  font-size: 2rem;
  color: var(--white);
}

@keyframes whatsappPulse {
  0%   { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45); }
  50%  { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0.12); }
  100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45), 0 0 0 20px rgba(37, 211, 102, 0); }
}


/* ============================================================
   13. CHAT WIDGET
   ============================================================ */

.tiktok-float {
  position: fixed;
  bottom: 182px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: #000000;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  z-index: var(--z-float-top);
  transition: var(--transition);
  cursor: pointer;
}

.tiktok-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6);
}

.tiktok-float i {
  font-size: 1.65rem;
  color: var(--white);
}

.chat-float {
  position: fixed;
  bottom: 105px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: var(--primary);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(91, 45, 142, 0.4);
  z-index: var(--z-float-top);
  transition: var(--transition);
  cursor: pointer;
}

.chat-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(91, 45, 142, 0.6);
}

.chat-float i {
  font-size: 1.65rem;
  color: var(--white);
}

.chat-widget {
  position: fixed;
  bottom: 185px;
  right: 28px;
  width: 380px;
  height: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  z-index: var(--z-float);
  overflow: hidden;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-bounce);
  transform: scale(0.85);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
}

.chat-widget.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header .chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header .chat-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.chat-header .chat-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.chat-header .chat-info span {
  font-size: 0.75rem;
  opacity: 0.85;
  color: var(--white);
}

.chat-header .btn-close-chat {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0.75;
  transition: var(--transition);
  padding: 0.35rem;
  line-height: 1;
}

.chat-header .btn-close-chat:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.chat-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-body::-webkit-scrollbar {
  width: 5px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.chat-message {
  max-width: 82%;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInUp 0.35s var(--ease);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.bot {
  background: var(--white);
  color: var(--gray-800);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-xs);
}

.chat-message.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message .message-time {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: 0.35rem;
  display: block;
}

.chat-msg-image {
  margin-bottom: 6px;
}

.chat-msg-image img {
  display: block;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.chat-msg-image img:hover {
  transform: scale(1.02);
}

.chat-msg-file {
  margin-bottom: 4px;
}

.chat-msg-file a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.chat-msg-file a:hover {
  background: rgba(var(--primary-rgb), 0.15);
}

.chat-footer {
  border-top: 1px solid var(--gray-200);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  flex-shrink: 0;
}

.chat-footer .form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  flex-grow: 1;
  outline: none;
  transition: var(--transition-fast);
}

.chat-footer .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.chat-footer .btn-send {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-circle);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-footer .btn-send:hover {
  background: var(--accent);
  transform: scale(1.08);
}


/* ============================================================
   14. BUTTONS
   ============================================================ */

.btn-brand {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: var(--white);
  padding: 0.7rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--whatsapp);
  border: none;
  color: var(--white);
  padding: 0.7rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  color: var(--white);
}

.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.65rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-brand:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  padding: 0.65rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  padding: 0.65rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: var(--transition);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.65rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
}

.btn-lg {
  padding: 0.85rem 2.6rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
}


/* ============================================================
   15. BADGES
   ============================================================ */

.badge-promo {
  background: var(--accent);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-category {
  background: var(--secondary);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-new {
  background: var(--primary);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: var(--success);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-warning {
  background: var(--warning);
  color: var(--gray-900);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-info {
  background: var(--info);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}


/* ============================================================
   16. PRICES
   ============================================================ */

.old-price {
  text-decoration: line-through;
  color: var(--gray-400);
  font-weight: 400;
}

.price-current {
  color: var(--primary);
  font-weight: 800;
}

.price-new {
  color: var(--accent);
  font-weight: 800;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* ============================================================
   17. FORMS
   ============================================================ */

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--gray-800);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
  outline: none;
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-label {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--gray-800);
  width: 100%;
  appearance: auto;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
  outline: none;
}

.order-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.order-form .form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

.order-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.order-form .form-label {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.order-form .btn-order {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  padding: 0.85rem 2.5rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--white);
  width: 100%;
  font-size: 1.05rem;
  transition: var(--transition);
}

.order-form .btn-order:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}


/* ============================================================
   18. TABLES
   ============================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead th {
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
}

.table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.92rem;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:nth-child(even) {
  background: var(--gray-100);
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--primary-subtle);
}

.table .qty-input {
  width: 72px;
  text-align: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.table .qty-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.cart-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.cart-table th {
  background: var(--secondary);
  color: var(--white);
}

.cart-table td {
  border-color: var(--gray-200);
}


/* ============================================================
   19. ALERTS
   ============================================================ */

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  border: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  border-left: 4px solid var(--success);
}

.alert-danger {
  background: rgba(233, 69, 96, 0.1);
  color: #842029;
  border-left: 4px solid var(--accent);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.12);
  color: #856404;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: rgba(0, 123, 255, 0.1);
  color: #0c5460;
  border-left: 4px solid var(--info);
}


/* ============================================================
   20. RESPONSIVE
   ============================================================ */

/* Large screens */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max);
  }
}

/* Tablets & small desktops */
@media (max-width: 1199.98px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 70vh;
    padding: 5rem 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .btn-hero-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .chat-widget {
    width: 320px;
    height: 460px;
    right: 16px;
    bottom: 175px;
  }

  .chat-widget .chat-header {
    padding: 0.9rem 1.1rem;
  }

  .chat-widget .chat-body {
    padding: 1rem;
  }

  .chat-widget .chat-footer {
    padding: 0.7rem;
  }

  .chat-widget .chat-msg-image img {
    max-width: 180px;
    max-height: 180px;
  }

  .footer {
    padding: 4rem 0 0;
  }

  .step-card::after {
    display: none;
  }
}

/* Tablets portrait */
@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }

  .hero {
    min-height: 65vh;
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .btn-hero-primary,
  .hero .btn-hero-secondary {
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .category-card .category-icon {
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
  }

  .advantage-card .icon {
    width: 62px;
    height: 62px;
    font-size: 1.6rem;
  }

  .delivery-banner {
    padding: 2.5rem 2rem;
  }

  .footer h5 {
    margin-top: 1.5rem;
  }

  .whatsapp-float,
  .chat-float,
  .tiktok-float {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float {
    bottom: 22px;
    right: 22px;
  }

  .chat-float {
    bottom: 88px;
    right: 22px;
  }

  .tiktok-float {
    bottom: 154px;
    right: 22px;
  }

  .chat-widget {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 155px;
    height: 430px;
    border-radius: var(--radius);
  }

  .chat-widget .chat-header {
    padding: 0.8rem 1rem;
  }

  .chat-widget .chat-header h6 {
    font-size: 0.92rem;
  }

  .chat-widget .chat-body {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .chat-widget .chat-message {
    max-width: 88%;
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
  }

  .chat-widget .chat-footer {
    padding: 0.6rem;
  }

  .chat-widget .chat-footer .form-control {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
  }

  .chat-widget .chat-msg-image img {
    max-width: 170px;
    max-height: 170px;
  }

  .order-form {
    padding: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .hero {
    min-height: 60vh;
    padding: 3.5rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.92rem;
  }

  .hero .btn-hero-primary,
  .hero .btn-hero-secondary {
    padding: 0.65rem 1.8rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .hero .btn-hero-secondary {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 1.55rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .product-card .product-body {
    padding: 1rem;
  }

  .product-card .price-current,
  .product-card .price-new {
    font-size: 1.2rem;
  }

  .order-form {
    padding: 1.5rem;
  }

  .delivery-banner {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .cart-table {
    font-size: 0.85rem;
  }

  .cart-table thead th {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .cart-table tbody td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .footer {
    padding: 3rem 0 0;
  }

  .whatsapp-float,
  .chat-float,
  .tiktok-float {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg,
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float i {
    font-size: 1.6rem;
  }

  .chat-float i {
    font-size: 1.4rem;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
  }

  .chat-float {
    bottom: 78px;
    right: 18px;
  }

  .tiktok-float {
    bottom: 138px;
    right: 18px;
  }

  .chat-widget {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 135px;
    height: calc(100vh - 160px);
    max-height: 480px;
    min-height: 350px;
    border-radius: var(--radius);
  }

  .chat-widget .chat-header {
    padding: 0.7rem 0.9rem;
  }

  .chat-widget .chat-header h6 {
    font-size: 0.85rem;
  }

  .chat-widget .chat-header h6 i {
    font-size: 0.9rem;
  }

  .chat-widget .chat-body {
    padding: 0.75rem;
    gap: 0.55rem;
  }

  .chat-widget .chat-welcome {
    padding: 1rem 0.75rem !important;
  }

  .chat-widget .chat-welcome h6 {
    font-size: 0.95rem;
  }

  .chat-widget .chat-welcome p {
    font-size: 0.8rem;
  }

  .chat-widget .chat-message {
    max-width: 90%;
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
  }

  .chat-widget .chat-message .message-time {
    font-size: 0.65rem;
  }

  .chat-widget .chat-footer {
    padding: 0.55rem;
    gap: 0.4rem;
  }

  .chat-widget .chat-footer .form-control {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }

  .chat-widget .chat-footer .btn {
    padding: 0.45rem 0.7rem;
  }

  .chat-widget .chat-msg-image img {
    max-width: 150px;
    max-height: 150px;
  }

  .chat-widget .chat-msg-file a {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .auth-card {
    padding: 2rem;
  }
}


/* ============================================================
   21. ANIMATIONS
   ============================================================ */

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease);
}

.animate-slide-up {
  animation: slideUp 0.6s var(--ease);
}

.animate-slide-down {
  animation: slideDown 0.5s var(--ease);
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--ease);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 95px;
  right: 22px;
  background: var(--white);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  animation: slideInRight 0.4s var(--ease);
  max-width: 360px;
}
@media (max-width: 576px) {
  .toast-notification { max-width: calc(100vw - 44px); right: 10px; top: 85px; padding: 0.8rem 1rem; }
}

.toast-notification.success {
  border-left-color: var(--success);
}

.toast-notification.error {
  border-left-color: var(--accent);
}


/* ============================================================
   22. UTILITY CLASSES
   ============================================================ */

/* Text colors */
.text-primary-custom { color: var(--primary) !important; }
.text-primary-dark  { color: var(--primary-dark) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-accent        { color: var(--accent) !important; }
.text-white-custom  { color: var(--white) !important; }
.text-muted-custom  { color: var(--gray-500) !important; }

/* Backgrounds */
.bg-primary-custom { background: var(--primary) !important; }
.bg-primary-dark   { background: var(--primary-dark) !important; }
.bg-primary-light  { background: var(--primary-light) !important; }
.bg-primary-subtle { background: var(--primary-subtle) !important; }
.bg-secondary-custom { background: var(--secondary) !important; }
.bg-accent         { background: var(--accent) !important; }
.bg-light-custom   { background: var(--light) !important; }
.bg-white-custom   { background: var(--white) !important; }

/* Rounded */
.rounded-custom     { border-radius: var(--radius) !important; }
.rounded-lg-custom  { border-radius: var(--radius-lg) !important; }
.rounded-xl-custom  { border-radius: var(--radius-xl) !important; }
.rounded-pill-custom { border-radius: var(--radius-pill) !important; }
.rounded-circle-custom { border-radius: var(--radius-circle) !important; }

/* Shadows */
.shadow-xs-custom   { box-shadow: var(--shadow-xs) !important; }
.shadow-sm-custom   { box-shadow: var(--shadow-sm) !important; }
.shadow-custom      { box-shadow: var(--shadow) !important; }
.shadow-md-custom   { box-shadow: var(--shadow-md) !important; }
.shadow-lg-custom   { box-shadow: var(--shadow-lg) !important; }
.shadow-hover:hover { box-shadow: var(--shadow-hover) !important; }

/* Borders */
.border-brand { border: 2px solid var(--primary) !important; }
.border-accent { border: 2px solid var(--accent) !important; }
.border-light { border: 1px solid var(--gray-200) !important; }

/* Font weights */
.fw-light    { font-weight: 300 !important; }
.fw-regular  { font-weight: 400 !important; }
.fw-medium   { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }

/* Spacing helpers */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 2rem !important; }

/* Misc */
.overflow-hidden { overflow: hidden !important; }
.position-relative { position: relative !important; }
.cursor-pointer { cursor: pointer !important; }
.transition-all { transition: var(--transition) !important; }

/* Placeholder image */
.placeholder-img {
  width: 100%;
  height: auto;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  min-height: 120px;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
}

.breadcrumb-item.active {
  color: var(--gray-500);
}

/* Product Detail */
.product-detail .product-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.product-detail .product-main-image img {
  width: 100%;
}

.product-detail .product-info h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.product-detail .product-info .rating {
  color: var(--warning);
  margin-bottom: 1rem;
}

.product-detail .product-info .price-block {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--gray-100);
  border-radius: var(--radius);
}

.product-detail .product-info .price-block .price-new {
  font-size: 2rem;
}

.product-detail .product-info .price-block .price-old {
  font-size: 1.1rem;
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.auth-card .logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .logo h3 {
  font-weight: 800;
  color: var(--secondary);
}

.auth-card .logo h3 span {
  color: var(--primary);
}

/* Divider */
.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--gray-200);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}
.page-hero h1 {
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero p {
  opacity: 0.85;
  margin-bottom: 0;
}
@media (max-width: 992px) {
  .page-hero { padding: 100px 0 60px; }
}
@media (max-width: 768px) {
  .page-hero { padding: 90px 0 45px; }
  .page-hero h1 { font-size: 1.6rem; }
}
@media (max-width: 576px) {
  .page-hero { padding: 80px 0 35px; }
  .page-hero h1 { font-size: 1.3rem; }
  .page-hero p { font-size: 0.9rem; }
}

/* Scrollbar global */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ============================================================
   GLOBAL OVERFLOW PROTECTION (no horizontal scroll)
   ============================================================ */

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

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 100%;
}

main {
  overflow-x: hidden;
  max-width: 100vw;
}

section {
  overflow-x: hidden;
}

footer {
  overflow-x: hidden;
}

.row {
  overflow: visible;
}

/* Prevent long text from overflowing */
p, li, td, th, dd, dt, label, span, div, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Tables responsive by default */
.table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Forms */
input, textarea, select {
  max-width: 100%;
}

.form-control,
.form-select {
  overflow: hidden;
}

/* Cards don't overflow */
.card {
  overflow: hidden;
  max-width: 100%;
}

/* All images respect container */
img {
  max-width: 100%;
  height: auto;
}

/* Nav tabs scrollable on mobile */
@media (max-width: 767.98px) {
  .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tabs .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
  
  /* Footer stacking */
  footer .row > [class*="col-"] {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Print */
@media print {
  .navbar,
  .whatsapp-float,
  .chat-float,
  .tiktok-float,
  .chat-widget,
  .footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 1rem 0;
  }
}

/* Cart utility */
.flex-fill-0 {
  flex: 0 0 auto !important;
  width: auto !important;
}
