/* ============================================
   HamzaTech Ecommerce CMS - Main Stylesheet
   Version: 1.0.0
   ============================================ */

/* ============================================
   1. CSS Custom Properties
   ============================================ */
:root {
  /* Core Brand */
  --primary: #f7941d;
  --primary-hover: #e5871a;
  --primary-light: rgba(247, 148, 29, 0.1);
  --primary-lighter: rgba(247, 148, 29, 0.05);
  --accent-orange: #f7941d;

  /* Neutrals */
  --dark: #3b3f46;
  --darker: #2d3036;
  --bg-white: #ffffff;
  --white: #ffffff;
  --bg-light: #f5f5f5;
  --light-gray: #f5f5f5;
  --border: #e5e5e5;
  --border-color: #e9ecef;
  --text: #333333;
  --text-dark: #333333;
  --text-secondary: #6c757d;
  --text-muted: #6c757d;

  /* Semantic */
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;

  /* Shadows — Premium depth system */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Glass / Premium effects */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-blur: blur(16px);
  --gradient-primary: linear-gradient(135deg, #f7941d 0%, #f9a825 50%, #ff6f00 100%);
  --gradient-dark: linear-gradient(135deg, #2d3036 0%, #3b3f46 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(247,148,29,0.05) 0%, rgba(247,148,29,0.02) 100%);

  /* Radii */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.75;

  /* Layout */
  --header-height: 70px;
  --announcement-height: 40px;
}

/* ============================================
   2. Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--text);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Selection Color */
::selection {
  background-color: var(--primary);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--primary);
  color: #ffffff;
}

/* Scrollbar Styling - Webkit */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #ccc var(--bg-light);
}

/* ============================================
   2b. Premium Utility Classes
   ============================================ */

/* Button - Orange Primary */
.btn-orange {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.btn-orange::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: left 0.5s ease;
}

.btn-orange:hover {
  background: linear-gradient(135deg, #e5861a 0%, #e89420 50%, #e55d00 100%) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.35);
}

.btn-orange:hover::before {
  left: 100%;
}

.btn-orange:active {
  transform: translateY(0) scale(0.97) !important;
  box-shadow: 0 2px 8px rgba(247, 148, 29, 0.25);
}

/* Button - Outline Orange */
.btn-outline-orange {
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-outline-orange:hover {
  background: var(--accent-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.25);
}

.btn-outline-orange:active {
  transform: translateY(0) scale(0.97);
}

/* Section Title with premium underline */
.section-title {
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 80px;
}

/* Section Header Layout */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* View All Link */
.view-all-link {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover {
  color: #e5861a;
  gap: 8px;
}

/* Background utilities */
.bg-light-gray { background-color: var(--light-gray); }
.text-orange { color: var(--accent-orange) !important; }

/* Sticky Section */
.sticky-section {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Premium Card Glass Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   3. Announcement Bar
   ============================================ */
.announcement-bar {
  background-color: var(--darker);
  color: #ffffff;
  text-align: center;
  padding: 8px 15px;
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 1001;
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar p {
  color: #ffffff;
  margin: 0;
  font-size: var(--font-size-sm);
}

.announcement-bar a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: var(--font-weight-semibold);
}

.announcement-bar a:hover {
  color: #ffffff;
}

.announcement-bar .announcement-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition);
}

.announcement-bar .announcement-close:hover {
  opacity: 1;
}

/* ============================================
   4. Header
   ============================================ */
.header {
  background-color: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.header-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo .logo-text {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  letter-spacing: -0.5px;
}

.header-logo .logo-text span {
  color: var(--primary);
}

.header-logo img {
  height: 40px;
  width: auto;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 600px;
  margin: 0 30px;
  position: relative;
}

.header-search .search-wrapper {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 50px;
  overflow: hidden;
  height: 45px;
}

.header-search .search-category {
  background-color: var(--bg-light);
  border: none;
  padding: 0 15px;
  height: 100%;
  font-size: var(--font-size-sm);
  color: var(--text);
  cursor: pointer;
  border-right: 1px solid var(--border);
  min-width: 130px;
  outline: none;
}

.header-search input[type="text"] {
  flex: 1;
  border: none;
  padding: 0 15px;
  height: 100%;
  font-size: var(--font-size-sm);
  outline: none;
  color: var(--text);
  background: transparent;
}

.header-search input[type="text"]::placeholder {
  color: var(--text-muted);
}

.header-search .search-btn {
  background-color: var(--primary);
  border: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.header-search .search-btn:hover {
  background-color: var(--primary-hover);
}

.header-search .search-btn i {
  font-size: 18px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
}

.header-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header-action-btn i {
  font-size: 20px;
}

.header-action-btn .action-label {
  display: none;
}

.header-action-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-action-btn .cart-total {
  display: none;
}

/* Desktop Navigation */
.header-nav {
  background-color: var(--darker);
}

.header-nav .nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.nav-menu li > a:hover,
.nav-menu li.active > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-menu li > a i {
  font-size: 12px;
}

/* Dropdown */
.nav-menu li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: 8px 0;
}

.nav-menu li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu li .dropdown li a {
  padding: 10px 20px;
  font-size: var(--font-size-sm);
  color: var(--text);
  display: block;
}

.nav-menu li .dropdown li a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
  padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   5. Offcanvas Mobile Menu
   ============================================ */
.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.offcanvas-overlay.active {
  opacity: 1;
  visibility: visible;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: #ffffff;
  z-index: 2001;
  transition: var(--transition);
  overflow-y: auto;
}

.offcanvas-menu.active {
  left: 0;
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.offcanvas-header h5 {
  margin: 0;
  font-size: var(--font-size-lg);
}

.offcanvas-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

.offcanvas-body {
  padding: 20px;
}

.offcanvas-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

.offcanvas-nav li a:hover {
  color: var(--primary);
}

.offcanvas-nav li a i {
  font-size: 12px;
  color: var(--text-muted);
}

.offcanvas-actions {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

.offcanvas-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text);
  font-size: var(--font-size-base);
}

.offcanvas-actions a:hover {
  color: var(--primary);
}

/* ============================================
   6. Hero Slider
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 450px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide .slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 90%;
  max-width: 700px;
}

.hero-content .subtitle {
  font-size: var(--font-size-lg);
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: var(--font-size-5xl);
  color: #ffffff;
  margin-bottom: 20px;
  line-height: var(--line-height-tight);
}

.hero-content p {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

.hero-content .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Slider Navigation Arrows */
.hero-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 20px;
  color: var(--text);
}

.hero-slider .slider-arrow:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.hero-slider .slider-arrow.prev {
  left: 20px;
}

.hero-slider .slider-arrow.next {
  right: 20px;
}

/* Slider Dots */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-slider .slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider .slider-dots .dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.hero-slider .slider-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   7. Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary Button */
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(247, 148, 29, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.45);
}

/* Dark Button */
.btn-dark {
  background-color: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.btn-dark:hover {
  background-color: var(--darker);
  border-color: var(--darker);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

/* White Button */
.btn-white {
  background-color: #ffffff;
  color: var(--text);
  border-color: #ffffff;
}

.btn-white:hover {
  background-color: var(--bg-light);
  color: var(--text);
  transform: translateY(-2px);
}

/* Light Button */
.btn-light {
  background-color: var(--bg-light);
  color: var(--text);
  border-color: var(--border);
}

.btn-light:hover {
  background-color: var(--border);
  color: var(--text);
}

/* Danger Button */
.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Rounded Full */
.btn-rounded {
  border-radius: 50px;
}

/* Button Sizes */
.btn-sm {
  padding: 8px 20px;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--font-size-base);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   8. Section Titles
   ============================================ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}

.section-title.center {
  flex-direction: column;
  text-align: center;
}

.section-title h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin: 0;
}

.section-title .subtitle {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  margin-top: 8px;
}

.section-title.center .subtitle {
  margin-bottom: 10px;
}

.section-title .view-all {
  font-size: var(--font-size-sm);
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.section-title .view-all:hover {
  color: var(--primary-hover);
}

/* ============================================
   9. Product Cards
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

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

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

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

/* Product Badges */
.product-card .badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--dark);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card .badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Wishlist Button */
.product-card .wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
}

.product-card .wishlist-btn:hover {
  background-color: var(--danger);
  color: #ffffff;
}

.product-card .wishlist-btn.active {
  background-color: var(--danger);
  color: #ffffff;
}

/* Product Quick Actions */
.product-card .product-actions {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-card .product-actions .action-btn {
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
}

.product-card .product-actions .action-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Product Info */
.product-card .product-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-brand {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.product-card .product-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  margin-bottom: 8px;
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.5em;
}

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

/* Rating */
.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.product-card .product-rating .stars {
  display: flex;
  gap: 2px;
}

.product-card .product-rating .stars i {
  color: var(--primary);
  font-size: 12px;
}

.product-card .product-rating .stars i.empty {
  color: var(--border);
}

.product-card .product-rating .rating-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Price */
.product-card .product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  margin-top: auto;
}

.product-card .product-price .price-current {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text);
}

.product-card .product-price .price-sale {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
}

.product-card .product-price .price-regular {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .product-price .discount-percent {
  font-size: var(--font-size-xs);
  color: var(--danger);
  font-weight: var(--font-weight-semibold);
  background-color: rgba(220, 53, 69, 0.1);
  padding: 2px 8px;
  border-radius: 50px;
}

/* Add to Cart */
.product-card .product-cart-btn {
  width: 100%;
  padding: 11px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card .product-cart-btn:hover {
  background-color: var(--primary-hover);
}

/* ============================================
   10. Category Cards
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-card .category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  text-align: center;
}

.category-card .category-overlay h3 {
  color: #ffffff;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 5px;
}

.category-card .category-overlay .product-count {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
}

/* ============================================
   11. Section Padding
   ============================================ */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

.section-padding-lg {
  padding: 100px 0;
}

/* ============================================
   12. Features / Services Bar
   ============================================ */
.features-bar {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 30px 20px;
  border-right: 1px solid var(--border);
  text-align: left;
}

.feature-item:last-child {
  border-right: none;
}

.feature-item .feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.feature-item .feature-text h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-bottom: 3px;
  color: var(--text);
}

.feature-item .feature-text p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   13. Featured Products Tabs
   ============================================ */
.products-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 35px;
  border-bottom: 2px solid var(--border);
}

.products-tabs .tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-family: var(--font-family);
}

.products-tabs .tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.products-tabs .tab-btn:hover {
  color: var(--text);
}

.products-tabs .tab-btn.active {
  color: var(--primary);
}

.products-tabs .tab-btn.active::after {
  transform: scaleX(1);
}

/* ============================================
   14. Newsletter / CTA Section
   ============================================ */
.newsletter-section {
  background-color: var(--darker);
  padding: 60px 0;
}

.newsletter-content {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-content h3 {
  color: #ffffff;
  font-size: var(--font-size-2xl);
  margin-bottom: 10px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: var(--font-size-sm);
  outline: none;
  font-family: var(--font-family);
}

.newsletter-form button {
  padding: 14px 28px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

/* ============================================
   15. Cart Page
   ============================================ */
.cart-page {
  padding: 40px 0;
}

.cart-page h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: 30px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

/* Cart Table */
.cart-table {
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.cart-table thead {
  background-color: var(--bg-light);
}

.cart-table thead th {
  padding: 14px 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.cart-table tbody td {
  padding: 20px;
  vertical-align: middle;
}

/* Cart Item Product */
.cart-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-product .product-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-light);
}

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

.cart-product .product-details h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin-bottom: 4px;
}

.cart-product .product-details h6 a {
  color: var(--text);
}

.cart-product .product-details h6 a:hover {
  color: var(--primary);
}

.cart-product .product-details .variant {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Quantity Input */
.quantity-input {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-input button {
  width: 36px;
  height: 36px;
  background-color: var(--bg-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
  font-size: 14px;
}

.quantity-input button:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.quantity-input input {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  outline: none;
}

/* Remove Button */
.cart-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: var(--transition);
}

.cart-remove:hover {
  color: #a71d2a;
  transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: sticky;
  top: 100px;
}

.cart-summary h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: var(--font-size-sm);
}

.cart-summary .summary-row span:first-child {
  color: var(--text-secondary);
}

.cart-summary .summary-row span:last-child {
  font-weight: var(--font-weight-semibold);
}

.cart-summary .summary-row.total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--border);
  font-size: var(--font-size-lg);
}

.cart-summary .summary-row.total span:last-child {
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  font-size: var(--font-size-xl);
}

/* Coupon */
.cart-summary .coupon-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cart-summary .coupon-form {
  display: flex;
  gap: 8px;
}

.cart-summary .coupon-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  outline: none;
  font-family: var(--font-family);
}

.cart-summary .coupon-form input:focus {
  border-color: var(--primary);
}

.cart-summary .coupon-form button {
  padding: 10px 18px;
}

.cart-summary .checkout-btn {
  margin-top: 20px;
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty .empty-icon {
  font-size: 60px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cart-empty h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 10px;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* ============================================
   16. Checkout Page
   ============================================ */
.checkout-page {
  padding: 40px 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  align-items: start;
}

.checkout-form-section {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.checkout-form-section h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

/* Form Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  color: var(--text);
  background-color: #ffffff;
  transition: var(--transition);
  outline: none;
}

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

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover {
  border-color: var(--primary);
}

.payment-method.selected {
  border-color: var(--primary);
  background-color: var(--primary-lighter);
}

.payment-method input[type="radio"] {
  accent-color: var(--primary);
}

.payment-method .payment-icon {
  font-size: 24px;
  color: var(--text);
}

.payment-method .payment-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Checkout Summary */
.checkout-summary {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: sticky;
  top: 100px;
}

.checkout-summary h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary .summary-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary .summary-item .item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-light);
}

.checkout-summary .summary-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary .summary-item .item-info {
  flex: 1;
}

.checkout-summary .summary-item .item-info h6 {
  font-size: var(--font-size-sm);
  margin-bottom: 4px;
}

.checkout-summary .summary-item .item-info .item-qty {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.checkout-summary .summary-item .item-info .item-price {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.checkout-summary .place-order-btn {
  margin-top: 20px;
}

/* ============================================
   17. Product Detail Page
   ============================================ */
.product-detail {
  padding: 40px 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}

.product-gallery .main-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 15px;
  background-color: var(--bg-light);
  aspect-ratio: 1;
}

.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.product-gallery .main-image:hover img {
  transform: scale(1.05);
}

.product-gallery .thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.product-gallery .thumbnails .thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}

.product-gallery .thumbnails .thumb.active {
  border-color: var(--primary);
}

.product-gallery .thumbnails .thumb:hover {
  border-color: var(--primary);
}

.product-gallery .thumbnails .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-detail-info h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: 10px;
}

.product-detail-info .product-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.product-detail-info .product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-detail-info .product-rating .stars i {
  color: var(--primary);
  font-size: 14px;
}

.product-detail-info .product-rating .rating-count {
  color: var(--text-muted);
}

.product-detail-info .product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.product-detail-info .product-price-block .current-price {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
}

.product-detail-info .product-price-block .original-price {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-info .product-price-block .discount-badge {
  font-size: var(--font-size-sm);
  color: var(--danger);
  font-weight: var(--font-weight-semibold);
}

.product-detail-info .product-short-desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: var(--line-height-relaxed);
}

/* Variant Selector */
.variant-selector {
  margin-bottom: 25px;
}

.variant-selector label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 10px;
}

.variant-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-option {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: var(--transition);
  background: #ffffff;
  font-family: var(--font-family);
}

.variant-option:hover {
  border-color: var(--primary);
}

.variant-option.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Color Options */
.color-options {
  display: flex;
  gap: 10px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.color-option:hover {
  outline-color: var(--primary);
}

.color-option.active {
  outline-color: var(--primary);
}

/* Add to Cart Section */
.product-cart-section {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  align-items: center;
}

.product-cart-section .quantity-input {
  border-radius: var(--radius-sm);
}

.product-cart-section .add-to-cart-btn {
  flex: 1;
}

/* Product Features */
.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
}

.product-features .feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.product-features .feature i {
  color: var(--success);
  font-size: 16px;
}

/* ============================================
   18. Product Tabs
   ============================================ */
.product-tabs-section {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.product-tabs-section .nav-tabs {
  border-bottom: 2px solid var(--border);
  display: flex;
  gap: 0;
  margin-bottom: 30px;
}

.product-tabs-section .nav-tabs .nav-item {
  margin: 0;
}

.product-tabs-section .nav-tabs .nav-link {
  padding: 14px 24px;
  border: none;
  background: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-family: var(--font-family);
}

.product-tabs-section .nav-tabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.product-tabs-section .nav-tabs .nav-link:hover {
  color: var(--text);
}

.product-tabs-section .nav-tabs .nav-link.active {
  color: var(--primary);
}

.product-tabs-section .nav-tabs .nav-link.active::after {
  transform: scaleX(1);
}

.product-tabs-section .tab-content {
  min-height: 200px;
}

.tab-pane p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Specifications Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

.spec-table td {
  padding: 12px 16px;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border);
}

.spec-table td:first-child {
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  width: 200px;
}

.spec-table td:last-child {
  color: var(--text-secondary);
}

/* Reviews */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.review-item .review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-item .review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-item .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
}

.review-item .review-author-info h6 {
  font-size: var(--font-size-sm);
  margin-bottom: 2px;
}

.review-item .review-author-info .review-date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.review-item .review-stars {
  display: flex;
  gap: 2px;
}

.review-item .review-stars i {
  color: var(--primary);
  font-size: 12px;
}

.review-item .review-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Review Form */
.review-form {
  margin-top: 30px;
  padding: 25px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
}

.review-form h4 {
  margin-bottom: 20px;
}

.review-form .star-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.review-form .star-rating i {
  font-size: 22px;
  color: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.review-form .star-rating i.active,
.review-form .star-rating i:hover {
  color: var(--primary);
}

/* ============================================
   19. Blog
   ============================================ */
.blog-page {
  padding: 40px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Featured Post */
.blog-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-featured .featured-image {
  overflow: hidden;
}

.blog-featured .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-featured:hover .featured-image img {
  transform: scale(1.05);
}

.blog-featured .featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Blog Card */
.blog-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-card .card-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.blog-card .card-content {
  padding: 22px;
}

.blog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.blog-card .card-meta .reading-time {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: var(--font-weight-semibold);
}

.blog-card .card-content h4 {
  font-size: var(--font-size-lg);
  margin-bottom: 10px;
  line-height: var(--line-height-tight);
}

.blog-card .card-content h4 a {
  color: var(--text);
}

.blog-card .card-content h4 a:hover {
  color: var(--primary);
}

.blog-card .card-content p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.blog-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--bg-light);
  color: var(--text-secondary);
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  transition: var(--transition);
}

.blog-tags .tag:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Author Info */
.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-author .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--primary-light);
}

.blog-author .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author .author-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.blog-author .author-date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================
   20. Search Page
   ============================================ */
.search-page {
  padding: 40px 0;
}

.search-hero {
  background-color: var(--bg-light);
  padding: 40px 0;
  margin-bottom: 30px;
}

.search-hero .search-bar-lg {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-hero .search-bar-lg input {
  width: 100%;
  padding: 16px 55px 16px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: var(--font-size-lg);
  outline: none;
  font-family: var(--font-family);
  transition: var(--transition);
  background-color: #ffffff;
}

.search-hero .search-bar-lg input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.search-hero .search-bar-lg .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.search-results-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  position: sticky;
  top: 100px;
}

.filter-sidebar h4 {
  font-size: var(--font-size-base);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h5 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 12px;
  color: var(--text);
}

.filter-group .filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-group .filter-option input[type="checkbox"] {
  accent-color: var(--primary);
}

.filter-group .price-range {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-group .price-range input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  outline: none;
}

.filter-group .price-range input:focus {
  border-color: var(--primary);
}

.filter-group .price-range span {
  color: var(--text-muted);
}

/* ============================================
   21. Contact Page
   ============================================ */
.contact-page {
  padding: 40px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-section {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 35px;
}

.contact-form-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: 5px;
}

.contact-form-section > p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
}

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

.contact-info-card .info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-card h5 {
  font-size: var(--font-size-base);
  margin-bottom: 5px;
}

.contact-info-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

/* Map Placeholder */
.contact-map {
  margin-top: 25px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================
   22. Customer / Account Pages
   ============================================ */
.account-page {
  padding: 40px 0;
}

.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

/* Account Sidebar */
.account-sidebar {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-sidebar .sidebar-header {
  padding: 25px 20px;
  text-align: center;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.account-sidebar .sidebar-header .user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-light);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
}

.account-sidebar .sidebar-header h5 {
  font-size: var(--font-size-base);
  margin-bottom: 3px;
}

.account-sidebar .sidebar-header p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0;
}

.account-sidebar .sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.account-sidebar .sidebar-nav li a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.account-sidebar .sidebar-nav li a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.account-sidebar .sidebar-nav li.active a {
  background-color: var(--primary-lighter);
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
  border-left: 3px solid var(--primary);
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

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

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card .stat-icon.orange {
  background-color: var(--primary-light);
  color: var(--primary);
}

.stat-card .stat-icon.dark {
  background-color: rgba(59, 63, 70, 0.1);
  color: var(--dark);
}

.stat-card .stat-icon.green {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.stat-card .stat-icon.blue {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info);
}

.stat-card .stat-info h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-info p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0;
}

/* Account Content */
.account-content {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.account-content h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table thead {
  background-color: var(--bg-light);
}

.orders-table thead th {
  padding: 12px 16px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.orders-table tbody td {
  padding: 16px;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.orders-table tbody tr:hover {
  background-color: var(--bg-light);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.status-badge.pending {
  background-color: rgba(255, 193, 7, 0.15);
  color: #d4a20a;
}

.status-badge.processing {
  background-color: rgba(23, 162, 184, 0.15);
  color: var(--info);
}

.status-badge.shipped {
  background-color: rgba(59, 63, 70, 0.15);
  color: var(--dark);
}

.status-badge.delivered {
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--success);
}

.status-badge.cancelled {
  background-color: rgba(220, 53, 69, 0.15);
  color: var(--danger);
}

/* Address Cards */
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.address-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  position: relative;
  transition: var(--transition);
}

.address-card:hover {
  border-color: var(--primary);
}

.address-card.default {
  border-color: var(--primary);
}

.address-card .default-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.address-card h5 {
  font-size: var(--font-size-base);
  margin-bottom: 10px;
}

.address-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 5px;
  line-height: var(--line-height-relaxed);
}

.address-card .address-actions {
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

.address-card .address-actions a {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   23. Auth Pages (Login / Register)
   ============================================ */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--bg-light);
}

.auth-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 45px;
  width: 100%;
  max-width: 440px;
}

.auth-card .auth-header {
  text-align: center;
  margin-bottom: 35px;
}

.auth-card .auth-header h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: 8px;
}

.auth-card .auth-header p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.auth-card .auth-form .form-group {
  margin-bottom: 18px;
}

.auth-card .auth-form .form-control {
  padding: 14px 16px;
}

.auth-card .auth-form .forgot-link {
  display: block;
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--primary);
  margin-bottom: 20px;
}

.auth-card .auth-form .forgot-link:hover {
  color: var(--primary-hover);
}

.auth-card .auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.auth-card .auth-divider span {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Social Login Buttons */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family);
}

.social-btn:hover {
  background-color: var(--bg-light);
}

.social-btn.google {
  border-color: #db4437;
  color: #db4437;
}

.social-btn.facebook {
  border-color: #4267B2;
  color: #4267B2;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.auth-card .auth-footer a {
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   24. 404 Page
   ============================================ */
.page-404 {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-content .error-code {
  font-size: 140px;
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 15px;
  letter-spacing: -5px;
}

.error-content h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: 10px;
}

.error-content p {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.error-content .error-search {
  max-width: 400px;
  margin: 0 auto 30px;
  display: flex;
  gap: 0;
}

.error-content .error-search input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px 0 0 50px;
  font-size: var(--font-size-sm);
  outline: none;
  font-family: var(--font-family);
}

.error-content .error-search input:focus {
  border-color: var(--primary);
}

.error-content .error-search button {
  border-radius: 0 50px 50px 0;
}

.error-content .error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ============================================
   25. Footer
   ============================================ */
.footer {
  background-color: var(--darker);
  color: #ffffff;
  padding-top: 70px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col h4 {
  font-size: var(--font-size-lg);
  color: #ffffff;
  margin-bottom: 22px;
  font-weight: var(--font-weight-bold);
}

.footer-col p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--line-height-relaxed);
}

.footer-col .footer-links li {
  margin-bottom: 10px;
}

.footer-col .footer-links li a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-col .footer-links li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Footer Contact */
.footer-col .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
}

.footer-col .footer-contact li i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 3px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Footer Payment */
.footer-payments {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.footer-payments .payment-icon {
  width: 50px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-bottom .footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .footer-bottom-links a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-bottom-links a:hover {
  color: var(--primary);
}

/* ============================================
   26. Utility Classes
   ============================================ */

/* Text Colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dark { color: var(--dark) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-white { color: #ffffff !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Background Colors */
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-darker { background-color: var(--darker) !important; }
.bg-white { background-color: #ffffff !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }

/* Font Weights */
.fw-normal { font-weight: var(--font-weight-normal) !important; }
.fw-medium { font-weight: var(--font-weight-medium) !important; }
.fw-semibold { font-weight: var(--font-weight-semibold) !important; }
.fw-bold { font-weight: var(--font-weight-bold) !important; }

/* Rounded */
.rounded-full { border-radius: 50px !important; }
.rounded { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius) !important; }

/* Shadows */
.shadow-soft { box-shadow: var(--shadow) !important; }
.shadow-hover { box-shadow: var(--shadow-hover) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Spacing */
.section-padding { padding: 80px 0; }
.section-title { margin-bottom: 35px; }

/* Badge Utility */
.badge-new {
  background-color: var(--dark);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background-color: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price Utilities */
.price-sale {
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

.price-regular {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Product Card Utility */
.product-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Category Card Utility */
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

/* No Transition */
.no-transition {
  transition: none !important;
}

/* Overflow */
.overflow-hidden { overflow: hidden !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-block { display: inline-block !important; }

/* Flex Utilities */
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.gap-10 { gap: 10px !important; }
.gap-15 { gap: 15px !important; }
.gap-20 { gap: 20px !important; }
.gap-25 { gap: 25px !important; }
.gap-30 { gap: 30px !important; }

/* Width */
.w-100 { width: 100% !important; }

/* Margin Utilities */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.p-20 { padding: 20px !important; }
.p-30 { padding: 30px !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }

/* ============================================
   27. Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease forwards; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.5s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease forwards; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Transitions */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Image Zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 15px;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1;
}

/* Lazy Image Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
  opacity: 1;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 30px auto;
}

/* ============================================
   28. Container
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.container-lg {
  max-width: 1400px;
}

.container-sm {
  max-width: 900px;
}

/* ============================================
   29. Breadcrumbs
   ============================================ */
.breadcrumb-section {
  background-color: var(--bg-light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li a {
  color: var(--text-muted);
}

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

.breadcrumb li .separator {
  color: var(--text-muted);
  font-size: 10px;
}

.breadcrumb li.current {
  color: var(--text);
  font-weight: var(--font-weight-medium);
}

/* ============================================
   30. Pagination
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination .page-item a,
.pagination .page-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text);
  transition: var(--transition);
}

.pagination .page-item a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-item.active a {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pagination .page-item.disabled a,
.pagination .page-item.disabled span {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ============================================
   31. Alerts
   ============================================ */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info);
  border: 1px solid rgba(23, 162, 184, 0.2);
}

/* ============================================
   32. Toast Notifications
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--primary);
}

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

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

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

.toast .toast-icon {
  font-size: 20px;
}

.toast .toast-message {
  flex: 1;
  font-size: var(--font-size-sm);
}

.toast .toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================
   33. Modal
   ============================================ */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.custom-modal-overlay.active .custom-modal {
  transform: scale(1);
}

.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
}

.custom-modal-header h3 {
  font-size: var(--font-size-lg);
  margin: 0;
}

.custom-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.custom-modal-body {
  padding: 25px;
}

.custom-modal-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================
   34. Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  font-size: 18px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* ============================================
   35. Quick View Modal
   ============================================ */
.quick-view-modal .custom-modal {
  max-width: 800px;
}

.quick-view-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.quick-view-gallery {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-light);
}

.quick-view-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   36. Loading Overlay
   ============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-overlay .loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   37. Wishlist Page
   ============================================ */
.wishlist-page {
  padding: 40px 0;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.wishlist-empty {
  text-align: center;
  padding: 80px 20px;
}

.wishlist-empty .empty-icon {
  font-size: 60px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ============================================
   38. Compare Page
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: var(--font-size-sm);
}

.compare-table th {
  background-color: var(--bg-light);
  font-weight: var(--font-weight-semibold);
  width: 150px;
  text-align: left;
}

.compare-table .product-col {
  min-width: 200px;
}

.compare-table .product-col img {
  max-height: 150px;
  margin: 0 auto 10px;
}

/* ============================================
   39. Terms & Policy Pages
   ============================================ */
.content-page {
  padding: 50px 0;
}

.content-page h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: 30px;
}

.content-page h2 {
  font-size: var(--font-size-xl);
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-page p {
  margin-bottom: 15px;
  line-height: var(--line-height-relaxed);
}

.content-page ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.content-page ul li {
  list-style: disc;
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* ============================================
   40. Responsive Design
   ============================================ */

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

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .hero-content h1 {
    font-size: var(--font-size-4xl);
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .header-search {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-nav {
    display: none;
  }

  .header-action-btn .action-label {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item:nth-child(2) {
    border-right: none;
  }

  .feature-item:nth-child(3),
  .feature-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery {
    position: static;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    order: -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .hero-slider {
    height: 55vh;
    min-height: 380px;
  }

  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }

  .section-padding {
    padding: 60px 0;
  }

  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-view-layout {
    grid-template-columns: 1fr;
  }

  .search-results-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: none;
  }

  .filter-sidebar.mobile-open {
    display: block;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  .header-main {
    padding: 0 15px;
    height: 60px;
  }

  .header-logo .logo-text {
    font-size: 20px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-action-btn {
    padding: 6px 8px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-slider {
    height: 50vh;
    min-height: 350px;
  }

  .hero-content .subtitle {
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
  }

  .hero-content h1 {
    font-size: var(--font-size-2xl);
  }

  .hero-content p {
    font-size: var(--font-size-sm);
  }

  .hero-slider .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero-slider .slider-arrow.prev {
    left: 10px;
  }

  .hero-slider .slider-arrow.next {
    right: 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-title h2 {
    font-size: var(--font-size-xl);
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input[type="email"] {
    border-radius: 50px;
  }

  .newsletter-form button {
    border-radius: 50px;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-cart-section {
    flex-direction: column;
  }

  .product-cart-section .add-to-cart-btn {
    width: 100%;
  }

  .product-tabs-section .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .product-tabs-section .nav-tabs .nav-link {
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    white-space: nowrap;
  }

  .error-content .error-code {
    font-size: 100px;
  }

  .auth-card {
    padding: 30px 25px;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 15px;
    right: 15px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575px) {
  .container {
    padding: 0 15px;
  }

  html {
    font-size: 14px;
  }

  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  h3 { font-size: var(--font-size-lg); }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card .product-info {
    padding: 12px;
  }

  .product-card .product-name {
    font-size: var(--font-size-sm);
    min-height: 2em;
    -webkit-line-clamp: 2;
  }

  .product-card .product-price .price-current,
  .product-card .product-price .price-sale {
    font-size: var(--font-size-base);
  }

  .product-card .product-cart-btn {
    padding: 9px;
    font-size: var(--font-size-xs);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    aspect-ratio: 3 / 4;
  }

  .category-card .category-overlay h3 {
    font-size: var(--font-size-base);
  }

  .hero-slider {
    height: 45vh;
    min-height: 300px;
  }

  .hero-content h1 {
    font-size: var(--font-size-xl);
  }

  .hero-content .hero-cta .btn {
    padding: 10px 24px;
    font-size: var(--font-size-xs);
  }

  .section-padding {
    padding: 40px 0;
  }

  .newsletter-section {
    padding: 40px 0;
  }

  .newsletter-content h3 {
    font-size: var(--font-size-xl);
  }

  .blog-card .card-content {
    padding: 16px;
  }

  .blog-card .card-content h4 {
    font-size: var(--font-size-base);
  }

  .search-hero {
    padding: 25px 0;
  }

  .search-hero .search-bar-lg input {
    padding: 14px 50px 14px 18px;
    font-size: var(--font-size-base);
  }

  .error-content .error-code {
    font-size: 80px;
  }

  .error-content .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: var(--radius);
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   41. Admin Panel Responsive
   ============================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background-color: var(--darker);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
}

.admin-content {
  padding: 30px;
  background-color: var(--bg-light);
  overflow-y: auto;
}

.admin-sidebar-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1100;
  background-color: var(--dark);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (max-width: 991px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: -280px;
    width: 280px;
    z-index: 1050;
  }

  .admin-sidebar.active {
    left: 0;
  }

  .admin-sidebar-toggle {
    display: flex;
  }

  .admin-content {
    padding: 20px;
    padding-top: 65px;
  }
}

/* ============================================
   42. Print Styles
   ============================================ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .header,
  .header-nav,
  .announcement-bar,
  .footer,
  .footer-bottom,
  .back-to-top,
  .mobile-menu-toggle,
  .offcanvas-menu,
  .offcanvas-overlay,
  .breadcrumb-section,
  .newsletter-section,
  .features-bar,
  .product-cart-btn,
  .wishlist-btn,
  .product-actions,
  .cart-remove,
  .btn,
  .pagination,
  .toast-container,
  .custom-modal-overlay,
  .loading-overlay {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Invoice / Order Print */
  .cart-page,
  .checkout-page,
  .account-page {
    padding: 0;
  }

  .cart-table,
  .orders-table,
  .spec-table {
    border: 1px solid #000;
  }

  .cart-table th,
  .cart-table td,
  .orders-table th,
  .orders-table td,
  .spec-table td {
    border: 1px solid #000;
    padding: 8px 12px;
    font-size: 11pt;
  }

  .cart-table thead,
  .orders-table thead {
    background-color: #eee !important;
  }

  .cart-summary,
  .checkout-summary {
    border: 1px solid #000;
    padding: 15px;
  }

  .cart-summary .summary-row.total {
    border-top: 2px solid #000;
    font-size: 14pt;
  }

  .invoice-print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
  }

  .invoice-print-header h1 {
    font-size: 24pt;
  }

  .invoice-print-footer {
    display: block !important;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #000;
    text-align: center;
    font-size: 10pt;
  }

  .status-badge {
    border: 1px solid #000;
    padding: 2px 8px;
    font-size: 9pt;
  }

  .product-card,
  .category-card,
  .blog-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  .product-card .product-image,
  .category-card img,
  .blog-card .card-image {
    max-height: 200px;
    overflow: hidden;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 2cm;
  }
}

/* ============================================
   PREMIUM ANIMATION SYSTEM — Mobile First
   ============================================ */

/* --- Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes bounceIn {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  60%  { transform: scale(0.9); }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(247, 148, 29, 0); }
}

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

/* --- Scroll Reveal System --- */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 50ms; }
.reveal-delay-2 { transition-delay: 100ms; }
.reveal-delay-3 { transition-delay: 150ms; }
.reveal-delay-4 { transition-delay: 200ms; }
.reveal-delay-5 { transition-delay: 250ms; }
.reveal-delay-6 { transition-delay: 300ms; }
.reveal-delay-7 { transition-delay: 350ms; }
.reveal-delay-8 { transition-delay: 400ms; }

/* Desktop: slightly larger reveal distances */
@media (min-width: 768px) {
  .reveal {
    transform: translateY(25px);
    transition-duration: 0.5s;
  }
}

/* --- Page-Level Smoothness --- */
#main-content {
  animation: fadeIn 0.3s ease-out;
}

.notice-bar-animated {
  animation: slideDown 0.4s ease-out;
}

/* --- Touch & Interaction Enhancements --- */
a, button, input, select, textarea, .product-card, .premium-category-card {
  -webkit-tap-highlight-color: transparent;
}

button, a, .product-card a, .premium-category-card {
  touch-action: manipulation;
}

/* Smooth focus rings */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
  border-color: var(--primary, #f7941d) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Button tap feedback */
.btn:active,
.btn-orange:active,
.btn-outline-orange:active,
button[type="submit"]:active {
  transform: scale(0.96) !important;
  transition-duration: 0.1s !important;
}

/* --- Search Bar Enhancement --- */
.search-bar-wrapper {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-bar-wrapper:focus-within {
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--accent-orange, #f7941d) !important;
}

/* --- Cart Badge Bounce --- */
.cart-badge-bounce {
  animation: bounceIn 0.4s ease;
}

/* --- Product Card (Global — replaces per-card inline styles) --- */
.product-card {
  background: #fff;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color, #e9ecef);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Image area: fixed 1:1 aspect ratio — never grows/shrinks */
.product-card .product-image-area {
  flex-shrink: 0;
}

/* Info section fills remaining card height so title/price always align */
.product-card .p-3 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-image-link img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Quick-add overlay — always visible on mobile */
.product-card .product-actions {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .product-card .product-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wishlist button */
.product-card .wishlist-toggle-btn {
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.product-card .wishlist-toggle-btn:hover {
  transform: scale(1.15);
}

.product-card .wishlist-toggle-btn:active {
  transform: scale(0.9);
}

/* Sale price glow */
.product-card .sale-price {
  color: var(--accent-orange, #f7941d);
  font-weight: 700;
}

/* Image skeleton shimmer while loading */
.product-card .product-image-area {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

.product-card .product-image-area img.loaded {
  animation: none;
}

/* --- Category Card (Global — replaces per-card style blocks) --- */
.premium-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  background: #151515;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2a2a2a;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.premium-category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(65deg, transparent 40%, rgba(247, 148, 29, 0.9) 40%, rgba(247, 148, 29, 0.9) 41%, transparent 41%, transparent 46%, rgba(247, 148, 29, 0.5) 46%, rgba(247, 148, 29, 0.5) 47.5%, transparent 47.5%),
    linear-gradient(-50deg, transparent 35%, rgba(247, 148, 29, 0.7) 35%, rgba(247, 148, 29, 0.7) 36%, transparent 36%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.35s ease;
}

.premium-category-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right center, transparent 0%, #151515 80%);
  z-index: 1;
  pointer-events: none;
}

.premium-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(247, 148, 29, 0.15);
  border-color: #4a2e12;
}

.premium-category-card:hover::before {
  opacity: 1;
}

.premium-category-card .category-content {
  position: relative;
  z-index: 3;
  padding-left: 20px;
  width: 55%;
}

.premium-category-card .category-title {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
  letter-spacing: 1px;
  line-height: 1.2;
}

.premium-category-card .category-image-wrapper {
  position: relative;
  z-index: 2;
  width: 45%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
}

.premium-category-card .category-img {
  max-height: 130%;
  max-width: 140%;
  object-fit: contain;
  filter: drop-shadow(-8px 8px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-right: -10px;
}

.premium-category-card:hover .category-img {
  transform: scale(1.12) translateX(-5px);
}

.premium-category-card .fallback-icon {
  font-size: 2.5rem;
  opacity: 0.1;
  transition: opacity 0.3s;
}

.premium-category-card:hover .fallback-icon {
  opacity: 0.3;
}

/* --- Category Nav Smooth Scroll (Mobile) --- */
.category-nav-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

.category-nav-scroll > a {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Category nav link hover */
.category-nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.category-nav-link:hover {
  color: var(--accent-orange, #f7941d) !important;
}

.category-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-orange, #f7941d);
  transition: width 0.25s ease, left 0.25s ease;
}

.category-nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* --- Footer Link & Social Styles (replaces inline JS) --- */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-orange, #f7941d);
  padding-left: 4px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  background: var(--accent-orange, #f7941d);
  color: #fff;
  transform: scale(1.1);
}

/* --- Newsletter Input Enhancement --- */
.newsletter-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}

.newsletter-btn {
  transition: background 0.25s ease, transform 0.25s ease;
}

.newsletter-btn:hover {
  background: #222 !important;
  transform: translateY(-1px);
}

.newsletter-btn:active {
  transform: scale(0.96);
}

/* --- Back-to-Top Smooth --- */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#back-to-top:hover {
  transform: scale(1.1);
}

#back-to-top:active {
  transform: scale(0.95);
}

/* --- Toast Enhancement --- */
.toast-container .toast {
  animation: slideInRight 0.35s ease-out;
}

@media (max-width: 767.98px) {
  .toast-container .toast {
    animation-name: slideDown;
  }
}

/* --- Content Visibility for Below-Fold --- */
.below-fold-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* --- Reduced Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn,
  .button,
  a {
    pointer-events: none !important;
  }

  #main-content {
    animation: none !important;
  }
}

/* ============================================
   43. Premium Animations & Interactions
   ============================================ */

/* Cart Badge Bounce */
@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-badge-bounce {
  animation: badgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }

/* Image Hover Zoom */
.hover-zoom {
  overflow: hidden;
}
.hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hover-zoom:hover img {
  transform: scale(1.05);
}

/* Hide default browser spin buttons on number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
