/* ==========================================================================
   Shop Page Specific Styles
   Page /shop/ (Header Banner, Sorting, 3-Column Product Grid, Product Cards)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shop Banner / Hero Section
   -------------------------------------------------------------------------- */
.shop-hero-section {
  position: relative;
  min-height: 368px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 150px 40px 100px 40px;
  margin-bottom: 120px;
  background-image: url('../images/shop/headline.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.shop-hero-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-hero-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h1);
  font-weight: 300;
  line-height: var(--line-height-h1);
  color: var(--color-secondary);
  margin: 0;
}

/* Breadcrumbs */
.shop-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.shop-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.shop-breadcrumbs a:hover {
  color: var(--color-secondary);
}

.shop-breadcrumbs-sep {
  color: var(--color-tertiary);
}

.shop-breadcrumbs-current {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   2. Products Catalog Section
   -------------------------------------------------------------------------- */
.shop-catalog-section {
  max-width: 1280px;
  margin: 0 auto 120px auto;
  padding: 0 40px;
}

/* Header bar (results count + sorting) */
.shop-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.shop-result-count {
  font-family: var(--font-family-base);
  font-size: 15px;
  color: var(--color-text);
  font-weight: 400;
  margin: 0;
}

.shop-ordering-form {
  position: relative;
}

.shop-ordering-select {
  font-family: var(--font-family-base);
  font-size: 14px;
  color: var(--color-secondary);
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 40px 10px 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.shop-ordering-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(200, 163, 124, 0.2);
}

.shop-ordering-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-secondary);
  width: 10px;
  height: 6px;
}

/* --------------------------------------------------------------------------
   3. Products Grid (3 Columns Desktop, 2 Tablet, 1 Mobile)
   -------------------------------------------------------------------------- */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Product Card */
.shop-product-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.shop-product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.2;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--color-alternate);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.shop-product-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.shop-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.shop-product-card:hover .shop-product-img {
  transform: scale(1.04);
}

.shop-product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-product-title {
  font-family: var(--font-family-base);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.shop-product-title a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.shop-product-price {
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-secondary);
  margin: 0 0 6px 0;
}

.shop-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition-fast);
  align-self: flex-start;
}

.shop-product-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.shop-product-btn:hover {
  color: var(--color-primary);
}

.shop-product-btn:hover svg {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   4. Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .shop-hero-section {
    padding: 120px 30px 80px 30px;
    margin-bottom: 100px;
  }

  .shop-catalog-section {
    padding: 0 30px;
    margin-bottom: 100px;
  }

  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 40px;
  }
}

@media (max-width: 767px) {
  .shop-hero-section {
    min-height: 280px;
    padding: 100px 20px 60px 20px;
    margin-bottom: 60px;
  }

  .shop-hero-title {
    font-size: 44px;
  }

  .shop-catalog-section {
    padding: 0 20px;
    margin-bottom: 80px;
  }

  .shop-catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
  }

  .shop-products-grid {
    grid-template-columns: 1fr;
    row-gap: 35px;
  }
}
