/* =============================================
   PRODUCTS SECTION — Sniper Brand
   ============================================= */

.products-section {
  background: #0A0A0A;
  padding: 64px 0;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

/* --- Tabs --- */
.products-tabs {
  display: flex;
  gap: 0;
}

.tab-btn {
  background: #1A1A1A;
  border: none;
  color: #888888;
  padding: 12px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  background: #0A0A0A;
  color: #ffffff;
  border-bottom-color: #FF6B00;
}

.tab-btn:hover {
  color: #ffffff;
}

/* --- Shop All Link --- */
.shop-all-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.shop-all-link:hover {
  color: #FF6B00;
}

/* --- Products Row/Grid --- */
.products-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Product Card --- */
.product-card {
  background: #111111;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

/* --- Product Image Wrap --- */
.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

/* --- Badges --- */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FF6B00;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  padding: 4px 8px;
  text-transform: uppercase;
  z-index: 1;
}

.product-badge.sale {
  background: #cc0000;
}

/* --- Wishlist Button --- */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #cccccc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: #FF6B00;
  background: rgba(0, 0, 0, 0.9);
}

.wishlist-btn.active svg {
  fill: #FF6B00;
  stroke: #FF6B00;
}

/* --- Product Info --- */
.product-info {
  padding: 12px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- Price --- */
.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-bottom: 6px;
}

.price-current {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.price-original {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  color: #888888;
  text-decoration: line-through;
}

.price-bs {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FF6B00;
  background: transparent;
  border: none;
  padding: 0;
  letter-spacing: 0.4px;
  display: block;
  flex-basis: 100%;
  line-height: 1.25;
}

/* --- Product Name / Collection --- */
.product-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-collection {
  font-size: 12px;
  color: #666666;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.product-gender-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.product-gender-badge.gender-unisex {
  background: rgba(255, 255, 255, 0.05);
  color: #888888;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.product-gender-badge.gender-men {
  background: rgba(56, 189, 248, 0.08);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.product-gender-badge.gender-tactical {
  background: rgba(255, 107, 0, 0.12);
  color: #FF6B00;
  border: 1px solid rgba(255, 107, 0, 0.4);
}

.product-gender-badge.gender-women {
  background: rgba(244, 114, 182, 0.08);
  color: #F472B6;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

/* --- Size Pills --- */
.product-sizes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.size-pill {
  font-size: 10px;
  background: #1A1A1A;
  color: #888888;
  padding: 2px 6px;
  border: 1px solid #333333;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.size-pill:hover {
  border-color: #FF6B00;
  color: #FF6B00;
}

.size-pill.selected {
  background: #FF6B00;
  color: #000000;
  border-color: #FF6B00;
  font-weight: 700;
}

/* --- Add to Cart Button --- */
.add-to-cart-btn {
  width: 100%;
  background: #FF6B00;
  color: #ffffff;
  border: none;
  padding: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.product-card:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.add-to-cart-btn:hover {
  background: #e55f00;
}

/* =============================================
   RESPONSIVE & TOUCH OPTIMIZATION
   ============================================= */

/* Touch devices & screen sizes under 860px: keep actions tap-accessible */
@media (hover: none), (max-width: 860px) {
  .product-sizes {
    opacity: 1 !important;
  }
  .add-to-cart-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 10px 6px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .size-pill {
    padding: 4px 6px;
    font-size: 10px;
    min-width: 22px;
    text-align: center;
  }
}

@media (max-width: 1023px) {
  .products-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 639px) {
  .products-section {
    padding: 36px 0;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  /* Scrollable tabs bar on phones */
  .products-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    display: flex;
    gap: 4px;
    padding-bottom: 4px;
  }

  .tab-btn {
    padding: 9px 14px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .shop-all-link {
    font-size: 11px;
  }

/* =============================================
   MOBILE VIEW (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  .products-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 4px;
    background: #111111;
    overflow: hidden;
  }

  .product-image-wrap {
    aspect-ratio: 1 / 1;
    background: #FFFFFF;
    border-radius: 4px 4px 0 0;
    padding: 6px;
  }

  .product-image-wrap img {
    padding: 6px;
    object-fit: contain;
  }

  .product-info {
    padding: 10px 8px;
  }

  .product-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-collection {
    font-size: 11px;
    color: #888888;
    margin-bottom: 6px;
    text-transform: uppercase;
  }

  .product-price-row {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

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

  .product-price-original {
    font-size: 11px;
    color: #777777;
    text-decoration: line-through;
  }

  .wishlist-btn {
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
  }

  .product-badge {
    top: 8px;
    left: 8px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .product-sizes {
    opacity: 1 !important;
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .size-pill {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 30px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 3px;
  }

  .add-to-cart-btn {
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    margin-top: 8px;
    padding: 10px 8px;
    min-height: 44px;
    font-size: 11px;
    width: 100%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
}

@media (max-width: 360px) {
  .products-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
