  --primary-color: #007bff;
  /* Sky Blue */
  --primary-hover: #0056b3;
  --secondary-color: #f1f5f9;
  /* Slate 100 */
  --accent-color: #f59e0b;
  /* Amber 500 */
  --accent-hover: #d97706;

  /* Status Colors */
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;

  /* Global Radius - 12px */
  --border-radius-global: 12px;

  /* Backgrounds & Surfaces */
  --bg-main: #f8fafc;
  /* Slate 50 - Main Background */
  --bg-card: #ffffff;
  /* White - Cards/Panels */
  --bg-hover: #f1f5f9;
  /* Slate 100 - Hover States */

  /* Text */
  --text-main: #0f172a;
  /* Slate 900 - Primary Text */
  --text-muted: #64748b;
  /* Slate 500 - Secondary/Muted Text */

  /* Borders */
  --border-color: #e2e8f0;
  /* Slate 200 */
  --border-radius-sm: 12px;
  --border-radius: 12px;
  --border-radius-lg: 12px;
  --border-radius-xl: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
  0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
  0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);

  /* Fonts */
  --font-heading: 'Outfit',
  sans-serif;
  --font-body: 'Outfit',
  sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  }

  /* Base Styles */
  body.light-theme {
      background-color: var(--bg-main);
      color: var(--text-main);
      font-family: var(--font-body);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
      font-family: var(--font-heading);
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 1rem;
  }

  a {
      color: var(--primary-color);
      text-decoration: none;
      transition: color var(--transition-fast);
  }

  .btn-accounthub-red {
      background-color: var(--primary-color) !important;
      color: #fff !important;
  }

  .btn-accounthub-red:hover {
      background-color: var(--primary-hover) !important;
  }

  .text-danger {
      color: var(--primary-color) !important;
  }

  .text-fav-red {
      color: #fe2c55 !important;
  }

  .bg-danger {
      background-color: var(--primary-color) !important;
      color: #fff !important;
  }

  .title-hover:hover {
      color: var(--primary-color) !important;
  }

  /* Announcement Bar */
  .announcement-bar {
      background: linear-gradient(90deg, #ca8a04 0%, var(--accent-color) 100%);
      color: #fff;
      padding: 0.5rem 0;
      font-size: 0.875rem;
      font-weight: 500;
      position: relative;
      display: none;
      z-index: 1040;
  }

  .announce-close {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.8);
      cursor: pointer;
      font-size: 1rem;
  }

  .announce-close:hover {
      color: #fff;
  }

  /* Navbar */
  .navbar {
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border-color);
      padding: 1rem 0;
      box-shadow: var(--shadow-sm);
      position: sticky;
      top: 0;
      z-index: 1030;
  }

  .brand-logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--font-heading);
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -2px;
  }

  .brand-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
      color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-glow);
  }

  .brand-text {
      color: var(--text-main);
  }

  .brand-highlight {
      color: var(--primary-color);
  }

  .nav-link {
      color: var(--text-muted) !important;
      font-weight: 500;
      padding: 0.5rem 1rem !important;
      border-radius: var(--border-radius);
      transition: all var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
      color: var(--primary-color) !important;
      background-color: var(--bg-hover);
  }

  /* Search Bar */
  .search-form {
      max-width: 500px;
      width: 100%;
  }

  .search-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      background-color: var(--bg-main);
      border: 1px solid var(--border-color);
      border-radius: var(--border-radius-xl);
      padding: 0.25rem;
      transition: all var(--transition-normal);
  }

  .search-wrapper:focus-within {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

  .search-icon {
      padding: 0 1rem;
      color: var(--text-muted);
  }

  .search-input {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text-main);
      padding: 0.5rem 0;
      outline: none;
  }

  .search-input::placeholder {
      color: #94a3b8;
  }

  .search-btn {
      background-color: var(--primary-color);
      color: white;
      border: none;
      padding: 0.5rem 1.5rem;
      border-radius: var(--border-radius-xl);
      font-weight: 600;
      transition: background-color var(--transition-fast);
  }

  .search-btn:hover {
      background-color: var(--primary-hover);
  }

  /* Icons & Badges */
  .icon-btn {
      background: var(--bg-hover);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-size: 1.1rem;
      transition: all var(--transition-fast);
      text-decoration: none;
  }

  .icon-btn:hover {
      background-color: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
  }

  .badge-count {
      position: absolute;
      top: -5px;
      right: -5px;
      background-color: var(--danger-color);
      color: white;
      font-size: 0.65rem;
      font-weight: 700;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid white;
  }

  /* Dropdowns */
  .dropdown-menu {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-lg);
      border-radius: var(--border-radius);
      padding: 0.5rem 0;
      margin-top: 0.5rem;
  }

  .dropdown-item {
      color: var(--text-main);
      padding: 0.5rem 1.5rem;
      transition: all var(--transition-fast);
  }

  .dropdown-item:hover {
      background-color: var(--bg-hover);
      color: var(--primary-color);
  }

  .dropdown-divider {
      border-top-color: var(--border-color);
  }

  /* Mega Menu */
  @media (min-width: 1200px) {
      .dropdown-mega {
          width: 300px;
      }
  }

  /* Buttons */
  .btn {
      font-weight: 600;
      border-radius: var(--border-radius);
      padding: 0.5rem 1.25rem;
      transition: all var(--transition-normal);
  }

  .btn-primary {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
      color: white;
  }

  .btn-primary:hover {
      background-color: var(--primary-hover);
      border-color: var(--primary-hover);
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
      color: white;
  }

  .btn-outline-primary {
      color: var(--primary-color);
      border-color: var(--primary-color);
  }

  .btn-outline-primary:hover {
      background-color: var(--primary-color);
      color: white;
  }

  .btn-warning {
      background-color: var(--accent-color);
      border-color: var(--accent-color);
      color: #fff;
  }

  .btn-warning:hover {
      background-color: var(--accent-hover);
      border-color: var(--accent-hover);
      color: #fff;
      transform: translateY(-1px);
  }

  .btn-circle {
      width: 40px;
      height: 40px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
  }

  /* Avatar */
  .avatar-sm {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background-color: var(--primary-color);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      overflow: hidden;
  }

  .avatar-sm img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .btn-account {
      background: var(--bg-hover);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      padding: 0.35rem 1rem 0.35rem 0.35rem;
      border-radius: 50px;
  }

  .btn-account:hover {
      background-color: var(--border-color);
      color: var(--text-main);
  }

  /* Hero Section */
  .hero-section {
      padding: 5rem 0;
      background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%),
          radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.05), transparent 40%);
      position: relative;
      overflow: hidden;
  }

  /* Product Cards */
  .product-card {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--border-radius-lg);
      overflow: hidden;
      transition: all var(--transition-normal);
      height: 100%;
      display: flex;
      flex-direction: column;
      position: relative;
      box-shadow: var(--shadow-sm);
  }

  .product-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary-color);
  }

  .product-badge {
      position: absolute;
      top: 1rem;
      left: 1rem;
      z-index: 2;
      background-color: var(--accent-color);
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: var(--border-radius);
      font-size: 0.75rem;
      font-weight: 600;
  }

  .product-img-wrapper {
      position: relative;
      padding-top: 65%;
      background-color: var(--bg-main);
      overflow: hidden;
  }

  .product-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
  }

  .product-card:hover .product-img {
      transform: scale(1.05);
  }

  .product-actions {
      position: absolute;
      bottom: -50px;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      padding: 1rem;
      background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
      transition: all var(--transition-normal);
      opacity: 0;
  }

  .product-card:hover .product-actions {
      bottom: 0;
      opacity: 1;
  }

  /* Category Cards */
  .category-card .card {
      transition: all var(--transition-fast);
      box-shadow: var(--shadow-sm);
  }

  .category-card:hover .card {
      transform: translateY(-3px);
      border-color: var(--primary-color) !important;
      box-shadow: var(--shadow-md);
  }

  .category-icon {
      width: 60px;
      height: 60px;
      background-color: var(--bg-hover);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      margin: 0 auto;
  }

  /* Service Box */
  .service-box {
      transition: all var(--transition-normal);
      box-shadow: var(--shadow-sm);
  }

  .service-box:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
      border-color: var(--primary-color) !important;
  }

  /* Footer */
  .main-footer {
      background-color: var(--bg-card);
      border-top: 1px solid var(--border-color);
      padding-top: 4rem;
  }

  .footer-title {
      color: var(--text-main);
      font-weight: 700;
  }

  .social-icon {
      width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: var(--bg-hover);
      color: var(--text-muted);
      border-radius: 50%;
      border: 1px solid var(--border-color);
  }

  .social-icon:hover {
      background-color: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
  }

  /* Custom Overrides for standard Bootstrap classes that we want to adapt to our light theme */
  .bg-dark {
      background-color: var(--bg-card) !important;
  }

  .text-white {
      color: var(--text-main) !important;
  }

  .text-light {
      color: var(--text-muted) !important;
  }

  .border-secondary {
      border-color: var(--border-color) !important;
  }

  .bg-secondary {
      background-color: var(--bg-hover) !important;
  }

  .table-dark {
      --bs-table-bg: var(--bg-card);
      --bs-table-color: var(--text-main);
      --bs-table-border-color: var(--border-color);
      --bs-table-striped-bg: var(--bg-hover);
  }

  .table-dark th {
      background-color: var(--bg-hover);
      color: var(--text-main);
      border-bottom: 2px solid var(--border-color);
  }

  .table-dark td {
      background-color: var(--bg-card);
      color: var(--text-muted);
      border-bottom: 1px solid var(--border-color);
  }

  /* Input Fields */
  .form-control,
  .form-select {
      background-color: var(--bg-main) !important;
      border: 1px solid var(--border-color) !important;
      color: var(--text-main) !important;
  }

  .form-control:focus,
  .form-select:focus {
      border-color: var(--primary-color) !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  }

  .input-group-text {
      background-color: var(--bg-hover) !important;
      border-color: var(--border-color) !important;
      color: var(--text-muted) !important;
  }

  /* Pagination */
  .page-link.bg-dark {
      background-color: var(--bg-card) !important;
      color: var(--text-main) !important;
      border-color: var(--border-color) !important;
  }

  .page-link.bg-dark:hover {
      background-color: var(--bg-hover) !important;
      text-decoration: none;
  }

  .page-item.active .page-link {
      background-color: var(--primary-color) !important;
      border-color: var(--primary-color) !important;
      color: white !important;
  }

  /* Swiper Nav */
  .swiper-button-next,
  .swiper-button-prev {
      color: var(--primary-color) !important;
      background: var(--bg-card);
      width: 40px !important;
      height: 40px !important;
      border-radius: 50%;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
      font-size: 1.2rem !important;
      font-weight: bold;
  }

  /* --- Advanced Premium UI Overrides for Light Mode --- */

  /* Hero Premium Adjustments */
  .hero-premium {
      background-color: var(--bg-main);
  }

  .text-gradient-primary {
      background: linear-gradient(to right, var(--primary-color), #8b5cf6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
  }

  .hero-bg-shapes {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      overflow: hidden;
      z-index: 0;
  }

  .shape {
      position: absolute;
      filter: blur(80px);
      border-radius: 50%;
      opacity: 0.6;
  }

  .shape-1 {
      top: -10%;
      left: -10%;
      width: 500px;
      height: 500px;
      background-color: rgba(37, 99, 235, 0.2);
  }

  .shape-2 {
      bottom: -20%;
      right: -10%;
      width: 600px;
      height: 600px;
      background-color: rgba(139, 92, 246, 0.15);
  }

  .shape-3 {
      top: 40%;
      left: 50%;
      width: 300px;
      height: 300px;
      background-color: rgba(245, 158, 11, 0.1);
  }

  /* Glassmorphism Classes */
  .glass-card {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.5);
  }

  /* Floating Animations */
  @keyframes float {
      0% {
          transform: translateY(0px)
      }

      50% {
          transform: translateY(-15px)
      }

      100% {
          transform: translateY(0px)
      }
  }

  .float-anim {
      animation: float 6s ease-in-out infinite;
  }

  .float-anim-delayed {
      animation: float 6s ease-in-out infinite;
      animation-delay: 3s;
  }

  /* Misc Utilities */
  .tracking-wide {
      letter-spacing: 0.1em;
  }

  .shadow-2xl {
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }

  /* Avatar Groups */
  .avatar-group img {
      transition: transform 0.2s ease;
  }

  .avatar-group img:hover {
      transform: translateY(-3px);
      z-index: 3;
  }

  /* Fancy Category Box */
  .category-box {
      background-color: var(--bg-card);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .category-box:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  }

  .category-icon-wrapper {
      width: 75px;
      height: 75px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
      font-size: 2rem;
      transition: all 0.3s ease;
  }

  .category-box:hover .category-icon-wrapper {
      background: linear-gradient(135deg, var(--primary-color) 0%, #4338ca 100%);
      color: white;
  }

  .category-icon-gradient {
      background: linear-gradient(to right, var(--primary-color), #4338ca);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      transition: all 0.3s ease;
  }

  .category-box:hover .category-icon-gradient {
      background: none;
      -webkit-text-fill-color: white;
      color: white;
  }

  .group-hover-text {
      transition: color 0.3s ease;
  }

  .category-box:hover .group-hover-text {
      color: var(--primary-color) !important;
      font-weight: 600;
  }

  /* Custom Premium Product Cards */
  .custom-product-card {
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .custom-product-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
  }

  .custom-product-card .img-box {
      height: 220px;
      border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }

  .custom-product-card img {
      transition: transform 0.7s ease;
  }

  .custom-product-card:hover img {
      transform: scale(1.1);
  }

  .badge-float {
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 3;
  }

  .hover-actions {
      position: absolute;
      bottom: -60px;
      left: 0;
      transition: bottom 0.4s ease, opacity 0.4s ease;
      opacity: 0;
      z-index: 3;
      padding-bottom: 20px;
      background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  }

  .custom-product-card:hover .hover-actions {
      bottom: 0;
      opacity: 1;
  }

  .action-btn {
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      border: none;
  }

  .action-btn:hover {
      transform: scale(1.1) translateY(-2px);
      background-color: var(--primary-color);
      color: white !important;
  }

  .product-title-line {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.4;
      min-height: 2.8rem;
  }

  /* Service Premium Cards */
  .service-premium-card {
      background-color: var(--bg-card);
  }

  .service-premium-card:hover {
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
      transform: translateY(-5px);
      border-color: var(--primary-color) !important;
  }

  .service-premium-card:hover .service-icon-box {
      background-color: var(--primary-color) !important;
      color: white !important;
  }

  /* Buttons */
  .btn-hover-lift {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn-hover-lift:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4) !important;
  }

  /* Background utilities */
  .bg-main {
      background-color: var(--bg-main) !important;
  }


  /* --- Custom Header specific overrides --- */

  .fw-black {
      font-weight: 900 !important;
  }

  .fs-9 {
      font-size: 0.85rem !important;
  }

  .nav-top-link {
      transition: color 0.2s ease;
  }

  .nav-top-link:hover {
      color: #df0000 !important;
  }

  .top-floating-nav {
      border: 1px solid rgba(0, 0, 0, 0.03);
  }

  .icon-hover {
      transition: transform 0.2s ease, filter 0.2s;
  }

  .icon-hover:hover {
      transform: scale(1.1);
      filter: brightness(0.8);
  }

  .btn-accounthub-red {
      background-color: #df0000 !important;
      color: white !important;
      transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .btn-accounthub-red:hover {
      background-color: #b90000 !important;
      transform: translateY(-1px);
  }

  .search-main-input:focus {
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
      outline: none !important;
  }

  body.light-theme {
      background-color: #f7f8f9 !important;
  }

  .card,
  .glass-card {
      border: 1px solid rgba(0, 0, 0, 0.03) !important;
  }

  /* Rounded corners override - 12px based on user reference */
  .btn,
  .card,
  .form-control,
  .dropdown-menu,
  .rounded,
  .rounded-1,
  .rounded-2,
  .rounded-3,
  .rounded-4,
  .rounded-5,
  .rounded-pill,
  .badge,
  .alert,
  .product-store-card,
  .search-main-input,
  .bg-white,
  .bg-light {
      border-radius: 12px !important;
  }
/* --- Cart & UI Enhancements --- */
@keyframes pulse-quick {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.animate-pulse-quick {
    animation: pulse-quick 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.add-to-cart.is-loading {
    cursor: wait;
    opacity: 0.8;
}

.add-to-cart i.fa-spinner {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- RESPONSIVE MEDIA QUERIES (A TO Z) --- */

@media (max-width: 1200px) {
    .container { max-width: 95% !important; }
    .mega-menu-container { width: 100% !important; min-width: 0 !important; left: 0 !important; top: 100% !important; position: absolute !important; }
}

@media (max-width: 992px) {
    .top-bar-classic .container { flex-direction: column; text-align: center; gap: 10px; }
    .top-bar-classic .d-flex { flex-wrap: wrap; justify-content: center !important; }
    
    .hero-section { padding: 3rem 0; text-align: center; }
    .hero-section h1 { font-size: 2.5rem; }
    
    .search-form { max-width: 100%; margin-top: 15px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0.5rem 0; }
    .brand-logo { font-size: 1.25rem; }
    
    .footer-section { text-align: center; }
    .footer-section .d-flex { justify-content: center !important; }
    
    .product-card { margin-bottom: 20px; }
    
    .fs-1 { font-size: 2rem !important; }
    .fs-2 { font-size: 1.5rem !important; }
    .fs-3 { font-size: 1.25rem !important; }
}

@media (max-width: 576px) {
    .container { padding-left: 15px !important; padding-right: 15px !important; }
    
    .top-bar-classic { font-size: 0.7rem; }
    .top-bar-classic .gap-4 { gap: 10px !important; }
    
    .brand-logo .fs-3 { font-size: 1.2rem !important; }
    
    .btn { padding: 0.4rem 1rem; font-size: 0.85rem; }
    
    .mega-menu-container { width: 100vw !important; left: -15px !important; }
    .main-cats-col { width: 150px !important; }
}

/* Ensure images and tables don't break layout */
img { max-width: 100%; height: auto; }
.table-responsive { border: 0; }

/* Force standard radius on mobile */
@media (max-width: 768px) {
    .rounded-4, .rounded-5, .rounded-pill {
        border-radius: 8px !important;
    }
}
/* --- MOBILE RESPONSIVENESS (ACCORDING TO USER SPEC) --- */

/* Responsive Images */
img {
    max-width: 100%;
    height: auto !important;
    object-fit: cover;
}

/* Global Responsive Utilities */
@media (max-width: 1024px) {
    /* Small Desktop Adjustments */
}

@media (max-width: 768px) {
    /* Tablet & Below */
    
    /* Layout: Multi-column to single-column */
    .row > * {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    .d-flex:not(.flex-nowrap) {
        flex-direction: column !important;
    }
    
    /* Typography */
    h1 { font-size: clamp(24px, 5vw, 32px) !important; }
    h2 { font-size: clamp(20px, 4vw, 26px) !important; }
    h3 { font-size: clamp(18px, 3.5vw, 22px) !important; }
    body { font-size: 15px !important; line-height: 1.6; }
    
    /* Buttons */
    .btn {
        width: 100% !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    /* Forms */
    .form-control, .form-select, textarea {
        width: 100% !important;
        font-size: 16px !important; /* Prevents iOS Zoom */
        padding: 12px 16px !important;
    }
    
    /* Spacing */
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .section-padding, .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Tables */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hero / Banners */
    .hero-section {
        height: auto !important;
        padding: 3rem 1rem !important;
        text-align: center;
    }
    
    .hero-section .d-flex {
        align-items: center !important;
        justify-content: center !important;
    }

    /* Admin Sidebar - Adjust for Mobile */
    #sidebar {
        position: fixed !important;
        left: -260px;
        transition: left 0.3s ease;
        height: 100vh !important;
    }
    #sidebar.open {
        left: 0;
    }
    #main-viewport {
        margin-left: 0 !important;
        padding: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    /* Mobile Devices */
    h1 { font-size: 26px !important; }
    .card-body { padding: 1rem !important; }
    .gap-4 { gap: 1rem !important; }
    .px-4 { px: 1rem !important; }
}

/* Fixed/Sticky Header Fixes */
.sticky-top-mobile {
    position: sticky !important;
    top: 0;
    z-index: 1020;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Card layout for tables on very small screens */
@media (max-width: 576px) {
    .table-to-cards thead { display: none; }
    .table-to-cards tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }
    .table-to-cards td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
    }
    .table-to-cards td::before {
        content: attr(data-label);
        font-weight: 800;
        text-transform: uppercase;
        font-size: 10px;
        color: #888;
    }
}
