/* =====================================
   BASE
===================================== */

body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: #1a1a1a;
}

header {
  text-align: center;
  padding: 40px 20px 20px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-bottom: 100px;
}

/* =====================================
   BUTTON
===================================== */

.btn {
  display: inline-block;
  background: rgba(255, 136, 0, 0.35);
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 600;
  padding: 18px 32px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 12px auto;
  width: 100%;
  max-width: 480px;
}

.btn:hover {
  background: rgba(255, 136, 0, 0.6);
  transform: scale(1.03);
}

/* =====================================
   FOOTER
===================================== */

footer {
  background-color: #2e343a;
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 60px 20px 20px;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
}

.footer-column {
  flex: 1 1 200px;
  margin: 10px 20px;
  min-width: 160px;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-column a,
.footer-column p {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

/* =====================================
   SHIPPED HORIZONTAL SCROLL
===================================== */

.shipped-slider-wrap {
  position: relative;
  width: 100%;
}

#shippedGallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 10px 20px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
}

#shippedGallery.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

#shippedGallery::-webkit-scrollbar {
  height: 8px;
}

#shippedGallery::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

#shippedGallery::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.shipped-item {
  flex: 0 0 auto;
  width: 320px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: 0.2s ease;
}

.shipped-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.shipped-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  pointer-events: none;
}

.shipped-caption,
.shipped-cap {
  padding: 14px 16px 16px;
  min-height: 110px;
  font-size: 0.95rem;
}

.shipped-caption .brand,
.shipped-cap .brand {
  font-weight: 700;
}

.shipped-caption .date,
.shipped-cap .date {
  opacity: 0.75;
  font-size: 0.86rem;
}

.shipped-cap .partno {
  margin-top: 6px;
  font-weight: 800;
}

.shipped-cap .partno a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================
   GALLERY ARROWS
===================================== */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(255, 136, 0, 0.92);
  color: #fff;
}

.slider-arrow.left {
  left: -16px;
}

.slider-arrow.right {
  right: -16px;
}

.slider-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* =====================================
   LIGHTBOX
===================================== */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    font-size: 18px;
    padding: 16px 24px;
  }

  .shipped-item {
    width: 280px;
  }

  .shipped-item img {
    height: 190px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .slider-arrow.left {
    left: -6px;
  }

  .slider-arrow.right {
    right: -6px;
  }
}