/* ============================================================
   SHARED.CSS — Dhaka Bhayya Biryani
   Common styles used across every page.
   Each page CSS only needs page-specific rules after this.
   ============================================================ */

/* ================= ROOT VARIABLES ================= */
:root {
  --primary: #2c9c07;
  --primary-dark: #237d06;
  --dark-bg: #221012;
  --light-bg: #f8f6f6;
  --white: #ffffff;
  --text-dark: #1e1e1e;
  --text-muted: #555;
  --text-light: #f5f5f5;
  --gray: #888;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

  --transition: all 0.3s ease;
}

/* ================= GLOBAL RESET ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.hide {
  display: none;
}
.decor-none {
  text-decoration: none;
}
.logo {
  display: flex;
 
  width: 250px;
}
.logo img {
  width: 50px;
}
.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo {
  font-size: 16px !important;
}
.logo-text {
  font-size: 1.5rem !important;
  margin-top: 4px;
  margin-left: 2px;
}
.footer-logo-img {
  width: 60px;
  margin-left: 55px;
  margin-top: -20px;
  margin-bottom: 10px;
}
.credit-to-Hashbytes {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.credit-container {
  display: flex;
  padding-bottom: 10px;
  margin-top: -15px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  
}
.credit-to-hashbytes-a {
  color: aliceblue;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}
.credit-to-hashbytes-span {
  color: #29b0e3;
}
.credit-to-hashbytes-a:hover {
  color: #29b0e3;
  transform: scale(1.02);
}
.credit-to-hashbytes-logo {
  width: 25px;
  /* height: 20px; */
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--primary);
  white-space: nowrap;
}

.logo-text strong {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--primary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

/* ================= BUTTONS ================= */
.btn-primary {
  background: #e53e3e;
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: var(--primary);
}

/* ================= CART BUTTON (shared across pages) ================= */
.cart-btn {
  position: relative;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.cart-btn:hover {
  background: var(--primary-dark);
}

.cart-count {
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-count.visible {
  display: flex;
}

/* ================= CART OVERLAY & DRAWER ================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.cart-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1e1e1e;
}

.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.cart-empty .material-icons {
  font-size: 56px;
  color: #ddd;
  display: block;
  margin-bottom: 12px;
}

.cart-empty p {
  font-size: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 700;
  font-size: 13px;
  color: #1e1e1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
}

.qty-num {
  font-weight: 700;
  font-size: 15px;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label {
  font-size: 15px;
  color: #666;
}

.cart-total-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border: none;
  padding: 14px;
  text-align: center;
  display: block;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.btn-checkout:hover {
  background: var(--primary-dark);
}

.btn-clear {
  width: 100%;
  background: transparent;
  color: #e53e3e;
  border: 2px solid #e53e3e;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.btn-clear:hover {
  background: #e53e3e;
  color: white;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================= MOBILE NAV ================= */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  padding: 50px 0;
  justify-content: center;
  gap: 20px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--text-dark);
}

.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--dark-bg);
  color: #ccc;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-about p {
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-column h4 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary);
}

.footer-info li {
  color: #aaa;
  font-size: 14px;
}

.footer-info p {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #888;
}

/* ================= SHARED CART JS (inline script template) ================= */
/* NOTE: cart JS is duplicated per-page intentionally since pages
   are static HTML. The shared.css handles all visual deduplication. */

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav-links,
  .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cart-text {
    display: none;
  }
}

/* Footer branch label (was a <p> inside <ul> - now valid <li>) */
.footer-branch-heading {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  list-style: none;
}
