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

/* --- LAYOUT & CONTAINERS --- */
.product-page-main {
  padding: 40px 0 100px;
  background: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-nav {
  font-size: 13px;
  color: #888;
  margin-bottom: 30px;
}

.breadcrumb-nav a {
  color: #333;
  text-decoration: none;
  transition: 0.2s;
}

.breadcrumb-nav a:hover {
  color: #ff9900;
}

.product-flex-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* --- IMAGE GALLERY SYSTEM --- */
.product-gallery-area {
  width: 45%;
  display: flex;
  gap: 15px;
}

/* Thumbnail Sidebar */
.thumb-stack {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.thumb-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border: 1px solid #eee;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  background: #fff;
  padding: 5px;
}

.thumb-img:hover,
.thumb-img.active-thumb {
  opacity: 1;
  border-color: #0b2341;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Main Display Box */
.main-image-box {
  flex: 1;
  position: relative;
  border: 1px solid #f2f2f2;
  background: #fff;
  overflow: hidden;
  height: 500px; /* Consistent height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.main-image-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.zoom-trigger {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- PRODUCT DETAILS AREA --- */
.product-info-area {
  width: 55%;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: #0b2341;
  margin-bottom: 15px;
  line-height: 1.2;
}

.product-price {
  font-size: 26px;
  font-weight: 700;
  color: #ff9900;
  margin-bottom: 20px;
}

.product-description-short {
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 15px;
}

/* --- STOCK STATUS BAR --- */
.stock-availability-box {
  margin-bottom: 35px;
  max-width: 450px;
}

.stock-text {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stock-text span {
  color: #dc3545;
}

.stock-progress-bar {
  height: 6px;
  background: #eeeeee;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #dc3545;
  transition: width 1s ease-in-out;
}

/* --- PURCHASE CONTROLS --- */
.purchase-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
}

.qty-control {
  display: flex;
  border: 1px solid #ddd;
  height: 50px;
  background: #fff;
}

.qty-control button {
  width: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
}

.qty-control input {
  width: 50px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  outline: none;
}

/* Buttons Group */
.btn-group {
  display: flex;
  gap: 10px;
  flex: 1;
}

.btn-black-cart {
  flex: 1;
  background: #000;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  height: 50px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: 0.3s;
  text-transform: uppercase;
}

.btn-navy-quote {
  flex: 1;
  background: #0b2341;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  height: 50px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

.btn-black-cart:hover {
  background: #333;
}
.btn-navy-quote:hover {
  background: #1a3a61;
}

.wishlist-action {
  margin-bottom: 25px;
}

.wishlist-btn {
  color: #666;
  font-size: 13px;
  text-decoration: none;
}

.wishlist-btn i {
  margin-right: 5px;
}

.product-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 25px 0;
}

/* --- META DATA (SKU, Weight, Dims) --- */
.product-meta-data p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.product-meta-data strong {
  color: #111;
  font-weight: 600;
  display: inline-block;
  width: 100px; /* Aligns the labels */
}

.social-share-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.share-links {
  display: flex;
  gap: 12px;
}

.share-links a {
  color: #888;
  font-size: 16px;
  transition: 0.3s;
}

.share-links a:hover {
  color: #0b2341;
}

/* --- RELATED PRODUCTS --- */
.related-products-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #0b2341;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.rel-product-card {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.rel-img-wrapper {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 12px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}

.rel-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rel-product-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.rel-price {
  color: #ff9900;
  font-weight: 700;
}

/* --- STICKY FOOTER BAR --- */
.sticky-product-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 0;
  z-index: 1000;
  box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.1);
  transition: 0.4s ease-in-out;
  border-top: 2px solid #0b2341;
}

.sticky-product-bar.visible {
  bottom: 0;
}

.bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bar-left img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #f9f9f9;
  border: 1px solid #eee;
}

.bar-title {
  font-weight: 600;
  font-size: 15px;
  color: #0b2341;
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.bar-price {
  font-weight: 700;
  font-size: 20px;
  color: #ff9900;
}

.bar-right button {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .product-flex-layout {
    flex-direction: column;
  }
  .product-gallery-area,
  .product-info-area {
    width: 100%;
  }
  .main-image-box {
    height: 400px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-title {
    font-size: 22px;
  }
  .btn-group {
    flex-direction: column;
  }
  .purchase-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .qty-control {
    justify-content: center;
  }
  .sticky-product-bar {
    display: none;
  } /* Hide on mobile for better UX */
}
