/*
===========================================================
              PC Phone Services
            Product Grid Components
                Version: 2.0
          © 2025 PC Phone Services
             All Rights Reserved
===========================================================
*/

/* ===== PRODUCT SHOWCASE ===== */
.recent-products {
  background-color: #f6f6f6;
  border-radius: 1.5rem;
  margin: 2rem 0.5rem;
  padding: 2rem 0;
  position: relative;
}

.product-showcase {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.promotion-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 10;
}

/* ===== DESKTOP PRODUCT LAYOUT ===== */
@media (min-width: 768px) {
  .product-layout {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
  }

  .product-image-container-shop {
    flex: 0 0 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
  }

  .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-primary);
    margin-bottom: 0.75rem;
  }

  .product-description {
    color: var(--text-color-secondary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
  }

  .price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    justify-content: flex-start;
  }

  .original-price {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
    text-decoration: line-through;
  }

  .discounted-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

/* ===== MOBILE PRODUCT LAYOUT ===== */
@media (max-width: 767px) {
  .product-layout {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
  }

  .product-image-container-shop {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 0.5rem;
  }

  .product-details {
    width: 100%;
    text-align: center;
  }

  .product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color-primary);
    margin-bottom: 0.5rem;
  }

  .product-description {
    display: none; /* Hide description on mobile to save space */
  }

  .price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
  }

  .original-price {
    font-size: 1rem;
    color: var(--text-color-secondary);
    text-decoration: line-through;
  }

  .discounted-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
  }

  .product-link {
    padding: 0.8rem 1.2rem !important;
    font-size: 0.9rem !important;
  }

  .product-showcase {
    padding: 0 1rem;
  }
}

/* ===== SHARED PRODUCT STYLES ===== */
.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-link {
  flex: 0 0 auto;
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.product-link:hover {
  background-color: var(--secondary-color);
  color: var(--white) !important;
}

.wishlist-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishlist-btn i {
  font-size: 1.1rem;
  color: var(--text-color-secondary);
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  background-color: #ffe5e5;
}

.wishlist-btn:hover i {
  color: #ff5e5e;
}

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.scroll-arrow {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  opacity: 0.9;
  border: none;
}

.scroll-arrow i {
  color: var(--text-color-primary);
  font-size: 1rem;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.scroll-arrow:hover {
  background-color: var(--primary-color);
  opacity: 1;
}

.scroll-arrow:hover i {
  color: var(--white);
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-container {
  text-align: center;
  margin-top: 2.5rem;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: var(--primary-color) !important;
  padding: 0.8rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-all-btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.view-all-btn:hover {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

.view-all-btn:hover i {
  transform: translateX(4px);
}

/* ===== DEALS SECTION ===== */
.deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.5rem;
}

.large-card {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.deal-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  position: relative;
  transition: all 0.3s ease;
}

.deal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.deal-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deal-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.deal-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color-primary);
  margin-bottom: 0.75rem;
}

.deal-content p {
  color: var(--text-color-secondary);
  margin-bottom: 1.5rem;
}

.deal-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  align-self: flex-start;
  text-decoration: none;
}

.deal-btn:hover {
  background-color: var(--secondary-color);
  color: var(--white) !important;
}

.deal-card img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  margin: auto 1.5rem;
}

.large-card img {
  max-width: 200px;
  max-height: 200px;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 1200px) {
  .deals-grid {
    grid-template-columns: 1fr;
  }

  .large-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .slider-controls {
    display: none;
  }

  .view-all-container {
    margin-top: 2rem;
  }

  .view-all-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .deal-content {
    padding: 1.5rem;
  }

  .deal-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .deal-card {
    flex-direction: column;
  }

  .deal-card img {
    max-width: 100%;
    height: 180px;
    margin: 0;
    padding: 1rem 1rem 0;
  }
}

/* ===== SLICK CAROUSEL CUSTOMIZATION ===== */
.slick-dots {
  position: relative;
  z-index: 6;
}

@media (max-width: 767px) {
  .slick-dots {
    bottom: -20px;
  }

  .slick-dots li button:before {
    font-size: 10px;
    color: var(--primary-color);
    opacity: 0.5;
  }

  .slick-dots li.slick-active button:before {
    color: var(--primary-color);
    opacity: 1;
  }
}