/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html, body {
  overflow-x: hidden; /* prevent full page horizontal scroll */
}

body {
  background: #000;
  color: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li {
  cursor: pointer;
}

.nav-links li:hover {
  color: gray;
}

.icons span {
  margin-left: 10px;
}

/* ===== HERO ===== */
.hero {
  margin-top: 50px;
  height: 90vh;
  background-image: url('ChatGPT Image Mar 23, 2026, 06_10_41 PM.png');
  background-size: cover;
  background-position:calc(30);
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

}

.hero-text {
  text-align: center;
}

.hero h1 {
  font-size: 60px;
}

.hero button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background: white;
  color: black;
  cursor: pointer;
}

/* ===== PRODUCTS GRID ===== */
.products {
  padding: 50px 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* ===== CARD ===== */
.card {
  background: #111;
  padding: 10px;
  transition: 0.3s;
  position: relative;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  color: black;
  padding: 5px;
}

.old {
  text-decoration: line-through;
  color: gray;
}

.buttons {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.buttons button {
  flex: 1;
  padding: 8px;
  border: none;
  cursor: pointer;
}

.cart-btn {
  background: #333;
  color: white;
}

.buy-btn {
  background: rgb(255, 31, 31);
  color: black;
}

/* ===== CATEGORY SECTION ===== */
.category-section {
  padding: 50px 20px;
}

/* FILTER BUTTONS */
.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
  background: #fff;
  color: #000;
}

/* CATEGORY */
.category {
  position: relative;
  margin-bottom: 40px;
}

.category h2 {
  margin-bottom: 10px;
  padding-left: 10px;
}

/* ===== HORIZONTAL SCROLL ===== */
.scroll-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 40px;
  cursor: grab;
}

/* hide scrollbar */
.scroll-row::-webkit-scrollbar {
  display: none;
}

/* keep cards inline */
.category .card {
  min-width: 220px;
  flex-shrink: 0;
}

/* ===== SCROLL ARROWS ===== */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 18px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.scroll-btn:hover {
  background: white;
  color: black;
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

/* ===== INFO SECTION ===== */
.info {
  display: flex;
  padding: 50px 20px;
  gap: 20px;
  align-items: center;
}

.info img {
  width: 50%;
}

.text {
  width: 50%;
}

.reverse {
  flex-direction: row-reverse;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
}

/* ========================= */
/* 📱 MOBILE OPTIMIZATION 🔥 */
/* ========================= */

@media (max-width: 900px) {

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info {
    flex-direction: column;
  }

  .info img,
  .text {
    width: 100%;
  }

  .hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 500px) {

  /* NAVBAR */
  .navbar {
  position: fixed;   /* 🔥 key change */
  top: 0;
  left: 0;
  width: 100%;       /* full width */
  
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 15px;

  background: rgba(0,0,0,0.9);
  z-index: 1000;
}

  .nav-links {
    gap: 10px;
    font-size: 14px;
  }

  /* HERO */
  @media (max-width: 500px) {
  .hero {
    margin-top: 50px;
    height: 60vh;
    background: url('MobileView.png');
    background-size: cover;
    background-position: center top; /* 👈 key fix */
  }

  .hero h1 {
    font-size: 26px;
  }
}

  /* PRODUCT GRID */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* CATEGORY CARDS */
  .category .card {
    min-width: 160px; /* smaller for mobile scroll */
  }

  .card img {
    height: 180px;
  }

  /* FILTER BUTTONS */
  .filters {
    flex-wrap: wrap;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* SCROLL ARROWS SMALLER */
  .scroll-btn {
    font-size: 14px;
    padding: 6px;
  }
  .scroll-row {
    margin-left: -37px;
  
}
}
/* ===== CART PANEL ===== */
.cart-panel {
  position: fixed;
  right: -100%;
  top: 0;
  width: 350px;
  max-width: 100%;
  height: 100%;
  background: #111;
  padding: 20px;
  transition: 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

/* ACTIVE STATE */
.cart-panel.active {
  right: 0;
}

/* OVERLAY (BACKGROUND BLUR EFFECT) */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
  display: none;
}

.cart-overlay.active {
  display: block;
}

/* CART ITEMS */
.cart-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

/* BUTTONS */
.buttons {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.cart-btn {
  background: #333;
  color: white;
}

.buy-btn {
  background: rgb(135, 250, 100);
  color: black;
}

/* CLOSE BUTTON */
.cart-panel button {
  margin-top: 20px;
  padding: 10px;
  width: 100%;
  border: none;
  background: white;
  color: black;
  cursor: pointer;
}

/* ========================= */
/* 📱 MOBILE OPTIMIZATION 🔥 */
/* ========================= */

@media (max-width: 768px) {
  .cart-panel {
    width: 80%;
  }
}

@media (max-width: 500px) {
  .cart-panel {
    width: 100%; /* full screen like app */
    padding: 15px;
  }

  .cart-item {
    font-size: 14px;
  }

  .buttons {
    flex-direction: column;
  }

  .cart-btn,
  .buy-btn {
    width: 100%;
    padding: 10px;
  }
}
/* Footer Container */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 30px;
    margin-top: 50px; /* Pushes it away from content */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}

.footer-info h3, .footer-links h4, .footer-contact h4 {
    margin-bottom: 15px;
}

.footer-info span {
    color: #007bff;
}

.footer-info p {
    color: #bbb;
    max-width: 250px;
}

/* Footer Navigation */
.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-contact p {
    color: #bbb;
    margin-bottom: 5px;
}

/* Bottom Copyright Bar */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #777;
    font-size: 14px;
}
/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); /* Darker overlay */
    backdrop-filter: blur(5px);
}

/* Modal Box */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
}

.modal-body {

    display: flex;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
    min-width: 100%;
}

.modal-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-details {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h1 { font-size: 2rem; margin-bottom: 10px; }
.modal-price { font-size: 1.5rem; color: #007bff; font-weight: bold; margin-bottom: 20px; }
.modal-desc { color: #666; line-height: 1.6; margin-bottom: 30px; }

.modal-actions button {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}
/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.cart-sidebar.active {
    right: 0;
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

#cart-overlay.active {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}
/* MODAL FULL SCREEN */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

/* SCROLLABLE CONTENT */
.modal-content {
  background: #111;
  margin: 40px auto;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}

.modal-body {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-image img {
  width: 300px;
  height: 350px;
  object-fit: cover;
}

.modal-details {
  flex: 1;
}

.sizes {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.size-btn {
  padding: 8px 15px;
  border: 1px solid #fff;
  background: transparent;
  color: rgb(236, 67, 67);
  cursor: pointer;
}

.size-btn.active {
  background: white;
  color: black;
}

.delivery {
  margin: 10px 0;
  color: lightgreen;
}

.modal-actions button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  cursor: pointer;
}
.footer-contact a{
  text-decoration: none;
  color: #007bff;
  
}
.footer-contact img{
  height: 15px;
  width: 15px;
  position: relative;
  top: 5px;
}