/* ==============================================================================
   CONSOLIDATED STYLES - Combined from all individual CSS files
   ============================================================================== */

/* ==============================================================================
   GLOBAL RESET AND BASE STYLES
   ============================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Roboto', 'Arial', 'Helvetica', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: linear-gradient(135deg, #f8f5f1 0%, #faf9f7 100%);
  line-height: 1.6;
  color: #2c3e50;
  position: relative;
  font-size: 16px;
  letter-spacing: 0.3px;
  overflow-x: hidden;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly interactions */
button,
a,
.product-card,
.thumbnail,
.cart-icon,
.user-icon,
.search-icon {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

/* Ensure minimum touch target size */
button,
a,
input[type="submit"],
input[type="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Ensure fixed elements stay fixed */
.top-navbar,
.bottom-navbar,
header {
  transform: none !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3498db, #2980b9);
  border-radius: 6px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2980b9, #1f5f8b);
}

/* Selection styling */
::selection {
  background: rgba(52, 152, 219, 0.2);
  color: #2c3e50;
}

::-moz-selection {
  background: rgba(52, 152, 219, 0.2);
  color: #2c3e50;
}

/* ==============================================================================
   COMMON UTILITIES
   ============================================================================== */

.button {
  padding: 16px 32px;
  margin-top: 32px;
  border: 2px solid #3498db;
  color: #3498db;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.button::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.6s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.section-heading {
  text-align: center;
  padding-top: 80px;
  margin-bottom: 40px;
  font-size: 42px;
  font-weight: 700;
  color: #2c3e50;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  margin-bottom: 30px;
  font-weight: 800;
  text-align: center;
  font-size: 32px;
  color: #2c3e50;
}

/* ==============================================================================
   ANIMATION AND INTERACTION ENHANCEMENTS
   ============================================================================== */

/* Loading animation for page elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Apply animations to page elements */
.product-card {
  animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

.section-title {
  animation: slideInLeft 0.8s ease-out;
}

.newsletter-container {
  animation: fadeInUp 0.8s ease-out;
}

/* Hover effects for interactive elements */
.logo a img {
  transition: all 0.3s ease;
}

.logo a img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: brightness(1.1);
}

.icons span a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icons span a:hover {
  transform: scale(1.2) rotate(5deg);
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

/* Button press effects */
button, .button {
  transition: all 0.2s ease;
}

button:active, .button:active {
  transform: scale(0.95);
}

/* ==============================================================================
   ENHANCED BUTTON STYLES AND STATES
   ============================================================================== */

/* Loading button state */
button.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  color: white;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced general button styles */
button, .button {
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button::before, .button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

button:hover::before, .button:hover::before {
  width: 300px;
  height: 300px;
}

/* Pulse effect for important buttons */
.submit-button, .home-buy-btn {
  animation: pulse 2s infinite;
}

.submit-button:hover, .home-buy-btn:hover {
  animation: none;
}

/* ==============================================================================
   RESPONSIVE DESIGN IMPROVEMENTS
   ============================================================================== */

/* ==============================================================================
   ENHANCED MOBILE AND RESPONSIVE DESIGN
   ============================================================================== */

/* Mobile responsive improvements */
@media (max-width: 768px) {
  /* Keep product container as row for home page */
  .showcase .product-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    overflow-x: auto !important;
    padding: 0 10px !important;
  }
  
  .showcase .product-card {
    width: 280px !important;
    height: 450px !important;
    margin-bottom: 20px !important;
    flex-shrink: 0 !important;
    min-width: 250px !important;
  }
  
  .brand-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .brand-card {
    width: 95%;
    max-width: 350px;
  }
  
  .hero-section {
    height: 50vh;
    min-height: 300px;
  }
  
  .hero-section::after {
    font-size: 12px;
    padding: 8px 15px;
    bottom: 15px;
  }
  
  .newsletter-container {
    margin: 40px 0 60px 0;
    padding: 30px 15px;
    border-radius: 0;
    width: 100%;
  }
  
  .footer-table {
    display: block;
  }
  
  .footer-table td {
    display: block;
    width: 100%;
    margin-bottom: 25px;
    padding-right: 0;
    text-align: center;
  }
  
  /* Center social icons on mobile */
  .social-icon-holder {
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto !important;
    width: fit-content;
  }
  
  .bottom-navbar ul {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    min-width: auto;
  }
  
  .bottom-navbar li {
    width: 100%;
  }
  
  .top-navbar {
    padding: 10px 20px;
    flex-wrap: wrap;
  }
  
  .icons {
    gap: 15px;
  }
  
  .search-container {
    width: 250px;
    right: -50px;
  }
  
  /* Mobile touch improvements */
  .product-card:hover {
    transform: none; /* Disable hover transform on mobile */
  }
  
  .product-card:active {
    transform: scale(0.98);
  }
  
  button {
    min-height: 44px; /* Minimum touch target size */
    font-size: 14px;
  }
  
  /* Mobile product page styles */
  .product-title {
    font-size: 1rem !important; /* Reduced from 1.2rem */
    line-height: 1.3 !important;
    height: 60px !important; /* Reduced height */
    margin-bottom: 10px !important;
    -webkit-line-clamp: 2 !important; /* Limit to 2 lines on mobile */
    line-clamp: 2 !important;
  }
}

/* Very small screens - horizontal scroll instead of stacking */
@media (max-width: 480px) {
  .showcase .product-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 0 15px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .showcase .product-card {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 700px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    padding: 20px !important;
    padding-bottom: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  
  /* Fix mobile product card image */
  .showcase .product-card img {
    height: 150px !important;
    margin-bottom: 12px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
  }
  
  /* Fix mobile product card text spacing */
  .showcase .product-card h3 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-height: 38px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  
  .showcase .product-card .price-tag {
    font-size: 17px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
  }
  
  .showcase .product-card .product-rating {
    margin-bottom: 15px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }
  
  .showcase .product-card .home-btn-container {
    gap: 15px !important;
    margin-top: 25px !important;
    margin-bottom: 40px !important;
    flex-shrink: 0 !important;
    padding-top: 25px !important;
    padding-bottom: 20px !important;
    min-height: 130px !important;
  }
  
  .showcase .product-card .home-cart-btn,
  .showcase .product-card .home-buy-btn {
    font-size: 14px !important;
    padding: 15px 18px !important;
    min-height: 50px !important;
    border-radius: 25px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 5px !important;
  }
  
  /* Very small mobile product page styles */
  .product-title {
    font-size: 0.9rem !important; /* Even smaller for very small screens */
    line-height: 1.2 !important;
    height: 50px !important; /* Further reduced height */
    margin-bottom: 8px !important;
    -webkit-line-clamp: 2 !important; /* Keep 2 lines max */
    line-clamp: 2 !important;
  }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .showcase .product-container {
    gap: 25px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
  }
  
  .showcase .product-card {
    width: 300px !important;
    height: 500px !important;
    flex-shrink: 0 !important;
  }
  
  .brand-card {
    width: 340px;
  }
  
  .search-container {
    width: 280px;
  }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
  .product-container,
  .brand-container {
    max-width: 1200px;
    margin: 40px auto;
  }
  
  .newsletter-container {
    max-width: none;
    margin: 80px 0 100px 0;
    width: 100%;
    border-radius: 0;
  }
}

/* ==============================================================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================================================== */

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
a:focus {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-card {
    border: 2px solid #000;
  }
  
  button {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==============================================================================
   LOADING STATES AND MICRO-INTERACTIONS
   ============================================================================== */

/* Enhanced loading button state */
button.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: not-allowed;
}

button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  color: white;
}

/* Skeleton loading for cards */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Quick action buttons for products */
.product-quick-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-quick-actions {
  opacity: 1;
}

.quick-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.quick-action-btn:hover {
  background: #3498db;
  color: white;
  transform: scale(1.1);
}

/* ==============================================================================
   HEADER STYLES
   ============================================================================== */

/* Main Header for Portfolio Page */
header {
  position: relative;
  width: 100%;
  background: transparent;
  z-index: 98; /* Reduced z-index */
  box-sizing: border-box;
  display: block;
  margin: 0; /* Ensure no margin issues */
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navigation-bar {
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.username h1 {
  font-size: 26px;
  font-weight: 600;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navigation-items ul {
  display: flex;
  gap: 50px;
  list-style: none;
  align-items: center;
}

.navigation-items ul li {
  position: relative;
}

.navigation-items ul li a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navigation-items ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navigation-items ul li a:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.navigation-items ul li a:hover::after {
  width: 80%;
}

/* Top Navbar for Main Site */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 52px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  width: 100%;
  z-index: 100; /* Reduced z-index to avoid conflicts */
  height: 80px;
  box-sizing: border-box;
  margin: 0;
}

.logo {
  flex: 0 0 auto;
}

.logo a img {
  width: 200px;
  transition: transform 0.3s ease;
}

.logo a img:hover {
  transform: scale(1.05);
}

.icons {
  padding-top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.icons span {
  position: relative;
}

.icons span a {
  font-size: 24px;
  color: #2c3e50;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icons span a:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
  transform: scale(1.1);
}

/* Bottom Navbar */
.bottom-navbar {
  border-top: 1px solid rgba(197, 197, 197, 0.3);
  border-bottom: 1px solid rgba(197, 197, 197, 0.3);
  text-align: center;
  padding: 18px 40px;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  position: relative;
  width: 100%;
  z-index: 99; /* Reduced z-index to avoid conflicts */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
}

/* Add body padding for pages with navbar */
.home-page,
.about-page,
.article-page,
.research-page,
.product-detail-page {
  padding-top: 0; /* Remove padding since navbar is no longer fixed */
}

.product-page {
  padding-top: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Portfolio page uses different header */
.portfolio-page {
  padding-top: 0; /* Remove padding since header is no longer fixed */
}

.bottom-navbar ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0 40px;
  width: 100%;
  max-width: 1200px;
  min-width: 800px;
  height: 100%; /* Ensure ul takes full height of navbar */
}

.bottom-navbar li {
  flex: 1 1 0;
  text-align: center;
  min-width: 120px;
  height: 100%; /* Ensure li takes full height */
  display: flex; /* Make li a flex container */
  align-items: center; /* Center the link vertically */
}

.bottom-navbar li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: #2c3e50;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  display: block;
  text-align: center;
  width: 100%; /* Make link take full width of li */
}

.bottom-navbar li a:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

/* ==============================================================================
   HAMBURGER MENU STYLES
   ============================================================================== */

/* Hamburger menu (hidden by default) */
.hamburger-menu {
  display: none;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c3e50;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger-icon:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 241, 0.98) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 80px 20px 20px;
}

.mobile-menu.active {
  left: 0;
}

/* Close button */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2c3e50;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  transform: rotate(90deg);
}

/* Mobile menu navigation */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: block;
  padding: 20px 15px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.mobile-nav-link:hover::before {
  left: 0;
}

.mobile-nav-link:hover {
  color: white;
  transform: translateX(10px);
}

/* Mobile menu icons */
.mobile-nav-link i {
  margin-right: 12px;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Mobile menu footer */
.mobile-menu-footer {
  margin-top: auto;
  padding: 20px 15px;
  text-align: center;
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.mobile-menu-footer p {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0;
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ==============================================================================
   FOOTER STYLES
   ============================================================================== */

.footer-top {
  background: linear-gradient(135deg, #2c3238, #34495e);
  color: white;
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
}

.footer-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.footer-table {
  position: relative;
  z-index: 1;
  width: 100%;
  border-collapse: collapse;
}

.footer-table td {
  vertical-align: top;
  width: 25%;
  padding-right: 40px;
  padding-bottom: 20px;
}

.footer-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ecf0f1;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 2px;
}

.about-text {
  font-size: 16px;
  line-height: 1.7;
  color: #bdc3c7;
  opacity: 0.9;
}

.quick-links a {
  display: block;
  color: #bdc3c7;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 16px;
  padding: 5px 0;
  transition: all 0.3s ease;
  position: relative;
}

.quick-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.quick-links a:hover {
  color: #3498db;
  padding-left: 15px;
}

.quick-links a:hover::before {
  opacity: 1;
  left: -5px;
}

.contact p {
  margin: 8px 0;
  font-size: 16px;
  color: #bdc3c7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact p::before {
  content: '';
  font-family: 'boxicons';
  font-size: 14px;
  margin-right: 8px;
}

.contact p:nth-child(1)::before {
  content: '\ea0d'; /* Location icon */
}

.contact p:nth-child(2)::before {
  content: '\eacf'; /* Phone icon */
}

.contact p:nth-child(3)::before {
  content: '\eaa8'; /* Email icon */
}

.social-icon-holder {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
}

.social-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.social-icon:hover::before {
  width: 100px;
  height: 100px;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.social-icon a {
  color: white;
  font-size: 18px;
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.social-icon a i {
  line-height: 1;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  margin-top: 40px;
  padding-top: 25px;
  color: #95a5a6;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* ==============================================================================
   HOME PAGE STYLES
   ============================================================================== */

.home-page {
  padding-top: 0;
}

/* Main section styling */
main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

/* Hero section styling */
.hero-section {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-section:hover::before {
  opacity: 1;
}

.home-page .hero-section::after {
  content: 'Shop Now - Discover Premium Footwear';
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  color: #2c3e50;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.home-page .hero-section::after::before {
  content: '\eae0';
  font-family: 'boxicons';
  margin-right: 8px;
}

.home-page .hero-section:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-top: 0;
  height: 85vh;
  min-height: 600px;
  z-index: 1;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.slider img:hover {
  transform: scale(1.05);
}

.product-main {
  padding: 80px 40px;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,249,247,0.95));
  border-radius: 30px;
  margin: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-title {
  margin-bottom: 40px;
  font-weight: 800;
  text-align: center;
  font-size: 36px;
  background: linear-gradient(135deg, #2c3e50, #3498db, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #e74c3c);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 30px;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.price-tag {
  font-size: 20px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stars {
  font-size: 16px;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.product-container {
  display: flex !important;
  justify-content: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
  margin-top: 40px !important;
  flex-direction: row !important;
}

/* Force home page products to display side by side */
.showcase .product-container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 20px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 40px auto !important;
  min-height: 600px !important;
}

.product-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 25px;
  width: 420px !important;
  height: 620px !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0 !important;
  min-width: 350px !important;
  max-width: 420px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(52, 152, 219, 0.3);
}

.product-card img {
  height: 280px;
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  transition: color 0.3s ease;
  flex-grow: 0;
  height: auto;
  min-height: 28px;
}

.product-card:hover h3 {
  color: #3498db;
}

.product-card p {
  margin-bottom: 20px;
  color: #7f8c8d;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
  flex-grow: 0;
  height: auto;
  min-height: 24px;
}

.product-card:hover p {
  color: #e74c3c;
}

.product-card button {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

/* Override general button hover effects for product cards */
.product-card button::before {
  display: none !important;
}

.product-card button:hover::before {
  display: none !important;
}

/* Specific styles for home page product buttons */
.home-cart-btn {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
  color: white !important;
  margin-bottom: 10px;
}

.home-cart-btn:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4) !important;
}

.home-buy-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: white !important;
}

.home-buy-btn:hover {
  background: linear-gradient(135deg, #c0392b, #a93226) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(231, 76, 60, 0.4) !important;
}

.home-btn-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.home-btn-container button {
  width: 100%;
  padding: 16px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

/* Product card content container */
.product-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.product-card-info {
  flex-grow: 1;
}

.product-card-actions {
  margin-top: auto;
  padding-top: 15px;
}

.brand-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.brand-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  width: 380px;
  height: 420px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.brand-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-card:hover::after {
  opacity: 1;
}

.brand-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.brand-card img {
  height: 80%;
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.brand-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.brand-card:hover h3 {
  color: #3498db;
}

.brand-description {
  font-size: 14px;
  color: #7f8c8d;
  font-style: italic;
  margin-top: 5px;
}

.newsletter {
  width: 100%;
  margin: 0;
  padding: 0;
}

.newsletter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 80px 0 100px 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,245,241,0.9));
  padding: 60px 40px;
  border-radius: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.box h4 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2c3e50;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.box p {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 30px;
  color: #7f8c8d;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.input-email {
  border-radius: 25px;
  border: 2px solid #e8e8e8;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-right: 15px;
  width: 350px;
  padding: 15px 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
  background: white;
}

.input-email:focus {
  border-color: #3498db;
  box-shadow: 0 5px 25px rgba(52, 152, 219, 0.2);
  transform: translateY(-2px);
}

.submit-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-button:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
}

/* Responsive newsletter layout */
@media (max-width: 768px) {
  .newsletter-container .box {
    flex-direction: column;
    gap: 15px;
  }
  
  .input-email {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .submit-button {
    width: 100%;
  }
}

.input-email:focus {
  border-color: #3498db;
  box-shadow: 0 5px 25px rgba(52, 152, 219, 0.3);
  transform: translateY(-2px);
}

.submit-button {
  border: none;
  border-radius: 25px;
  padding: 15px 35px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.submit-button:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

/* ==============================================================================
   ABOUT PAGE STYLES
   ============================================================================== */

/* Hero Section */
.about-page .hero-section {
  background: linear-gradient(135deg, #2c3238, #4a5259);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.about-page .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-underline {
  width: 120px;
  height: 4px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  margin: 0 auto;
  border-radius: 2px;
}

/* Story Section */
.story-section {
  padding: 100px 0;
  background: white;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-content h2 {
  font-size: 2.8rem;
  color: #2c3238;
  margin-bottom: 30px;
  font-weight: 700;
}

.story-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

.story-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #f8f5f1, #f0ede8);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #ff6b35;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f5f1, #f0ede8);
}

.team-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.team-header h2 {
  font-size: 3rem;
  color: #2c3238;
  margin-bottom: 20px;
  font-weight: 700;
}

.team-header p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.member-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.member-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-card:hover .member-image img {
  transform: scale(1.05);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(44, 50, 56, 0.9));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover .member-overlay {
  opacity: 1;
}

.portfolio-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.member-info {
  padding: 30px;
  text-align: center;
}

.member-info h3 {
  font-size: 1.5rem;
  color: #2c3238;
  margin-bottom: 8px;
  font-weight: 700;
}

.member-role {
  color: #ff6b35;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #2c3238, #4a5259);
  color: white;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-content {
  text-align: center;
  margin-bottom: 60px;
}

.contact-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modern-form {
  color: #2c3238;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2c3238;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* ==============================================================================
   ARTICLE PAGE STYLES
   ============================================================================== */

.article-page .container {
  width: 1100px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.article-page h1 {
  color: black;
  text-align: center;
  margin-bottom: 20px;
}

.article-page .image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.article-page .image img {
  width: 100%;
  max-width: 800px;
  border-radius: 4px;
  object-fit: cover;
}

.article-page p {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ==============================================================================
   LOGIN PAGE STYLES
   ============================================================================== */

.login-page .container {
  width: 90%;
  max-width: 400px;
  padding: 20px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.login-page h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

.login-page input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 20px;
}

.remember {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 5px;
}

.remember input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.remember label {
  color: #666;
}

.login-page button {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #3498db;
  border: 1px solid #3498db;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background 0.3s, color 0.3s;
}

.login-page button:hover {
  background: #2980b9;
  color: white;
}

.bottom {
  margin-top: 15px;
  text-align: center;
}

.other {
  color: #3498db;
  text-decoration: none;
  margin: 0 22px;
}

.forgot:hover {
  color: #2980b9;
}

/* ==============================================================================
   PRODUCT PAGE STYLES
   ============================================================================== */

.product-showcase {
  background: linear-gradient(135deg, #f8f5f1 0%, #faf3e9 100%);
  min-height: 100vh;
  padding: 40px 0;
}

.page-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  margin-bottom: 40px;
  color: white;
}

.page-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #fff, #ecf0f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.product-page .main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 60px 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.product-showcase {
  padding: 40px 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 60px 30px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
  backdrop-filter: blur(15px);
  border-radius: 25px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #7f8c8d;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.product-page .product-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 670px; /* Increased height for all containers */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
}

.product-page .product-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-page .product-container:hover::before {
  opacity: 1;
}

.product-page .product-container:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.product-page .image {
  position: relative;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  height: 350px; /* Fixed height for image container */
  flex-shrink: 0; /* Prevent shrinking */
}

.product-page .image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills container while maintaining aspect ratio */
  object-position: center; /* Centers the image */
  transition: transform 0.4s ease;
}

.product-page .product-container:hover .image img {
  transform: scale(1.1);
}

.product-details {
  padding: 25px 25px 30px;
  display: flex;
  flex-direction: column;
  flex: 1; /* Takes remaining space */
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
  height: 320px; /* Increased height for product details section */
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.4;
  height: 80px; /* Increased height to accommodate longer titles */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Allow up to 3 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Removed gradient text to ensure visibility */
}

.product-description {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.product-price span:first-child {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e74c3c;
}

.product-price span:nth-child(2) {
  font-size: 0.8rem;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.product-price span:last-child {
  font-size: 1rem;
  color: #95a5a6;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rating-section img {
  height: 20px !important;
  width: auto !important;
}

.rating-section span {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

/* For products that don't have rating-section class, style the div directly */
.product-details div:not(.product-price):not(.btn-container):not(.rating-section) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.product-details div:not(.product-price):not(.btn-container):not(.rating-section) img {
  height: 20px !important;
  width: auto !important;
}

.product-details div:not(.product-price):not(.btn-container):not(.rating-section) span {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

.btn-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.cart-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
  min-width: 120px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  position: relative;
  overflow: hidden;
}

.cart-button:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.buy-button {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
  min-width: 120px;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  position: relative;
  overflow: hidden;
}

.buy-button:hover {
  background: linear-gradient(135deg, #ee5a52, #ff6b6b);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Home page button styles - Higher specificity to override general button styles */
.home-btn-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.product-card .home-cart-btn,
.showcase .home-cart-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: visible;
}

.product-card .home-cart-btn:hover,
.showcase .home-cart-btn:hover {
  background: linear-gradient(45deg, #2980b9, #3498db);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.product-card .home-buy-btn,
.showcase .home-buy-btn {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: visible;
}

.product-card .home-buy-btn:hover,
.showcase .home-buy-btn:hover {
  background: linear-gradient(45deg, #c0392b, #e74c3c);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* ==============================================================================
   SEARCH FUNCTIONALITY STYLES
   ============================================================================== */

.search-container {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 10px;
  width: 300px;
  z-index: 1000;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-container input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  outline: none;
}

.search-container input:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Search icon positioning */
.search-icon {
  position: relative;
}

/* ==============================================================================
   CART COUNTER STYLES
   ============================================================================== */

#cart-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.cart-icon:hover #cart-counter {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.cart-icon {
  position: relative;
}

.search-icon {
  position: relative;
  cursor: pointer;
}

.search-container {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: none;
}

.search-container.active {
  display: block;
}

#search-input {
  width: 200px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.product-container.hidden {
  display: none;
}

/* ==============================================================================
   PRODUCT DETAIL PAGE STYLES
   ============================================================================== */

/* Product Detail Page Styles */
.product-detail-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: 100vh;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #667eea;
}

.breadcrumb span {
  margin: 0 10px;
  color: #adb5bd;
}

/* Product Layout */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  height: 500px;
  width: 100%;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.main-image:hover img {
  transform: scale(1.05);
}

.image-zoom-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.main-image:hover .image-zoom-indicator {
  opacity: 1;
  transform: translateY(0);
}

.thumbnail-gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #ffffff;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  padding: 20px 0;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.2;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #ffd700;
  font-size: 18px;
}

.rating-count {
  color: #6c757d;
  font-size: 14px;
}

/* Interactive User Rating */
.user-rating-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.user-rating-section h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.interactive-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.interactive-rating i {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 5px;
  border-radius: 50%;
}

.interactive-rating i:hover {
  transform: scale(1.2);
  background: rgba(255, 215, 0, 0.1);
}

.interactive-rating i.active {
  color: #ffd700;
}

.interactive-rating i.hover {
  color: #ffed4e;
}

.rating-text {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 15px;
  min-height: 20px;
}

.submit-rating-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.submit-rating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.rating-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #28a745;
  font-weight: 600;
  font-size: 14px;
}

.rating-success i {
  font-size: 20px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
}

.current-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #667eea;
}

.original-price {
  font-size: 1.2rem;
  color: #adb5bd;
  text-decoration: line-through;
}

.discount-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Product Options */
.product-option {
  margin-bottom: 30px;
}

.product-option h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.size-guide-link {
  color: #667eea;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
}

/* Color Options */
.color-options {
  display: flex;
  gap: 12px;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.color-option:hover,
.color-option.active {
  border-color: #667eea;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Size Options */
.size-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.size-option {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #495057;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
}

.size-option:hover {
  border-color: #667eea;
  color: #667eea;
}

.size-option.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  width: fit-content;
  background: white;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: #f8f9fa;
  color: #667eea;
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  color: #495057;
  background: transparent;
}

/* Action Buttons */
.product-actions {
  display: flex;
  gap: 15px;
  margin: 40px 0;
}

.btn-add-cart,
.btn-buy-now {
  flex: 1;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
}

.btn-add-cart {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-add-cart:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-buy-now {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Delivery Info */
.delivery-info {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #e9ecef;
}

.delivery-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-item i {
  font-size: 20px;
  color: #667eea;
  width: 24px;
}

.delivery-item div {
  display: flex;
  flex-direction: column;
}

.delivery-item strong {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.delivery-item span {
  font-size: 12px;
  color: #6c757d;
}

/* Product Details Tabs */
.product-details-tabs {
  margin: 60px 0;
}

.tabs-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tab-btn {
  flex: 1;
  padding: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover,
.tab-btn.active {
  color: #667eea;
  background: white;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.tab-content {
  padding: 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.tab-panel h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  margin: 25px 0 15px 0;
}

.tab-panel p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tab-panel ul {
  padding-left: 20px;
  color: #6c757d;
  line-height: 1.8;
}

.tab-panel li {
  margin-bottom: 8px;
}

/* Materials Grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.material-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.material-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.material-item p {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

/* Info Table */
.info-table {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #495057;
}

.info-value {
  color: #2c3e50;
  font-weight: 500;
}

/* Reviews */
.reviews-summary {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rating-score {
  font-size: 3rem;
  font-weight: 800;
  color: #667eea;
}

.total-reviews {
  color: #6c757d;
  font-size: 14px;
}

.individual-reviews {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.review-item {
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 1px solid #e9ecef;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.reviewer-name {
  font-weight: 600;
  color: #2c3e50;
}

.review-rating {
  display: flex;
  gap: 2px;
  color: #ffd700;
}

.review-text {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-date {
  font-size: 12px;
  color: #adb5bd;
}

/* Related Products */
.related-products {
  margin: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
}

.products-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  min-width: 100%;
}

.products-grid .product-card {
  flex: 0 0 280px; /* Fixed width for each card */
  min-width: 280px;
}

/* Carousel Container */
.products-carousel {
  position: relative;
  margin: 0 40px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: #3498db;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn i {
  font-size: 20px;
  color: #3498db;
  transition: color 0.3s ease;
}

.carousel-btn:hover i {
  color: white;
}

.prev-btn {
  left: -20px;
}

.next-btn {
  right: -20px;
}

/* Hide scrollbar but keep functionality */
.products-grid::-webkit-scrollbar {
  display: none;
}

.products-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info-card {
  padding: 25px 25px 40px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-price-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.product-price-card .current-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
}

.product-price-card .original-price {
  font-size: 1rem;
  color: #adb5bd;
  text-decoration: line-through;
}

.product-rating-card {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffd700;
  font-size: 14px;
  margin-bottom: 20px;
}

.product-rating-card span {
  color: #6c757d;
  margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .tab-buttons {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: none;
    min-width: 120px;
  }
  
  .products-carousel {
    margin: 0 30px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn i {
    font-size: 18px;
  }
  
  .products-grid .product-card {
    flex: 0 0 250px;
    min-width: 250px;
  }
}

@media (max-width: 580px) {
  .container {
    padding: 0 15px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .size-options,
  .color-options {
    justify-content: center;
  }
  
  .tab-content {
    padding: 20px;
  }
  
  .materials-grid {
    grid-template-columns: 1fr;
  }
  
  .products-carousel {
    margin: 0 20px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
  }
  
  .carousel-btn i {
    font-size: 16px;
  }
  
  .prev-btn {
    left: -10px;
  }
  
  .next-btn {
    right: -10px;
  }
  
  .products-grid .product-card {
    flex: 0 0 220px;
    min-width: 220px;
  }
}

/* Button base styles */
.button,
.btn,
.cart-button,
.buy-now {
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.buy-now {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.buy-now:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.details .cart-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.details .cart-button:hover {
  background: linear-gradient(135deg, #2980b9, #21618c);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

/* Product Details Section */
.Product_details {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,249,247,0.95));
  margin: 60px auto;
  max-width: 1400px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.product-detail-page .product-details {
  padding: 40px 40px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.product-detail-page .product-details h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.product-detail-page .product-details h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #e74c3c);
  border-radius: 2px;
}

.product-detail-page .product-details ul {
  padding-left: 0;
  margin-bottom: 40px;
  list-style: none;
}

.product-detail-page .product-details ul li {
  padding: 12px 0;
  font-size: 1.1rem;
  color: #2c3e50;
  position: relative;
  padding-left: 30px;
  transition: all 0.3s ease;
}

.product-detail-page .product-details ul li::before {
  content: '\eb7b';
  font-family: 'boxicons';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 1.2rem;
}

.product-detail-page .product-details ul li:hover {
  color: #3498db;
  padding-left: 35px;
}

.product-detail-page .product-details p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* More Products Section */
.more {
  background: linear-gradient(135deg, #f8f5f1 0%, #faf3e9 100%);
  padding: 80px 0;
}

.product-slider {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.more-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.more-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  width: 350px;
  height: 380px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.more-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.more-card:hover::before {
  left: 100%;
}

.more-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(52, 152, 219, 0.3);
}

.more-card img {
  height: 280px;
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.more-card:hover img {
  transform: scale(1.05);
}

.more-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  transition: color 0.3s ease;
}

.more-card:hover h3 {
  color: #3498db;
}

/* Responsive Design for Product Detail Page */
@media (max-width: 1200px) {
  .product-detail-page .product-container {
    padding: 40px 60px;
    gap: 40px;
  }
  
  .product-detail-page .product-details {
    padding: 40px 60px;
  }
}

@media (max-width: 968px) {
  .product-detail-page .product-container {
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
  }
  
  .product-detail-page .image,
  .details {
    min-width: auto;
    width: 100%;
  }
  
  .real-image {
    height: 300px; /* Reduced from 400px to 300px */
  }
  
  .details h1 {
    font-size: 2rem;
  }
  
  .price h2 {
    font-size: 1.8rem;
  }
  
  .button-container {
    flex-direction: column;
  }
  
  .button-container button {
    min-width: auto;
    width: 100%;
  }
  
  .size-container {
    justify-content: center;
  }
  
  .product-detail-page .product-details {
    padding: 40px 30px;
  }
  
  .more-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .more-card {
    width: 90%;
    max-width: 400px;
  }
}

@media (max-width: 580px) {
  .product-detail-page .product-container {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .details h1 {
    font-size: 1.6rem;
  }
  
  .price {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .price h2 {
    font-size: 1.5rem;
  }
  
  .rating-number {
    justify-content: center;
  }
  
  .quantity {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .product-detail-page .product-details {
    padding: 30px 20px;
  }
  
  .real-image {
    height: 250px; /* Reduced from 300px to 250px */
  }
  
  /* Product Page Mobile Styles */
  .page-title {
    font-size: 2.2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .product-page .main {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 40px 20px;
  }
  
  .page-header {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  
  .btn-container {
    flex-direction: column;
  }
  
  .cart-button,
  .buy-button {
    width: 100%;
    min-width: auto;
  }
}

.product-slider {
  padding: 20px;
  text-align: center;
  margin-bottom: 50px;
  background-color: #f9f3ed;
}

.more-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.more-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 10px;
  width: 400px;
  height: 400px;
}

.more-card img {
  height: 85%;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* ==============================================================================
   RESEARCH PAGE STYLES
   ============================================================================== */

.research-page .section-header {
  text-align: center;
  margin: 60px auto;
  max-width: 800px;
  padding: 0 20px;
}

.research-page .section-header h1 {
  font-size: 3.5rem;
  color: #2c3238;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2c3e50, #5a6269);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.research-page .section-header p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.header-underline {
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  margin: 0 auto;
  border-radius: 2px;
}

.research-item {
  margin-bottom: 80px;
  padding: 0 20px;
}

.research-header {
  text-align: center;
  margin-bottom: 40px;
}

.research-header h2 {
  font-size: 2.2rem;
  color: #2c3238;
  margin-bottom: 10px;
  font-weight: 700;
}

.research-header p {
  font-size: 1.1rem;
  color: #666;
  font-style: italic;
}

.research-page .container {
  display: flex;
  background: linear-gradient(135deg, #f8f5f1, #f0ede8);
  padding: 40px;
  gap: 40px;
  flex-wrap: wrap;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.img-container {
  flex: 1;
  min-width: 300px;
}

.image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.img-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(44, 50, 56, 0.9), transparent);
  color: white;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.text-container {
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.research-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.research-content h3 {
  font-size: 1.8rem;
  color: #2c3238;
  margin-bottom: 20px;
  font-weight: 700;
}

.research-content p {
  line-height: 1.8;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.research-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.tag {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.research-stats {
  margin: 80px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.stats-container {
  background: linear-gradient(135deg, #2c3238, #4a5259);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
  pointer-events: none;
}

.stats-container h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ff6b35;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  color: #e0e0e0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.research-cta {
  margin: 80px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.cta-container {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  pointer-events: none;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.cta-container p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  min-width: 180px;
  text-align: center;
}

.cta-btn.primary {
  background: white;
  color: #ff6b35;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f8f8;
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn.secondary:hover {
  background: white;
  color: #ff6b35;
  transform: translateY(-3px);
}

/* ==============================================================================
   RESPONSIVE STYLES
   ============================================================================== */

@media (max-width: 1200px) {
  .portfolio-page main {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
  }
  
  header {
    padding: 10px 50px;
    height: 70px;
  }
  
  .top-navbar {
    padding: 10px 30px;
    height: 70px;
    box-sizing: border-box;
  }
  
  /* Product Page Responsive Styles */
  .page-title {
    font-size: 2.8rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .product-page .main {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 50px 20px;
  }
  
  .page-header {
    padding: 40px 25px;
    margin-bottom: 50px;
  }
}

/* Medium screens and below */
@media (max-width: 1200px) {
  .bottom-navbar {
    height: 50px;
    padding: 12px 30px;
  }
  
  .bottom-navbar ul {
    min-width: 600px;
    padding: 0 15px;
  }
  
  .home-page,
  .product-page,
  .about-page,
  .article-page,
  .research-page,
  .product-detail-page {
    padding-top: 0; /* No padding needed for non-sticky navbar */
  }
  
  /* Adjust slider for medium screens */
  .slider {
    height: 75vh;
    min-height: 500px;
  }
}

/* ==============================================================================
   TABLET RESPONSIVE DESIGN (768px - 1024px)
   ============================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Navigation adjustments */
  .top-navbar {
    padding: 0 20px;
  }
  
  .bottom-navbar ul {
    padding: 0 20px;
    gap: 25px;
  }
  
  /* Product grid for tablets */
  .product-page .main {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 20px;
  }

  /* Typography */
  .page-title {
    font-size: 3rem;
  }

  .page-subtitle {
    font-size: 1.2rem;
  }
  
  /* Product detail page */
  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .main-image {
    height: 450px;
  }
  
  /* Home page adjustments */
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  /* About page */
  .about-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-image,
  .about-content {
    width: 100%;
  }
  
  /* Research page */
  .research-page .container {
    flex-direction: column;
    gap: 30px;
  }
}

/* ==============================================================================
   MOBILE RESPONSIVE DESIGN (up to 768px)
   ============================================================================== */
@media (max-width: 768px) {
  /* Base mobile improvements */
  html {
    font-size: 14px;
  }
  
  body {
    font-size: 14px;
  }
  
  /* Navigation improvements */
  .top-navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
  }
  
  .logo {
    width: 140px !important;
  }
  
  .icons {
    gap: 15px;
    padding-top: 0 !important;
  }
  
  .icons i {
    font-size: 1.2rem;
  }
  
  /* Hide bottom navbar on mobile and show hamburger */
  .bottom-navbar {
    display: none;
  }
  
  /* Show hamburger menu */
  .hamburger-menu {
    display: block !important;
  }
  
  /* Layout adjustments */
  .main-container {
    flex-direction: column;
    gap: 40px;
    margin: 40px 20px;
  }
  
  /* Only apply column layout to brand-container and more-container, NOT product-container for home page */
  .brand-container,
  .more-container {
    flex-direction: column;
    align-items: center;
  }
  
  /* FORCE product-container for home page to stay as row layout */
  .showcase .product-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 0 20px !important;
    scroll-snap-type: x mandatory !important;
  }
  
  .showcase .product-card {
    scroll-snap-align: center !important;
    flex-shrink: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
  }
  
  .product-detail-page .product-container {
    flex-direction: column;
    padding: 40px 20px;
  }
  
  .real-image {
    height: 300px; /* Reduced from 400px to 300px */
  }
  
  .text-container {
    padding: 20px;
  }

  /* Responsive grid for product page */
  .product-page .main {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 15px;
  }

  .page-header {
    padding: 40px 20px 30px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  /* Product detail page responsive styles */
  .product-detail-page .main-image {
    height: 350px; /* Smaller height for mobile */
    margin-bottom: 15px;
  }

  .product-detail-page .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .product-detail-page .thumbnail-gallery {
    gap: 10px;
  }

  .product-detail-page .thumbnail {
    width: 70px;
    height: 70px;
  }

  .product-page .product-container {
    height: 600px; /* Slightly smaller on mobile but still fixed */
  }
  
  .product-page .image {
    height: 320px; /* Adjust image height for mobile */
  }
  
  .product-details {
    height: 280px; /* Adjust details height for mobile */
  }
  
  .portfolio-page main {
    width: 100%;
    margin: 20px;
    padding: 20px;
  }
  
  /* Research page responsive styles */
  .research-page .section-header h1 {
    font-size: 2.5rem;
  }
  
  .research-header h2 {
    font-size: 1.8rem;
  }
  
  .research-page .container {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }
  
  .img-container {
    min-width: 100%;
  }
  
  .research-content {
    padding: 30px 20px;
  }
  
  .research-content h3 {
    font-size: 1.5rem;
  }
  
  .research-tags {
    justify-content: center;
  }
  
  .tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .stats-container {
    padding: 40px 20px;
  }
  
  .stats-container h2 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  .cta-container {
    padding: 40px 20px;
  }
  
  .cta-container h2 {
    font-size: 2rem;
  }
  
  .cta-container p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* About page responsive styles */
  .about-page .hero-title {
    font-size: 2.5rem;
  }
  
  .about-page .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .story-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .story-content h2 {
    font-size: 2rem;
  }
  
  .story-content p {
    font-size: 1.1rem;
  }
  
  .story-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .stat {
    min-width: 150px;
    padding: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .team-header h2 {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-content h2 {
    font-size: 2rem;
  }
  
  .contact-form-wrapper {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .top-navbar {
    padding: 10px 20px;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 80px;
    box-sizing: border-box;
  }
  
  .logo {
    order: 1;
  }
  
  .icons {
    order: 2;
    padding-top: 0;
  }
  
  .bottom-navbar {
    height: auto;
    min-height: 60px;
    padding: 10px 15px;
  }
  
  .bottom-navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
    max-width: none;
    min-width: 0;
  }
  
  .bottom-navbar li {
    flex: 0 0 auto;
  }
  
  .bottom-navbar li a {
    padding: 8px 16px;
    font-size: 16px;
  }
  
  .home-page,
  .product-page,
  .about-page,
  .article-page,
  .research-page,
  .product-detail-page {
    padding-top: 0; /* No padding needed for non-sticky navbar */
  }
  
  /* Adjust slider for mobile screens */
  .slider {
    height: 60vh;
    min-height: 400px;
  }
  
  .footer-top {
    padding: 40px 20px;
  }
  
  .footer-table {
    display: block;
  }
  
  .footer-table td {
    display: block;
    width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .home-heading {
    font-size: 36px;
  }
  
  .about-page .title {
    font-size: 36px;
  }
  
  .member-card,
  .product-card {
    width: 90%;
    max-width: 400px;
  }
  
  .brand-card,
  .more-card {
    width: 90%;
    max-width: 350px;
  }
  
  .article-page .container {
    width: 90%;
    margin: 20px auto;
    padding: 15px;
  }
  
  .product-detail-page .product-details {
    width: 100%;
    padding: 30px 20px;
  }
  
  .size-container {
    justify-content: center;
  }
  
  .button-container {
    justify-content: center;
  }
  
  .button-container button {
    margin-left: 0;
    margin: 10px;
  }
  
  .navigation-bar {
    padding: 0 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  .navigation-items ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  header {
    position: relative;
    padding: 15px 20px;
    height: auto;
  }
  
  .portfolio-page {
    padding-top: 20px; /* Reset for portfolio page with relative header */
  }
  
  .portfolio-page .home {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .input-email {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .newsletter-container {
    flex-direction: column;
    padding: 20px;
    margin: 40px 0 60px 0;
    border-radius: 0;
    width: 100%;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .product-page .main {
    grid-template-columns: 1fr; /* Single column on very small screens */
    gap: 20px;
    padding: 20px 10px;
  }
  
  .product-page .product-container {
    height: 570px; /* Increased height for mobile to accommodate larger titles */
  }
  
  .product-page .image {
    height: 280px; /* Smaller image height for mobile */
  }
  
  .product-details {
    height: 290px; /* Increased details height for mobile */
    padding: 20px;
  }
  
  .product-title {
    font-size: 1.1rem; /* Slightly smaller title on mobile */
    height: 70px; /* Increased height for mobile */
    line-height: 1.3;
  }
}

/* Removed quick view modal - replaced with simple overlay */
/* Hide any remaining quick view buttons */
.quick-view-button,
.quick-view-btn,
button[onclick*="openQuickView"] {
  display: none !important;
}

/* ==============================================================================
   SMALL MOBILE RESPONSIVE DESIGN (up to 480px)
   ============================================================================== */
@media (max-width: 480px) {
  /* Base small mobile improvements */
  html {
    font-size: 13px;
  }
  
  body {
    font-size: 13px;
    min-width: 320px;
  }
  
  /* Navigation for small screens */
  .top-navbar {
    padding: 8px 10px;
    min-height: 60px;
  }
  
  .logo {
    width: 120px !important;
  }
  
  .logo img {
    max-width: 100%;
    height: auto;
  }
  
  .icons {
    gap: 10px;
  }
  
  .icons i {
    font-size: 1.1rem;
  }
  
  .bottom-navbar {
    padding: 8px 0;
  }
  
  .bottom-navbar ul {
    gap: 10px;
    padding: 0 10px;
  }
  
  .bottom-navbar li a {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
  
  /* Typography adjustments */
  .page-title {
    font-size: 2rem !important;
  }
  
  .page-subtitle {
    font-size: 0.9rem !important;
  }
  
  .hero-content h1 {
    font-size: 2.2rem !important;
  }
  
  .hero-content p {
    font-size: 1rem !important;
  }
  
  /* Product grid for small mobile */
  .product-page .main {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 20px 10px !important;
  }
  
  .product-container {
    height: 500px !important;
    margin: 0 auto;
    max-width: 300px;
  }
  
  /* Product detail page small mobile */
  .product-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 10px;
  }
  
  .main-image {
    height: 280px !important;
  }
  
  .thumbnail {
    width: 60px !important;
    height: 60px !important;
  }
  
  .thumbnail-gallery {
    gap: 8px !important;
  }
  
  .product-title {
    font-size: 1.2rem !important;
  }
  
  .current-price {
    font-size: 1.3rem !important;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-add-cart,
  .btn-buy-now {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
  }
  
  /* Forms and inputs */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }
  
  /* Buttons */
  button {
    min-height: 44px; /* Touch target size */
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  /* Footer adjustments */
  .footer-table {
    display: block !important;
  }
  
  .footer-table tr {
    display: block !important;
  }
  
  .footer-table td {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* Hero section small mobile */
  .hero-section {
    height: 40vh !important;
    min-height: 250px !important;
  }
  
  /* Search functionality */
  .search-container {
    width: 200px !important;
    right: 0 !important;
  }
  
  /* Cart and user icons */
  .cart-counter {
    font-size: 0.7rem !important;
    width: 16px !important;
    height: 16px !important;
  }
}

/* ==============================================================================
   VERY SMALL MOBILE RESPONSIVE DESIGN (up to 360px)
   ============================================================================== */
@media (max-width: 360px) {
  /* Ultra small screen adjustments */
  .logo {
    width: 100px !important;
  }
  
  .page-title {
    font-size: 1.8rem !important;
  }
  
  .hero-content h1 {
    font-size: 2rem !important;
  }
  
  .main-image {
    height: 250px !important;
  }
  
  .product-container {
    max-width: 280px;
    height: 450px !important;
  }
  
  .bottom-navbar ul {
    gap: 8px;
  }
  
  .bottom-navbar li a {
    font-size: 0.75rem;
    padding: 5px 6px;
  }
}
