/* Import the audio-themed fonts */
@import url("https://fonts.googleapis.com/css2?family=Audiowide:wght@400;700&family=Raleway:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

/* CSS Variables - Same as Homepage */
:root {
  --primary-color: #1b3c53;
  --secondary-color-1: #456882;
  --secondary-color-2: #d2c1b6;
  --secondary-color-3: #f9f3ef;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --white: #ffffff;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color-1)
  );
  --shadow-soft: 0 10px 40px rgba(27, 60, 83, 0.1);
  --shadow-hover: 0 20px 60px rgba(27, 60, 83, 0.2);
}

/* Base Typography */
body {
  font-family: "Raleway", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Audiowide", cursive;
  font-weight: 400;
  line-height: 1.2;
}

/* Floating Card Design */
.floating-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(27, 60, 83, 0.08);
}

.floating-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27, 60, 83, 0.15);
}

/* Shop Banner Section */
.shop-banner-section {
  background: var(--gradient-primary);
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.shop-banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/assets/shopPageBanner.jpeg") center/cover;
  opacity: 0.1;
  z-index: 0;
}

/* Audio Visualizer for Shop Banner */
.audio-visualizer-shop {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  opacity: 0.2;
  z-index: 1;
}

.frequency-bar-shop {
  width: 4px;
  background: var(--white);
  border-radius: 2px;
  animation: frequencyShop 2.5s ease-in-out infinite;
  animation-delay: var(--delay);
  height: var(--height);
}

@keyframes frequencyShop {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

.shop-banner-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  text-align: center;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.shop-banner-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.shop-banner-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.shop-breadcrumb .breadcrumb {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-breadcrumb .breadcrumb-item a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.shop-breadcrumb .breadcrumb-item a:hover {
  color: var(--secondary-color-2);
}

.shop-breadcrumb .breadcrumb-item.active {
  color: var(--secondary-color-2);
  font-weight: 500;
}

.shop-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary-color-2);
  content: "›";
  font-weight: 600;
}

/* Shop Content Section */
.shop-content-section {
  padding: 5rem 0;
  background: var(--secondary-color-3);
}

/* Filter Container */
.filters-container {
  position: sticky;
  top: 90px;
  margin-bottom: 2rem;
}

.filter-card {
  margin-bottom: 0;
}

.filter-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
}

.filter-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.filter-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.filter-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-content {
  padding: 1.5rem;
}

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

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

/* Filter Dropdown Styles */
.filter-dropdown-container {
  position: relative;
}

.filter-dropdown {
  width: 100%;
  appearance: none;
  background: var(--white);
  border: 2px solid var(--secondary-color-2);
  border-radius: 12px;
  padding: 0.875rem 2.5rem 0.875rem 1.25rem;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 60, 83, 0.1);
}

.filter-dropdown:hover {
  border-color: var(--secondary-color-1);
}

.dropdown-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color-1);
  pointer-events: none;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.filter-dropdown:focus + .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Price Filter */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--secondary-color-2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.price-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 60, 83, 0.1);
}

.price-currency {
  background: var(--secondary-color-2);
  color: var(--primary-color);
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
}

.price-input {
  border: none;
  background: transparent;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  width: 100%;
  outline: none;
  font-family: "Raleway", sans-serif;
}

.price-input::placeholder {
  color: var(--text-light);
}

.price-separator {
  color: var(--secondary-color-1);
  font-weight: 600;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
}

/* Filter Action Buttons */
.filter-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--secondary-color-2);
}

.btn-apply-filters {
  flex: 1;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-apply-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 60, 83, 0.3);
}

.btn-reset-filters {
  flex: 1;
  background: var(--white);
  color: var(--secondary-color-1);
  border: 2px solid var(--secondary-color-2);
  padding: 1rem;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-reset-filters:hover {
  background: var(--secondary-color-3);
  border-color: var(--secondary-color-1);
  color: var(--primary-color);
}

/* Shop Controls */
.shop-controls {
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sort-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-label {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.sort-dropdown {
  position: relative;
}

.custom-select {
  appearance: none;
  background: var(--white);
  border: 2px solid var(--secondary-color-2);
  border-radius: 12px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 60, 83, 0.1);
}

.sort-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color-1);
  pointer-events: none;
  font-size: 1.2rem;
}

.view-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-label {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.view-options {
  display: flex;
  background: var(--secondary-color-3);
  border-radius: 12px;
  padding: 0.25rem;
  border: 2px solid var(--secondary-color-2);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--secondary-color-1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.view-btn:hover {
  color: var(--primary-color);
  background: rgba(27, 60, 83, 0.1);
}

.view-btn.active {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(27, 60, 83, 0.2);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.product-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
  background: #f8f9fa;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-badge {
  background: var(--primary-color);
  color: var(--white);
}

.offer-badge {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 60, 83, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.quick-view-btn {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--white);
  border-radius: 25px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-view-btn:hover {
  background: var(--white);
  color: var(--primary-color);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.product-title {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

.product-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  margin: 0;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.current-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.original-price {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.offer-text {
  font-size: 0.8rem;
  color: #27ae60;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

.btn-wishlist-shop {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color-2);
  background: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-wishlist-shop:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.btn-wishlist-shop.wishlisted {
  background: #e74c3c;
  border-color: #e74c3c;
  color: var(--white);
}

.btn-add-cart-shop {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-add-cart-shop::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0.4s ease;
  z-index: 1;
}

.btn-add-cart-shop:hover::before {
  left: 0;
}

.btn-add-cart-shop i,
.btn-add-cart-shop span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.btn-add-cart-shop:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 60, 83, 0.3);
}

/* Pagination */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.page-item {
  margin: 0;
}

.page-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--secondary-color-2);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.page-link:hover {
  background: var(--secondary-color-3);
  border-color: var(--secondary-color-1);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(27, 60, 83, 0.3);
}

.page-item.disabled .page-link {
  color: var(--text-light);
  background: var(--secondary-color-3);
  border-color: var(--secondary-color-2);
  cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
  transform: none;
}

.product-count-info {
  font-family: "Raleway", sans-serif;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--secondary-color-1);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .filters-container {
    position: relative;
    top: 0;
    margin-bottom: 1.5rem;
  }

  .filter-content {
    display: none;
  }

  .filter-content.show {
    display: block;
  }

  .shop-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .sort-section,
  .view-section {
    justify-content: space-between;
  }

  .custom-select {
    min-width: auto;
    flex: 1;
  }
}

/* Large screens - 4 columns */
@media (min-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1600px;
    gap: 3rem;
  }
  
  .product-card {
    max-width: 350px;
  }
}

/* Medium-large screens - 3 columns */
@media (min-width: 992px) and (max-width: 1399px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    gap: 2.5rem;
  }
  
  .product-card {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .shop-banner-title {
    font-size: 2.5rem;
  }

  .shop-banner-subtitle {
    font-size: 1.1rem;
  }

  .shop-content-section {
    padding: 3rem 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .product-card {
    max-width: 320px;
    height: 520px;
  }

  .audio-visualizer-shop {
    right: 5%;
    scale: 0.8;
  }
}

@media (max-width: 576px) {
  .shop-banner-section {
    min-height: 300px;
  }

  .shop-banner-title {
    font-size: 2rem;
  }

  .shop-banner-subtitle {
    font-size: 1rem;
  }

  .filter-header {
    padding: 1.25rem;
  }

  .filter-content {
    padding: 1.25rem;
  }

  .filter-actions {
    flex-direction: column;
  }

  .shop-controls {
    padding: 1.25rem;
  }

  .sort-section,
  .view-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .view-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .price-inputs {
    flex-direction: column;
    gap: 0.75rem;
  }

  .price-separator {
    display: none;
  }

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

  .audio-visualizer-shop {
    display: none;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Make shop content use full width */
.shop-content-section .container {
  max-width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Ensure products grid uses full available width */
.products-grid {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Responsive adjustments for full width */
@media (max-width: 768px) {
  .shop-content-section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 576px) {
  .shop-content-section .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}