/* public/shop/css/styles.css */

/* Global Styles */
:root {
  --primary-color: #3a86ff;
  --secondary-color: #ff006e;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
}

.footer {
  margin-top: auto;
  background-color: #bbccdd;
  border-top: 1px solid #e5e5e5;
}

/* Header & Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.image-logo {
  width: 150px;
  height: 150px;
}

.nav-link.active {
  font-weight: 500;
}

.cart-icon {
  position: relative;
  font-size: 1.25rem;
  padding-right: 0.5rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -5px;
  font-size: 0.7rem;
  background-color: var(--danger-color);
  color: white;
  width: 18px;
  height: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Section Title */
.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
  margin-bottom: 3rem;
}

.hero-image {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 50%;
  height: auto;
}

/* Featured Section */
.featured-section {
  padding: 3rem 0;
}

/* Categories Section */
.categories-section {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.category-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.category-card-overlay h4 {
  color: white;
  margin: 0;
}

/* About Section */
.about-section {
  padding: 4rem 0;
}
.about-image {
  max-width: 50%;
  height: auto;
}

/* Product Card */
.product-card {
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.375rem;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.product-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Reusing thumbnail-container and thumbnail classes from your inventory system */
.thumbnail-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.thumbnail {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.item-card {
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.375rem;
  overflow: hidden;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Toast notifications */
.toast-container {
  z-index: 1050;
}

/* Gallery Styles (main + thumbnails) */
.gallery-container {
  position: relative;
  margin-bottom: 20px;
}

.gallery-main-image {
  width: 100%;
  height: 350px;
  object-fit: contain;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  background-color: #f8f9fa;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.gallery-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  background-color: #f8f9fa;
}

.gallery-thumbnail:hover {
  opacity: 1;
}

.gallery-thumbnail.active {
  border-color: #0d6efd;
  opacity: 1;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.gallery-nav:hover {
  opacity: 1;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

/* SHOP-WIDE Carousel Styles */
.carousel {
  position: relative;
}

.carousel .carousel-inner {
  overflow: hidden;
}

.carousel .carousel-item img {
  object-fit: contain;
  width: 100%;
  height: 180px;
}

/* override bootstrap.carousel.scss */
.carousel-control-prev,
.carousel-control-next {
  /* center vertically */
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* make the prev/next icons bright white and slightly larger */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(100%) brightness(200%);
  width: 2rem;
  height: 2rem;
}

/* thumbnail strip styling */
.detail-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  margin: 0 0.25rem;
}
.detail-thumb.active {
  border-color: var(--primary-color);
}

/* only recolor arrows in the shop grid, not the detail view */
.product-image-container .carousel-control-prev-icon,
.product-image-container .carousel-control-next-icon {
  /* make ’em bright white */
  filter: invert(100%) brightness(200%) !important;
  /* bump up the size a bit if you like */
  width: 1.75rem;
  height: 1.75rem;
}

/* push the grid‐carousel arrows further out horizontally */
.product-image-container .carousel-control-prev {
  left: -2rem; /* move the “prev” arrow 1rem outside the card */
}

.product-image-container .carousel-control-next {
  right: -2rem; /* move the “next” arrow 1rem outside the card */
}

/*.carousel-control-next{
  position:absolute;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: 0 0;
  filter:  var(--bs-carousel-control-icon-filter);
  border: 0;
  opacity: .5;
  transition: opacity .15s ease;
}*/

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.9;
}

.carousel-indicators {
  display: none;
}

#featuredCarousel .carousel-control-prev {
  left: -7.5rem !important;
}
#featuredCarousel .carousel-control-next {
  right: -7.5rem !important;
}
.tracking-info-section {
  margin-top: 1rem;
}

.tracking-info-section .alert {
  margin-bottom: 0;
}

.status-message-section .alert {
  border-left: 4px solid #6c757d;
}

.status-message-section .alert-heading {
  font-size: 0.9rem;
  font-weight: 600;
}

.bi-truck {
  color: #0d6efd;
  font-size: 1.1rem;
}

/* Timeline style for order history */
.order-timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 1rem;
}

.order-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-bottom: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6c757d;
  border: 2px solid #fff;
}

.timeline-item.active::before {
  background: #0d6efd;
  width: 12px;
  height: 12px;
  left: -22px;
  top: 4px;
}

.timeline-item .timeline-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.timeline-item .timeline-content {
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding: 3rem 0;
  }
  .hero-image {
    margin-top: 2rem;
  }

  .about-section {
    text-align: center;
  }

  .about-section img {
    margin-bottom: 2rem;
  }
  .gallery-main-image {
    height: 250px;
  }

  .gallery-thumbnail {
    width: 50px;
    height: 50px;
  }

  .gallery-nav {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}
