/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f8f9ff;
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  min-height: 80px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  /* align-items: center;
  padding: 1rem 2%; */
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo h2 {
  color: #e91e63;
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #e91e63, #ff4081);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #e91e63, #ff4081);
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: #e91e63;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  padding: 0.25rem;
  width: 200px;
  font-size: 0.95rem;
}

.search-box button {
  border: none;
  background: linear-gradient(135deg, #e91e63, #ff4081);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-box button:hover {
  transform: scale(1.1);
}

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

.user-actions i {
  font-size: 1.3rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.user-actions i:hover {
  color: #e91e63;
  background: rgba(233, 30, 99, 0.1);
  transform: translateY(-2px);
}

.login-btn {
  background: linear-gradient(135deg, #e91e63, #ff4081);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mobile-menu:hover {
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
}

/* Mobile Actions Container */
.mobile-actions {
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.mobile-search-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #333;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.mobile-search-toggle:hover {
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  transform: scale(1.05);
}

.mobile-search-toggle:active {
  transform: scale(0.95);
  background: rgba(233, 30, 99, 0.2);
}

/* Hide mobile menu in favor of search-only approach */
.mobile-menu {
  display: none !important;
}

/* Add pulse animation when search is ready */
@keyframes searchPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
  }
}

.mobile-search-toggle:focus {
  animation: searchPulse 1.5s infinite;
  outline: none;
}

/* Mobile Search Bar */
.mobile-search-bar {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  /* Lower than mobile nav */
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-search-bar.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Ensure mobile nav appears above search */
.mobile-nav {
  z-index: -10000;
}

.mobile-search-container {
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.mobile-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 0 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.mobile-search-input-wrapper:focus-within {
  border-color: #e91e63;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15), 0 6px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mobile-search-icon {
  color: #6c757d;
  margin-right: 12px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.mobile-search-input-wrapper:focus-within .mobile-search-icon {
  color: #e91e63;
}

.mobile-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  padding: 15px 0;
  font-size: 16px;
  color: #333;
  font-weight: 400;
}

.mobile-search-input::placeholder {
  color: #6c757d;
}

.mobile-search-close {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.mobile-search-close:hover {
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  transform: rotate(90deg);
}

.mobile-search-suggestions {
  margin-top: 15px;
}

.mobile-nav-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.mobile-nav-section h4,
.search-suggestions-section h4 {
  margin: 0 0 12px 0;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-links-inline {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-link-mobile {
  background: linear-gradient(135deg, #e91e63, #ff4081);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.nav-link-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  background: linear-gradient(135deg, #d81b60, #e91e63);
}

.search-suggestions-section {
  margin-top: 10px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 15px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggestion-item:hover {
  background: linear-gradient(135deg, #e91e63, #ff4081);
  color: white;
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.suggestion-item:active {
  transform: translateX(8px) scale(0.98);
}

.suggestion-item i {
  margin-right: 12px;
  font-size: 0.9rem;
  opacity: 0.7;
  min-width: 16px;
}

.suggestion-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Animation for suggestions */
.mobile-search-bar.active .suggestion-item {
  animation: slideInUp 0.5s ease-out forwards;
}

.suggestion-item:nth-child(1) {
  animation-delay: 0.1s;
}

.suggestion-item:nth-child(2) {
  animation-delay: 0.2s;
}

.suggestion-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  transition: right 0.3s ease;
}

.mobile-nav.active {
  right: 0;
  display: block;
}

.mobile-nav-content {
  background: white;
  width: 80%;
  height: 100%;
  margin-left: auto;
  padding: 60px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  margin-bottom: 20px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: block;
}

.mobile-search {
  margin: 20px 0;
}

.mobile-search input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e91e63;
  border-radius: 5px;
  font-size: 16px;
}

.mobile-user-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.mobile-user-actions i {
  font-size: 1.5rem;
  color: #e91e63;
  cursor: pointer;
}

.mobile-login-btn {
  background: linear-gradient(135deg, #e91e63, #ff4081);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}


/* Main Content */
.main {
  padding: 120px 0 40px 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #2c2c54;
}

.sort-filter {
  display: flex;
  align-items: start;
  gap: 10px;
  color: #666;
  font-weight: 500;
}

.sort-select {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #333;
  outline: none;
  cursor: pointer;
}

.sort-select option {
  background: white;
  color: #333;
}

.products-container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.products-container.loading {
  opacity: 0.7;
  transform: translateY(5px);
}

.products-layout {
  display: flex;
  gap: 30px;
  min-height: 600px;
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #f8f9ff;
  border-radius: 12px;
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 120px;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  color: #ff4081;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 64, 129, 0.1);
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c2c54;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff4081;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  margin-bottom: 20px;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff4081;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-toggle-btn:hover {
  background: #e91e63;
  transform: translateY(-2px);
}

.sidebar-section {
  margin-bottom: 25px;
}

.sort-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sort-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.sort-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.sort-select:hover {
  border-color: #ff4081;
}

.sort-select:focus {
  border-color: #ff4081;
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 0;
}

.products-wrapper {
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.products-page {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-page.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.products-page.loading {
  opacity: 0.5;
  transform: translateY(10px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  max-width: 320px;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  text-transform: uppercase;
}

.product-badge.sale {
  background: #ff4081;
}

.product-badge.new {
  background: #4caf50;
}

.product-badge.featured {
  background: #ff9800;
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-subtitle {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
}

.sale-price {
  color: #ff4081;
  font-weight: 700;
  font-size: 18px;
}

.add-to-cart {
  width: 100%;
  background: #ff4081;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-to-cart:hover {
  background: #e91e63;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
}

/* Custom Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid #ff4081;
  background: white;
  color: #ff4081;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
  background: #ff4081;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

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

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-num {
  width: 45px;
  height: 45px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 16px;
}

.page-num:hover {
  border-color: #ff4081;
  color: #ff4081;
  transform: scale(1.1);
}

.page-num.active {
  background: #ff4081;
  border-color: #ff4081;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(255, 64, 129, 0.3);
}

/* Footer */
.footer {
  background-color: #E7E4F8;
  padding: 50px 0 0;
  width: 100%;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 32px;
  color: #0D0E43;
  font-weight: 700;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 22px;
  color: #0D0E43;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info h4 {
  font-size: 18px;
  color: #0D0E43;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-info p {
  color: #8A8FB9;
  line-height: 1.8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #FB2E86;
  width: 16px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #8A8FB9;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
  line-height: 1.6;
}

.footer-section ul li a:hover {
  color: #FB2E86;
}

.footer-bottom {
  width: 100%;
  background-color: #E7E4F8;
  border-top: 1px solid #C7C8D3;
  padding: 20px 0;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #9DA0AE;
  font-size: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  background-color: #FB2E86;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #0D0E43;
  transform: translateY(-2px);
}

.footer-powered {
  background-color: #000000;
  width: 100%;
  padding: 12px 0;
  text-align: center;
}

.footer-powered p {
  color: #FFFFFF;
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 4px;
}

.footer-powered strong {
  color: #FB2E86;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .header-actions {
    gap: 1rem;
  }

  .search-box input {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .main {
    padding-top: 100px;
  }

  .navbar {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-actions .search-box {
    display: none;
  }

  .page-header {
    padding: 40px 0 30px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .breadcrumbs {
    font-size: 14px;
  }

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

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .filters-sidebar {
    display: none;
  }

  .products-content {
    grid-template-columns: 1fr;
  }

  .view-toggle {
    gap: 10px;
  }

  .view-toggle button {
    padding: 8px 12px;
    font-size: 14px;
  }

  .product-card h3 {
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

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

  .nav-wrapper {
    position: relative;
  }

  .navbar {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
  }

  .navbar.active {
    left: 0;
  }

  .navbar ul {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .navbar a {
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .mobile-menu {
    display: block;
  }

  .header-actions {
    gap: 10px;
  }

  .search-box {
    display: none;
  }

  .user-actions {
    gap: 15px;
  }

  .login-btn {
    padding: 0.5rem 1rem;
    font-size: 14px;
  }

  .page-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 20px;
  }

  .page-title {
    font-size: 28px;
  }

  /* Responsive Sidebar */
  .products-layout {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1500;
    padding: 80px 25px 25px;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-header {
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    z-index: 10;
  }

  .sidebar-toggle {
    display: block;
  }

  .sidebar-title {
    font-size: 18px;
    border-bottom: none;
    padding-bottom: 0;
  }

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

  /* Mobile sidebar backdrop */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .products-container {
    padding: 20px 15px;
  }

  .footer {
    padding: 40px 5% 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 15px 0;
  }

  .pagination {
    flex-direction: column;
    gap: 15px;
  }

  .pagination-btn {
    padding: 10px 15px;
    font-size: 12px;
  }

  .page-num {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .main {
    padding-top: 90px;
    padding-bottom: 20px;
  }

  .logo h2 {
    font-size: 1.5rem;
  }

  .sidebar {
    padding: 15px;
    border-radius: 8px;
  }

  .sidebar-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .sort-select {
    padding: 10px 12px;
    font-size: 13px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding: 15px;
    margin-bottom: 20px;
  }

  .products-container {
    padding: 15px 10px;
    margin-bottom: 20px;
  }

  .product-card {
    margin: 0 auto;
    max-width: 300px;
  }

  .header-actions {
    gap: 8px;
  }

  .user-actions {
    gap: 10px;
  }

  .user-actions i {
    font-size: 1.1rem;
    padding: 0.3rem;
  }

  .login-btn {
    padding: 0.4rem 0.8rem;
    font-size: 12px;
  }

  .footer-section h3 {
    font-size: 24px;
  }

  .footer-section h4 {
    font-size: 18px;
  }

  .footer {
    padding: 30px 5% 0;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .logo h2 {
    font-size: 1.3rem;
  }

  .products-container {
    padding: 10px 5px;
  }

  .pagination {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .page-num {
    width: 35px;
    height: 35px;
    font-size: 13px;
  }

  .page-header {
    padding: 10px;
  }

  .page-title {
    font-size: 20px;
  }

  .product-card {
    max-width: 280px;
  }

  .user-actions i {
    font-size: 1rem;
  }

  .login-btn {
    padding: 0.3rem 0.6rem;
    font-size: 11px;
  }
}

/* ===================================================
   TABLET RESPONSIVE ENHANCEMENTS
   ===================================================
   Additional tablet optimizations for GridDefault layout
   ================================================== */

/* LARGE TABLETS (1024px - 1366px) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
  }

  .product-card {
    max-width: 300px;
  }

  .sidebar {
    width: 260px;
    padding: 20px;
  }

  .sidebar-title {
    font-size: 18px;
  }

  .sort-select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .pagination-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .page-num {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
}

/* STANDARD TABLETS (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .main {
    padding-top: 90px;
  }

  .page-header {
    padding: 25px;
    margin-bottom: 25px;
  }

  .page-title {
    font-size: 32px;
  }

  .products-layout {
    gap: 25px;
  }

  .sidebar {
    width: 240px;
    padding: 20px;
    top: 100px;
  }

  .sidebar-title {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .sidebar-section {
    margin-bottom: 20px;
  }

  .sort-label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .sort-select {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
  }

  .products-container {
    padding: 25px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: none;
  }

  .product-card {
    max-width: 100%;
  }

  .product-image {
    height: 180px;
  }

  .product-info {
    padding: 18px;
  }

  .product-title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .product-subtitle {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .sale-price {
    font-size: 16px;
  }

  .original-price {
    font-size: 13px;
  }

  .add-to-cart {
    padding: 10px;
    font-size: 13px;
    border-radius: 8px;
  }

  .pagination {
    margin-top: 30px;
    gap: 15px;
  }

  .pagination-btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 20px;
  }

  .page-num {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Header adjustments for tablets */
  .header {
    min-height: 70px;
  }

  .nav-wrapper {
    padding: 0.8rem 2%;
  }

  .navbar ul {
    gap: 2rem;
  }

  .navbar a {
    font-size: 15px;
  }

  .search-box input {
    width: 160px;
    font-size: 14px;
  }

  .user-actions i {
    font-size: 1.2rem;
  }

  .login-btn {
    padding: 0.6rem 1.2rem;
    font-size: 14px;
  }

  /* Footer tablet optimizations */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    padding: 0 4%;
  }

  .footer-section h3 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .contact-info p {
    font-size: 15px;
  }

  .footer-section ul li a {
    font-size: 15px;
  }

  .footer-bottom-content {
    padding: 0 4%;
  }

  .footer-bottom p {
    font-size: 15px;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .footer-logo-img {
    height: 80px;
  }
}

/* SMALL TABLETS (600px - 768px) */
@media screen and (min-width: 600px) and (max-width: 768px) {
  .header {
    min-height: 65px;
  }

  .nav-wrapper {
    padding: 0.6rem 2%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    order: 1;
  }

  .logo h2 {
    font-size: 1.4rem;
  }

  .navbar {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }

  .navbar ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar a {
    font-size: 14px;
    padding: 0.3rem 0;
  }

  .header-actions {
    order: 2;
    gap: 0.8rem;
  }

  .search-box {
    display: none;
  }

  .mobile-actions {
    display: flex;
  }

  .user-actions i {
    font-size: 1.1rem;
  }

  .login-btn {
    padding: 0.5rem 1rem;
    font-size: 13px;
  }

  .main {
    padding-top: 95px;
  }

  .page-header {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .products-layout {
    flex-direction: column;
    gap: 20px;
  }

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

  .sidebar {
    position: fixed;
    width: 100%;
    max-width: 350px;
    left: -100%;
    z-index: 1500;
    padding: 70px 20px 20px;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-backdrop {
    display: none;
  }

  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
  }

  .products-container {
    padding: 20px;
  }

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

  .product-card {
    max-width: 100%;
  }

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 15px;
  }

  .product-title {
    font-size: 12px;
  }

  .product-subtitle {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .sale-price {
    font-size: 15px;
  }

  .original-price {
    font-size: 12px;
  }

  .add-to-cart {
    padding: 9px;
    font-size: 12px;
  }

  .pagination {
    margin-top: 25px;
    gap: 12px;
  }

  .pagination-btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  .page-numbers {
    gap: 8px;
  }

  .page-num {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  /* Footer for small tablets */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-section h3 {
    font-size: 22px;
  }

  .footer-section h4 {
    font-size: 17px;
  }

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

  /* Mobile search bar positioning */
  .mobile-search-bar {
    top: 85px;
  }
}

/* TABLET ORIENTATION SPECIFIC */
@media screen and (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .product-image {
    height: 150px;
  }

  .sidebar {
    width: 220px;
    padding: 15px;
  }

  .main {
    padding-top: 80px;
  }

  .page-header {
    padding: 20px;
  }

  .page-title {
    font-size: 26px;
  }
}

/* TOUCH-FRIENDLY IMPROVEMENTS FOR TABLETS */
@media screen and (min-width: 600px) and (max-width: 1024px) {
  /* Ensure minimum 44px touch targets */
  .add-to-cart,
  .pagination-btn,
  .page-num,
  .filter-toggle-btn,
  .sidebar-toggle,
  .sort-select,
  .user-actions i,
  .navbar a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Better spacing for touch interactions */
  .user-actions {
    gap: 1.2rem;
  }

  .navbar ul {
    gap: 1.5rem;
  }

  .page-numbers {
    gap: 12px;
  }

  .pagination {
    gap: 16px;
  }

  /* Improved form elements */
  .sort-select {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Better contrast and visibility */
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  }

  .add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.4);
  }

  /* Focus indicators for better accessibility */
  .add-to-cart:focus,
  .pagination-btn:focus,
  .page-num:focus,
  .sort-select:focus {
    outline: 2px solid #ff4081;
    outline-offset: 2px;
  }

  /* Smoother scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }
}