body {

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Google Sans", 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-optical-sizing: auto;
  color: #F4F4F2;
  background-color: #121212;
  
}

p {
  font-size: 14px;
}

a {
  text-decoration: none;
}
/* --- Base Styles --- */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  background-color: #121212;
  border-bottom: 1px solid #707070;
  padding: 0 24px;
  opacity: 0.9; /* Corrected syntax from 90% */
  position: relative; /* Needed for positioning the mobile menu */
  z-index: 1000;
}

#logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 1001; /* Keeps logo above menu */
}

#logo-circle {
  width: 15px;
  height: 15px;
  border: 5px solid #FB8F0D;
  border-radius: 100%;
}

#logo-bar {
  width: 5px;
  height: 12px;
  background-color: #FB8F0D;
  border-radius: 2px;
  position: relative;
  top: -7.5px;
  left: 9px;
  transform: rotate(30deg); /* Updated syntax */
}

#logo-text {
  color: #F4F4F2;
  margin-left: 5px;
  font-size: 20px;
  font-weight: bold;
  font-family: Helvetica Neue, sans-serif;
}

#logo-text span {
  color: #FB8F0D;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- Navigation Links --- */
.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: #B1B1B1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #FB8F0D;
}

.nav-links a.active {
  color: #FB8F0D;
  border-bottom: 1px solid #FB8F0D;
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #F4F4F2;
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.3s ease-in-out; /* Smooth animation for X */
}

.hamburger:hover {
  background-color: rgba(251, 143, 13, 0.2);
}

.hamburger:hover span {
  background-color: #FB8F0D;
}

/* --- Hamburger Animation (Turn to X) --- */
.hamburger.active span:nth-child(2) {
  opacity: 0; /* Hide middle line */
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg); /* Move down and rotate */
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg); /* Move up and rotate */
}


/* --- Mobile Responsiveness --- */
@media (max-width: 868px) {
  
  .hamburger {
    display: flex; /* Show hamburger */
  }

  .nav-links {
    /* Break out of the flex flow */
    position: absolute;
    top: 72px; /* Height of the navbar */
    left: 0;
    width: 100%;
    
    /* Layout */
    flex-direction: column;
    align-items: center;
    background-color: #121212;
    padding: 20px 0;
    border-bottom: 1px solid #707070;
    
    /* Animation State: Hidden */
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* This class is added by JS when clicked */
  .nav-links.active {
    display: flex;
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
  }
  
  .nav-links a:hover {
    background-color: rgba(251, 143, 13, 0.1);
  }
}

.top-banner {
display: block;
justify-items: center;
padding: 0 24px;  /* Horizontal padding */
font-size: 12px;
color: #FBDDB8;
text-align: center;
background-color: #2A2A2A;
margin: 0px;
padding: 8px;
content: "";
position: relative;
inset: 0;
border-radius: inherit;

background:
  radial-gradient(
    circle at top left,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.15) 50%,
    transparent 90%
  ),
  linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.25),
    transparent 30%
  );


}

.top-banner span a{
color: #F4F4F2;
text-decoration: underline;
font-weight: bold;
}

#hero-section {
  display: flex;              /* Enable flexbox for centering */
  flex-direction: column;     /* Stack items vertically */
  justify-content: center;    /* Vertical center */
  align-items: center;        /* Horizontal center */
  text-align: center;         /* Center text inside elements */
  padding: 24px;  
  height: 300px
}

.hero-video {
  position: absolute;
  opacity: 4%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Fills container, crops if needed */
  z-index: -1;             /* Behind your content */
}

#hero-section h1 {
  margin: 0px;

}

#hero-section h1 span {
  color: #FB8F0D;
}

#hero-section p {
  color: #FBDDB8;
  margin-top: 16px 0 0 0;
  margin-bottom: 50px;

}

.button-1 {
  height: 50px;
  border-radius: 30px;
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: #FB8F0D;
  border: none;
  color: #121212;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;


  /* Smooth transitions */
  transition: all 0.4s ease;
}

/* Hover Effect – Brighter & Bigger Glow */
.button-1:hover {
  background-color: #ff9f1f; /* Slightly brighter orange */
  box-shadow: 
    0 0 5px #FB8F0D,
    0 0 10px rgba(251, 143, 13, 0.8),
    0 0 20px rgba(251, 143, 13, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.4);
  color: #000000;
}

footer {
  background-color:#121212;
  padding-left: 24px;
  padding-right: 24PX;
  padding-bottom: 80px;
}

.footer-summary {
  margin-top: 0px;
}

.footer-disclaimer{
  color: #707070;
  font-size: 12px;

}

.footer-links {
  margin-top: 32px;
  margin-bottom: 32px;

}

.footer-links a {
  text-decoration: none;
  margin-right: 16px;
  color:#B1B1B1;
  font-size: 12px;
  background-color: none;
  
}

.footer-links a:hover {
  color: #FB8F0D;
}

.to-top {
  position: fixed;      /* Fixed to viewport, follows scroll */
  bottom: 20px;         /* Distance from bottom edge */
  right: 20px;          /* Distance from right edge */
  z-index: 1000;        /* Ensures it stays on top of other content */
  background-color: #333; /* Or your theme color */
  background-color: #333; /* Or your theme color */
  color: white;
  border: none;
  border-radius: 50%;   /* Circular button look */
  padding: 15px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, background-color 0.3s;

}

.to-top a {
  text-decoration: none;
  color: #F4F4F2;
}

.to-top:hover {
  background-color: #555;
}

footer hr {
  border: none;
  height: 0.5px;
  background-color: #FB8F0D;
  opacity: 50%
}

#copyright {
  display: flex;             
  justify-content: center;   
  color: #B1B1B1;
  font-size: 10px;
  margin-top: 16px;

}

.feed {
  font-weight: bold;
  color: #FB8F0D;
  background: transparent;
  text-shadow: 
    0 0 16px #FB8F0D,
    0 0 24px rgba(251, 143, 13, 0.8),
    0 0 40px rgba(251, 143, 13, 0.5);
  transition: text-shadow 0.4s ease;
}

.product-feed-intro {
  display: flex;              
  flex-direction: column;     
  justify-content: center;    
  align-items: center;        
  text-align: center;         
  padding: 24px;
  background-color:#2a2a2a;
  height: 300px;
  content: "";
  position: relative;
  inset: 0;
  border-radius: inherit;

}

.product-feed-intro p {
  color: #FBDDB8;
  margin-top: 0;
  margin-bottom: 32px

}
.button-2 {
  height: 40px;
  border-radius: 30px;
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: #FB8F0D;
  border: none;
  color: #121212;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;

}

.button-2:hover {
  box-shadow: 
  0 0 10px #FB8F0D;

  /* Smooth transitions */
  transition: all 0.4s ease;

}

.product-feed-full {
  width: 100%;                     
  max-width: 100%;                 /* prevent any accidental max-width */
  margin: 0;

  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  text-align: center;
  min-height: 100vh;               /* at least full viewport height */
  padding-bottom: 50px;
  background-color:#2A2A2A;

  padding-bottom: 80px;


}

.product-feed-full h2 {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ==========================================
   PRODUCT GRID CONTAINER
   ========================================== */

.product-grid-container {
  width: 100%;


}

.product-cards-wrapper {
  width: 95%;
  margin: 0 auto !important;  
  max-width: 1200px;     /* Limits width on massive monitors */
  position: relative; /* For Masonry positioning */  
}

/* ==========================================
   PRODUCT CARD
   ========================================== */

.product-card-container {
  min-height: 300px; 
  border-radius: 16px;
  box-sizing: border-box;       /* Padding doesn't add to width */
  display: flex;
  flex-direction: column;            /* Stack image + info vertically */
  overflow: hidden;               /* Prevents any internal overflow */

  margin-bottom: 16px; /* Vertical spacing between cards in column */
  will-change: height;


  box-shadow:
    0 0 4px #707070;
    inset: 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    
  }

  .product-card-container:hover {
    transform: translateY(-1px);
    box-shadow:
      0 0px 10px #707070,
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
/* ==========================================
   RESPONSIVE COLUMN WIDTHS
   ========================================== */

   /* Mobile: 1 column (below 480px) */
@media (max-width: 330px) {
  .product-card-container {
    width: 100%;
  }
}

/* Mobile/Small Tablet: 2 columns (321px - 867px) */
@media (min-width: 331px) and (max-width: 867px) {
  .product-card-container {
    width: calc(50% - 8px);
  }
}

/* Tablet: 3 columns (868px - 1023px) */
@media (min-width: 868px) and (max-width: 1023px) {
  .product-card-container {
    width: calc(33.333% - 11px);
  }
}

/* Desktop: 4 columns (1024px+) */
@media (min-width: 1024px) {
  .product-card-container {
    width: calc(25% - 12px);
  }
}

/* ==========================================
   MEDIA CONTAINER
   ========================================== */

.product-media-container {
  width: 100%;    
  height: 240px;
  max-height: 360px;           
  flex-shrink: 0;                    /* Prevents image from shrinking */
  border-radius: 16px 16px 0px 0px;
  overflow: hidden;
  cursor: grab;                      /* Hand cursor when hovering */
  position: relative;
  transition: background-color 0.8s ease;  /* Smooth fade when color changes */
  touch-action: pan-y; /* Allows vertical page scroll, but takes over horizontal */
  background-size: cover;
  background-position: center;


}

@media (min-width: 768px) {
  .product-media-container {
    height: 300px;         /* Full width minus margins */
  }
}

.product-media-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.product-media-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.product-media-wrapper:active {
  cursor: grabbing;                  /* Grabbing hand while dragging */
}
  
.product-media-image {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;  
  object-position: center;
  display: block;
  user-select: none;                 /* Prevents text selection while dragging */
  cursor: zoom-in;
}

.product-media {
  flex: 0 0 100%; /* Each image takes 100% width */
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  pointer-events: auto;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  position: relative; /* Important for proper transform origin */

}


.no-snap {
  scroll-snap-type: none !important;
}

/* Zoom Class toggled by JS */
.is-zoomed {
  cursor: grab !important;
  object-fit: none !important;
  object-position: 0 0 !important;

}

/* Active dragging state */
.is-zoomed.dragging {
  cursor: grabbing !important;
}

/* Container state when zoomed */
.product-media-container.zoom-active {
  touch-action: none; /* Disable all default touch behaviors */
}

.product-media-wrapper.zoom-active {
  overflow: hidden !important; /* Prevent gallery scroll when zoomed */
}


.product-media-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;     /* Will be set by JS */
  background-size: cover;
  background-position: center;
  filter: blur(40px);            /* Strong blur for soft edges */
  transform: scale(1.1);         /* Slightly larger to cover edges */
  opacity: 0.8;                  /* Semi-transparent for depth */
  z-index: 1;
  border-radius: 16px 16px 0 0;
  transition: background-image 0.6s ease;
}

/* ==========================================
   PAGINATION, BUTTONS, VIDEO
   ========================================== */

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-media-video {
  z-index: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;  
  object-position: center;
  display: block;
  transition: transform 0.1s ease;   /* Smooth zoom/pan */
  user-select: none;                 /* Prevents text selection while dragging */

}

/* The Control Bar */
.video-controls {
  position: absolute;
  bottom: 20px;
  left: 8px;
  background: rgba(0, 0, 0, 0.194); /* Semi-transparent black */
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  z-index: 5; /* Above video */
  pointer-events: auto; /* Ensures you can click it */
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
}

/* Show controls only when hovering or when paused */
.video-container:hover .video-controls,
.video-container.paused .video-controls {
  opacity: 1;
}

/* Reset button styles */
.play-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.video-time {
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none; /* User can't click text */
}

:fullscreen .video-controls {
  bottom: 32px;
  left: 32px;
  background: rgba(0, 0, 0, 0.7); /* Darker in full-screen for contrast */
}


.product-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3; /* Higher than images' z-index: 2 */
}

.product-pagination .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.product-pagination .dot.active {
  background: #333;
}


@media (max-width: 768px) {
  .product-pagination .dot {
    width: 6px;
    height: 6px;
  }
}

:fullscreen .product-media-image {
  object-fit: contain !important; /* Override in full-screen to show full image */
}

.fullscreen-button {
  position: absolute;
  bottom: 16px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7); /* Darker in full-screen for contrast */
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10; /* Increased for visibility above all layers */
  display: block; /* Ensure always shown */
}

:fullscreen .fullscreen-button {
  bottom: 32px; /* Adjust positioning if needed for larger screens */
  right: 32px;
  background: rgba(0, 0, 0, 0.7); /* Darker in full-screen for contrast */

}

.fullscreen-button:hover {
  background: rgba(255, 255, 255, 0.5);

}

.fullscreen-button svg {
  fill: #707070;
}

.fullscreen-button.fullscreen .enter-icon {
  display: block;
}

.fullscreen-button.fullscreen .exit-icon {
  display: none;
}

/* Full-screen container adjustments */
:fullscreen .product-media-container {
  height: 100vh !important;
  max-height: none !important;
  background: #000; /* Black background to handle letterboxing */
}

.add-to-cart {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffffff2b;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10; /* Increased for visibility above all layers */
  display: block; /* Ensure always shown */
  background:
  radial-gradient(
    circle at top left,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.15) 50%,
    transparent 90%
  ),

}

:fullscreen .add-to-cart {
  display: none;
}

.add-to-cart:hover {
  background: rgba(255, 255, 255, 1);
}

.add-to-cart img {
  height: 20px;
  width: 20px;
}

/* ==========================================
   PRODUCT INFO
   ========================================== */

.product-info {
  width: 100%;
  min-height: 160px;
  border-radius: 0 0 16px 16px;


  /* Glassmorphism */
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  box-shadow:
  0 20px 40px rgba(0, 0, 0, 0.35),
  inset 0 1px 1px rgba(255, 255, 255, 0.6),
  inset 0 -1px 1px rgba(255, 255, 255, 0.25);



  box-sizing: border-box;
  padding: 12px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;

  text-align: left;
  flex-grow: 1;
}

.product-info h3 {
  margin: 0;                         /* Remove default margin */
  font-size: 14px;
  font-weight: medium;
  color: #FFFFFF;
}

.product-info .condition {
  margin: 0;                         
  color: #FBDDB8;
  font-size: 12px;

}

.product-info .quantity {
  color: #FBDDB8;
  margin: 0;  
  font-size: 10px;
}

.product-info .specs {
  margin: 0;  
  line-height: 15px;
  font-size: 12px;
  word-wrap: break-word;         /* Breaks long words if needed */
  overflow-wrap: break-word;     /* Modern standard – same as word-wrap */
  white-space: normal;           /* Allows wrapping (default, but explicit) */
  overflow: hidden;              /* Cuts off anything that tries to escape */
  word-break: break-word;        /* Breaks very long words (e.g., URLs) */
  display: -webkit-box;
  -webkit-line-clamp: 1;             /* Show only 2 lines */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;       
  color: #F4F4F2;
  font-weight: bold;
  
}


/* When "Show more" is clicked – expand to full text */
.product-info .specs.expanded {
  -webkit-line-clamp: unset;         /* Remove line limit */
  overflow: visible;
  max-height: none;

}


.product-info .show-more {
  margin: 0;                         
  color: #FB8F0D;  
  cursor: pointer;   
  font-size: 12px;  
  user-select: none;
           
}

.product-info .price {
  margin: 0;                         
  color: #FB8F0D; 
  font-size: 14px;
  font-weight: bold; 
  margin-bottom: 4px;                
}

.button-3 {
  display: block;                    /* Critical: makes width: 100% work on button inside <a> */
  width: 100%;                       /* Takes full width of parent */
  max-width: none;                   /* Removes any hidden limits */
  height: 30px;                      /* Slightly taller for better touch target */
  border-radius: 30px;
  padding: 4px 24px;                 /* Horizontal padding only – vertical handled by height */
  background-color: #FB8F0D;
  border: none;
  color: #121212;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;            /* Ensures padding doesn't overflow */
}

.product-info a {
  display: block;
  width: 100%;
  margin-top: auto;                  /* Pushes button to bottom if space available */
}

.button-3:hover {
box-shadow: 
  0 0 10px #FB8F0D;

/* Smooth transitions */
  transition: all 0.4s ease;

}

