/* ==========================================================================
   CATEGORY PAGE STYLES
   This file contains styles specific to the category page only.
   NOTE: Brand colors defined in brand-variables.css
   ========================================================================== */

:root {
  /* Non-brand colors */
  --secondary: #476A6F;
  --color-gray-text: #898984;
  --color-gray-border: #ccc;
  --color-green: #00b67a;
  --color-red: #b00707;
  --color-gray-background: #f1f1f1;
  --color-476a6f: #476A6F;
  --color-1c1b1b: #1c1b1b;
  
  /* Font aliases */
  --primary-font: Lato;
  --secondary-font: Lato;
}

/* ==========================================================================
   CATEGORY PAGE LAYOUT
   ========================================================================== */

.category-page {
  font-family: var(--primary-font);
  color: #000;
  background-color: white;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.category-page *,
.category-page *::before,
.category-page *::after {
  box-sizing: border-box;
}

.category-page__container {
  display: flex;
  width: 100% !important;
  flex-direction: column;
  padding-left: 1rem !important;
  padding-right: 1rem;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-page__header {
  margin-bottom: 30px;
}

.category-page__title {
  font-size: 32px;
  font-weight: 600;
  font-family: var(--font-bold);
  color: var(--color-black);
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 50px;
}

/* ==========================================================================
   CATEGORY PILLS
   ========================================================================== */

.category-page__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-page__pill {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: var(--color-black);
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.category-page__pill:hover {
  background-color: #e8e8e8;
}

.category-page__pill--active {
  background-color: var(--brand);
  color: white;
  border-color: var(--brand);
}

.category-page__pill--active:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* ==========================================================================
   CONTROLS BAR
   ========================================================================== */

.category-page__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-gray-border);
  margin-bottom: 30px;
}

.category-page__results {
  font-size: 14px;
  color: var(--color-gray-text);
  font-family: var(--font-primary);
}

.category-page__results strong {
  color: var(--color-black);
  font-weight: 600;
}

.category-page__sort-filter {
  display: flex;
  gap: 20px;
  align-items: center;
}

.category-page__sort,
.category-page__filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-page__sort label,
.category-page__filter label {
  font-size: 14px;
  color: var(--color-gray-text);
  font-family: var(--font-primary);
}

.category-page__dropdown {
  padding: 8px 35px 8px 12px;
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-black);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 10.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.category-page__dropdown:focus {
  outline: none;
  border-color: var(--color-nava);
}

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.category-page__products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

/* ==========================================================================
   PAGINATION (Desktop/Base)
   ========================================================================== */

.category-page__pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.category-page__pagination-button {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  padding: 8px 12px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-semibold);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-nava);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.category-page__pagination-button:hover {
  background-color: var(--color-gray-background);
}

.category-page__pagination-page {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.category-page__pagination-page--active {
  background-color: var(--color-nava-pressed);
  color: var(--color-white);
  border-color: var(--color-nava-pressed);
}

.category-page__pagination-ellipsis {
  color: var(--color-gray-text);
  padding: 0 4px;
}

.category-page__pagination-icon {
  width: 20px;
  height: 20px;
}

.category-page__pagination-icon--left {
  transform: rotate(180deg);
}

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

@media (max-width: 1024px) {
  .category-page__products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .category-page__container {
    padding: 15px;
  }
  
  .category-page__title {
    font-size: 24px;
  }
  
  .category-page__controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .category-page__sort-filter {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .category-page__sort,
  .category-page__filter {
    width: 100%;
  }
  
  .category-page__dropdown {
    width: 100%;
  }
  
  .category-page__products {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* ==========================================================================
   FILTER SIDEBAR
   ========================================================================== */

.filter-section {
  margin-bottom: var(--spacing-xl);
}

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

.filter-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.filter-section__title {
  font-family: var(--font-bold);
  font-size: var(--font-size-16);
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
  letter-spacing: 0.32px;
}

.filter-section__clear {
  background: none;
  border: none;
  color: var(--color-gray-text);
  font-family: var(--font-semibold);
  font-size: var(--font-size-14);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.filter-section__clear:hover {
  opacity: 0.8;
}

.filter-divider {
  height: 1px;
  background-color: var(--color-gray-border);
  margin: var(--spacing-xl) 0;
}

/* Price Range Filter */
.price-range {
  margin-bottom: var(--spacing-md);
}

.price-range__inputs {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.price-range__input {
  width: 75px;
  height: 48px;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  padding: 0 var(--spacing-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-14);
  color: var(--color-black);
  text-align: center;
}

.price-range__input:focus {
  outline: none;
  border-color: var(--color-nava);
}

.price-range__separator {
  font-family: var(--font-primary);
  font-size: var(--font-size-14);
  color: var(--color-black);
}

.price-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.price-option {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.price-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-nava);
}

.price-option__text {
  font-family: var(--font-primary);
  font-size: var(--font-size-16);
  font-weight: 500;
  color: var(--color-nava-pressed);
  line-height: var(--line-height-30);
}

/* Brand Filter */
.brand-search {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.brand-search__input {
  flex: 1;
  max-width: 180px;
  height: 48px;
  border: 1px solid var(--color-gray-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 var(--spacing-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-14);
  color: var(--color-gray-text);
}

.brand-search__input:focus {
  outline: none;
  border-color: var(--color-nava);
}

.brand-search__button {
  min-width: 48px;
  height: 48px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.brand-search__button:hover {
  background-color: var(--color-gray-background);
}

.brand-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.brand-option {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.brand-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-nava);
}

.brand-option__text {
  font-family: var(--font-primary);
  font-size: var(--font-size-16);
  font-weight: 500;
  color: var(--color-black);
  line-height: var(--line-height-30);
}

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-white);
  border-radius: var(--border-radius-brand, 8px);
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: 0 solid var(--baseBorder, #ccc);
  box-shadow: none;
  height: 100%;
  padding: 0;
  opacity: 1;
  animation: fadeIn 1s both;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

.product-card--hover {
  border-color: var(--color-gray-text);
}

/* Product card link - remove all underlines */
.product-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.product-card-link:hover,
.product-card-link:focus,
.product-card-link:visited,
.product-card-link:active {
  text-decoration: none !important;
}

/* Remove underlines from all child elements */
.product-card-link *,
.product-card-link h3,
.product-card-link p,
.product-card-link span {
  text-decoration: none !important;
}

.product-card__image-wrapper,
.product-card__image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--cardImg, #f9fafc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: transform 0.3s ease;
}

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

/* Wishlist button - heart icon in top right */
.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  padding: 0;
}

.product-card__wishlist svg {
  width: 18px;
  height: 18px;
  stroke: #666;
  fill: none;
  transition: all 0.2s ease;
}

.product-card__wishlist:hover {
  background-color: var(--brand);
  border-color: var(--brand);
}

.product-card__wishlist:hover svg {
  stroke: white;
}

.product-card__wishlist.active svg {
  fill: var(--brand);
  stroke: var(--brand);
}

.product-card__content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  margin-bottom: 8px; /* extra space before Add to Cart */
}

.product-card__name,
.product-card__title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.4;
  text-align: center;
  margin: 0;
  min-height: 40px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__brand {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px; /* tighter spacing above price */
  max-height: 48px;
}

.product-card__price-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.product-card__price {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.5px;
  order: 1;
}

.product-card__price--original {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-gray-text);
  text-decoration: line-through;
  order: 2;
}

.product-card__stock {
  font-family: var(--primary-font);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin: 4px 0;
  display: none;
}

.product-card__stock--in {
  color: var(--color-green);
}

.product-card__stock--out {
  color: var(--color-red);
}

/* Compatibility for old class names */
.product-card__price-current {
  font-family: var(--primary-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.product-card__price-original {
  font-family: var(--primary-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray-text);
  text-decoration: line-through;
}

.product-card__cart-form {
  margin-top: auto;
}

.product-card__add-to-cart {
  background-color: var(--brand);
  color: white;
  border: none;
  border-radius: 0 0 8px 8px;
  padding: 12px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 64px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.product-card:hover .product-card__add-to-cart {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-card__add-to-cart:hover {
  background-color: var(--brand-hover);
}

.product-card__add-to-cart.btn--disabled,
.product-card__add-to-cart:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.btn__icon {
  width: 16px;
  height: 16px;
}

.product-card__view-product {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--brand);
  border-radius: 25px;
  padding: 10px 30px;
  font-family: var(--primary-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-card__view-product {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) translateY(0);
}

.product-card__view-product:hover {
  background-color: var(--brand);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================================================== */

/* Mobile Controls */
.category-page__mobile-controls {
  display: none;
  gap: 30px;
  margin-bottom: var(--spacing-md);
}

.category-page__sort-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.category-page__sort-button,
.category-page__filter-button {
  background-color: var(--color-white);
  border: 1px solid #898984;
  border-radius: 8px;
  padding: 12px 32px;
  font-family: var(--font-semibold);
  font-size: 18px;
  font-weight: 600;
  color: #898984;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  height: 48px;
  width: 164px;
}

.category-page__sort-button:hover,
.category-page__filter-button:hover {
  background-color: var(--color-gray-background);
}

.category-page__sort-icon,
.category-page__filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-page__sort-icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
}

.category-page__sort-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.category-page__sort-arrow--up {
  transform: rotate(90deg) translateX(5px);
}

.category-page__sort-arrow--down {
  transform: rotate(90deg) translateX(-5px);
}

.category-page__filter-icon {
  width: 20px;
  height: 20px;
}

.category-page__sort-dropdown {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-black);
  text-align: left;
}
.category-page__header-mobile {
  display: none;
}
/* Mobile Filter Overlay */
.category-page__filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-page__filter-overlay--active {
  display: block;
  opacity: 1;
}

/* Mobile Filter Sidebar */
.category-page__filters--mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 1001;
  overflow-y: auto;
  transition: left 0.3s ease;
  padding: var(--spacing-lg);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.category-page__filters--mobile--active {
  left: 0;
}

.category-page__filter-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-gray-text);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.category-page__filter-close:hover {
  background-color: var(--color-gray-background);
}

/* Mobile Header Improvements */
@media (max-width: 768px) {
  .category-page__container {
    flex-direction: column;
    padding: var(--spacing-sm);
    gap: var(--spacing-md);
  }
  .category-page__sort-button {
    padding: 0;
  }
  .category-page__sort-dropdown {
    margin-top: var(--spacing-xs);
  }
  .category-page__sort-button {
    width: auto;
  }
  .category-page__filters {
    display: none; /* Hide desktop filters on mobile */
  }

  .category-page__mobile-controls {
    display: flex;
    width: 100%;
  }

  .category-page__content {
    order: 1;
    width: 100%;
  }
  .category-page__header-web {
    display: none;
  }

  .category-page__header-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
  }
  .category-page__title {
    font-family: var(--font-bold);
    font-size: 32px;
    font-weight: 600;
    line-height: 50px;
    color: var(--color-black);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    width: 314px;
    margin-left: auto;
    margin-right: auto;
  }

  .category-page__tags {
    display: flex;
    gap: 20px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-xs);
    margin-bottom: 0;
    position: relative;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 90dvw;
    margin-left: auto;
    margin-right: auto;
  }

  .category-page__tags::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .category-page__tag {
    flex-shrink: 0;
    padding: 10px;
    height: 38px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-black);
    background-color: var(--color-gray-background);
    border: none;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .category-page__controls {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
    margin-bottom: var(--spacing-lg);
  }

  .category-page__results {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-black);
    text-align: left;
    margin: 0;
    width: 227px;
  }

  .category-page__sort {
    width: 100%;
    justify-content: center;
  }

  .category-page__sort-select {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .category-page__products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: var(--spacing-xl);
  }
  /* Mobile Product Cards - Match Figma Design */
  .product-card {
    background-color: var(--color-white);
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 358px;
    margin: 0 auto;
  }

  .product-card__image-container {
    height: 171px;
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
  }

  .product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .product-card__brand {
    font-family: var(--font-semibold);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-nava);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
  }

  .product-card__title {
    font-family: var(--font-bold);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    color: var(--color-black);
    letter-spacing: 0.28px;
    margin: 0;
  }

  .product-card__price {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .product-card__price-current {
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-nava-pressed);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .product-card__price-original {
    font-family: var(--font-semibold);
    font-size: 14px;
    color: #898984;
    text-align: center;
    width: 58px;
  }

  /* Mobile Add to Cart - Match Figma Design */
  .product-card__add-to-cart {
    display: block;
    background-color: var(--color-nava);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    height: 54px;
    width: 326px;
    font-family: var(--font-semibold);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .product-card__add-to-cart:hover {
    background-color: var(--color-nava-pressed);
  }

  .product-card__view-product {
    display: none; /* Hide on mobile for cleaner look */
  }

  .product-card__wishlist {
    display: flex !important;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Mobile Touch Improvements */
  .product-card__add-to-cart:active {
    transform: scale(0.98);
    background-color: var(--color-nava-pressed);
  }

  .product-card__wishlist:active {
    transform: scale(0.9);
  }

  .category-page__tag:active {
    transform: scale(0.95);
  }

  .category-page__pagination-button:active,
  .category-page__pagination-page:active {
    transform: scale(0.95);
  }

  /* Mobile Swipe Indicators */
  .category-page__tags::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, var(--color-white), transparent);
    pointer-events: none;
    z-index: 1;
  }

  /* Mobile Product Card Enhancements */
  .product-card {
    touch-action: manipulation; /* Improve touch responsiveness */
  }

  .product-card__image-container {
    position: relative;
    overflow: hidden;
  }

  .product-card__image {
    transition: transform 0.3s ease;
  }

  .product-card:active .product-card__image {
    transform: scale(1.05);
  }

  /* Mobile Filter Button Enhancements */
  .category-page__filter-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .category-page__filter-toggle:active {
    transform: scale(0.98);
  }

  /* Mobile Pagination Touch Improvements */
  .category-page__pagination-button,
  .category-page__pagination-page {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Ensure minimum touch target size */
  }

  /* Mobile Pagination - Match Figma Design */
  .category-page__pagination {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    width: 358px;
    margin: 0 auto;
  }

  .category-page__pagination-button {
    background-color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 12px 6px;
    height: 48px;
    width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-semibold);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-nava);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .category-page__pagination-button:hover {
    background-color: var(--color-gray-background);
  }

  .category-page__pagination-page {
    background-color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 20px 10px;
    height: 48px;
    width: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-bold);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .category-page__pagination-page--active {
    background-color: var(--color-nava-pressed);
    color: var(--color-white);
  }

  .category-page__pagination-page:hover {
    background-color: var(--color-gray-background);
  }

  .category-page__pagination-page--active {
    background-color: var(--color-nava-pressed);
    color: var(--color-white);
    border-color: var(--color-nava-pressed);
  }

  /* Mobile Filter Styles */
  .filter-section {
    margin-bottom: var(--spacing-xl);
  }

  .filter-section__title {
    font-size: 18px;
    margin-bottom: var(--spacing-md);
  }

  .price-range__inputs {
    justify-content: space-between;
    gap: var(--spacing-sm);
  }

  .price-range__input {
    flex: 1;
    max-width: 100px;
  }

  .price-option__text,
  .brand-option__text {
    font-size: 15px;
  }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
  .category-page__container {
    padding: 0 16px 30px;
  }

  .category-page__title {
    font-size: 24px;
    line-height: 30px;
  }

  .category-page__products {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .category-page__tag {
    font-size: 12px;
    padding: 8px 12px;
  }

  .product-card__image-container {
    height: 250px;
  }

  .product-card__content {
    padding: var(--spacing-md);
    min-height: 140px;
  }

  .product-card__title {
    font-size: 14px;
    line-height: 20px;
    min-height: 60px;
    max-height: 60px;
  }

  .product-card__price-current {
    font-size: 20px;
  }

  .product-card__price-original {
    font-size: 14px;
  }

  .product-card__add-to-cart {
    height: 48px;
    font-size: 15px;
  }

  .category-page__pagination-button {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 70px;
  }

  .category-page__pagination-page {
    padding: 10px 14px;
    font-size: 15px;
    min-width: 40px;
  }

  .filter-section__title {
    font-size: 16px;
  }

  .price-option__text,
  .brand-option__text {
    font-size: 14px;
  }
}

/* Extra Small Mobile: 360px and below */
@media (max-width: 360px) {
  .category-page__products {
    gap: var(--spacing-sm);
  }

  .product-card__content {
    padding: var(--spacing-sm);
  }

  .product-card__title {
    font-size: 13px;
    line-height: 18px;
  }

  .product-card__price-current {
    font-size: 18px;
  }

  .category-page__pagination {
    gap: var(--spacing-xs);
  }

  .category-page__pagination-button {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 60px;
  }

  .category-page__pagination-page {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 36px;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus indicators */
.product-card:focus-within {
  outline: 2px solid var(--color-nava);
  outline-offset: 2px;
}

.filter-section__clear:focus,
.brand-search__button:focus,
.product-card__add-to-cart:focus,
.product-card__view-product:focus {
  outline: 2px solid var(--color-nava);
  outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Hardware acceleration for animations */
.product-card,
.product-card__wishlist,
.product-card__view-product {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__wishlist,
  .product-card__view-product,
  .filter-section__clear,
  .brand-search__button,
  .product-card__add-to-cart {
    transition: none;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .category-page__filters,
  .product-card__wishlist,
  .product-card__add-to-cart,
  .product-card__view-product,
  .category-page__pagination {
    display: none;
  }

  .product-card {
    break-inside: avoid;
    border: 1px solid var(--color-gray-border);
  }

  .product-card__image {
    opacity: 1;
  }
}

/* ==========================================================================
   INTERACTIVE STATES
   ========================================================================== */

/* Disabled Button States */
.category-page__pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-gray-light);
  color: var(--color-gray);
}

.category-page__pagination-button.disabled:hover {
  background-color: var(--color-gray-light);
  color: var(--color-nava);
}

/* Product Card Interactive States */
.product-card__wishlist.active {
  background-color: var(--color-nava);
  color: var(--color-white);
}

.product-card__wishlist.active img {
  filter: brightness(0) invert(1);
}

.product-card__add-to-cart:disabled {
  background-color: var(--color-gray-light);
  color: var(--color-gray);
  cursor: not-allowed;
}

/* Product Card Additional Elements */
.product-card__discount {
  display: none !important;
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e74c3c;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.product-card__out-of-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
}

.product-card__rating {
  display: none !important;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
  font-size: 14px;
}

.product-card__rating-count {
  color: var(--color-gray);
  font-size: 12px;
}

.product-card__savings {
  display: none !important;
  color: var(--color-green);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
