:root {
    --primary-color: #7371fc;
    --primary-hover: #5d5bfa;
    --secondary-color: #4caf50;
    --secondary-hover: #43a047;
    --text-color: #374151;
    --text-secondary: #6b7280;
    --background-color: #f9fafb;
    --card-bg: #ffffff;
    --footer-bg: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease;
    --animation-timing: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --primary-color: #8c7dff;
    --primary-hover: #9f92ff;
    --secondary-color: #66bb6a;
    --secondary-hover: #78c67d;
    --text-color: #e5e7eb;
    --text-secondary: #9ca3af;
    --background-color: #111827;
    --card-bg: #1f2937;
    --footer-bg: #1a1e2b;
    --border-color: #374151;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -2px rgba(0,0,0,0.2);
}

/* Dark mode text color fixes */
[data-theme="dark"] body {
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation bar dark mode fixes */
[data-theme="dark"] .navbar,
[data-theme="dark"] header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(140, 125, 255, 0.15);
}

/* Card fixes for dark mode */
[data-theme="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-title {
    color: var(--text-color);
}

[data-theme="dark"] .card-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

/* Product page fixes for dark mode */
[data-theme="dark"] .strength-selector .btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .strength-selector .btn-outline-secondary:hover {
    background-color: rgba(140, 125, 255, 0.15);
}

[data-theme="dark"] .strength-selector .btn-outline-secondary.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-secondary);
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
}

/* Form control fixes for dark mode */
[data-theme="dark"] .form-control {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Button fixes for dark mode */
[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-secondary {
    color: #fff;
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-success {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Badge text color fixes */
[data-theme="dark"] .badge.bg-warning {
    color: #212529;
}

[data-theme="dark"] .badge.bg-success,
[data-theme="dark"] .badge.bg-danger,
[data-theme="dark"] .badge.bg-primary,
[data-theme="dark"] .badge.bg-info {
    color: #ffffff;
}

/* Product detail page specific fixes */
[data-theme="dark"] .product-detail {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .delivery-info {
    border-color: var(--border-color) !important;
}

/* Theme toggle style improvements */
#theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

#theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(30deg);
}

[data-theme="dark"] #theme-toggle {
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Footer dark mode fixes */
[data-theme="dark"] .footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
}

/* Alert color fixes for dark mode */
[data-theme="dark"] .alert-success,
[data-theme="dark"] .alert-warning,
[data-theme="dark"] .alert-danger,
[data-theme="dark"] .alert-info {
    color: #212529;
}

/* Star rating color fixes */
[data-theme="dark"] .bi-star,
[data-theme="dark"] .bi-star-fill {
    color: #ffc107 !important;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* AOS Animation Support */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--animation-timing), transform 0.6s var(--animation-timing);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s var(--animation-timing), transform 0.6s var(--animation-timing);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s var(--animation-timing), transform 0.6s var(--animation-timing);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s var(--animation-timing), transform 0.6s var(--animation-timing);
}

.aos-animate {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
}

/* Base styles */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Modern header styling */
header {
    box-shadow: var(--shadow-md);
    background-color: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    animation: fadeIn 0.6s ease-out;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 0.25rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-item {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }

/* Dropdown menu animation */
.dropdown-menu-animate {
    animation: fadeIn 0.3s ease;
    transform-origin: top;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.dropdown-menu-animate .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-menu-animate .dropdown-item:hover {
    background-color: rgba(114, 113, 252, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-menu-animate .dropdown-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Cart animation */
.cart-pulse:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Hero section styling */
.hero-section {
    background-color: var(--card-bg);
    padding: 4rem 0;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(114, 113, 252, 0.05) 0%, rgba(114, 113, 252, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section h1 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-section p.lead {
    color: var(--text-secondary);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

/* Modern card styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    overflow: hidden;
    height: 100%; /* Ensure equal height cards */
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 15;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* More efficient product card styling */
.product-card .card-body, .card .card-body {
  padding: 1rem !important; /* Reduced padding */
  flex: 0 1 auto; /* Don't grow to fill space */
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

/* Ensure product images are consistent */
.card-img-top {
  height: 200px;
  object-fit: contain;
  padding: 0.75rem;
}

.card-body {
    padding: 1.5rem;
    flex: 1; /* Flex grow to fill available space */
    display: flex;
    flex-direction: column;
}

/* Make product titles and descriptions more compact */
.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-text {
  margin-bottom: 0.75rem;
}

.card-footer {
  padding: 0.75rem 1rem !important;
  background-color: transparent;
  border-top: 1px solid var(--border-color);
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: auto; /* Push content to top */
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Brand and product cards */
.brand-card img, .product-card img, .card img.card-img-top {
    transition: transform 0.3s ease;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    height: 200px;
}

.brand-card:hover img, .product-card:hover img {
    transform: scale(1.05);
}

.brand-card img {
    height: 120px;
    object-fit: contain;
}

.product-card img {
    height: 200px;
    object-fit: contain;
    padding: 1.5rem;
}

.product-card .card-body {
    border-top: 1px solid var(--border-color);
}

.product-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

/* Footer styling */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    margin-top: 4rem;
    clear: both;
    position: relative;
    margin-top: 80px; /* Increased space after content */
    z-index: 1;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Social icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(114, 113, 252, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Product detail styling */
.product-detail img {
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background-color: var(--card-bg);
    padding: 1.5rem;
}

/* Larger product image on product detail page */
.product-detail {
  max-height: 600px !important; /* Increased from the default 450px */
  object-fit: contain;
  width: 100%;
  transition: transform 0.3s ease;
}

/* Enhanced product image card styling */
.col-lg-5 .card {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0.5rem;
  background-color: var(--card-bg);
}

/* Make sure the image takes proper space */
.col-lg-5 .card img.product-detail {
  padding: 1rem;
  margin: 0 auto;
  display: block;
}

/* Add hover effect for better user experience */
.col-lg-5 .card:hover .product-detail {
  transform: scale(1.02);
}

/* Improve image quality */
.product-detail {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
  .product-detail {
    max-height: 400px !important;
  }
}

.strength-selector .btn {
    min-width: 60px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.strength-selector .btn-outline-primary:not(.active):hover {
    background-color: rgba(114, 113, 252, 0.1);
    color: var(--primary-color);
}

.strength-selector .btn-primary.active {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(114, 113, 252, 0.3);
}

/* Form styling */
.auth-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border-color: var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 113, 252, 0.2);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.input-group-text {
    border-color: var(--border-color);
    background-color: rgba(114, 113, 252, 0.05);
    color: var(--primary-color);
}

/* Animate form validation feedback */
.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Cart and orders styling */
.cart-table th, .cart-table td {
    vertical-align: middle;
    padding: 1rem;
}

.order-card {
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

/* Info section styling */
.info-section {
    background-color: var(--card-bg) !important;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    margin: 3rem 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Button styling */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(114, 113, 252, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(114, 113, 252, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-sm);
}

.badge-promotion {
    background-color: #ff6b6b;
    color: white;
}

.badge-new {
    background-color: #51cf66;
    color: white;
}

/* Dark mode toggle button */
#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

#theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

/* Animate fade-in class */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Helper classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Fix for brand-filtered products display */
.products-container {
  overflow: visible;
  width: 100%;
  clear: both;
  margin-bottom: 2rem; /* Reduced bottom margin */
  position: relative;
  z-index: 20; /* Higher z-index to ensure products appear above other elements */
}

/* Position products correctly when filtering by brand */
.featured-products {
  position: relative;
  z-index: 5;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Keep brand-filtered products at top of content */
.brand-products {
  position: relative;
  z-index: 25;
  margin-top: 20px;
  order: -1; /* Ensure these appear first in flex containers */
  margin-bottom: 1.5rem;
}

/* Ensure product cards display properly */
.product-card {
  position: relative;
  z-index: 15;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem !important;
}

/* Ensure proper card body styling for products */
.product-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  order: 2; /* Ensure body appears after image */
}

/* Ensure the footer stays below content */
footer, .footer {
  clear: both;
  position: relative;
  margin-top: 80px; /* Increased space after content */
  z-index: 1;
}

/* Make sure product rows clear properly */
.row.row-cols-1.row-cols-md-2.row-cols-lg-3.g-4 {
  clear: both;
  position: relative;
  z-index: 15;
  margin-bottom: 3rem;
}

/* Special styling for brand info card to reduce empty space */
.col-lg-9 .card.rounded-4.shadow-sm.mb-4 {
  background: transparent;
  border: none;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.col-lg-9 .card.rounded-4.shadow-sm.mb-4 .card-body {
  padding: 0.5rem 0 !important;
  margin-bottom: 0;
}

/* Make products appear properly after brand info */
.products-container {
  display: block;
  position: relative;
  z-index: 10;
  margin-top: 0.5rem;
  padding-top: 0;
  clear: both;
  width: 100%;
  margin-bottom: 40px;
}

/* Fix brand-filtered product layout */
.row.row-cols-1.row-cols-md-2.row-cols-lg-3.g-4 {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 15;
  margin-bottom: 3rem;
}

/* Make sure product cards don't have too much padding */
.card-body.p-4 {
  padding: 1rem !important;
}

/* Ensure proper spacing between brand info and products */
.col-lg-9 > h2, .col-lg-9 > .card {
  margin-bottom: 1.5rem !important;
}

/* Ensure product cards stay consistent */
.card-body {
  padding: 1rem !important;
}

/* Make sure product cards don't have too much padding */
.card-body.p-4 {
  padding: 1rem !important;
}

/* Fix brand-filtered product layout */
.row.row-cols-1.row-cols-md-2.row-cols-lg-3.g-4 {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
  position: relative;
  z-index: 5;
}

/* Remove excessive brand info card styling */
.col-lg-9 .card.rounded-4.shadow-sm.mb-4 {
  display: none; /* Hide this element completely */
}

/* Move the brand info to display properly with the products */
.col-lg-9 {
  position: relative;
}

/* Make products display at the top properly */
.products-container {
  display: block;
  position: relative;
  z-index: 20;
  margin-top: 0;
  padding-top: 0;
  clear: both;
  width: 100%;
}

/* Fix margin spacing around products */
.products-container .row {
  margin-top: 1.5rem;
}

/* Fix footer spacing */
footer, .footer {
  clear: both;
  position: relative;
  margin-top: 60px; /* Ensure enough space */
  z-index: 1;
}

/* Responsive improvements */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--card-bg);
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 1rem;
    }

    .dropdown-menu {
        border: none;
        background-color: rgba(114, 113, 252, 0.05);
        padding: 0.5rem;
    }
    
    .info-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .product-detail img {
        max-height: 300px;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
        display: flex;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .info-item {
        margin-bottom: 2rem;
    }
    
    .brand-card img {
        height: 90px;
    }
    
    /* Improve mobile button spacing */
    .btn {
        padding: 0.5rem 1rem;
    }
    
    /* Better readability for small screens */
    body {
        font-size: 0.95rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
}
