/* Base Styles & Variables */
:root {
  --primary:#0ea5e9;
  --primary-dark: #1e4bbd;
  --secondary: #ff6b35;
  --dark: #2d3748;
  --light: #f7fafc;
  --gray: #e2e8f0;
  --dark-gray: #718096;
  --success: #38a169;
  --danger: #e53e3e;
  --warning: #dd6b20;
  --tech-blue: #0f172a;
  --tech-accent: #00d1b2;
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Noto Sans', sans-serif;
  --font-tech: 'Orbitron', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background-color: #f8fafc;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* Layout */
.main-container {
  display: flex;
  min-height: calc(100vh - 70px);
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--tech-blue);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Top Navigation */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  transition: var(--transition);
}

.brand-logo:hover {
  color: var(--primary-dark);
  transform: scale(1.02);
}

.logo-icon {
  font-size: 2rem;
  color: var(--secondary);
}

.logo-text {
  position: relative;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

.welcome {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.search-form {
  display: flex;
  flex-grow: 1;
  max-width: 500px;
  margin: 0 2rem;
}

.search-form input {
  flex-grow: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--gray);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-form button {
  padding: 0 1.2rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  transition: var(--transition);
}

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

.user-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Improved Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-btn, 
.signup-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-btn {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
}

.login-btn:hover {
  background-color: rgba(42, 91, 215, 0.1);
}

.signup-btn {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.signup-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

.cart-link:hover {
  background-color: rgba(42, 91, 215, 0.1);
}

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

#top-cart-count {
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  position: absolute;
  top: -5px;
  right: 0;
}

.user-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition);
}

.user-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 2rem;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  z-index: 1;
  padding: 0.5rem 0;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: rgba(42, 91, 215, 0.1);
  color: var(--primary);
}

.user-menu:hover .dropdown-content {
  display: block;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
}


.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background-color: white;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: 1px solid var(--gray);
}

.mobile-menu-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-gray);
}

.mobile-menu-content {
  padding: 1rem;
}

.mobile-user-info {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray);
}

.mobile-user-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mobile-user-links a {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.mobile-user-links a:hover {
  background-color: rgba(42, 91, 215, 0.1);
}

.mobile-login-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.95rem;
  justify-content: center;
}

.mobile-login-btn:hover {
  background-color: var(--primary-dark);
}

.mobile-categories {
  margin-top: 1rem;
}

.mobile-categories h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.mobile-categories a {
  display: block;
  width: 100%;                 /* take full width */
  padding: 0.75rem 0.75rem 0.75rem 2rem;
  box-sizing: border-box;
}

.mobile-categories a:hover, .mobile-categories a.active {
  background-color: rgba(42, 91, 215, 0.1);
  color: var(--primary);
}

.mobile-categories a {
  display: block;       /* each link takes full width */
  padding: 0.75rem 0;   /* spacing between items */
  color: var(--dark-gray);
  text-decoration: none;
}

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



.mobile-menu-content,
.mobile-categories {
  height: auto !important;     /* grow with content */
  overflow: visible !important; /* don't clip links */
}


/* Sidebar */
.sidebar {
  width: 250px;
  padding: 2rem 1rem;
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  flex-shrink: 0;
}

.user-info {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray);
}

.user-info p {
  margin-bottom: 0.5rem;
}

.user-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--dark-gray);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* Improved Sidebar Auth Buttons */
.sidebar-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-login-btn,
.sidebar-signup-btn {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  justify-content: center;
  font-size: 0.95rem;
}

.sidebar-login-btn {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
}

.sidebar-login-btn:hover {
  background-color: rgba(42, 91, 215, 0.1);
}

.sidebar-signup-btn {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.sidebar-signup-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.sidebar-auth-buttons a:last-child:not(.sidebar-login-btn):not(.sidebar-signup-btn) {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

.sidebar-auth-buttons a:last-child:hover:not(.sidebar-login-btn):not(.sidebar-signup-btn) {
  background: rgba(0, 0, 0, 0.08);
}

.sidebar-auth-buttons a.active:not(.sidebar-login-btn):not(.sidebar-signup-btn) {
  color: var(--primary);
  background: rgba(42, 91, 215, 0.1);
  border: 1px solid rgba(42, 91, 215, 0.2);
}

.sidebar-categories {
  margin-bottom: 1.5rem;
}

.sidebar-categories h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.sidebar-categories a {
  display: block;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.sidebar-categories a:hover, .sidebar-categories a.active {
  background-color: rgba(42, 91, 215, 0.1);
  color: var(--primary);
}

.desktop-login-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: var(--dark-gray);
  transition: var(--transition);
}

.desktop-login-link:hover {
  color: var(--primary);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: var(--danger);
  font-weight: 500;
  transition: var(--transition);
}

.logout-btn:hover {
  text-decoration: underline;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  background-color: white;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  width: calc(100% - 250px - 2rem);
}

.special-offers {
  background: linear-gradient(135deg, #2a5bd7, #00d1b2);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  animation: pulse 2s infinite;
}

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

.category-filters {
  display: none; /* Hidden on desktop, shown on mobile */
  margin-bottom: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.5rem;
}

.category-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  background-color: var(--gray);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.category-btn:hover, .category-btn.active {
  background-color: var(--primary);
  color: white;
}

/* Product Grid */
.product-grid-container {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-image-container {
  display: block;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f8f9fa;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
  padding: 10px;
  background-color: white;
}

.product-details {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: var(--transition);
  flex-grow: 1;
}

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

.price-container {
  margin-bottom: 0.5rem;
}

.current-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.original-price {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--dark-gray);
  margin-left: 0.5rem;
}

.discount {
  font-size: 0.75rem;
  background-color: #ffebee;
  color: var(--danger);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.product-shipping {
  font-size: 0.75rem;
  color: var(--success);
  margin-bottom: 0.75rem;
}

.add-to-cart-btn {
  padding: 0.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-top: auto;
}

.add-to-cart-btn:hover {
  background-color: var(--primary-dark);
}

.add-to-cart-btn.out-of-stock {
  background-color: var(--dark-gray);
  cursor: not-allowed;
}

/* Cart Button */
.cart-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
}

.cart-button button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.cart-button button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    display: none;
  }
  
  .main-content {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 1rem;
  }
  
  .category-filters {
    display: block;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
  }
  
  .brand-container {
    order: 1;
    flex-grow: 1;
  }
  
  .search-form {
    order: 3;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .user-controls {
    order: 2;
  }
  
 /* Show toggle only on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    order: 3;
  }
}

#mobileMenuBtn {
  width: 60px;     /* Adjust width as needed */
  height: 40px;    /* Optional: Adjust height */
  font-size: 1.5rem; /* Optional: Increase icon size */
  padding: 0.5rem;
  border: none;
  background: transparent; /* Or any background you want */
  cursor: pointer;
}
  .auth-buttons {
    display: none;
  }
  
  .desktop-cart {
    display: none;
  }
  
  .user-menu {
    display: none;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cart-button button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .special-offers {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  
  .brand-logo {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-menu {
    width: 250px;
  }
}

.recently-viewed {
    margin-top: 40px;
}
.recently-viewed h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.recently-viewed .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* About Page Styles */
.about-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.about-section {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.about-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section h2 i {
    color: #3498db;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.story-section {
    flex-direction: row-reverse;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.value-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.value-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #3498db;
}

.team-member h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.team-member p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.about-cta {
    text-align: center;
    padding: 50px 20px;
    background: #f1f9ff;
    border-radius: 8px;
    margin-top: 50px;
}

.about-cta h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.about-cta p {
    margin-bottom: 25px;
    color: #7f8c8d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
    }
    
    .story-section {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 20px;
    }
}

/* About Section in Sidebar */
.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.sidebar-section .sidebar-link {
    display: block;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.sidebar-section .sidebar-link:hover {
    background-color: rgba(42, 91, 215, 0.1);
    color: var(--primary);
}

/* Adjust logout button spacing */
.logout-btn {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--danger);
    font-weight: 500;
    transition: var(--transition);
    border-radius: 4px;
}

.logout-btn:hover {
    background-color: rgba(229, 62, 62, 0.1);
}


/* Footer Styles */
.site-footer {
    background-color: var(--tech-blue);
    color: white;
    padding: 2rem 0 0;
    margin-top: 3rem;
    width: 100%;
    max-width: 5000px; /* Added max-width constraint */
    margin-left: auto;
    margin-right: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Reduced min width */
    gap: 1.5rem; /* Reduced gap */
    padding: 0 1rem; /* Reduced side padding */
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-tech);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--tech-accent);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    font-size: 0.9rem;
    display: block;
    padding: 0.2rem 0;
}

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-contact i {
    color: var(--tech-accent);
    width: 20px;
    text-align: center;
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    margin-top: 1.5rem;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 0.8rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: center;
    order: 2;
}

.additional-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    order: 1;
}

.additional-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.2rem;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.6rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-heading {
        margin-bottom: 0.6rem;
    }
    
    .footer-links li {
        margin-bottom: 0.4rem;
    }
    
    .additional-links {
        gap: 0.8rem;
    }
    
    .additional-links a {
        font-size: 0.75rem;
    }
}


/* Category */

.category-icons-section {
    text-align: center;
    padding: 2rem 0;
}

.category-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.category-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    width: 120px;
    transition: box-shadow 0.3s ease;
}

.category-icon-card span {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    margin-top: 0.3rem;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
    min-height: 2.4rem; /* ensures consistent height across categories */
}


.category-icon-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.category-icon-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}


.category-section {
    padding: 2rem;
    background-color: #f9f9f9;
}

.category-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.category-card p {
    margin: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

#product-section {
    transition: opacity 0.3s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

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



.category-tab-btn:hover,
.category-tab-btn.active {
    background: #007bff;
    color: white;
}

    .back-btn {
        background-color: #0ea5e9; /* Sets the background color */
        color: white; /* Sets the text color (optional) */
        border: none; /* Removes the default border (optional) */
        padding: 8px 16px; /* Adds some padding (optional) */
        border-radius: 4px; /* Adds rounded corners (optional) */
        cursor: pointer; /* Changes cursor to pointer on hover (optional) */
        font-size: 14px; /* Sets the font size (optional) */
    }

    /* Optional: Add hover effect */
    .back-btn:hover {
        background-color: #0b91d1; /* Slightly darker shade on hover */
    }
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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




/* Outer scroll wrapper */
.category-tab-bar-scroll {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth on mobile */
    margin-bottom: 16px; /* Keeps space consistent */
    border-bottom: 1px solid #ccc; /* Move border here */
}

/* Hide scrollbar (Chrome/Safari) */
.category-tab-bar-scroll::-webkit-scrollbar {
    display: none;
}

/* Keep inline-flex for horizontal layout */
.category-tab-bar {
    display: inline-flex;
    gap: 8px;
    padding: 10px 0;
}

/* Oval buttons – assuming these styles already exist */
.category-tab-btn {
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    cursor: pointer;
    white-space: nowrap;
}



.scroll-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.product-grid.horizontal-scroll {
    display: inline-flex;
    gap: 16px;
    padding: 10px 0;
}

/* Optional: control product-card min width for better horizontal layout */
.product-card {
    flex: 0 0 auto;
    width: 180px; /* Adjust as needed */
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
