/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  overflow-x: hidden;
  padding-top: 85px; /* Space for fixed header */
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* ===== News Ticker ===== */
.news-ticker {
  background-color: #222;
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  font-weight: bold;
}

.ticker-content {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker-content span {
  margin-right: 40px;
  display: inline-block;
  font-size: clamp(12px, 3vw, 16px);
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== Navigation ===== */
.fix {
  position: fixed;
  top: 35px;
  width: 100%;
  z-index: 999;
  background: #333;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

/* Search Bar */
.search-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 500px;
  margin: 0 15px;
}

.search-bar {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  width: 100%;
  font-size: 16px;
}

.search-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: white;
  position: relative;
  bottom: 40px;
  left: 320px;
}

/* Cart Section */
.cart-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart {
  color: white;
  font-size: 20px;
  cursor: pointer;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #a5a728;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-cart {
  background: #e3bd12;
  color: rgb(0, 0, 0);
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.view-cart:hover {
  background: #218838;
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 5px;
}

/* ===== Hero Section ===== */
.typewriter-container {
  margin: 20px 0;
}

#typewriter-text {
  display: inline-block;
  font-family: "ApexFont", monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: #333;
  overflow: hidden;
  border-right: 0.15em solid orange;
  white-space: nowrap;
  letter-spacing: 0.15em;
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  from, to { border-right-color: transparent; }
  50% { border-right-color: orange; }
}

/* Slider */
.slider {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
  border: 7px solid #ddd;
  border-radius: 20px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  height: auto;
}

/* Headings */
.head1, .head2 {
  font-family: "ApexFont1", monospace;
  font-size: clamp(2rem, 8vw, 4rem);
  margin: 10px 0;
  position: static;
  z-index: 1;
}

/* ===== Mobile Responsive Styles ===== */
@media (max-width: 768px) {
  body {
    padding-top: 125px; /* More space for stacked header */
  }
  
  .fix {
    top: 0;
    padding-top: 35px; /* Space for ticker */
  }
  
  #navbar {
    flex-wrap: wrap;
    padding: 10px;
  }
  
  .hamburger {
    display: block;
    order: 1;
  }
  
  .search-container {
    order: 3;
    width: 100%;
    margin: 10px 0 0 0;
    display: none;
  }
  
  .search-container.active {
    display: flex;
  }
  
  .cart-section {
    order: 2;
    margin-left: auto;
  }
  
  .slider {
    width: 95%;
    margin-top: 40px;
  }
  
  .head1, .head2 {
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .ticker-content {
    animation-duration: 20s;
  }
  
  .ticker-content span {
    margin-right: 20px;
  }
  
  .view-cart {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .cart {
    font-size: 18px;
  }
}
/* ===== Updated Add to Cart Button (Matches View Cart) ===== */
button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  position: relative;
}
.size-select {
  background-color: #000000;
  color: white;
  border: none;
  padding: 9px 15px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  position: relative;
}
/* ===== Product Grid Styles ===== */
.products {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 1 column by default (mobile) */
  gap: 20px;
  padding: 20px;
  margin-top: 30px;
}

.product-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-info {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.product-price {
  font-weight: bold;
  color: #28a745;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Responsive Grid Layout */
@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets and up */
  }
}

/* Optional: Adjust for very large screens */
@media (min-width: 1200px) {
  .products {
    grid-template-columns: repeat(3, 1fr); /* Keep 3 columns but can adjust spacing */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ===== Updated Slider & Heading Styles ===== */
.slider {
  width: 30%; /* Reduced from 90% */
  max-width: 600px; /* Reduced from 800px */
  margin: 20px auto 20px 0; /* Changed to left-align */
  overflow: hidden;
  border: 7px solid #000000;
  border-radius: 20px;
  float: right; /* Added to allow headings on left */
  position: relative;
  z-index: 1;
}

/* Headings positioning */
.head1, .head2 {
  font-family: "ApexFont1", monospace;
  font-size: clamp(2rem, 8vw, 4rem);
  margin: 10px 0;
  position: relative;
  text-align: left;
  padding-left: 20px;
  z-index: 2;
  clear: both;
}

.head1 {
  margin-top: 60px; /* Added space above first heading */
}

/* Clear float after slider */
.back::after {
  content: "";
  display: table;
  clear: both;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .slider {
    width: 90%;
    max-width: 100%;
    margin: 20px auto; /* Center on mobile */
    float: none; /* Remove float on mobile */
  }
  
  .head1, .head2 {
    text-align: center;
    padding-left: 0;
    margin-top: 20px;
  }
  
  .head1 {
    margin-top: 40px;
  }
}

/* Mobile Menu Styles */


.menu-content {
  padding: 20px;
  color: white;
}

.menu-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff;
}

.menu-section h2 {
  color: #e3bd12;
  margin-bottom: 15px;
}

.menu-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.footer {
  margin-top: 30px;
  font-size: 14px;
  color: #aaa;
}

/* Show menu when active */
.mobile-menu {
    display: none;
    /* Other styles */
}

.mobile-menu.active {
    display: block;
    /* Adjust for desired layout */
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 3 10px;
  left: 10px;
  background-color: #333;
  padding: 0%;
  border-radius: 8px;
  z-index: 999;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px;
  display: block;
}

.nav-links.show {
  display: flex;
}

.hamburger {
  font-size: 24px;
  cursor: pointer;
  color: white;
  margin-right: 10px;
}

/* Optional: media query for hiding/showing based on screen size */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
  }

  .nav-links a {
    margin-right: 15px;
  }
}
.infinite-slider {
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  padding: 20px 0;
}

.slider-track {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
}

.slider-track img {
  height: 80px;
  margin: 0 25px;
  object-fit: contain;
  display: inline-block;
}

/* Animation to scroll to the left */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slider-track img {
    height: 60px;
    margin: 0 15px;
  }
}

@media (max-width: 480px) {
  .slider-track img {
    height: 300px;
    margin: 0 10px;
  }
}
/* Container */
.dark-mode-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Hide checkbox */
.dark-mode-toggle input[type="checkbox"] {
  display: none;
}

/* Slider track */
.switch {
  display: inline-block;
  width: 60px;
  height: 30px;
  background-color: #494747;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  right: 300px;
  top: 35px;
}

/* Knob */
.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: rgb(230, 255, 5);
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 2;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Icons inside the switch */
.switch .icon {
  position: absolute;
  top: 4px;
  font-size: 18px;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sun {
  left: 8px;
  opacity: 1;
}

.moon {
  right: 8px;
  opacity: 0;
}

/* When checked */
input:checked + .switch {
  background-color: #000000;
}

input:checked + .switch::before {
  transform: translateX(30px);
}

input:checked + .switch .sun {
  opacity: 0;
}

input:checked + .switch .moon {
  opacity: 1;
}




