:root{
      --accent: #d43f3f;
      --accent-dark: #b12e2e;
      --bg: #121212;
      --card: #1e1e1e;
      --muted: #8a8a8a;
      --border: #2d2d2d;
      --text: #e0e0e0;
    }
    body{
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
    }

    /* Topbar */
    .topbar {
      background: var(--card);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
      padding: 14px 18px;
      position: sticky;
      top: 0;
      z-index: 50;
    }
    .brand {
      font-weight: 700;
      color: var(--accent);
      font-size: 1.25rem;
    }

    /* Main container card */
    .panel {
      background: var(--card);
      border-radius: 12px;
      padding: 22px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
      margin-top: 22px;
      border: 1px solid var(--border);
    }

   /* Category card (image round) */
.category-card, .subcategory-card {
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;

  /* Added for equal size */
  width: 200px;        /* or any fixed width */
  height: 230px;       /* ensures equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* space out image, text, and offers */
  align-items: center;
}

.category-card:hover, .subcategory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(212,63,63,0.16);
  border-color: var(--accent);
}

.category-image-wrap, .subcategory-image-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 6px 18px rgba(212,63,63,0.09);
}

.category-image, .subcategory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-name, .subcategory-name {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 6px 0 0;
  color: var(--text);
}

.discount-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    /* Products grid (text-only cards) */
    .product-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
      transition: transform .12s ease, box-shadow .12s ease;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      height:100%;
    }
    .product-card:hover{
      transform: translateY(-5px);
      box-shadow: 0 6px 18px rgba(0,0,0,0.2);
      border-color: var(--accent);
    }
    .product-name { font-weight:600; font-size:0.98rem; color:var(--text); }
    .product-meta { color: var(--muted); font-size:0.9rem; margin-bottom:8px; }

    .btn-accent {
      background: var(--accent);
      color: #fff;
      border: none;
    }
    .btn-accent:hover { background: var(--accent-dark); color:#fff; }

    /* Slide-out cart drawer */
   .cart-drawer {
        position: fixed;
        right: -520px;
        top: 0;
        height: 100vh;
        width: 420px;
        max-width: 100%;
        background: var(--card);
        box-shadow: -12px 0 30px rgba(0,0,0,0.3);
        z-index: 2000;
        transition: right .28s cubic-bezier(.2,.9,.2,1);
        display: flex;
        flex-direction: column;
        border-left: 1px solid var(--border);
    }
    .cart-drawer.open { right: 0; }
    .cart-header {
       padding: 18px;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--card);
        flex-shrink: 0; /* Prevent header from shrinking */
    }
    .cart-body {
      padding: 14px;
        overflow-y: auto;
        flex: 1 1 auto; /* Allow body to grow and shrink */
        min-height: 0; /* Important for flexbox scrolling */
    }
    .cart-footer {
      padding: 16px;
        border-top: 1px solid var(--border);
        background: #1a1a1a;
        flex-shrink: 0; /* Prevent footer from shrinking */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    .cart-item {
      display:flex;
      align-items:center;
      gap:12px;
      padding:10px 0;
      border-bottom: 1px dashed #333;
    }
    .ci-name { font-weight:600; font-size:0.96rem; color:var(--text); }
    .ci-sub { color: var(--muted); font-size:0.88rem; }

    .qty-box {
      display:flex;
      align-items:center;
      gap:8px;
      background:#2a2a2a;
      border-radius:8px;
      padding:6px;
    }
    .qty-btn {
      background:transparent;
      border:1px solid var(--border);
      width:30px;
      height:30px;
      border-radius:6px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      color: var(--text);
    }
    .qty-btn:hover {
      background: var(--accent);
      color: white;
    }

    /* mobile tweaks */
    @media (max-width: 576px) {
      .category-image-wrap, .subcategory-image-wrap { width:88px; height:88px; border-width:2px; }
      .panel { padding:14px; }
      .cart-drawer { width:100%; right:-100%; }
      .cart-drawer.open { right:0; }

      .cart-footer {
            padding: 12px 16px;
            position: sticky;
            bottom: 0;
            background: #1a1a1a;
            border-top: 1px solid var(--border);
        }
        
        /* Better button sizing for mobile */
        .cart-footer .btn {
            padding: 10px 12px;
            font-size: 0.9rem;
        }
        
        /* Ensure cart body doesn't overflow behind footer */
        .cart-body {
            padding-bottom: 20px;
            max-height: calc(100vh - 140px); /* Account for header and footer */
        }

    }

    @media (max-height: 700px) {
        .cart-body {
            max-height: calc(100vh - 120px);
        }
        
        .cart-footer {
            padding: 10px 16px;
        }
        }

    /* View transitions */
    .view {
      transition: opacity 0.2s ease;
    }
    .view.hidden {
      display: none;
      opacity: 0;
    }
    .view.active {
      display: block;
      opacity: 1;
    }

    /* Form controls for dark theme */
    .form-control, .form-select {
      background-color: #2a2a2a;
      border-color: #3a3a3a;
      color: var(--text);
    }
    .form-control:focus, .form-select:focus {
      background-color: #2a2a2a;
      border-color: var(--accent);
      color: var(--text);
      box-shadow: 0 0 0 0.25rem rgba(212, 63, 63, 0.25);
    }
    .modal-content {
      background-color: var(--card);
      color: var(--text);
      border: 1px solid var(--border);
    }
    .modal-header {
      border-bottom: 1px solid var(--border);
    }
    .modal-footer {
      border-top: 1px solid var(--border);
    }
    .btn-close {
      filter: invert(1);
    }
    .alert-warning {
      background-color: #332b00;
      border-color: #665600;
      color: #ffd54f;
    }


    

.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
}

.popup-body p {
    margin: 10px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.popup-buttons {
    margin-top: 20px;
}

.age-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-confirm {
    background: #27ae60;
    color: white;
    width: 100%;
}

.age-confirm:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* Hide popup when confirmed */
.age-popup.hidden {
    display: none;
}


 .simple-nav {
    color: white;
    padding: 15px 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: white;
}

.nav-contact {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nav-contact span {
    padding: 5px 10px;
    border-radius: 5px;
}


.footer a:hover {
  color: var(--accent, #dc3545) !important; /* Red accent hover */
}