/* IMPORT BASE STYLES FROM HOME */
:root {
  --bg-main: #869897;
  --bg-band: #8ea39e;
  --bg-footer: #6f8581;
  --text-main: #0f1514;
  --text-light: #f5f8f7;
  --accent: #ff914d;
  --accent-dark: #e26820;
  --badge-bg: #111416;
}

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

@font-face {
  font-family: silver;
  src: url(/user/fonts/fonnts.com-Silver_Streak.otf) format("opentype");
}

@font-face {
  font-family: Roboto;
  src: url(/user/fonts/roboto/Roboto-Medium.ttf);
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.section {
  width: 100%;
}

.container {
  width: min(1400px, 92%);
  margin-inline: auto;
}

/* ==================== NAVBAR (Same as Home) ==================== */
.topbar {
  background: var(--bg-main);
  color: var(--text-light);
  padding-block: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgb(181, 5, 5);
  font-family: silver;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 100px;
  font-family: Roboto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-icon {
  position: relative;
  color: var(--text-light);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 24px;
  justify-content: space-between;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text-light);
  transition: all 0.3s ease;
}

/* PROFILE DROPDOWN */
.profile-dropdown-wrapper {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dropdown-user-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 1rem;
}

.dropdown-menu {
  list-style: none;
  padding: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(255, 145, 77, 0.1);
  color: var(--accent);
}

.dropdown-item i {
  width: 20px;
  font-size: 1.1rem;
  text-align: center;
}

.dropdown-footer {
  padding: 0.5rem 0;
}

.dropdown-item.logout {
  color: #dc3545;
}

.dropdown-item.logout:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #c82333;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==================== BUTTONS ==================== */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn.primary {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--text-main);
  color: var(--text-main);
}

.btn.outline:hover {
  background: var(--text-main);
  color: var(--bg-main);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-band) 100%);
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 145, 77, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: silver;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  opacity: 0.9;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ==================== PRODUCTS MAIN SECTION ==================== */
.products-main-section {
  padding: 4rem 0;
  background: var(--bg-band);
}

.products-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ==================== SIDEBAR ==================== */
.products-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.filter-toggle {
  display: none;
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.filter-toggle:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.sidebar-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.filter-section {
  margin-bottom: 2.5rem;
  animation: slideIn 0.5s ease;
}

.filter-section:last-of-type {
  margin-bottom: 2rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

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

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.filter-title i {
  color: var(--accent);
  font-size: 1rem;
}

/* Category List */
.category-list {
  list-style: none;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.category-item:hover {
  background: rgba(255, 145, 77, 0.1);
  transform: translateX(5px);
}

.category-item.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 145, 77, 0.3);
}

.category-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.category-count {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-item.active .category-count {
  background: rgba(255, 255, 255, 0.3);
}

/* Dual Range Slider */
.price-range-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.8rem;
  border-radius: 12px;
  text-align: center;
}

.dual-range-slider {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.slider-track {
  width: 100%;
  height: 6px;
  position: absolute;
  background: #ddd;
  border-radius: 10px;
}

.dual-range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  border: 4px solid white;
  background: var(--accent);
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.dual-range-slider input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.3);
}

/* Size Filter */
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.size-btn {
  padding: 0.8rem;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background: white;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.size-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(255, 145, 77, 0.4);
}

/* Color Filter */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.color-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.color-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.color-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.color-btn.active {
  border-color: var(--text-main);
  transform: scale(1.05);
}

.color-btn.active::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Clear Filters Button */
.clear-filters {
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.clear-filters:hover {
  transform: translateY(-2px);
}

/* ==================== PRODUCTS CONTENT ==================== */
.products-content {
  min-height: 600px;
}

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.toolbar-left .results-count {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.toolbar-left .results-count span {
  font-weight: 700;
  color: var(--accent);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.view-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 0.3rem;
  gap: 0.3rem;
}

.view-btn {
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: rgba(255, 145, 77, 0.1);
}

.view-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 145, 77, 0.3);
}

.sort-select {
  padding: 0.8rem 1.2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  font-weight: 500;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.1);
}

/* ==================== PRODUCT SEARCH ==================== */
.product-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 280px;
}

.product-search input[type="text"] {
  width: 100%;
  padding: 0.8rem 3rem 0.8rem 1.2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  font-weight: 500;
  background: white;
  transition: all 0.3s ease;
}

.product-search input[type="text"]::placeholder {
  color: #999;
  font-weight: 400;
}

.product-search input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.1);
}

.product-search #clearSearchBtn {
  position: absolute;
  right: 42px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 0.85rem;
  padding: 0.4rem;
  display: none;
  transition: color 0.2s ease;
}

.product-search #clearSearchBtn:hover {
  color: #dc3545;
}

.product-search button:last-child {
  position: absolute;
  right: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 145, 77, 0.25);
}

.product-search button:last-child:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 145, 77, 0.4);
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

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

/* Product Card */
.product-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: cardEntry 0.6s ease backwards;
  position: relative;
}

@keyframes cardEntry {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

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

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-card:nth-child(2) {
  animation-delay: 0.15s;
}

.product-card:nth-child(3) {
  animation-delay: 0.2s;
}

.product-card:nth-child(4) {
  animation-delay: 0.25s;
}

.product-card:nth-child(5) {
  animation-delay: 0.3s;
}

.product-card:nth-child(6) {
  animation-delay: 0.35s;
}

.product-card:nth-child(7) {
  animation-delay: 0.4s;
}

.product-card:nth-child(8) {
  animation-delay: 0.45s;
}

.product-card:nth-child(9) {
  animation-delay: 0.5s;
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
}

/* ==================== UNAVAILABLE PRODUCT (Blocked) ==================== */
.product-card.product-unavailable {
  opacity: 0.65;
  pointer-events: none;
  filter: grayscale(40%);
}

.product-card.product-unavailable:hover {
  transform: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.unavailable-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border-radius: 0;
}

.unavailable-text {
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.unavailable-price {
  color: #dc3545 !important;
  font-weight: 600 !important;
  font-style: italic;
}

.product-image {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
  transform: scale(1.15) rotate(2deg);
}

.product-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.product-badge.hot {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.product-badge.sale {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.wishlist-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.wishlist-btn:hover {
  background: white;
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wishlist-btn.active i {
  color: var(--accent);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.product-card:hover .product-overlay {
  transform: translateY(0);
}

.quick-view-btn {
  width: 100%;
  padding: 0.9rem;
  background: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.quick-view-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 145, 77, 0.4);
}

.product-info {
  padding: 1.8rem;
}

.product-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.product-card:hover .product-name {
  color: var(--accent);
}

.product-category {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  color: #ffa500;
  font-size: 0.9rem;
}

.product-rating span {
  color: #999;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.old-price {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.add-to-cart-btn {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(255, 145, 77, 0.3);
  white-space: nowrap;
}

.add-to-cart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 145, 77, 0.5);
}

.add-to-cart-btn:active {
  transform: translateY(-1px);
}

.add-to-cart-btn.added {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.add-to-cart-btn.btn-icon-circle {
  padding: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  justify-content: center;
  gap: 0;
}

.add-to-cart-btn.btn-icon-circle i {
  font-size: 1.1rem;
  transform: rotate(30deg);
}

/* List View */
.products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.products-grid.list-view .product-image {
  height: 100%;
  min-height: 250px;
}

.products-grid.list-view .product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==================== PAGINATION ==================== */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.page-btn {
  min-width: 45px;
  height: 45px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(.active):not(:disabled) {
  background: rgba(255, 145, 77, 0.1);
  transform: translateY(-2px);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(255, 145, 77, 0.4);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-dots {
  padding: 0 0.5rem;
  color: #999;
  font-weight: 600;
}

.pagination-info {
  color: #666;
  font-size: 0.95rem;
}

.pagination-info span {
  font-weight: 700;
  color: var(--text-main);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-footer);
  color: var(--text-light);
  padding-block: 2.7rem 2.3rem;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-text {
  margin-top: 0.8rem;
  max-width: 260px;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.footer-social a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.2rem;
  border-radius: 999px;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.footer-center h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
  padding-top: 2rem;
}

.footer-right {
  padding-top: 2rem;
}

.footer-right h4 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.footer-right p {
  font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE OVERHAUL (From Scratch)
   ========================================== */

/* Tablet & Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }

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

  .sidebar-sticky {
    position: static;
  }

  .filter-toggle {
    display: flex;
  }

  .sidebar-content {
    display: none;
    animation: slideDown 0.3s ease;
  }

  .sidebar-content.open {
    display: block;
  }
}

/* Tablet / Mobile Layout Transition (max-width: 768px) */
@media (max-width: 768px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .toolbar-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    justify-content: space-between;
  }

  .product-search {
    max-width: 100%;
    margin-bottom: 1rem;
  }

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

  .product-image {
    height: 220px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .product-footer {
    margin-top: 0.8rem;
  }

  .page-header {
    padding: 4rem 0 2rem;
  }
}

/* Standard Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    width: 95%;
  }

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

  .page-subtitle {
    font-size: 1rem;
  }

  .sidebar-content {
    padding: 1.5rem;
  }

  .add-to-cart-btn span {
    display: none;
  }

  .add-to-cart-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    justify-content: center;
  }

  .view-toggle {
    display: none;
  }

  .profile-dropdown {
    width: 240px;
    right: -20px;
  }
}

/* Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-image {
    height: 250px;
  }

  .sidebar-content {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .filter-title {
    font-size: 1rem;
  }

  .size-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-toolbar {
    padding: 1rem;
    border-radius: 14px;
  }

  .sort-select {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .page-header {
    padding: 3rem 0 1.5rem;
  }
}

/* Slide Down Animation Fix */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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