/* T-shirts */
/* Scrollable red scrollbar for shop section */
.shop-section {
  max-height: 600px;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;

  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 0, 0, 0.35);
  border-radius: 16px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto;
  width: 90%;
  max-width: 1200px;
  transition: box-shadow 0.3s ease;

  /* Scrollbar fallback for Firefox */
  scrollbar-width: thin;
  scrollbar-color: #ff0000 rgba(0, 0, 0, 0.3);
}

/* Glow on hover remains */
.shop-section:hover {
  box-shadow:
    0 0 25px rgba(255, 0, 0, 0.55),
    inset 0 0 25px rgba(0, 0, 0, 0.45);
}

/* ===== Webkit Scrollbar (Chrome, Edge, Safari) ===== */
.shop-section::-webkit-scrollbar {
  width: 12px;
}

.shop-section::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

.shop-section::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff4d4d, #b30000);
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.2);
}

.shop-section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff1a1a, #800000);
}



.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: bold;
  margin: 60px auto 30px;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(199, 36, 8, 0.6);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}


.shirt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.shirt-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  width: 260px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}

.shirt-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(149,1,1,0.4);
}

.shirt-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
}

/* ===============================
   ✨ LAZY LOAD OPTIMIZATION
   =============================== */

/* Blurry placeholder before loading */
.lazy-img {
  filter: blur(12px);
  opacity: 0;
  transition: filter 0.4s ease-out, opacity 0.4s ease-out;
}

/* When image finishes loading (JS adds .loaded) */
.lazy-img.loaded {
  filter: blur(0);
  opacity: 1;
}

/* Prevent layout shifting (BIG performance boost) */
.shirt-card img,
.shirt-carousel img {
  aspect-ratio: 1 / 1; /* or 4/5 depending on your images */
}


.shirt-card h3 {
  margin-top: 12px;
  color: white;
  font-size: 1.1em;
}

/* ===============================
   ✨ POPUP MODAL OVERLAY
   =============================== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* ===============================
   ✨ Modal Content (Glass Style)
   =============================== */
.modal-content {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  color: white;
  position: relative;
  box-shadow: 0 0 35px rgba(0,0,0,0.65);
  text-align: center;
  overflow: hidden;
}

/* Close Button */
.modal-content .close {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 26px;
  cursor: pointer;
  color: white;
  opacity: 0.85;
}
.modal-content .close:hover {
  opacity: 1;
}

/* ===============================
   ✨ CAROUSEL WRAPPER
   =============================== */
.shirt-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.shirt-carousel img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  border-radius: 14px;
  transition: opacity 0.3s ease-in-out;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 26px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s;
  user-select: none;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.left-btn { left: 10px; }
.right-btn { right: 10px; }

/* ===============================
   ✨ TITLE
   =============================== */
.modal-content h3 {
  margin-top: 5px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

/* ===============================
   ✨ SELECT FIELDS
   =============================== */
#genderSelect,
#sizeSelect,
#quantityInput {
  display: block;
  width: 90%;
  margin: 12px auto;
  padding: 12px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  text-align: center;
}

#genderSelect option,
#sizeSelect option {
  background: #1a1a1a;
  color: white;
}

/* Label Styling */
#shirt-modal label {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  color: #f1f1f1;
}

/* ===============================
   ✨ BUTTON STYLING
   =============================== */
.button-row {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#addCartBtn {
  background: #00d26a;
  color: #000;
  font-weight: bolder;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  transition: 0.25s;
}
#addCartBtn:hover {
  background: #00ff80;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.35);
}

/* ===============================
   ✨ T-SHIRT ZOOM ON HOVER
   =============================== */
.shirt-carousel {
  overflow: hidden; /* Prevent zoom from spilling out */
}

#shirt-modal-img {
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: zoom-in;
}

#shirt-modal-img:hover {
  transform: scale(1.9);
  filter: brightness(1.18);
  cursor: zoom-out;
}

/* Click-to-zoom behavior */
#shirt-modal-img.clicked {
  transform: scale(2.2);     /* Bigger than hover zoom */
  filter: brightness(1.18);
  cursor: zoom-out;
}

/* Disable hover zoom when clicked */
#shirt-modal-img.clicked:hover {
  transform: scale(2.2);
}


#genderSelect {
  width: 100%;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  appearance: none;
  position: relative;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffffff' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#genderSelect:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

#genderSelect option {
  color: white;
  font-weight: bold;
  background: rgb(12, 12, 12);
}

#addCartBtn {
  background-color: #FFD66B;
  color: #334756;
  width: 100%;
  margin-bottom: 3px;
  padding: 12px;
  font-size: 1rem;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

#addCartBtn:hover {
  background-color: #c9a93b;
  transform: scale(1.05);
}

/* Close icon */
.modal-content .close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    max-height: 90vh;
    padding: 20px;
    font-size: 0.95rem;
    overflow-y: auto;
  }
}

/* Glassy Share Popup */
.shirt-share-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.65);
  z-index: 9999;
}

/* Box */
.shirt-share-content {
  background: rgba(255,255,255,0.08);
  padding: 30px 40px;
  border-radius: 18px;
  text-align: center;
  width: 95%;
  max-width: 420px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 30px rgba(255,0,0,0.4);
  backdrop-filter: blur(20px);
  animation: shirtPopIn 0.3s ease;
}

/* Shirt Share Button */
#shirt-shareBtn {
  background: rgba(20, 20, 30, 0.6); /* dark translucent glassy look */
  color: #FFD66B; /* matching accent color */
  width: 100%; /* same width as Add to Cart */
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0,0,0,0.7);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 12px rgba(255,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
#shirt-shareBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 20px rgba(255,0,0,0.5);
  background: rgba(30,30,40,0.7); /* slightly brighter on hover */
}


/* Close button */
.shirt-share-close {
  float: right;
  cursor: pointer;
  font-size: 20px;
  color: white;
  font-weight: bold;
}

/* Icons Grid */
.shirt-share-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.shirt-share-icons img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(255,0,0,0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.shirt-share-icons img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255,0,0,0.8));
}

/* Animation */
@keyframes shirtPopIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}