/* ================================
   INZOOZI - Main Stylesheet
   ================================ */

:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fef2f2;
  --secondary: #ff6a00;
  --gradient: linear-gradient(135deg, #ff6a00 0%, #dc2626 100%);
  --dark: #1f2937;
  --gray: #6b7280;
  --light: #f9fafb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(220,38,38,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--dark);
}

/* ================================
   TOP BAR
   ================================ */
.top-bar {
  background: var(--gradient);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ================================
   LOGO
   ================================ */
.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

/* ================================
   SEARCH BAR
   ================================ */
.search-form {
  flex: 1;
  max-width: 500px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 14px;
  transition: var(--transition);
  background: #f9fafb;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(220,38,38,0.1);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  margin-top: 8px;
  display: none;
  z-index: 1050;
  overflow: hidden;
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ================================
   NAV ICONS
   ================================ */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.nav-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  padding: 8px 15px;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-icon-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-icon-wrapper {
  position: relative;
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-icon-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ================================
   ACCOUNT DROPDOWN
   ================================ */
.account-dropdown {
  min-width: 250px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 10px 0;
  margin-top: 10px;
}

.account-dropdown .dropdown-header {
  font-weight: 700;
  color: var(--dark);
  padding: 12px 20px;
}

.account-dropdown .dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition);
}

.account-dropdown .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.account-dropdown .dropdown-item i {
  width: 20px;
  color: var(--gray);
}

.account-dropdown .dropdown-item:hover i {
  color: var(--primary);
}

/* ================================
   CATEGORY NAV
   ================================ */
.category-nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.category-nav-item {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  transition: var(--transition);
}

.category-nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.category-nav-item.all-categories {
  background: var(--dark);
  color: white;
}

.category-nav-item.all-categories:hover {
  background: var(--primary);
  color: white;
}

/* ================================
   NAVBAR
   ================================ */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar .form-control {
  border: 2px solid #e5e7eb;
  transition: var(--transition);
}

.navbar .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: var(--gradient);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(15deg);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ==============================
   HORIZONTAL SERVICE QUICK LINKS
   ============================== */
.service-quick-links {
  background: white;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.horizontal-service-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 5px;
  scrollbar-width: thin;
  scrollbar-color: #dc3545 #f8f9fa;
}

.horizontal-service-links::-webkit-scrollbar {
  height: 4px;
}

.horizontal-service-links::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.horizontal-service-links::-webkit-scrollbar-thumb {
  background: #dc3545;
  border-radius: 4px;
}

.service-link-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 25px;
  text-decoration: none !important;
  color: #495057;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  scroll-snap-align: start;
  cursor: grab;
}

.service-link-item:active {
  cursor: grabbing;
}

.service-link-item:hover {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.service-link-item i {
  font-size: 1.1rem;
}

.service-link-item.view-all {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.service-link-item.view-all:hover {
  background: #c82333;
  border-color: #c82333;
}

/* Responsive for horizontal quick links */
@media (max-width: 1200px) {
  .service-link-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 991px) {
  .service-link-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .service-link-item i {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .service-quick-links {
    padding: 10px 15px;
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
  }
  .service-link-item {
    padding: 10px 14px;
    font-size: 0.75rem;
    border-radius: 20px;
  }
  .service-link-item i {
    font-size: 1rem;
  }
  .service-link-item span {
    display: inline !important;
  }
  .service-link-item.view-all span {
    display: inline !important;
  }
}

@media (max-width: 480px) {
  .service-link-item {
    padding: 8px 10px;
    font-size: 0.7rem;
  }
  .service-link-item i {
    font-size: 0.9rem;
  }
}

/* ==============================
   MOBILE SERVICE SLIDER
   ============================== */
.mobile-service-slider {
    background: white;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mobile-service-slider .horizontal-service-links {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.mobile-service-slider .horizontal-service-links::-webkit-scrollbar {
    display: none;
}

.mobile-service-slider .service-link-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    color: #495057;
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    scroll-snap-align: start;
}

.mobile-service-slider .service-link-item:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.mobile-service-slider .service-link-item i {
    font-size: 1rem;
}

.mobile-service-slider .service-link-item.view-all {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.mobile-service-slider .service-link-item.view-all:hover {
    background: #c82333;
    border-color: #c82333;
}

/* ==============================
   SERVICE SIDEBAR LINKS
   ============================== */
.service-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.service-sidebar-item:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    transform: translateX(5px);
}

.service-sidebar-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.service-sidebar-item span {
    flex: 1;
}

.text-purple {
    color: #6f42c1 !important;
}

.text-warning {
    color: #fd7e14 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* ==============================
   PROFESSIONAL HERO BANNER
   ================================ */
.hero-banner {
  max-width: 1200px;
  height: 400px;
  border-radius: 24px;
  padding: 40px;
  margin: 20px auto;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #dc2626 100%);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero-banner .carousel-item {
  height: 320px;
  transition: transform 0.6s ease-in-out;
}

.hero-banner .carousel-item .row {
  height: 100%;
}

.hero-banner .hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInLeft 0.8s ease-out;
}

.hero-banner h2 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-banner p {
  font-size: 1.25rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-product-image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.product-image-wrapper {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
  transition: transform 0.3s ease;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}

.product-image-wrapper:hover {
  transform: scale(1.03);
}

.product-image-wrapper img {
  max-width: 90%;
  max-height: 250px;
  object-fit: contain;
}

.stock-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Hero Button */
.hero-banner .btn-dark {
  background: #1f2937;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.hero-banner .btn-dark:hover {
  background: #374151;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* Desktop View - Large screens */
@media (min-width: 1200px) {
  .hero-banner h2 {
    font-size: 3.5rem;
  }
  .hero-banner p {
    font-size: 1.35rem;
  }
}

/* Tablet View */
@media (max-width: 991px) {
  .hero-banner {
    height: 380px;
    padding: 30px;
  }
  .hero-banner .carousel-item {
    height: 300px;
  }
  .hero-banner h2 {
    font-size: 2.25rem;
  }
  .hero-banner p {
    font-size: 1.1rem;
  }
  .hero-banner .hero-content {
    text-align: center;
    margin-bottom: 30px;
  }
  .hero-product-image {
    margin-top: 20px;
  }
  .product-image-wrapper {
    height: 220px;
  }
  .product-image-wrapper img {
    max-height: 190px;
  }
}

/* Mobile View */
@media (max-width: 767px) {
  .hero-banner {
    height: auto;
    min-height: 280px;
    padding: 25px 20px;
    border-radius: 16px;
    margin: 10px auto;
  }
  .hero-banner .carousel-item {
    height: auto;
  }
  .hero-banner .carousel-item .row {
    height: auto;
  }
  .hero-banner h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  .hero-banner p {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
  .hero-banner .btn-dark {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }
  .product-image-wrapper {
    height: 200px;
  }
  .product-image-wrapper img {
    max-height: 170px;
  }
  .stock-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* Small Mobile View */
@media (max-width: 480px) {
  .hero-banner {
    padding: 20px 15px;
  }
  .hero-banner h2 {
    font-size: 1.5rem;
  }
  .hero-banner p {
    font-size: 0.9rem;
  }
  .product-image-wrapper {
    height: 170px;
  }
  .product-image-wrapper img {
    max-height: 140px;
  }
}

/* Carousel Controls */
.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.hero-banner .carousel-control-prev {
  left: 20px;
}

.hero-banner .carousel-control-next {
  right: 20px;
}

.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.hero-banner .carousel-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero-banner .carousel-control-icon i {
  font-size: 20px;
  color: white;
}

/* Carousel Indicators */
.hero-banner .carousel-indicators {
  bottom: 20px;
  margin: 0;
}

.hero-banner .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.hero-banner .carousel-indicators button.active {
  background-color: white;
  width: 30px;
  border-radius: 6px;
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-header a:hover {
  gap: 10px;
}

/* ================================
   BUTTONS - STANDARDIZED SYSTEM
   ================================ */
/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #ff6a00 0%, #dc2626 100%);
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(220,38,38,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220,38,38,0.3);
  background: linear-gradient(135deg, #ff6a00 0%, #dc2626 100%);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-primary:active {
  transform: translateY(0);
}

/* Text Button */
.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-text:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Danger buttons (backward compatibility) */
.btn-danger {
  background: linear-gradient(135deg, #ff6a00 0%, #dc2626 100%);
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(220,38,38,0.2);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220,38,38,0.3);
  background: linear-gradient(135deg, #ff6a00 0%, #dc2626 100%);
}

.btn-danger:active {
  transform: translateY(-1px);
}

.btn-outline-danger {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-outline-danger:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-danger:active {
  transform: translateY(0);
}

/* ================================
   PRODUCT CARDS
   ================================ */
.product-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--primary);
}

.product-card img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 10px;
  background: #f8f9fa;
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #f59e0b;
  margin-bottom: 8px;
}

.product-card-rating .stars {
  color: #f59e0b;
  letter-spacing: -2px;
}

.product-card-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.product-card-old-price {
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: line-through;
  font-weight: 500;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.product-card-actions form {
  flex: 1;
  min-width: calc(33.33% - 6px);
}

.product-card-actions .btn {
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
  color: white !important;
}

.btn-whatsapp:hover {
  background-color: #128C7E !important;
  border-color: #128C7E !important;
  color: white !important;
}

.discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  z-index: 2;
}

.price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.price del {
  font-size: 0.85rem;
  font-weight: 400;
}

/* ================================
   CATEGORY BOXES
   ================================ */
.category-box {
  display: block;
  border: 2px solid #e5e7eb;
  padding: 25px 15px;
  border-radius: var(--radius);
  background: white;
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.category-box:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ================================
   TRUST INDICATORS
   ================================ */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--dark);
}

.trust-badge i {
  font-size: 20px;
  color: var(--primary);
}

/* ================================
   LOADING STATES
   ================================ */
.skeleton-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ================================
   PROMO BANNERS
   ================================ */
.promo {
  padding: 50px 40px;
  border-radius: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.promo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(20deg);
}

.promo h5 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pink {
  background: linear-gradient(135deg, #d63384 0%, #ff6a95 100%);
}

.blue {
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
}

/* ================================
   CARDS GENERAL
   ================================ */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  background: white;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
  padding: 15px 20px;
}

/* ================================
   FORMS
   ================================ */
.form-control, .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

/* ================================
   BADGES
   ================================ */
.badge {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ================================
   TABLES
   ================================ */
.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table td {
  vertical-align: middle;
  padding: 16px 12px;
}

/* ================================
   ALERTS
   ================================ */
.alert {
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  margin-top: 60px;
}

.footer h6 {
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.footer ul li {
  padding: 5px 0;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  cursor: pointer;
}

.footer ul li:hover {
  color: white;
  padding-left: 5px;
}

/* ================================
   CART COUNT BADGE
   ================================ */
.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

/* ================================
   URL/LINK ICON IN TITLES
   ================================ */
.card-header .fa-link {
  color: #ffc107 !important;
}

/* ================================
   PRODUCT IMAGE CAROUSEL
   ================================ */
.carousel-control-prev,
.carousel-control-next {
  width: 45px;
  height: 45px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-indicators {
  margin-bottom: 0.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.img-thumbnail {
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.img-thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ================================
   FEATURE CARDS
   ================================ */
.feature-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #e5e7eb;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--primary);
}

.feature-card h6 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

/* ================================
   SIDEBAR STYLING
   ================================ */
.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.gsm-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
  background: white;
}

.gsm-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 16px;
  font-weight: 800;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.gsm-card .list-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gsm-card .list-item:last-child {
  border-bottom: none;
}

.gsm-card .list-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.buyer-protection-card {
  background: linear-gradient(135deg, #fef2f2 0%, #fef5f5 100%);
  border: 2px solid #fecaca;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(220,38,38,0.1);
  transition: var(--transition);
}

.buyer-protection-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: rgba(220,38,38,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.buyer-protection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(220,38,38,0.15);
}

.protection-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.buyer-protection-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.buyer-protection-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.protection-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.feature-item i {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-slideInDown {
  animation: slideInDown 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Add stagger animation for product cards */
.product-card {
  animation: fadeInUp 0.4s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(n+5) { animation-delay: 0.25s; }

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1200px) {
  .search-form { max-width: 420px; }
  .nav-icons { gap: 6px; }
  .hero { padding: 80px 0; }
  .promo { padding: 40px 28px; }
  .hero-banner { padding: 50px 30px; }
  .hero-banner h2 { font-size: 2rem; }
}

@media (max-width: 992px) {
  .search-form { max-width: 100%; }
  .navbar .form-control { margin: 10px 0; }
  .nav-icons { margin-left: 0; justify-content: flex-end; }
  .hero {
    padding: 70px 0;
    text-align: center;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .promo { margin-bottom: 16px; }
  .features-section { padding: 20px; }
  .features-section .col-md-3 { padding: 15px 10px; }
  .sidebar-sticky { position: static; margin-top: 30px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 768px) {
  body { padding-top: 100px; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .product-card img { height: 150px; }
  .category-box { padding: 18px 12px; }
  .card { border-radius: 10px; }
  .table { font-size: 13px; }
  .table td, .table th { padding: 12px 10px; }
  
  /* Hero Banner Mobile Styles */
  .hero-banner {
    padding: 40px 20px;
    border-radius: 16px;
    min-height: auto;
  }
  
  .hero-banner .carousel-item {
    min-height: auto;
  }
  
  .hero-text {
    display: none;
  }
  
  .hero-product-image {
    text-align: center;
  }
  
  .product-image-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .product-image-wrapper img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
  }
  
  .product-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
  }
  
  .mobile-buy-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    white-space: nowrap;
  }
  
  .hero-banner .carousel-control-prev,
  .hero-banner .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .hero-banner .carousel-control-prev {
    left: 10px;
  }
  
  .hero-banner .carousel-control-next {
    right: 10px;
  }
  
  .hero-banner .carousel-control-icon i {
    font-size: 16px;
  }
  
  .hero-banner .carousel-indicators {
    bottom: 10px;
  }
  
  .hero-banner .carousel-indicators button {
    width: 8px;
    height: 8px;
  }
  
  .hero-banner .carousel-indicators button.active {
    width: 20px;
  }
  
  .hero-banner h2 { font-size: 1.6rem; }
}

@media (max-width: 576px) {
  .mobile-search form { width: 100%; }
  .nav-icon-link { padding: 6px 10px; }
  .price { font-size: 1rem; }
  .btn-danger, .btn-outline-danger { width: 100%; margin-top: 8px; }
  .promo h5 { font-size: 1.4rem; }
  .footer { margin-top: 40px; }
  .responsive-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-card-actions { gap: 6px; }
  .product-card-actions .btn { padding: 6px 8px; font-size: 0.75rem; }
}

/* Utility class for horizontal scrolling (wrap tables or wide blocks) */
.responsive-scroll { width: 100%; }

/* ================================
   COUNTDOWN TIMER
   ================================ */
#dealTimer {
  animation: pulse-timer 1s ease-in-out infinite;
}

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
