:root {
  --brand: #b8860b;
  --brand-dark: #8b6508;
  --ink: #1f1f1f;
  --bg: #f7f7f9;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; background:var(--bg); 
color:var(--ink); }
a { color:inherit; text-decoration:none; }
/* Header */
header { 
display:flex; justify-content:space-between; align-items:center; 
padding:10px 16px; 
background:#111; 
color:#fff; 
}
.brand { display:flex; align-items:center; gap:10px; }
.brand img { height:90px; border-radius:6px; }
.nav { display:flex; gap:14px; }
.nav a { padding:8px 10px; border-radius:8px; }
.nav a:hover { background: rgba(255,255,255,.08); }

.cart-icon {
  position: relative;
  display: inline-block;
}

.cart-btn {
  font-size: 30px;
  text-decoration: none;
  display: inline-flex; 
  align-items: center; 
  color: #fff; 
  border: 0; 
  border-radius: 10px; 
  padding: 8px 12px; 
  font-weight: 600; 
  cursor: pointer;
  position: relative;
}

#cartCount {
  position: absolute;
  top: -3px;    /* move slightly above */
  right: -3px;  /* move slightly to the right */
  background:var(--brand);
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  color: #fff; 
  line-height: 1;
}
/* Hero */
.hero { background:linear-gradient(135deg,#3a3a3a 0%,#161616 100%); color:#fff; padding:44px 16px; text-align:center; }
.hero h1 { margin:0 0 8px; font-size:28px; }
.hero p { margin:0 0 16px; opacity:.9; }
.cta {
 color:var(--brand);
 }
/* Sections */
.section { padding:26px 16px; max-width:1100px; margin:0 auto; }
.section h2 { margin:0 0 14px; color:#333; }
.grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
.card { position: relative; background:var(--card); border-radius:14px; padding:12px; box-shadow:0 6px 18px rgba(0,0,0,.06); display:flex; flex-direction:column; align-items:center; text-align:center; }
.card img { width:100%; height:auto; object-fit:cover; border-radius:10px; }
.sections .section .products {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: stretch; /* makes all cards same height in row */
}

.card {
  flex: 1 1 160px; /* responsive width */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h3 { font-size:16px; margin:8px 0 2px; }

.price { 
font-weight:700; 
color:#222; 
}
.add {
 margin-top:8px; 
border:0; 
background:var(--brand); 
color:#fff; 
padding:8px 10px; 
border-radius:10px;
 cursor:pointer; 
}
.add:hover {
 opacity:.9; 
}


.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background:var(--brand);
  color: white;
  font-size: 18px;
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: bold;
  z-index: 1;
}
/* About / Contact */
.info {
 background:#bbb; border-radius:16px; 
padding:18px;
 box-shadow:0 6px 18px rgba(0,0,0,.06);
color: #fff;
}

/* Footer */
footer {
 padding:24px 16px; 
text-align:center; 
background:#111; 
margin-top:26px;
 }

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .card {
    padding: 10px;
  }
}

/* Hamburger icon */
  .hamburger {
    display: block;
    width: 30px;
    height: 25px;
    margin: 20px;
    position: relative;
    cursor: pointer;
    z-index: 2001;
    color: white;
  }

  .hamburger span {
    position: absolute;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 10px; }
  .hamburger span:nth-child(3) { top: 20px; }

  /* Popup menu */
  .menu {
    position: fixed;
    top: 40px;
    right: -250px; /* hidden by default */
    width: 250px;
    height: auto;
    background: #f1f1f1;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    padding-top: 60px;
    border-radius: 8px;
    z-index: 2000;
  }

  .menu a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
  }

  .menu a:hover {
    background: #ddd;
  }

  /* Active menu */
  .menu.active {
    right: 0;
  }

  /* Optional: animate hamburger to X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
    background: #333;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
    background: #333;
  }

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  animation: fadeIn 0.5s ease;
  height: 250px;
}

.no-results img {
  width: 80px;
  margin-bottom: 12px;
}

.no-results p {
  font-weight: 600;
  margin: 0 0 6px 0;
}

.no-results small {
  opacity: 0.7;
  font-size: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
 display: none; 
}


.hero {
  position: relative;
  height: 400px; /* adjust height */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1; /* keep text above video */
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* dark overlay for text readability */
  z-index: 0;
}
    .user-menu { position: relative; display: inline-block; }
    .user-icon { 
      font-size: 30px; cursor: pointer; 
    }
    .dropdown {
      position: absolute;
      top: 45px;
      right: 0;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 8px;
      min-width: 160px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
      z-index: 2002;
    }
    .dropdown a {
      display: block;
      padding: 10px;
      color: #333;
      text-decoration: none;
    }
    .dropdown a:hover {
      background: #f1f1f1;
    }
.section h2 {
color:var(--brand);
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-card {
  background: var(--card);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.skeleton-img {
  width: 100%;
  height: 130px;
  border-radius: 10px;
}
.skeleton-text {
  height: 14px;
  margin-top: 8px;
  width: 70%;
}
.skeleton-price {
  height: 16px;
  margin-top: 6px;
  width: 40%;
}

.skeleton-btn {
  height: 32px;
  margin-top: 10px;
  width: 60%;
  border-radius: 10px;
}
/* Image preview overlay */
.img-preview {
  display: none; 
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center; 
  align-items: center;
}

.img-preview img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  animation: zoomIn 2s ease forwards; /* slow zoom */
}

/* Zoom animation */
@keyframes zoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* Close button */
.img-preview .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
  .socials {
    display: flex;
    gap: 8px;
    padding: 1rem;
    justify-content: center;
    }

  .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  }

  .socials a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  }

  .facebook { background: #3b5998; }
  .instagram { background: #e1306c; }
  .tiktok { background: #000; }
  .whatsapp { background: #00b489; }

  /* Optional Tooltip */
  .socials a::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .socials a:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
.faq-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #ffe53b;
  background-image: linear-gradient(147deg, #ffe53b 0%, #ff2525 74%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.151);
  position: relative;
}
.faq-button svg {
  height: 1.5em;
  fill: white;
}
.faq-button:hover svg {
  animation: jello-vertical 0.7s both;
}
@keyframes jello-vertical {
  0% {
    transform: scale3d(1, 1, 1);
  }
  30% {
    transform: scale3d(0.75, 1.25, 1);
  }
  40% {
    transform: scale3d(1.25, 0.75, 1);
  }
  50% {
    transform: scale3d(0.85, 1.15, 1);
  }
  65% {
    transform: scale3d(1.05, 0.95, 1);
  }
  75% {
    transform: scale3d(0.95, 1.05, 1);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}

.tooltip {
  position: absolute;
  top: -20px;
  opacity: 0;
  background-color: #ffe53b;
  background-image: linear-gradient(147deg, #ffe53b 0%, #ff2525 74%);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: 0.2s;
  pointer-events: none;
  letter-spacing: 0.5px;
}

.tooltip::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  background-color: #ff2525;
  background-size: 1000%;
  background-position: center;
  transform: rotate(45deg);
  bottom: -15%;
  transition-duration: 0.3s;
}

.faq-button:hover .tooltip {
  top: -40px;
  opacity: 1;
  transition-duration: 0.3s;
}
.faq-buttons-container {
  display: flex;
  gap: 12px; /* space between buttons */
  justify-content: center; /* center horizontally */
  align-items: center;
  margin: 10px 0;
}
.quick-sec {
display: flex;
gap: 10px;
justify-content: center;
font-size: 16px;
flex-wrap: wrap;
}
 /* Toast message style */
    #toast {
      visibility: hidden;
      min-width: 200px;
      background: #333;
      color: #fff;
      text-align: center;
      border-radius: 8px;
      padding: 12px;
      position: fixed;
      z-index: 1000;
      left: 50%;
      bottom: 30px;
      transform: translateX(-50%);
      font-size: 14px;
      opacity: 0;
      transition: opacity 0.5s, bottom 0.5s;
    }

    #toast.show {
      visibility: visible;
      opacity: 1;
      bottom: 50px;
    }

#userDropdown {
  display: none;
}
#userDropdown.show {
  display: block;
}
