/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container */

.container {
  flex: 1 0 auto;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: black;
  color: white;
  background-size: 115% 110%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* Headings */
h1, h2, h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 800;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* Links */
a {
  color: #C61D1A;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #e9221e;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: #7c7b7b;
  color: #000;
  font-weight: bold;
}

.btn:hover {
background-color: #C61D1A;
}
/* ===== Header & Footer ===== */
header {
  background: #000000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #C61D1A;
}

header .logo {
    width: 40px;
  height: auto;
}

.logo img {
  width: 100px;
  height: auto;
}

nav a {
  margin-left: 1.5rem;
  color: #f5f5f5;
  font-weight: 500;
}
nav a:hover {
  color: #C61D1A;
}

footer {
  flex-shrink: 0;
  background: #000000;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  border-top: 2px solid #7c7b7b;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}
footer a {
  color: #C61D1A;
}
footer a:hover {
  color: #C61D1A;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
  min-height: 200px;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  display: block;
}
.card h3 {
  margin: 0.5rem 0;
}
.details{
  color: white;
  font-size: 1.5rem;
}
.meta {
  margin-top: 0.5rem;
}
/* --- Responsive Nav --- */
nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 11;
}

nav a {
  text-decoration: none;
  color: #eee;
  font-weight: 500;
  transition: color 0.2s ease;
  z-index: 11;
}

nav a:hover {
  color: #C61D1A;
}

.menu-toggle {
  display: block;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  z-index: 11;
}
.cart-badge {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  background: #C61D1A;
  border-radius: 12px;
  vertical-align: middle;
  text-align: center;
}
nav a:hover .cart-badge {
  background: #C61D1A;
}
/* ===== Pagination ===== */
.pagination {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pagination .page {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    background-color: #7c7b7b;
    color: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}
.pagination .page:hover {
    background-color: #C61D1A;
}
.pagination .current {
    background-color: #555;
    pointer-events: none;
}
/* ===== Product page ===== */

.product-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  margin-bottom: 1em;
overflow: hidden;
}

.product-image-wrapper img {
  width: 100%; 
  height: 100%; 
  display: none; 
  object-fit: cover;
}

.product-image-wrapper img.active {
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2em;
  padding: 0.2em 0.5em;
  cursor: pointer;
  z-index: 10;
}

.arrow.prev { left: 0; }
.arrow.next { right: 0; }

/* Product quantity input styling */
.stock-input {
  width: 100px;            
  padding: 0.5rem;        
  font-size: 1.2rem;      
  border: 3px solid #C61D1A;  
  border-radius: 6px;
  text-align: center;     
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.stock-input:focus {
  outline: none;
  border-color: #e9221e;
  box-shadow: 0 0 5px rgba(201,29,26,0.5);
}

/* ===== Cart Container ===== */
#cart-container {
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.5rem;
}

/* ===== Cart List Items ===== */
#cart-container ul li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.5rem;
}

/* ===== Product Name ===== */
#cart-container ul li span.product-name {
    flex: 1 1 auto;   
    min-width: 0;     
}

/* ===== Quantity Input ===== */
.cart-qty {
    width: 80px;           
    flex: 0 0 80px;        
    padding: 0.5rem;          
    font-size: 1.2rem;        
    border: 3px solid #C61D1A; 
    border-radius: 6px;
    text-align: center;       
    transition: all 0.2s ease;
}

.cart-qty:focus {
    outline: none;
    border-color: #e9221e;
    box-shadow: 0 0 5px rgba(201,29,26,0.5);
}

/* ===== Item Total ===== */
.item-total {
    width: 100px;          
    flex: 0 0 100px;      
    text-align: left;
    font-weight: bold;
    color: white;
}

/* ===== Remove Button ===== */
#cart-container ul li a.remove-item {
    width: 60px;            
    flex: 0 0 60px;       
    text-align: center;
    color: #C61D1A;
    font-size: 1.5rem;
}

#cart-container ul li a.remove-item:hover {
    color: #e9221e;
}
.carousel-thumbs {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.carousel-thumbs .thumb {
  transition: border 0.2s ease;
}

.carousel-thumbs .thumb.active {
  border: 2px solid #000;
}
.product-slider {
  position: relative;
  overflow: hidden;
}

.slider-thumbs {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.slider-thumbs .thumb {
  transition: border 0.2s ease;
}

.slider-thumbs .thumb.active {
  border: 2px solid #000;
}

.slider-image {
  width: 100%;
  display: block;
}

/* Slider styles */
.product-slider { position: relative; overflow: hidden; }
.slider-image { width: 100%; display: none; position: absolute; top: 0; left: 0; transition: opacity 0.5s ease; }
.slider-image.active { display: block; opacity: 1; z-index: 2; }
.slider-thumbs { display: flex; justify-content: center; margin-top: 5px; }
.slider-thumbs .thumb { width: 30px; height: 30px; cursor: pointer; border: 2px solid #ccc; margin-right: 4px; transition: border 0.2s; object-fit: cover; }
.slider-thumbs .thumb.active { border-color: #000; }


/* Category filter */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.categories a {
  padding: 5px 12px;
  border: 2px solid #C61D1A;
  border-radius: 5px;
  text-decoration: bold;
  color: #C61D1A;
  transition: 0.2s;
}
.categories a.active, .categories a:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}
/* video */
.video-marquee {
  position: relative;
  z-index: 10;
  background: #222222;
  overflow: hidden;
  padding: 15px 0 250px;
  margin-bottom: 15px;  
}

.video-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 60s linear infinite;
}

.video-marquee:hover .video-track {
  animation-play-state: paused;
}

.marquee-video {
  width: 240px;
  height: 235px;
  margin-right: 15px;
  border-radius: 8px;
  background: #000;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.marquee-video:hover {
  transform: scale(1.1);
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Admin Panel Styles ===== */
body.admin { background-color: #1a1a1a; color: #f0f0f0; font-family: Arial, sans-serif; }
body.admin header { background-color: #111; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
body.admin header h1 { margin: 0; font-size: 1.5rem; color: #f0f0f0;}
body.admin header a { color: #f0f0f0; text-decoration: none; margin-left: 1rem; }
body.admin .container { display: flex; min-height: 90vh; }
body.admin .sidebar { width: 220px; background-color: #222; padding: 1rem; }
body.admin .sidebar a { display: block; color: #C61D1A; padding: 0.5rem 0; text-decoration: none; border-radius: 4px; margin-bottom: 0.3rem; }
body.admin .sidebar a:hover { background-color: #333; }
body.admin .main { flex: 1; padding: 2rem; background-color: #1a1a1a; }
body.admin .main h2 { margin-top: 0; }
body.admin .quick-stats { display: flex; gap: 2rem; margin-top: 1rem; }
body.admin .quick-stats div { background-color: #222; padding: 1rem; border-radius: 6px; flex: 1; text-align: center; }
body.admin .quick-stats div p { margin: 0.5rem 0 0; font-size: 1.2rem; font-weight: bold; }
body.admin .btn { display: inline-block; padding: 0.5rem 1rem; background-color: #444; color: #f0f0f0; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; }
body.admin .btn:hover { background-color: #555; }
body.admin .error { background-color: #C61D1A; color: #fff; padding: 0.5rem 1rem; border-radius: 4px; margin-bottom: 1rem; }


@media (max-width: 768px) {
  /* Hide the desktop nav by default on mobile */
  nav {
    display: none !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    width: 220px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #111;
    padding: 1rem;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.6);
    z-index: 11;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(100%); 
    opacity: 0;
  }

  /* Show it when active */
  nav.active {
    display: flex !important;
    transform: translateX(0);
    opacity: 1;
    z-index: 11;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
  }
}


/* === Responsive Cart Page === */
#cart-container {
  max-width: 90%;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
}

#cart-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cart-container li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

#cart-container .product-name {
  flex: 1 1 100%;
  font-weight: 600;
  margin-bottom: 5px;
}

#cart-container .cart-qty {
  width: 60px;
  text-align: center;
  margin-right: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#cart-container .item-total {
  font-weight: bold;
  margin-right: 10px;
}

#cart-container .remove-item {
  color: #e74c3c;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 5px;
}

/* Button styling */
#cart-container .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 1.1em;
  background-color: #444;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

#cart-container .btn:hover {
  background-color: #666;
}

.no-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.coming-soon {
  font-size: 1rem;
  font-weight: bold;
  color: #888;
  background: rgba(255,255,255,0.8);
  padding: 0.4em 1em;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Mobile view adjustments === */
@media (max-width: 600px) {
  #cart-container li {
    flex-direction: column;
    text-align: center;
  }

  #cart-container .cart-qty {
    margin: 5px 0;
    width: 80px;
  }

  #cart-container .item-total {
    margin: 5px 0;
  }

  #cart-container .remove-item {
    display: inline-block;
    margin-top: 5px;
  }

  #cart-container .btn {
    font-size: 1em;
    padding: 14px;
  }
  
}

/* Keep € and price on the same line */
#cart-container .item-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-weight: bold;
}

/* ENFORCED VISIBILITY FIX */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  header > nav {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}




