/**
 * Sharper Archive Product Page Styles
 * Custom styling for product category archive pages
 */

/* Archive Container */
.sharper-archive-container {
  width: 100vw;
  margin: 0;
  padding: 0;
}

/* Archive Header */
.sharper-archive-header {
  margin: 40px 0 30px 0;
  padding: 0;
}

.sharper-archive-header-content {
  width: calc(100% - 40px);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 30px;
}

.sharper-archive-left {
  flex: 0 0 auto;
}

.sharper-archive-right {
  flex: 1;
  max-width: 500px;
}

.sharper-archive-left {
  flex: 0 0 auto;
}

.sharper-archive-title {
  font-size: 4rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.1;
  display: inline-block;
}

.sharper-archive-count {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  text-transform: none;
  letter-spacing: normal;
  vertical-align: top;
  margin-left: 0px;
  position: relative;
  top: 10px;
}

.sharper-archive-description {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

.sharper-archive-description p {
  margin: 0 0 10px 0;
}

.sharper-archive-description p:last-child {
  margin-bottom: 0;
}

/* Category Filter Navigation */
.sharper-category-filter {
  text-align: right;
  width: calc(100% - 40px);
  padding: 0 20px;
}

.sharper-filter-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sharper-filter-btn {
  background: #000;
  border: 2px solid #000;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-size: 14px;
  border-radius: 0;
}

.sharper-filter-btn:hover {
  background: #000000;
  border-color: #bbb;
  color: #ffffff;
}

.sharper-filter-btn.active {
  background: #ffffff;
  border-color: #000;
  color: #000000;
}

/* Products Grid */
.sharper-products-grid {
  margin: 40px 0;
  padding: 0;
}

.sharper-products-container {
  width: calc(100% - 19px);
  margin: 0 5px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 60px;
}

/* Product Items - Reuse styles from product slider */
.sharper-product-item {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.sharper-product-item:hover {
  transform: translateY(-5px);
}

.sharper-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sharper-archive-container .sharper-product-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f8f8f8;
  padding-bottom: 0 !important;
}

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

.sharper-product-item:hover .sharper-product-image {
  transform: scale(1.05);
}

.sharper-product-info {
  padding: 20px 0 15px 0;
}

.sharper-product-name {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.sharper-product-price-stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sharper-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.sharper-product-stock {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sharper-product-stock.in-stock {
  color: #28a745;
}

.sharper-product-stock.out-of-stock {
  color: #dc3545;
}

.sharper-product-button-container {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.sharper-product-item:hover .sharper-product-button-container {
  opacity: 1;
  transform: translateY(0);
}

.sharper-product-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid #000;
  font-size: 14px;
}

.sharper-product-button:hover {
  background: transparent;
  color: #000;
}

/* Category Content Section - Same as Sharper About Section */
.sharper-category-content {
  padding: 0;
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
}

.sharper-category-container {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 500px;
}

/* Left column with heading and link */
.sharper-category-left {
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 30px;
}

.sharper-category-heading {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: #000;
}

.sharper-category-link-wrapper {
  margin-top: auto;
  padding-bottom: 0;
}

.sharper-category-link {
  display: inline-block;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 5px;
}

.sharper-category-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #000;
}

/* Middle column with content */
.sharper-category-middle {
  width: 25%;
  padding: 60px 30px;
}

.sharper-category-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.sharper-category-text p {
  margin-bottom: 0.8em;
}

/* Right column with image */
.sharper-category-right {
  width: 40%;
  padding: 20px;
  position: relative;
}

.sharper-category-image {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 750px;
}

.sharper-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sharper-archive-title {
    font-size: 3rem;
  }

  .sharper-archive-header-content {
    flex-direction: column;
    gap: 20px;
  }

  .sharper-archive-right {
    max-width: none;
  }

  .sharper-category-filter {
    text-align: center;
  }

  .sharper-products-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  /* Category content responsive - same as sharper-about-section */
  .sharper-category-left,
  .sharper-category-middle,
  .sharper-category-right {
    width: 100%;
    padding: 30px 20px;
  }

  .sharper-category-container {
    flex-direction: column;
  }

  .sharper-category-link-wrapper {
    margin-top: 20px;
  }

  .sharper-category-heading {
    font-size: 2.5rem;
  }

  .sharper-category-right {
    padding: 20px;
  }

  .sharper-category-image {
    height: 400px;
    min-height: 400px;
  }

  .sharper-category-image img {
    position: absolute;
  }
}

@media (max-width: 768px) {
  .sharper-archive-header-content {
    width: calc(100% - 30px);
    padding: 0 15px;
  }

  .sharper-category-filter {
    width: calc(100% - 30px);
    padding: 0 15px;
  }

  .sharper-products-container {
    width: calc(100% - 30px);
    margin: 0 15px;
  }

  .sharper-products-grid {
    padding: 0;
  }

  .sharper-archive-title {
    font-size: 2.5rem;
  }

  .sharper-archive-count {
    font-size: 11px;
  }

  .sharper-filter-buttons {
    gap: 6px;
    justify-content: center;
  }

  .sharper-filter-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

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

  .sharper-archive-container .sharper-product-image-container {
    height: 250px;
  }

  .sharper-product-name {
    font-size: 16px;
  }

  .sharper-product-price {
    font-size: 14px;
  }

  .sharper-product-button-container {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .sharper-archive-title {
    font-size: 2rem;
  }

  .sharper-archive-count {
    font-size: 14px;
  }

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

  .sharper-archive-container .sharper-product-image-container {
    height: 300px;
  }
}
