/*
 * MohsinMarkaz E-Commerce - Main Stylesheet
 * Premium Modern Design with 3D Effects
 */

/* ==================== CSS Variables ==================== */
:root {
  /* Primary Colors - Based on reference image */
  --primary-orange: #e87d0e;
  --primary-orange-dark: #d06700;
  --primary-orange-light: #f59e3d;

  /* Neutral Colors */
  --dark-bg: #2d2d2d;
  --darker-bg: #1a1a1a;
  --medium-gray: #4a4a4a;
  --light-gray: #8a8a8a;
  --off-white: #f5f5f5;
  --pure-white: #ffffff;

  /* Accent Colors */
  --success-green: #28a745;
  --warning-yellow: #ffc107;
  --danger-red: #dc3545;
  --info-blue: #17a2b8;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.25);
  --shadow-orange: 0 10px 40px rgba(232, 125, 14, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Fonts */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Playfair Display", serif;
}

/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--off-white);
  color: var(--dark-bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Page Background Animation */
.page-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

#page-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Ensure content stays above the animation */
.navbar,
.hero-section,
section,
.footer,
.page-header,
.container,
main,
.admin-wrapper {
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

.font-serif {
  font-family: var(--font-secondary);
}

/* ==================== Utility Classes ==================== */
.text-orange {
  color: var(--primary-orange);
}
.text-white {
  color: var(--pure-white);
}
.text-dark {
  color: var(--dark-bg);
}
.text-gray {
  color: var(--light-gray);
}

.bg-orange {
  background-color: var(--primary-orange);
}
.bg-dark {
  background-color: var(--dark-bg);
}
.bg-darker {
  background-color: var(--darker-bg);
}
.bg-white {
  background-color: var(--pure-white);
}
.bg-off-white {
  background-color: var(--off-white);
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-orange),
    var(--primary-orange-light)
  );
  border-radius: 2px;
}

.section-title p {
  color: var(--light-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-medium);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition-medium);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--primary-orange-dark)
  );
  color: var(--pure-white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(232, 125, 14, 0.4);
  color: var(--pure-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: var(--pure-white);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--dark-bg);
  color: var(--pure-white);
}

.btn-dark:hover {
  background: var(--darker-bg);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--pure-white);
  color: var(--dark-bg);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 50%;
}

/* ==================== Navigation ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all var(--transition-medium);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 45px;
}

.navbar-brand span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.navbar.scrolled .navbar-brand span,
.navbar-dark .navbar-brand span {
  color: var(--dark-bg);
}

.navbar-dark .navbar-brand span {
  color: var(--pure-white);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-bg);
  position: relative;
  padding: 5px 0;
}

.navbar-dark .nav-link {
  color: var(--pure-white);
}

.navbar.scrolled .nav-link {
  color: var(--dark-bg);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-orange);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-action-btn {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--dark-bg);
  font-size: 1.2rem;
  transition: var(--transition-medium);
}

.navbar-dark .nav-action-btn {
  color: var(--pure-white);
}

.navbar.scrolled .nav-action-btn {
  color: var(--dark-bg);
  background: var(--off-white);
}

.nav-action-btn:hover {
  background: var(--primary-orange);
  color: var(--pure-white);
  transform: scale(1.1);
}

.nav-action-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-orange);
  color: var(--pure-white);
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-switcher .lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.language-dropdown {
  min-width: 140px;
  padding: 0.5rem 0;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
}

.language-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.language-dropdown .dropdown-item:hover,
.language-dropdown .dropdown-item.active {
  background: var(--primary-orange);
  color: var(--pure-white);
}

.language-dropdown .lang-flag {
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-bg);
  cursor: pointer;
}

.navbar-dark .mobile-menu-btn {
  color: var(--pure-white);
}

/* Navigation Search Styles */
.nav-search-wrapper {
  position: relative;
}

.nav-search-form {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.nav-search-form:focus-within {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(232, 125, 14, 0.15);
}

.nav-search-input {
  width: 200px;
  padding: 10px 15px;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  color: var(--dark-bg);
}

.nav-search-input::placeholder {
  color: var(--light-gray);
}

.nav-search-btn {
  background: var(--primary-orange);
  border: none;
  color: var(--pure-white);
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-search-btn:hover {
  background: var(--primary-orange-dark);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--pure-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1050;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--off-white);
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--dark-bg);
}

.search-dropdown-item:hover {
  background: var(--off-white);
}

.search-dropdown-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-dropdown-item .item-info h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.search-dropdown-item .item-info small {
  color: var(--light-gray);
  font-size: 0.8rem;
}

.search-dropdown-item .item-price {
  margin-left: auto;
  font-weight: 600;
  color: var(--primary-orange);
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--light-gray);
}

.search-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--off-white);
  color: var(--primary-orange);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.search-view-all:hover {
  background: var(--primary-orange);
  color: var(--pure-white);
}

/* Brand text styling */
.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-bg);
  font-family: var(--font-primary);
}

.navbar.scrolled .brand-text,
.navbar-dark-mode .brand-text {
  color: var(--dark-bg);
}

/* Navbar dark mode adjustments */
.navbar-dark-mode {
  background: transparent;
}

.navbar-dark-mode .nav-link,
.navbar-dark-mode .brand-text {
  color: var(--pure-white);
}

.navbar-dark-mode.scrolled .nav-link,
.navbar-dark-mode.scrolled .brand-text {
  color: var(--dark-bg);
}

/* Bootstrap navbar overrides */
.navbar-toggler {
  border: none;
  padding: 10px;
  font-size: 1.25rem;
  color: var(--dark-bg);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-dark-mode .navbar-toggler {
  color: var(--pure-white);
}

.navbar.scrolled .navbar-toggler {
  color: var(--dark-bg);
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  padding: 10px 0;
  margin-top: 10px;
}

.navbar .dropdown-item {
  padding: 10px 20px;
  transition: var(--transition-fast);
}

.navbar .dropdown-item:hover {
  background: var(--off-white);
  color: var(--primary-orange);
}

.navbar .dropdown-item i {
  width: 20px;
}

.navbar .dropdown-header {
  font-size: 0.9rem;
}

/* ==================== Hero Section ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--medium-gray) 100%
  );
  overflow: hidden;
}

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 125, 14, 0.2);
  border: 1px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 20px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
  color: var(--primary-orange);
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 35px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 50%;
  z-index: 5;
  padding-top: 50px;
}

.hero-image img {
  max-height: 75vh;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

.hero-discount-badge {
    display: none !important;
  position: absolute;
  top: 150px;
  right: 50px;
  background: var(--primary-orange);
  color: var(--pure-white);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  animation: pulse 2s ease-in-out infinite;
  z-index: 20;
}

.hero-discount-badge .percent {
  font-size: 2rem;
  line-height: 1;
}

.hero-discount-badge .off {
  font-size: 0.9rem;
}

/* Floating shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-orange);
  top: 10%;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--primary-orange-light);
  bottom: 20%;
  right: 10%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--pure-white);
  top: 40%;
  left: 30%;
  animation: float 7s ease-in-out infinite;
}

/* ==================== Product Cards ==================== */
.product-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-medium);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(232, 125, 14, 0.15);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.product-badge {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-sale {
  background: var(--danger-red);
  color: var(--pure-white);
}

.badge-new {
  background: var(--success-green);
  color: var(--pure-white);
}

.badge-featured {
  background: var(--primary-orange);
  color: var(--pure-white);
}

.badge-out-of-stock {
  background: var(--medium-gray);
  color: var(--pure-white);
}

.product-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: all var(--transition-medium);
  z-index: 5;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-action-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--pure-white);
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  transform: translateY(20px);
}

.product-card:hover .product-action-btn {
  transform: translateY(0);
}

.product-card:hover .product-action-btn:nth-child(1) {
  transition-delay: 0s;
}
.product-card:hover .product-action-btn:nth-child(2) {
  transition-delay: 0.05s;
}
.product-card:hover .product-action-btn:nth-child(3) {
  transition-delay: 0.1s;
}

.product-action-btn:hover {
  background: var(--primary-orange);
  color: var(--pure-white);
  transform: scale(1.1);
}

.product-action-btn.active {
  background: var(--danger-red);
  color: var(--pure-white);
}

.product-card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.7rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-bg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
  line-height: 1.4;
}

.product-title:hover {
  color: var(--primary-orange);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.star-rating {
  color: var(--warning-yellow);
  font-size: 0.85rem;
}

.star-rating i {
  margin-right: 2px;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--light-gray);
}

.product-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.current-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-orange);
}

.original-price {
  font-size: 0.85rem;
  color: var(--light-gray);
  text-decoration: line-through;
}

.discount-percent {
  font-size: 0.7rem;
  background: rgba(232, 125, 14, 0.1);
  color: var(--primary-orange);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Product Card Buttons */
.product-card-buttons {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.product-card-buttons .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.product-card-buttons .btn i {
  font-size: 0.7rem;
}

.product-card-buttons .btn-outline-primary {
  border: 1.5px solid var(--primary-orange);
  color: var(--primary-orange);
  background: transparent;
}

.product-card-buttons .btn-outline-primary:hover {
  background: var(--primary-orange);
  color: var(--pure-white);
}

.product-card-buttons .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-dark) 100%
  );
  border: none;
  color: var(--pure-white);
}

.product-card-buttons .btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-orange-dark) 0%,
    #b85f0a 100%
  );
  transform: translateY(-1px);
}

/* Products Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ==================== Categories Section ==================== */
.categories-section {
  background: var(--pure-white);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all var(--transition-medium);
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: all var(--transition-medium);
}

.category-card:hover .category-overlay {
  background: linear-gradient(
    to top,
    rgba(232, 125, 14, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.category-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pure-white);
  margin-bottom: 5px;
}

.category-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.category-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-bg);
  transform: translate(50px, -50px);
  opacity: 0;
  transition: all var(--transition-medium);
}

.category-card:hover .category-arrow {
  transform: translate(0, 0);
  opacity: 1;
}

/* ==================== Featured Products ==================== */
.featured-section {
  background: var(--off-white);
}

.featured-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.featured-tab {
  padding: 12px 30px;
  background: var(--pure-white);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.featured-tab:hover,
.featured-tab.active {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.featured-tab.active {
  background: var(--primary-orange);
  color: var(--pure-white);
}

/* ==================== Flash Sale ==================== */
.flash-sale-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  position: relative;
  overflow: hidden;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.flash-sale-title h2 {
  color: var(--pure-white);
  margin: 0;
}

.flash-sale-title h2::after {
  display: none;
}

.flash-icon {
  font-size: 2rem;
  color: var(--primary-orange);
  animation: flash 1.5s ease-in-out infinite;
}

.countdown-timer {
  display: flex;
  gap: 15px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  text-align: center;
  min-width: 80px;
}

.countdown-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-orange);
  display: block;
}

.countdown-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* ==================== Banner Section ==================== */
.banner-section {
  padding: 40px 0;
}

.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.promo-banner:hover {
  transform: scale(1.02);
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.promo-content h3 {
  font-size: 2rem;
  color: var(--pure-white);
  margin-bottom: 10px;
}

.promo-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* ==================== Newsletter ==================== */
.newsletter-section {
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.newsletter-content {
  text-align: center;
  position: relative;
  z-index: 5;
}

.newsletter-content h2 {
  color: var(--pure-white);
  margin-bottom: 15px;
}

.newsletter-content h2::after {
  background: var(--pure-white);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  padding: 15px 35px;
  background: var(--dark-bg);
  color: var(--pure-white);
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--darker-bg);
  transform: scale(1.05);
}

/* ==================== Footer ==================== */
.footer {
  background: var(--darker-bg);
  color: var(--pure-white);
  padding-top: 80px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 20px 0;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-orange);
  transform: translateY(-5px);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-orange);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-orange);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--primary-orange);
  margin-top: 5px;
}

.footer-bottom {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.payment-methods {
  display: flex;
  gap: 15px;
}

.payment-methods img {
  height: 30px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.payment-methods img:hover {
  opacity: 1;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== Loading Spinner ==================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--off-white);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==================== Scroll to Top ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-orange);
  color: var(--pure-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  z-index: 999;
  box-shadow: var(--shadow-orange);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  background: var(--primary-orange-dark);
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .nav-search-wrapper {
    display: none;
  }

  .navbar-nav {
    padding-top: 15px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }

  .navbar-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 0;
  }

  .navbar-collapse {
    background: var(--pure-white);
    padding: 20px;
    margin: 15px -15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
  }

  .navbar-dark-mode .navbar-collapse {
    background: var(--darker-bg);
  }

  .language-switcher {
    order: -1;
  }

  .hero-section {
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    position: relative;
    max-width: 100%;
    margin-top: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-discount-badge {
    top: 80px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .countdown-timer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .product-card-image {
    height: 120px;
  }

  .product-card-content {
    padding: 10px;
  }

  .product-title {
    font-size: 0.75rem;
    margin-bottom: 5px;
    -webkit-line-clamp: 2;
  }

  .product-category {
    font-size: 0.6rem;
    margin-bottom: 4px;
  }

  .current-price {
    font-size: 0.85rem;
  }

  .original-price {
    font-size: 0.7rem;
  }

  .discount-percent {
    display: none;
  }

  .product-card-buttons {
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
  }

  .product-card-buttons .btn {
    padding: 6px 8px;
    font-size: 0.65rem;
  }

  .product-card-buttons .btn i {
    font-size: 0.6rem;
  }

  .product-badges {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .product-badge {
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .product-actions {
    gap: 5px;
  }

  .product-action-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .product-rating {
    margin-bottom: 6px;
  }

  .star-rating {
    font-size: 0.65rem;
  }

  .rating-count {
    font-size: 0.6rem;
  }

  /* 3 products per row on mobile */
  .products-grid,
  .row.g-4 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .row.g-4 > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .category-card {
    height: 250px;
  }

  .flash-sale-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Tablet view - 3 products per row */
@media (min-width: 577px) and (max-width: 991px) {
  .products-grid,
  .row.g-4 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
  }

  .row.g-4 > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .product-card-image {
    height: 180px;
  }
}

/* ==================== Chat Prompt Modal ==================== */
.chat-prompt-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.chat-prompt-modal.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.chat-prompt-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-prompt-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.chat-prompt-close:hover {
  background: #e0e0e0;
}

.chat-prompt-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-orange), #ff9f43);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.chat-prompt-icon i {
  font-size: 1.8rem;
  color: white;
}

.chat-prompt-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-bg);
}

.chat-prompt-content p {
  color: var(--light-gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.chat-prompt-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.chat-prompt-buttons .btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.chat-prompt-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), #ff9f43);
  border: none;
}

.chat-prompt-buttons .btn-success {
  background: #25d366;
  border: none;
}

.chat-prompt-content .btn-link {
  color: var(--light-gray);
  text-decoration: none;
}

.chat-prompt-content .btn-link:hover {
  color: var(--primary-orange);
}

@media (max-width: 576px) {
  .chat-prompt-buttons {
    flex-direction: column;
  }

  .chat-prompt-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== RTL Support (Urdu Language) ==================== */
html[dir="rtl"] {
  font-family:
    "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", var(--font-primary);
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .navbar-nav {
  padding-right: 0;
}

html[dir="rtl"] .navbar-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .me-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html[dir="rtl"] .me-3 {
  margin-right: 0 !important;
  margin-left: 1rem !important;
}

html[dir="rtl"] .ms-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

html[dir="rtl"] .ms-3 {
  margin-left: 0 !important;
  margin-right: 1rem !important;
}

html[dir="rtl"] .text-start {
  text-align: right !important;
}

html[dir="rtl"] .text-end {
  text-align: left !important;
}

html[dir="rtl"] .float-start {
  float: right !important;
}

html[dir="rtl"] .float-end {
  float: left !important;
}

html[dir="rtl"] .dropdown-menu-end {
  --bs-position: start;
}

html[dir="rtl"] .nav-search-input {
  padding-right: 15px;
  padding-left: 45px;
  text-align: right;
}

html[dir="rtl"] .nav-search-btn {
  left: 5px;
  right: auto;
}

html[dir="rtl"] .product-card {
  text-align: right;
}

html[dir="rtl"] .product-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .sidebar {
  border-left: 1px solid #eee;
  border-right: none;
}

html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  content: "\\";
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

html[dir="rtl"] .form-check {
  padding-left: 0;
  padding-right: 1.5em;
}

html[dir="rtl"] .form-check-input {
  float: right;
  margin-left: 0;
  margin-right: -1.5em;
}

html[dir="rtl"] .btn i.me-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html[dir="rtl"] .btn i.ms-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

html[dir="rtl"] .fa-star,
html[dir="rtl"] .rating {
  direction: ltr;
  display: inline-flex;
}

html[dir="rtl"] .price-section {
  direction: ltr;
  display: inline-block;
}

html[dir="rtl"] .order-summary {
  text-align: right;
}

html[dir="rtl"] .list-group-item {
  text-align: right;
}

html[dir="rtl"] .modal-header .btn-close {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .alert-dismissible .btn-close {
  right: auto;
  left: 0;
}

html[dir="rtl"] .footer-links,
html[dir="rtl"] .footer-contact {
  text-align: right;
}

html[dir="rtl"] .footer-social {
  justify-content: flex-end;
}

html[dir="rtl"] .cart-item-details {
  text-align: right;
}

html[dir="rtl"] .account-sidebar .list-group-item {
  text-align: right;
}

html[dir="rtl"] .account-sidebar .list-group-item i {
  margin-left: 0.75rem;
  margin-right: 0;
}

/* Add Urdu font */
@import url("https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap");

/* ==================== MOBILE RESPONSIVE FIXES ==================== */

/* Prevent horizontal overflow on all screens */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.container,
.row {
  /* max-width: 100%; */
}

/* ==================== Navbar Mobile Fix ==================== */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(
      135deg,
      var(--dark-bg) 0%,
      var(--medium-gray) 100%
    );
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 5px !important;
  }

  .nav-link {
    color: var(--pure-white) !important;
    padding: 12px 15px !important;
    border-radius: 10px;
    font-weight: 500 !important;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(232, 125, 14, 0.2);
    color: var(--primary-orange) !important;
  }

  .navbar-dark-mode .navbar-collapse .nav-link,
  .navbar.scrolled .navbar-collapse .nav-link {
    color: var(--pure-white) !important;
  }

  .navbar-actions {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-actions .nav-action-btn {
    color: var(--pure-white) !important;
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar-toggler {
    color: var(--dark-bg) !important;
    padding: 8px 12px;
  }

  .navbar-dark-mode .navbar-toggler {
    color: var(--pure-white) !important;
  }

  .navbar.scrolled .navbar-toggler {
    color: var(--dark-bg) !important;
  }

  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 5px 0;
  }

  .dropdown-menu .dropdown-item {
    color: var(--pure-white) !important;
  }

  .dropdown-menu .dropdown-item:hover {
    background: rgba(232, 125, 14, 0.2);
    color: var(--primary-orange) !important;
  }
}

/* ==================== Hero Section Mobile Fix ==================== */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-image {
    display: none !important;
  }

  .hero-discount-badge {
    display: none !important;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 15px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* ==================== Features Section Mobile Fix ==================== */
@media (max-width: 768px) {
  .feature-card {
    padding: 25px 15px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .feature-card h4 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .feature-card {
    padding: 20px 10px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .feature-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .feature-card p {
    font-size: 0.75rem;
  }
}

/* ==================== Shop Page Filters Mobile Fix ==================== */
@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
    gap: 15px;
    align-items: stretch !important;
  }

  .filters-bar .btn,
  .filters-bar select {
    width: 100%;
  }

  .sort-select,
  .filters-bar select {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==================== About Page Cards Fix ==================== */
.feature-card h5,
.feature-card h4 {
  color: var(--pure-white) !important;
}

.feature-card p {
  color: #ccc !important;
}

.mission-card h3 {
  color: var(--primary-orange) !important;
}

.mission-card p {
  color: #ccc !important;
}

/* ==================== Contact Page Form Fix ==================== */
.contact-form-wrapper {
  background: var(--dark-bg) !important;
}

.contact-form-wrapper h3,
.contact-form-wrapper .form-label {
  color: var(--pure-white) !important;
}

.contact-form-wrapper .form-control {
  background: var(--medium-gray) !important;
  border: 1px solid var(--light-gray) !important;
  color: var(--pure-white) !important;
}

.contact-form-wrapper .form-control::placeholder {
  color: var(--light-gray) !important;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary-orange) !important;
  box-shadow: 0 0 0 3px rgba(232, 125, 14, 0.2) !important;
}

.contact-item h5 {
  color: var(--dark-bg) !important;
}

.contact-item p {
  color: var(--light-gray) !important;
}

/* ==================== Product Detail Page Sticky Buttons ==================== */
.product-sticky-buttons {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pure-white);
  padding: 15px 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  gap: 10px;
}

.product-sticky-buttons .btn {
  flex: 1;
  padding: 12px 15px;
  font-weight: 600;
  border-radius: 10px;
}

@media (max-width: 991px) {
  .product-sticky-buttons {
    display: flex;
  }

  .product-details {
    padding-bottom: 100px;
  }
}

/* ==================== Footer Developer Credit ==================== */
.developer-credit {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--light-gray);
}

.developer-credit a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.developer-credit a:hover {
  color: var(--primary-orange-light);
  text-decoration: underline;
}

/* ==================== Product Cards Better Mobile Sizing ==================== */
@media (max-width: 576px) {
  /* Better 3-column grid for mobile */
  .products-grid,
  .row.g-4 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 0 5px;
  }

  .row.g-4 > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .product-card {
    border-radius: 12px;
    overflow: hidden;
  }

  .product-card-image {
    height: 130px;
    border-radius: 12px 12px 0 0;
  }

  .product-card-content {
    padding: 10px 8px;
  }

  .product-title {
    font-size: 0.7rem;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }

  .product-category {
    font-size: 0.55rem;
    margin-bottom: 4px;
  }

  .product-rating {
    margin-bottom: 5px;
  }

  .star-rating {
    font-size: 0.55rem;
  }

  .rating-count {
    font-size: 0.5rem;
  }

  .current-price {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .original-price {
    font-size: 0.6rem;
  }

  .discount-percent {
    font-size: 0.5rem;
    padding: 2px 4px;
  }

  .product-card-buttons {
    flex-direction: column;
    gap: 5px;
    padding-top: 8px;
  }

  .product-card-buttons .btn {
    padding: 6px 8px;
    font-size: 0.6rem;
    border-radius: 6px;
  }

  .product-card-buttons .btn i {
    font-size: 0.55rem;
  }

  .product-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
  }

  .product-badge {
    padding: 2px 5px;
    font-size: 0.5rem;
    border-radius: 4px;
  }

  .product-actions {
    gap: 4px;
    bottom: 8px;
    right: 8px;
  }

  .product-action-btn {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }
}

/* ==================== Category Cards Mobile Fix ==================== */
.category-card {
  position: relative;
  overflow: hidden;
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  padding: 20px;
  color: var(--pure-white);
}

.category-name {
  color: var(--pure-white) !important;
  font-weight: 600;
  margin-bottom: 5px;
}

.category-count {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .category-card {
    height: 180px;
  }

  .category-overlay {
    padding: 15px;
  }

  .category-name {
    font-size: 1rem;
  }

  .category-count {
    font-size: 0.75rem;
  }
}

/* ==================== Why Choose Section Compact Mobile ==================== */
@media (max-width: 768px) {
  .why-choose-section .row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .why-choose-section .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .why-card {
    padding: 18px 12px;
    border-radius: 12px;
  }

  .why-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .why-card h4 {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .why-card p {
    font-size: 0.7rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 400px) {
  .why-choose-section .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .why-card {
    padding: 14px 10px;
  }

  .why-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .why-card h4 {
    font-size: 0.75rem;
  }

  .why-card p {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
  }
}

/* ==================== Features Section Compact Mobile ==================== */
@media (max-width: 768px) {
  .section-padding .row.g-4:has(.feature-card) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .section-padding .row.g-4:has(.feature-card) > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}

@media (max-width: 576px) {
  .feature-card {
    padding: 15px 10px;
    border-radius: 12px;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .feature-card h4 {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }

  .feature-card p {
    font-size: 0.65rem;
    line-height: 1.4;
  }
}

/* ==================== Product Detail Page - Main Action Buttons Below Price ==================== */
.product-main-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 25px 0;
}

.product-main-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-main-actions .add-to-cart-main {
  background: linear-gradient(135deg, var(--primary-orange), #d06700);
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 125, 14, 0.3);
}

.product-main-actions .add-to-cart-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 125, 14, 0.45);
}

.product-main-actions .buy-now-main {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-main-actions .buy-now-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #3d3d3d, #2a2a2a);
}

.product-main-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 576px) {
  .product-main-actions {
    flex-direction: column;
    gap: 10px;
  }

  .product-main-actions .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* ==================== Product Detail Page - Visible Action Buttons ==================== */
.product-info-wrapper .product-actions,
.product-info .product-actions {
  display: flex !important;
  gap: 15px;
  margin-top: 25px;
  margin-bottom: 20px;
  visibility: visible !important;
  opacity: 1 !important;
}

.product-info-wrapper .product-actions .btn,
.product-info .product-actions .btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.product-info-wrapper .add-to-cart-btn,
.product-info .add-to-cart-btn {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    #d06700
  ) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(232, 125, 14, 0.3);
}

.product-info-wrapper .add-to-cart-btn:hover,
.product-info .add-to-cart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 125, 14, 0.5);
}

.product-info-wrapper .buy-now-btn,
.product-info .buy-now-btn {
  background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
  border: 2px solid #1a1a2e !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-info-wrapper .buy-now-btn:hover,
.product-info .buy-now-btn:hover {
  background: linear-gradient(135deg, #2a2a4e, #26315e) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
  .product-info-wrapper .product-actions,
  .product-info .product-actions {
    flex-direction: column;
    gap: 12px;
  }

  .product-info-wrapper .product-actions .btn,
  .product-info .product-actions .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
  }
}
