body{
    background-color: black;
} 
.row{
  text-align: center;
  margin-left: 0;
  margin-right: 0;
    
}
.navbar{
  background-color: white;

} 
.navbar-brand{

}

h3{
 
} 

.my-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 2.9 / 1;   /* replace with your image's real width/height */
  overflow: hidden;
}

.my-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.my-carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: contain;
}

.my-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 2;
  border-radius: 4px;
}
.my-carousel-btn.prev { left: 10px; }
.my-carousel-btn.next { right: 10px; }

.my-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active {
  background: white;
}

/* Tablet and phone no longer need separate heights —
   aspect-ratio keeps the same shape at every screen size automatically */
@media (max-width: 768px) {
  .my-carousel-btn {
    padding: 8px 12px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .my-carousel-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
 
}

.marquee-content {
  display: inline-flex;
  gap: 3rem;
  animation: scroll-right 8s linear infinite;
}

@keyframes scroll-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100vw);
  }
}

.carousel-item {
    margin-left: 8px;
    margin-right: 8px;
} 

.name{
    color: white;
    text-align: center;
    
}
h4{
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
   margin-top: 15px;
  
} 

.kualitas{ 
  margin-top: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  background-color: white; 
  border-radius: 15px;
  margin-left: 10px;
  margin-right: 5px;
  box-shadow: 3px 3px 10px rgb(126, 126, 161);
}

.Garansi{ 
  margin-top: 10pxpx;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  background-color: white; 
  border-radius: 15px;
  margin-left: 10px;
  margin-right: 5px;
  box-shadow: 3px 3px 10px rgb(126, 126, 161);
}

.write{
  text-align: center;
}

/* ===== Added for dynamic products (view page) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}
.product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 10px rgb(126, 126, 161);
  color: black;
  text-align: center;
  padding-bottom: 12px;
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #eee;
}
.product-card h5 {
  margin-top: 10px;
  font-family: "Oswald", sans-serif;
}
.product-card .price {
  color: #0a7d3c;
  font-weight: bold;
}
.shopee-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background-color: #ee4d2d;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-family: "Oswald", sans-serif;
  font-weight: bold;
}
.shopee-btn:hover {
  background-color: #d43f22;
  color: white;
}
.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.product-card-actions .shopee-btn,
.product-card-actions .video-btn,
.product-card-actions .spec-btn {
  margin-top: 0;
}
.video-btn {
  display: inline-block;
  padding: 8px 18px;
  background-color: red;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-family: "Oswald", sans-serif;
  font-weight: bold;
}
.video-btn:hover {
  background-color: #cc0000;
  color: white;
}
.spec-btn {
  display: inline-block;
  padding: 8px 18px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-family: "Oswald", sans-serif;
  font-weight: bold;
}
.spec-btn:hover {
  background-color: #111;
  color: white;
}
.category-card {
  text-decoration: none;
  color: black;
  display: block;
}
.category-card:hover {
  transform: translateY(-3px);
  transition: transform 0.15s ease;
}

/* ===== Added for admin login page ===== */
.login-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 320px;
}

/* ===== Added for admin dashboard ===== */
.admin-wrapper {
  background: white;
  min-height: 100vh;
  padding: 20px;
}
.admin-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
}

/* ---- Drag-to-reorder (admin) ---- */
.draggable-row {
  cursor: grab;
}
.draggable-row:active {
  cursor: grabbing;
}
.draggable-row.dragging {
  opacity: 0.4;
}
.drag-handle {
  font-size: 1.2rem;
  color: #999;
  margin-right: 8px;
  user-select: none;
}
