/* ===================================
   JENDELA TERNAK - Main Stylesheet
   Green + Yellowish-Green Palette
   =================================== */

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

:root {
  /* Primary Green + Yellowish-Green Palette */
  --primary: #2D6A4F;
  --primary-light: #6BBF59;
  --primary-lighter: #A8D98A;
  --primary-dark: #1B4332;
  --primary-50: #eaf5e0;

  /* Accent Yellowish-Green */
  --accent: #B5CC18;
  --accent-dark: #8FA816;
  --accent-light: #D4E157;

  /* Neutrals */
  --dark: #212529;
  --gray-700: #495057;
  --gray-500: #6c757d;
  --gray-300: #dee2e6;
  --gray-100: #f8f9fa;
  --light-bg: #ffffff;
  --white: #ffffff;

  /* Semantic */
  --danger: #e63946;
  --warning: #f77f00;
  --success: #2D6A4F;
  --info: #457b9d;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ===== NAVBAR ===== */
.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand-custom img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.navbar-brand-custom span {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.navbar-custom {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: none !important;
  margin-top: 0 !important;
}

.navbar-no-shadow,
.navbar-no-shadow.scrolled,
.navbar-no-shadow:hover,
.navbar-no-shadow:focus {
  box-shadow: none !important;
  border-bottom: none !important;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.12);
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-custom .navbar-toggler-icon {
  filter: invert(1);
}

.search-form-nav {
  position: relative;
}

.search-form-nav input {
  border-radius: 50px;
  padding: 0.45rem 1rem 0.45rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 240px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-form-nav input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-form-nav input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent);
  outline: none;
  width: 300px;
}

.search-form-nav .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

.cart-badge {
  position: relative;
}

.cart-badge .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-section h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-section p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-height: 200px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success-custom {
  background: var(--primary-light);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark), #c99a2e);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-header .underline-accent {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  margin: 0 auto;
  border-radius: 2px;
}

.section-header p {
  color: var(--gray-500);
  margin-top: 0.7rem;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-50), #e8f5e9);
}

.product-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.product-card .discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card .stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.product-card .stock-low {
  background: rgba(230, 57, 70, 0.1);
  color: var(--danger);
}

.product-card .stock-ok {
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
}

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

.product-card .card-category {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.product-card .card-title {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.product-card .price-wrapper {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.product-card .price-original {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.product-card .rating-stars {
  color: #ffc107;
  /* Yellow stars */
  font-size: 0.8rem;
}

.product-card .rating-stars i {
  color: #ffc107;
}

/* All Rating Stars Yellow */
.rating-stars i.bi-star-fill {
  color: #ffc107 !important;
  /* Yellow filled stars */
}

.rating-stars i.bi-star {
  color: #ddd;
  /* Gray empty stars */
}

/* ===== CATEGORY CARD ===== */
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.category-card .cat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-lighter));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .cat-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.category-card h5 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), #0d2818);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer h5 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.9rem;
}

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

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== WHATSAPP WIDGET ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== FORMS ===== */
.form-control-custom {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control-custom:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

/* ===== AUTH CARD ===== */
.auth-card {
  max-width: 440px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.auth-card p.subtitle {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.auth-card .logo-auth {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: block;
}

/* ===== CART & CHECKOUT ===== */
.cart-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-md);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
}

.cart-item .item-info {
  flex: 1;
}

.cart-item .item-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cart-item .item-price {
  color: var(--primary);
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  border: none;
  background: var(--gray-100);
  padding: 0.3rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.qty-control button:hover {
  background: var(--primary-50);
}

.qty-control input {
  border: none;
  width: 45px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.order-summary h5 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-50);
}

.order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.order-summary .summary-total {
  border-top: 2px solid var(--primary-50);
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

/* ===== ALERTS ===== */
.alert-custom {
  border-radius: var(--radius-md);
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.alert-success-custom {
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary-dark);
}

.alert-danger-custom {
  background: rgba(230, 57, 70, 0.1);
  color: var(--danger);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-custom {
  background: none;
  padding: 1rem 0;
}

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

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

/* ===== PRODUCT DETAIL ===== */
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50), #e8f5e9);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.8rem 0;
}

.product-detail-desc {
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== REVIEW SECTION ===== */
.review-item {
  border-bottom: 1px solid var(--gray-300);
  padding: 1rem 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item .reviewer-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.review-item .review-date {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.review-item .review-comment {
  margin-top: 0.5rem;
  color: var(--gray-700);
}

/* ===== ADMIN SIDEBAR ===== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark), #0d2818);
  padding: 1.5rem 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.admin-sidebar .sidebar-brand {
  padding: 0 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .sidebar-brand img {
  width: 38px;
  height: 38px;
}

.admin-sidebar .sidebar-brand span {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.65rem 1.2rem;
  margin: 2px 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.admin-sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

.admin-sidebar .sidebar-label {
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  margin: 1.2rem 1.2rem 0.6rem;
}

.admin-sidebar .sidebar-submenu-label {
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin: 0.8rem 1.2rem 0.4rem 1.8rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-content {
  margin-left: 260px;
  flex: 1;
  padding: 1.5rem 2rem;
  background: var(--light-bg);
  min-height: 100vh;
}

/* ===== ADMIN STAT CARDS ===== */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: rgba(45, 106, 79, 0.05);
  border-radius: 0 0 0 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== TABLE ===== */
.table-custom {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-custom thead th {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.table-custom tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
  border-color: var(--gray-100);
}

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

/* ===== STATUS BADGES ===== */
.badge-status {
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending {
  background: rgba(247, 127, 0, 0.1);
  color: var(--warning);
}

.badge-processing {
  background: rgba(69, 123, 157, 0.1);
  color: var(--info);
}

.badge-shipped {
  background: rgba(82, 183, 136, 0.1);
  color: var(--primary-light);
}

.badge-delivered {
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
}

.badge-cancelled {
  background: rgba(230, 57, 70, 0.1);
  color: var(--danger);
}

.badge-paid {
  background: rgba(45, 106, 79, 0.1);
  color: var(--success);
}

.badge-unpaid {
  background: rgba(247, 127, 0, 0.1);
  color: var(--warning);
}

/* ===== ORDER PAGE ===== */
.order-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-weight: 800;
  font-size: 1.8rem;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
  color: var(--accent);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--dark);
  position: relative;
  overflow: hidden;
}

.promo-banner h3 {
  font-weight: 800;
}

.promo-banner::after {
  content: '🐄';
  position: absolute;
  right: 20px;
  bottom: -10px;
  font-size: 5rem;
  opacity: 0.2;
}

/* ===== LOW STOCK ALERT ===== */
.low-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.low-stock-item:last-child {
  border-bottom: none;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-lighter);
}

.empty-state h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-logo {
    max-height: 130px;
  }

  .search-form-nav input {
    width: 100%;
  }

  .search-form-nav input:focus {
    width: 100%;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }

  .product-detail-img {
    height: 250px;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .product-card .card-img-wrapper {
    height: 150px;
  }

  .auth-card {
    margin: 1.5rem;
    padding: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-accent {
  color: var(--accent) !important;
}

.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-50 {
  background: var(--primary-50) !important;
}

.fw-800 {
  font-weight: 800 !important;
}

/* ===== SMOOTH SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ===== BANNER SLIDER ===== */
.banner-slider-section {
  margin-top: 20px;
  padding: 0 15px;
}

.banner-slider-section .carousel {
  max-width: 1600px;
  margin: 0 auto;
}

.banner-slider-section .carousel-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.banner-slider-section .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.banner-slider-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin: 0 4px;
  transition: var(--transition);
}

.banner-slider-section .carousel-indicators button.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
  width: 30px;
  border-radius: 6px;
}

.banner-slider-section .carousel-control-prev-icon,
.banner-slider-section .carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  background-size: 50%;
}

@media (max-width: 768px) {
  .banner-slider-section .carousel-item img {
    max-height: 250px;
  }
}

/* ===== PRODUCT GALLERY ===== */
.gallery-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gallery-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-300);
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  /* Add padding to main content to prevent overlap with bottom nav */
  main {
    padding-bottom: 70px;
  }

  /* Hide WhatsApp float on mobile to avoid overlap */
  .whatsapp-float {
    bottom: 80px;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gray-500);
  font-size: 11px;
  padding: 6px 8px;
  transition: var(--transition);
  position: relative;
  flex: 1;
  min-width: 0;
}

.mobile-nav-item i {
  font-size: 24px;
  margin-bottom: 3px;
}

.mobile-nav-item span {
  font-weight: 500;
  white-space: nowrap;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item.active {
  font-weight: 600;
}

.mobile-nav-item.active i {
  color: var(--accent);
}

/* Badge for cart count on mobile nav */
.mobile-nav-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--accent);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ===== PROFILE SIDEBAR ===== */
.profile-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile-user-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar i {
  font-size: 3rem;
  color: var(--white);
}

.profile-nav {
  padding: 0.5rem 0;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.profile-nav-item i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.profile-nav-item:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.profile-nav-item.active {
  background: var(--primary-lighter);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--accent);
}

.profile-nav-item.text-danger:hover {
  background: #fee;
  color: #dc3545;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.profile-header h3 {
  margin: 0;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.dashboard-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dashboard-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-card-icon i {
  font-size: 1.5rem;
}

.dashboard-card h5 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.dashboard-card p {
  margin: 0;
  font-size: 0.875rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991px) {
  .profile-sidebar {
    margin-bottom: 2rem;
  }

  .profile-user-card {
    padding: 1.5rem 1rem;
  }

  .profile-nav-item {
    padding: 0.75rem 1rem;
  }
}

/* Custom 5-column grid */
@media (min-width: 768px) {
  .col-md-15 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ===== CART SUCCESS POPUP ===== */
.cart-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s;
}

.cart-popup-overlay.show {
  display: flex;
}

.cart-popup {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: slideUp 0.3s;
}

.cart-popup i.bi-check-circle-fill {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
  display: block;
}

.cart-popup h5 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--dark);
}

.cart-popup p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.cart-popup .btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== VARIANT SELECTION ===== */
.variant-selection {
  margin-bottom: 1rem;
}

.variant-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.variant-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray-300);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-weight: 500;
}

.variant-btn:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.variant-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.variant-btn.active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ===== MOBILE PRODUCT DETAIL CUSTOMIZATION ===== */
@media (max-width: 768px) {

  /* Hide breadcrumb on mobile product detail */
  .breadcrumb-custom {
    display: none;
  }

  /* Full width product image on mobile */
  .product-detail-img {
    border-radius: 0;
    height: 350px;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  /* Product title 16px on mobile */
  .product-detail-info h1 {
    font-size: 16px !important;
    line-height: 1.4;
  }

  /* Mobile action buttons layout - Sticky at bottom */
  .mobile-product-actions {
    display: flex !important;
    gap: 8px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-300);
    z-index: 1001;
  }

  .mobile-product-actions .btn-wishlist {
    flex: 0 0 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 18px;
  }

  .mobile-product-actions .btn-cart {
    flex: 0 0 42.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 600;
  }

  .mobile-product-actions .btn-buy-now {
    flex: 0 0 42.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 600;
  }

  /* Hide desktop action buttons on mobile */
  .desktop-product-actions {
    display: none !important;
  }

  /* Hide mobile bottom nav on product detail pages */
  body:has(.mobile-product-actions) .mobile-bottom-nav {
    display: none !important;
  }
}

/* Desktop: Hide mobile actions, show desktop actions */
@media (min-width: 769px) {
  .mobile-product-actions {
    display: none !important;
  }

  .desktop-product-actions {
    display: block !important;
  }
}

/* ===== MOBILE CART POPUP ===== */
.mobile-cart-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-cart-popup-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-cart-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  max-height: 70vh;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2001;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-cart-popup-overlay.show .mobile-cart-popup {
  transform: translateY(0);
}

.mobile-cart-popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.mobile-cart-popup-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.mobile-cart-popup-close {
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.mobile-cart-popup-body {
  padding: 20px;
}

.mobile-cart-popup-actions {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-300);
  background: var(--white);
  position: sticky;
  bottom: 0;
}

/* Product card price with ellipsis */
.product-card .price-wrapper {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .price-original {
  display: inline-block;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Reduce mobile nav height */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  }

  .mobile-nav-item {
    padding: 2px 6px;
  }

  .mobile-nav-item i {
    font-size: 16px;
    margin-bottom: 1px;
  }

  .mobile-nav-item span {
    font-size: 8px;
  }
}

/* Mobile Filter Popup */
.mobile-filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-filter-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-filter-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2001;
  overflow-y: auto;
}

.mobile-filter-overlay.show .mobile-filter-popup {
  transform: translateY(0);
}

.mobile-filter-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.mobile-filter-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.mobile-filter-close {
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.mobile-filter-body {
  padding: 20px;
}

/* Mobile Search Popup */
.mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-dark);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-search-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-search-container {
  padding: 16px;
}

.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 16px;
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.mobile-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
}