/* ====================================
   SINGLE PRODUCT PAGE STYLES
   ==================================== */

.pigee-product-page {
  background: #fff;
  padding: 30px 0 60px;
}

/* --- PRODUCT HERO SECTION --- */
.pigee-product-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin: 20px auto 60px;
  align-items: start;
  max-width: 1400px;
}

/* Left: Product Image */
.pigee-product-hero-media {
  position: relative;
}

.pigee-product-main-image {
  width: 100%;
  aspect-ratio: 1;
  background: #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

.pigee-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pigee-product-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.pigee-product-gallery-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pigee-product-gallery-dots span.active {
  background: rgba(255, 255, 255, 0.95);
  width: 20px;
  border-radius: 4px;
}

/* Right: Product Details */
.pigee-product-hero-details {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pigee-product-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pigee-product-category {
  font-size: 0.75rem;
  color: #888;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.pigee-product-actions-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pigee-product-title-main {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.pigee-product-short-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.pigee-product-short-desc p {
  margin: 0;
}


.pigee-product-specs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border: none;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #666;
}

.pigee-product-specs-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.pigee-product-specs-left li {
  font-size: 0.875rem;
  color: #666;
  font-weight: 400;
}

.pigee-product-specs-right {
  font-size: 0.875rem;
  color: #666;
  font-weight: 400;
}

.pigee-product-specs-right p {
  margin: 0;
}

.pigee-product-price-main {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0073aa;
  margin-bottom: 24px;
}

.pigee-product-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.pigee-product-cta .pigee-btn {
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
  text-align: center;
}

.pigee-product-cta .pigee-btn-outline-store {
  background: white;
  color: #333;
  border-color: #ddd;
}

.pigee-product-cta .pigee-btn-outline-store:hover {
  background: #f8f8f8;
  border-color: #999;
}

.pigee-product-cta .pigee-btn-primary-store {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.pigee-product-cta .pigee-btn-primary-store:hover {
  background: #005a87;
  border-color: #005a87;
}

.pigee-product-sold-by {
  font-size: 0.875rem;
  color: #666;
  margin: 16px 0 0 0;
}

.pigee-product-sold-by a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.pigee-product-sold-by a:hover {
  text-decoration: underline;
}

/* --- PRODUCT DESCRIPTION SECTION --- */
.pigee-product-description {
  margin: 60px auto;
  max-width: 1000px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #495057;
}

.pigee-product-description h2,
.pigee-product-description h3 {
  font-weight: 600;
  color: #212529;
  margin: 32px 0 16px 0;
}

.pigee-product-description p {
  margin-bottom: 16px;
}

/* --- PRODUCT SECTIONS (Local Favourites, Hot Right Now) --- */
.pigee-product-section {
  margin: 80px auto;
  max-width: 1400px;
}

.pigee-product-section .pigee-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #212529;
}

.pigee-product-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Product Card Styles for Carousels */
.pigee-product-carousel .pigee-product-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.pigee-product-carousel .pigee-product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #adb5bd;
  transform: translateY(-2px);
}

.pigee-product-carousel .pigee-product-image {
  position: relative;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #f8f9fa;
}

.pigee-product-carousel .pigee-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pigee-product-carousel .pigee-heart-btn img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.pigee-product-carousel .pigee-heart-btn:hover {
  background: white;
  transform: scale(1.1);
}

.pigee-product-carousel .pigee-heart-btn:hover img {
  opacity: 1;
}

.pigee-product-carousel .pigee-product-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pigee-product-carousel .pigee-product-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pigee-product-carousel .pigee-product-title a {
  color: #212529;
  text-decoration: none;
}

.pigee-product-carousel .pigee-product-title a:hover {
  color: #0064A8;
}

.pigee-product-carousel .pigee-product-desc {
  font-size: 0.8125rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.pigee-product-carousel .pigee-product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 16px 0;
}

.pigee-product-carousel .pigee-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pigee-product-carousel .pigee-btn-outline-store,
.pigee-product-carousel .pigee-btn-primary-store {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  border: 1px solid;
}

.pigee-product-carousel .pigee-btn-outline-store {
  background: white;
  color: #495057;
  border-color: #ced4da;
}

.pigee-product-carousel .pigee-btn-outline-store:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.pigee-product-carousel .pigee-btn-primary-store {
  background: #0064A8;
  color: white;
  border-color: #0064A8;
}

.pigee-product-carousel .pigee-btn-primary-store:hover {
  background: #00539a;
  border-color: #00539a;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Large tablets (1024px and below) */
@media (max-width: 1024px) {
  .pigee-product-hero {
    grid-template-columns: 260px 1fr;
    gap: 30px;
  }

  .pigee-product-carousel {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .pigee-product-page {
    padding: 20px 0 40px;
  }

  .pigee-product-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
  }

  .pigee-product-main-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .pigee-product-title-main {
    font-size: 1.375rem;
  }

  .pigee-product-price-main {
    font-size: 1.5rem;
  }

  .pigee-product-section {
    margin: 60px auto;
  }

  .pigee-product-section .pigee-section-title {
    font-size: 1.25rem;
  }

  .pigee-product-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .pigee-product-page {
    padding: 10px 0 30px;
  }

  .pigee-product-hero {
    gap: 24px;
    margin: 10px auto 30px;
  }

  .pigee-product-main-image {
    border-radius: 6px;
    max-width: 100%;
  }

  .pigee-product-title-main {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .pigee-product-short-desc {
    font-size: 0.8125rem;
    margin-bottom: 20px;
  }

  .pigee-product-specs {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .pigee-product-specs-left ul {
    flex-direction: column;
    gap: 8px;
  }

  .pigee-product-specs-left li,
  .pigee-product-specs-right {
    font-size: 0.8125rem;
  }

  .pigee-product-price-main {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .pigee-product-cta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pigee-product-cta .pigee-btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .pigee-product-sold-by {
    font-size: 0.8125rem;
    margin-top: 12px;
  }

  .pigee-product-description {
    margin: 40px auto;
    font-size: 0.875rem;
  }

  .pigee-product-section {
    margin: 50px auto;
  }

  .pigee-product-section .pigee-section-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
  }

  .pigee-product-carousel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pigee-product-carousel .pigee-product-card {
    max-width: 100%;
  }

  .pigee-product-carousel .pigee-product-image {
    height: 220px;
  }
}

/* Large screens (1400px and above) */
@media (min-width: 1400px) {
  .pigee-product-carousel {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}