/* =========================
   GLOBAL
========================= */

body {
  font-family: "Poppins", sans-serif;
  background: #f4f7fb;
  color: #1e293b;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
  font-size: 1.7rem;
  font-weight: 700;
  color: white !important;
}

.nav-link {
  color: #dbe4ff !important;
  margin-left: 14px;
  font-weight: 500;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #60a5fa !important;
}

/* NAVBAR ICON */

.nav-icon {
  font-size: 1.45rem;
}

/* CART BADGE */

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;

  min-width: 20px;
  height: 20px;

  background: #ef4444;
  color: white;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.7rem;
  font-weight: 700;

  padding: 2px 5px;
  line-height: 1;
}

/* =========================
   DROPDOWN
========================= */

.dropdown-menu {
  background: #111827;
  border: none;
  border-radius: 16px;
  padding: 10px;
}

.dropdown-item {
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  transition: 0.25s;
}

.dropdown-item:hover {
  background: #2563eb;
  color: white;
}

/* =========================
   HERO / PROMO
========================= */

.promo-section {
  background: linear-gradient(135deg, #0c2f7b, #2568d3);
  border-radius: 32px;
  padding: 40px 60px; /* reduced vertical padding from 60px to 40px */
  color: white;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);

  /* Make container span wider with top gap */
  width: 100%;
  max-width: 1600px; /* increased from 1400px to 1600px */
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px; /* added top gap to prevent touching navbar */
}

/* ✅ FIX: better vertical alignment inside row */
.promo-section .row {
  align-items: center;
}

/* optional safety alignment for image column */
.promo-section .col-lg-6:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 6px 14px; /* slightly reduced padding */
  border-radius: 999px;
  font-size: 20px; /* reduced from 13px */
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.promo-title {
  font-size: 2.2rem; /* reduced from 2.8rem */
  font-weight: 700;
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.promo-text {
  font-size: 0.9rem; /* reduced from 1rem */
  opacity: 0.9;
  margin-top: 8px;
  margin-bottom: 12px;
  max-width: 550px;
  line-height: 1.5;
}

.promo-price-wrapper {
  display: flex;
  align-items: center;
  gap: 12px; /* reduced from 15px */
  flex-wrap: wrap;
  margin-top: 5px;
  margin-bottom: 0;
}

.old-price {
  font-size: 18px; /* reduced from 20px */
  text-decoration: line-through;
  opacity: 0.65;
}

.promo-price {
  font-size: 30px; /* reduced from 36px */
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.discount-badge {
  background: #ef4444;
  padding: 5px 10px; /* slightly reduced padding */
  border-radius: 999px;
  font-size: 12px; /* reduced from 13px */
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* IMAGE */
.promo-image {
  width: 400px; /* slightly reduced from 380px to match text scaling */
  max-width: 100%;
  max-height: 75%;
  border-radius: 30px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}

.promo-image:hover {
  transform: translateY(-2px) scale(1.01);
}

/* Optional: Add responsive adjustments */
@media (max-width: 768px) {
  .promo-section {
    padding: 30px 20px;
    margin-top: 20px; /* slightly less top gap on mobile */
  }

  .promo-title {
    font-size: 1.8rem;
  }

  .promo-price {
    font-size: 24px;
  }

  .promo-image {
    width: 280px;
  }
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.section-title p {
  color: #64748b;
  margin-top: 8px;
}

/* =========================
   CATEGORY
========================= */

.category-card {
  background: white;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;

  height: 100%;

  transition: 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.category-card h4 {
  font-weight: 700;
  color: #111827;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;

  height: 100%;

  display: flex;
  flex-direction: column;

  transition: 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
  position: relative;
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;

  background: #ef4444;
  color: white;

  padding: 7px 14px;
  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 600;
}

.product-content {
  padding: 24px;

  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.product-content p {
  color: #64748b;
  margin-top: 10px;
  flex-grow: 1;
}

.product-price {
  color: #2563eb;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: auto;
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
  background: #2563eb;
  border: none;

  border-radius: 14px;

  padding: 12px 24px;

  font-weight: 600;
  transition: 0.25s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-success {
  background: #16a34a;
  border: none;

  border-radius: 14px;

  padding: 12px 24px;

  font-weight: 600;
  transition: 0.25s ease;
}

.btn-success:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.btn-danger {
  border-radius: 12px;
}

/* =========================
   CATEGORY PAGE
========================= */

.category-header {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 28px;

  padding: 50px;
  color: white;

  margin-bottom: 40px;
}

.category-header h1 {
  font-size: 3rem;
  font-weight: 700;
}

.category-sidebar {
  background: white;
  border-radius: 24px;

  padding: 30px;

  position: sticky;
  top: 100px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.category-link {
  display: block;

  background: #f1f5f9;
  color: #334155;

  text-decoration: none;

  padding: 15px 20px;
  margin-bottom: 14px;

  border-radius: 14px;

  font-weight: 500;
  transition: 0.25s;
}

.category-link:hover {
  background: #2563eb;
  color: white;
}

.active-category {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
}

/* =========================
   CART
========================= */

.cart-card,
.summary-card,
.checkout-card,
.empty-cart {
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.cart-card {
  padding: 24px;
}

.summary-card,
.checkout-card {
  padding: 30px;
}

.summary-card {
  position: sticky;
  top: 100px;
}

.empty-cart {
  padding: 80px 30px;
  text-align: center;
}

.cart-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* =========================
   FORM
========================= */

.form-control,
.form-select {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #dbe4ff;
}

.form-control:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.2);
}

/* =========================
   TOAST
========================= */

.cart-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;

  background: #0f172a;
  color: white;

  padding: 15px 25px;

  border-radius: 14px;

  opacity: 0;
  transform: translateY(20px);

  transition: 0.3s ease;

  pointer-events: none;

  z-index: 99999;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
  .cart-badge {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .promo-section {
    padding: 35px;
    text-align: center;
  }

  .promo-title {
    font-size: 2.4rem;
  }

  .promo-price {
    font-size: 2rem;
  }

  .promo-image {
    margin-top: 35px;
  }
}

/* AUTH PAGE */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  position: relative;
  overflow: hidden;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.auth-card {
  position: relative;
  z-index: 2;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);

  padding: 45px;
  border-radius: 30px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.auth-icon {
  width: 90px;
  height: 90px;

  margin: auto;
  margin-bottom: 20px;

  border-radius: 50%;

  background: linear-gradient(135deg, #2563eb, #60a5fa);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 2.5rem;
}

.auth-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111827;
}

.auth-subtitle {
  color: #6b7280;
  margin-top: 10px;
}

.auth-button {
  padding: 14px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 1rem;
}

.auth-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  color: #1d4ed8;
}

.back-home-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-home-link:hover {
  color: #111827;
}

.auth-card .form-control {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #dbe2ea;
}

.auth-card .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
  .auth-card {
    padding: 35px 25px;
  }

  .auth-title {
    font-size: 1.8rem;
  }
}

/* ========================================
   FOOTER
======================================== */

.footer-section {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #e2e8f0;
  padding: 90px 0 30px;
  margin-top: 100px;
  position: relative;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-description {
  color: #94a3b8;
  line-height: 1.9;
  max-width: 420px;
}

.footer-title {
  color: white;
  font-weight: 600;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

/* LINKS */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: #60a5fa;
  transform: translateX(5px);
}

/* CONTACT */

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cbd5e1;
}

.contact-icon {
  width: 38px;
  height: 38px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
}

/* SOCIAL */

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.footer-social a {
  width: 45px;
  height: 45px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.08);

  color: white;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;

  transition: 0.3s;
}

.footer-social a:hover {
  background: #2563eb;
  transform: translateY(-5px);
}

/* DIVIDER */

.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 60px 0 25px;
}

/* BOTTOM */

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   WHATSAPP BUTTON
======================================== */

.whatsapp-button {
  position: fixed;
  right: 25px;
  bottom: 25px;

  width: 68px;
  height: 68px;

  border-radius: 50%;

  background: linear-gradient(135deg, #25d366, #16a34a);

  color: white;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;

  z-index: 9999;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

  transition: 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1) translateY(-5px);
  color: white;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {
  .footer-section {
    text-align: center;
    padding: 70px 0 30px;
  }

  .footer-description {
    margin: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }
}

/* ========================================
   GUIDE PAGE
======================================== */

.guide-header {
  text-align: center;
  margin-bottom: 60px;
}

.guide-badge {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;

  padding: 10px 18px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
}

.guide-title {
  font-size: 3rem;
  font-weight: 700;
  color: #0f172a;
}

.guide-text {
  max-width: 700px;
  margin: auto;

  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* GUIDE CARD */

.guide-card {
  background: white;

  border-radius: 28px;

  padding: 40px 30px;

  height: 100%;

  text-align: center;

  transition: 0.3s ease;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.guide-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.guide-icon {
  width: 80px;
  height: 80px;

  margin: auto auto 25px;

  border-radius: 22px;

  background: linear-gradient(135deg, #2563eb, #60a5fa);

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.guide-card h4 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f172a;
}

.guide-card p {
  color: #64748b;
  line-height: 1.7;
}

/* MOBILE */

@media (max-width: 768px) {
  .guide-title {
    font-size: 2.2rem;
  }

  .guide-card {
    padding: 30px 25px;
  }
}

/* PROFILE */

.profile-wrapper {
  min-height: 70vh;
}

.profile-card {
  background: white;
  border-radius: 30px;
  padding: 40px 30px;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  height: 100%;

  display: flex;
  flex-direction: column;
}

.profile-avatar {
  width: 110px;
  height: 110px;

  margin: 0 auto 25px;

  border-radius: 50%;

  background: linear-gradient(135deg, #2563eb, #60a5fa);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 42px;
  font-weight: 700;

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.profile-email {
  color: #666;
  margin-bottom: 20px;
}

.profile-badge {
  display: inline-block;

  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;

  padding: 10px 18px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
}

.profile-info-card {
  background: white;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.profile-section-title h3 {
  font-size: 2rem;
  font-weight: 700;
}

.profile-section-title p {
  color: #666;
  margin-top: 10px;
}

.profile-info-list {
  margin-top: 35px;
}

.profile-info-item {
  background: #f8fafc;

  border-radius: 20px;

  padding: 25px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;

  transition: 0.3s;
}

.profile-info-item:hover {
  transform: translateY(-5px);
  background: #eff6ff;
}

.info-label {
  font-size: 14px;
  color: #666;
}

.profile-info-item h5 {
  margin-top: 8px;
  margin-bottom: 0;

  font-weight: 700;
}

.info-icon {
  font-size: 2rem;
  color: #2563eb;
}

@media (max-width: 768px) {
  .profile-info-card,
  .profile-card {
    padding: 30px 20px;
  }

  .profile-section-title h3 {
    font-size: 1.6rem;
  }
}

/* ========================================
   ORDERS PAGE (NEW UI LAYER)
======================================== */

.order-card {
  background: #fff;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transition: 0.25s ease;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.order-id {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.1rem;
}

.order-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.order-items {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eef2f7;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #334155;
}

.order-total {
  font-weight: 700;
  color: #2563eb;
}

.status-badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}
.status-processing {
  background: #dbeafe;
  color: #1d4ed8;
}
.status-shipped {
  background: #cffafe;
  color: #0891b2;
}
.status-completed {
  background: #dcfce7;
  color: #166534;
}
.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.badge {
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
}
