/* Premium Store Detail Page CSS */
.premium-store-detail {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

/* Back Link */
.store-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  color: var(--premium-green, #234e32);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(35, 78, 50, 0.06);
  border: 1px solid rgba(35, 78, 50, 0.15);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.store-back-link:hover {
  background: var(--premium-green, #234e32);
  color: #ffffff;
  transform: translateX(-3px);
}

/* Hero Card */
.store-detail-hero-card {
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 20px;
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 20px rgba(24, 34, 29, 0.04);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--premium-green, #234e32);
  background: rgba(35, 78, 50, 0.08);
  border: 1px solid rgba(35, 78, 50, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.store-detail-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--premium-ink, #1a251e);
  margin: 0.2rem 0;
  line-height: 1.2;
}

.store-address-info {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--premium-muted, #5e6b63);
  margin-bottom: 0.8rem;
}

.store-address-info a {
  color: var(--premium-green, #234e32);
  text-decoration: none;
}

.store-address-info a:hover {
  text-decoration: underline;
}

.store-intro-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--premium-ink, #1a251e);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.store-description-text {
  font-size: 0.92rem;
  color: var(--premium-muted, #5e6b63);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.store-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn-store-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  background: var(--premium-green, #234e32);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(35, 78, 50, 0.2);
  transition: all 0.2s ease;
}

.btn-store-primary:hover {
  background: #183d29;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 78, 50, 0.3);
}

.btn-store-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--premium-green, #234e32);
  border-radius: 12px;
  color: var(--premium-green, #234e32);
  background: rgba(35, 78, 50, 0.06);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-store-secondary:hover {
  background: var(--premium-green, #234e32);
  color: #ffffff;
}

.store-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--premium-line, #e2e8df);
}

.stat-box .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--premium-muted, #5e6b63);
}

.stat-box .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--premium-green, #234e32);
}

/* Contact Card Side */
.direct-contact-card {
  background: #f8faf6;
  border: 1px solid #d0d8cb;
  border-radius: 16px;
  padding: 1.2rem;
}

.contact-btn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #cad2c5;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--premium-ink, #1a251e);
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-btn-item:hover {
  border-color: var(--premium-green, #234e32);
  background: rgba(35, 78, 50, 0.03);
}

.social-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: #ffffff;
  border: 1px solid #cad2c5;
  border-radius: 20px;
  color: var(--premium-ink, #1a251e);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-pill-link:hover {
  background: var(--premium-green, #234e32);
  color: #ffffff;
  border-color: var(--premium-green, #234e32);
}

/* Gallery Section (Before Products) */
.store-gallery-section {
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 20px rgba(24, 34, 29, 0.04);
}

.store-section-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--premium-green, #234e32);
}

.store-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--premium-ink, #1a251e);
}

.gallery-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item-card {
  position: relative;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--premium-line, #c8d0c4);
  cursor: pointer;
}

.gallery-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 78, 50, 0.75);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-hover-overlay i {
  font-size: 1.5rem;
}

.gallery-item-card:hover img {
  transform: scale(1.05);
}

.gallery-item-card:hover .gallery-hover-overlay {
  opacity: 1;
}

/* Main Content Grid */
.store-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.5rem;
  align-items: start;
}

.store-content-grid > *,
.store-catalog-wrapper {
  min-width: 0;
  max-width: 100%;
}

.section-block {
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 4px 20px rgba(24, 34, 29, 0.04);
}

.section-block-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--premium-ink, #1a251e);
  margin-bottom: 0.8rem;
}

/* Horizontal Category Scroll Rows */
.category-row-block {
  min-width: 0;
  max-width: 100%;
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 4px 20px rgba(24, 34, 29, 0.04);
  position: relative;
}

.category-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.category-row-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--premium-ink, #1a251e);
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--premium-green, #234e32);
}

.category-count-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--premium-green, #234e32);
  background: rgba(35, 78, 50, 0.08);
  border: 1px solid rgba(35, 78, 50, 0.15);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: 2;
}

.btn-slider-arrow {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--premium-line, #c8d0c4);
  background: #f8faf6;
  color: var(--premium-ink, #1a251e);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-slider-arrow:hover {
  background: var(--premium-green, #234e32);
  color: #ffffff;
  border-color: var(--premium-green, #234e32);
  transform: scale(1.05);
}

/* Floating Overlay Scroll Arrows on Row Sides */
.scroll-row-wrapper {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.floating-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #c8d0c4);
  color: var(--premium-green, #234e32);
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 34, 29, 0.18);
  transition: all 0.2s ease;
}

.floating-scroll-arrow.arrow-left {
  left: -14px;
}

.floating-scroll-arrow.arrow-right {
  right: -14px;
}

.floating-scroll-arrow:hover {
  background: var(--premium-green, #234e32);
  color: #ffffff;
  border-color: var(--premium-green, #234e32);
  transform: translateY(-50%) scale(1.1);
}

.products-horizontal-scroll {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding: 0.5rem 0.2rem 1.2rem 0.2rem;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--premium-green, #234e32) #f0f4ee;
}

.products-horizontal-scroll::-webkit-scrollbar {
  height: 6px; /* Visible styled scrollbar for Chrome/Safari/Edge */
}

.products-horizontal-scroll::-webkit-scrollbar-track {
  background: #f0f4ee;
  border-radius: 10px;
}

.products-horizontal-scroll::-webkit-scrollbar-thumb {
  background: #cad2c5;
  border-radius: 10px;
}

.products-horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--premium-green, #234e32);
}

.horizontal-card {
  flex: 0 0 240px;
  min-width: 240px;
  scroll-snap-align: start;
  background: #f8faf6;
  border: 1px solid #d0d8cb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.horizontal-card:hover {
  background: #ffffff;
  border-color: var(--premium-green, #234e32);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(24, 34, 29, 0.12);
}

.product-media-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #ffffff;
}

.store-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.horizontal-card:hover .store-product-img {
  transform: scale(1.05);
}

.promo-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc3545;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.product-info-wrap {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.store-product-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--premium-ink, #1a251e);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--premium-green, #234e32);
  margin-bottom: 0.8rem;
}

.store-product-price .price-old {
  font-size: 0.82rem;
  color: #8c988e;
  text-decoration: line-through;
  margin-left: 0.4rem;
  font-weight: 500;
}

.btn-store-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--premium-green, #234e32);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-store-visit:hover {
  background: #183d29;
  color: #ffffff;
}

.empty-products-card {
  background: #f8faf6;
  border: 1px dashed #cad2c5;
  border-radius: 16px;
}

/* Hours & Reviews Sidebar */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hours-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e2e8df;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.hours-row-item:last-child {
  border-bottom: none;
}

.day-label {
  color: var(--premium-muted, #5e6b63);
  font-weight: 700;
  font-size: 0.88rem;
}

.time-val {
  color: var(--premium-green, #234e32);
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(35, 78, 50, 0.08);
  border: 1px solid rgba(35, 78, 50, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}

.review-item-card {
  background: #f8faf6;
  border: 1px solid #d0d8cb;
  border-radius: 12px;
  padding: 0.85rem;
}

/* Responsiveness */
@media (max-width: 991px) {
  .store-content-grid {
    grid-template-columns: 1fr;
  }

  .gallery-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .premium-store-detail {
    padding: 0.25rem 0 2rem;
  }

  .store-back-link {
    margin-bottom: 0.6rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
  }

  .store-detail-hero-card {
    padding: 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: 16px;
  }

  .section-block,
  .category-row-block,
  .store-gallery-section {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .floating-scroll-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  .floating-scroll-arrow.arrow-left {
    left: -8px;
  }

  .floating-scroll-arrow.arrow-right {
    right: -8px;
  }

  /* Gallery: horizontal snap-scroll with a subtle overlapping stack look */
  .gallery-showcase-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0.4rem 0.5rem 0.9rem;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-showcase-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item-card {
    flex: 0 0 auto;
    width: 62vw;
    max-width: 230px;
    height: 160px;
    scroll-snap-align: center;
    margin-right: -1.4rem;
    box-shadow: 0 6px 16px rgba(24, 34, 29, 0.18);
    transition: transform 0.2s ease;
  }

  .gallery-item-card:nth-child(even) {
    transform: translateY(10px);
  }

  .gallery-item-card:last-child {
    margin-right: 0;
  }

  .gallery-item-card:active {
    transform: scale(0.97);
  }

  .store-gallery-section::after {
    content: "\2190 Glissez pour voir plus \2192";
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--premium-muted, #5e6b63);
    margin-top: 0.25rem;
  }
}

@media (max-width: 576px) {
  .premium-store-detail {
    padding: 1rem 0.75rem 2.5rem;
  }

  .store-detail-hero-card {
    padding: 1.25rem;
  }

  .btn-store-primary,
  .btn-store-secondary {
    width: 100%;
  }

  .horizontal-card {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .hours-row-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
