* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-orange: #ff4c00;
  --light-color: #e9e9e9;
  --danger-color: #dc3545;
}

body {
  background-color: #f4f7fe;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

/* Main Container to mimic the mobile view in screenshot */
.app-container {
  /* max-width: 500px; */
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* --- HEADER --- */
.header-top {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #333;
}

.brand-logo {
  width: 100px;
}

.table-no {
  background: #f0f2f5;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
}

.search-wrapper {
  padding: 10px 15px 10px;
}

.search-box {
  background: #fff;
  /* border: 1px solid #e0e0e0; */
  /* border-radius: 10px; */
  /* padding: 8px 15px; */
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: none;
  border-color: #d3d3d3;
  outline: 0;
  box-shadow: none !important;
}

/* --- CATEGORY NAV --- */
.sticky-nav {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
}

.category-scroll {
  display: flex;
  overflow-x: auto;
  padding: 10px 10px;
  gap: 15px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.nav-item-custom {
  text-decoration: none;
  text-align: center;
  color: #333;
  font-size: 12px;
  position: relative;
  max-width: 70px;
}

.icon-card {
  margin: auto;
  width: 60px;
  height: 60px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: #fff;
  transition: 0.2s;
}

/* Active State with Orange Tick */
.nav-item-custom.active .icon-card {
  border-color: var(--brand-orange);
}

.nav-item-custom.active {
  color: var(--brand-orange);
}

.tick-icon {
  display: none;
  position: absolute;
  top: -5px;
  right: 0px;
  background: var(--brand-orange);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  border: 2px solid white;
}

.tick-icon svg {
  fill: #fff;
  margin-top: -5px;
  width: 10px;
  height: 10px;
}

.nav-item-custom.active .tick-icon {
  display: block;
}

.active-underline {
  height: 3px;
  background: var(--brand-orange);
  width: 80%;
  margin: 5px auto 0;
  border-radius: 5px;
  display: none;
}

.nav-item-custom.active .active-underline {
  display: block;
}

/* --- ACCORDION & ITEMS --- */
.accordion-button {
  background-color: transparent !important;
  font-weight: 700;
  color: #333 !important;
  box-shadow: none !important;
  padding: 15px;
  font-size: 16px;
}

.accordion-button::after {
  background-size: 1rem;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #eee;
}

.menu-row {
  padding: 15px;
  border-bottom: 1px dashed #e0e0e0;
}

.menu-row:last-child {
  border-bottom: none;
}

.veg-icon {
  width: 15px;
  height: 15px;
  border: 1.5px solid #2d7d32;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-icon div {
  width: 7px;
  height: 7px;
  background: #2d7d32;
  border-radius: 50%;
}

.item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.item-name button {
  margin-top: 10px;
  background-color: var(--brand-orange);
  color: white;
  padding: 3px 20px;
  border-radius: 5px;
  border: 2px solid var(--brand-orange);
}

.item-price {
  font-size: 14px;
  color: #444;
}

/* --- BOTTOM NAV --- */
.footer-nav {
  position: fixed;
  bottom: 0;
  /* max-width: 500px; */
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  align-items: center !important;
  border-top: 1px solid #eee;
  z-index: 1001;
}

.foot-item {
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-size: 11px;
}

.foot-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

.foot-item.active svg {
  fill: var(--brand-orange);
}

.foot-item.active {
  color: var(--brand-orange);
}

.content-area {
  padding-bottom: 80px;
}

/* Toggle Buttons */
.view-toggle {
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* margin: 10px; */
}

.view-toggle button {
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle button.active {
  background: #000;
  color: #fff;
}

/* COMMON */
.menu-wrapper {
  display: flex;
  gap: 10px;
}

/* LIST VIEW */
.list-view .menu-wrapper {
  flex-direction: column;
}

/* GRID VIEW */
.grid-view .menu-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.grid-view .menu-item {
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Veg Icon */
.veg-icon {
  width: 14px;
  height: 14px;
  border: 1px solid green;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-icon div {
  width: 8px;
  height: 8px;
  background: green;
  border-radius: 50%;
}

.item-name {
  font-weight: 500;
}

.item-price {
  font-weight: 600;
}

/* WITHOUT WRAPPER - For existing HTML structure */

.list-view .menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
}

.list-view .veg-icon {
  width: 14px;
  height: 14px;
  display: none;
}

.list-view .item-img {
  display: none;
}

.list-view .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Price goes to right, above name */
.list-view .item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-orange);
  white-space: nowrap;
  margin-left: auto;
  margin-bottom: 0px;
}

.view-toggle .btn svg {
  fill: #000;
}

.view-toggle .btn:hover {
  background-color: #000;
}

.view-toggle .btn.active svg,
.view-toggle .btn:hover svg {
  fill: #eee;
}

.list-view .item-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  width: 100%;
}

/* Accordion Body Spacing */
.accordion-body {
  padding: 12px 15px 18px;
}

/* Remove Old Borders */
.list-view .menu-item {
  border-bottom: none;
}

/* Category Separation Look */
.accordion-item {
  background: transparent;
  margin-bottom: 10px;
}

/* Smooth Animation */
.menu-item {
  will-change: transform;
}

/* ============================= */
/* IMPROVED GRID VIEW DESIGN */
/* ============================= */

.grid-view .menu-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.item-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.grid-view .menu-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

/* Hover Effect */
.grid-view .menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* Top Row (Veg Icon + Price) */
.grid-view .menu-item {
  position: relative;
}

.grid-view .item-price {
  bottom: 55px;
  right: 12px;
  position: absolute;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-orange);
}

/* Item Name */
.grid-view .item-name {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}


/* Veg Icon */
.grid-view .veg-icon {
  width: 14px;
  height: 14px;
  display: none;
}

/* Responsive */

@media (max-width: 420px) {
  .grid-view .menu-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}

.grid-layout-switch {
  text-align: right;
  margin: 0pxS;
}

.grid-layout-switch .btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}

.grid-layout-switch .btn.active {
  background: #000;
  color: #fff;
}

@media (max-width: 767px) {
  .grid-view .grid-layout-switch {
    display: block !important;
  }

  .grid-view .menu-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .grid-view .item-price {
    bottom: 55px;
    right: 12px;
    position: relative;
}
}

.list-view .grid-layout-switch,
.grid-view:not(.grid-view) .grid-layout-switch {
  display: none !important;
}

/* Layout classes */

.grid-view.two-by-two .menu-wrapper {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .grid-view.one-by-one .menu-wrapper {
    grid-template-columns: 1fr;
  }

  item-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
  }
}

/* cart page start */

.cart {
  margin-top: 1rem;
  margin-bottom: 5rem;
}

/* Breadcrumb */
.breadcrumb {
  background: none;
  padding: 12px 0;
  margin: 15px 0;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--truffle-orange);
  text-decoration: none;
}

.breadcrumb .separator {
  color: #6c757d;
  margin: 0 5px;
}

/* === Cart Table - Modern Design === */
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  /* Adds space between rows */
  background: transparent;
  margin-bottom: 24px;
}

.cart-table thead th {
  background-color: #f8f9fa;
  padding: 14px 16px;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  text-align: left;
}

.cart-table tbody tr {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-table td {
  padding: 16px;
  vertical-align: middle;
  border: none;
}

/* Remove Button */
.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s;
}

.remove-btn:hover {
  background-color: #ffeae6;
}

.remove-btn svg {
  width: 20px;
  height: 20px;
  fill: #f36f21;
  /* Truffle Orange */
}

/* Item Image */
.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-weight: bold;
  color: #495057;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #e9ecef;
  color: #f36f21;
}

.qty-input {
  width: 48px;
  text-align: center;
  padding: 6px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-weight: 600;
  background: #fcfcfc;
}

/* Item Name */
.cart-item-name {
  margin-left: 14px;
  font-weight: 600;
  color: #212529;
  font-size: 1.05rem;
}

/* Price & Total */
.cart-table td[data-label="Unit Price"],
.cart-table td[data-label="Total"] {
  font-weight: 600;
  color: #212529;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table {
    margin-bottom: 1rem;
  }

  .cart-table tr {
    margin-bottom: 3px;
    padding: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .cart-table td {
    padding: 10px 20px;
    text-align: right;
    position: relative;
    border: none !important;
  }

  .cart-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.8rem;
  }

  /* Hide remove label on mobile */
  .cart-table td[data-label="remove"]::before {
    display: none;
  }

  .cart-table td[data-label="remove"] {
    text-align: end;
    padding-top: 10px;
  }

  .remove-btn {
    background-color: var(--light-color);
    border: none;
    cursor: pointer;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
  }
}

/* Coupon Section */
.coupon-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.coupon-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 4px 0 0 4px;
}

.apply-btn {
  border: 1px solid var(--brand-orange);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  color: white;
  background-color: var(--brand-orange);
  padding: 0px 30px;
}

/* Summary */
.cart-summary {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 1.05rem;
}

.summary-total {
  font-weight: 700;
  font-size: 1.2rem;
  color: #212529;
}

.checkout-btn {
  width: 45%;
  padding: 4px 25px;
  background: var(--brand-orange);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-coupon-summry {
  margin: 20px 0px;
}

.cart .cart-coupon-summry {
  display: flex;
  justify-content: space-between;
}

.cart .cart-coupon-summry .coupon-section {
  width: 50%;
  margin: 0 1rem 1rem 0;
}

.cart .cart-coupon-summry .cart-summary {
  width: 50%;
  margin: 0 0 1rem 0;
}

.cart-btn .update-btn {
  text-transform: capitalize;
  background-color: var(--brand-orange);
  padding: 4px 25px;
  border-radius: 5px;
  border: 1px solid var(--brand-orange);
  color: white;
}

.cart-btn .continue-btn {
  text-transform: capitalize;
  background-color: var(--brand-orange);
  padding: 4px 25px;
  border-radius: 5px;
  border: 1px solid var(--brand-orange);
  color: white;
}

.cart-total {
  text-transform: capitalize;
}

.coupon-btn {
  display: flex;
}

.coupon-input:focus-visible {
  outline: 0;
}

.cart-badge {
  background-color: var(--brand-orange);
}

/* Offcanvas Cart Custom Styles */
#offcanvasExample .offcanvas-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.25rem;
}

#offcanvasExample .offcanvas-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #212529;
}

#offcanvasExample .offcanvas-body {
  padding: 1.25rem;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none !important;
  opacity: var(--bs-btn-close-focus-opacity);
}

/* Cart Items */
.cart-items-list {
  margin-bottom: 1.5rem;
}

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

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}

.item-info {
  flex-grow: 1;
}

.item-info h6 {
  font-size: 1rem;
  margin: 0 0 4px;
  font-weight: 600;
  color: #212529;
}

.item-info small {
  color: #6c757d;
  font-size: 0.875rem;
}

.offcanvas-body .remove-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #dc3545;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.remove-btn:hover {
  background-color: #f8d7da;
  color: #a71e2a;
}

/* Subtotal */
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  font-weight: 600;
  color: #212529;
}

/* Action Buttons */
.cart-actions {
  margin-top: 1.25rem;
}

.btn-view-cart,
.btn-checkout {
  display: block;
  width: 100%;
  padding: 4px 25px;
  margin-bottom: 10px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-view-cart {
  background-color: var(--brand-orange);
  color: white;
  border: 1px solid var(--brand-orange);
}

.btn-checkout {
  background-color: var(--brand-orange);
  color: white;
  border: 1px solid var(--brand-orange);
}

.btn-view-cart:hover,
.btn-checkout:hover {
  background-color: #fff;
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
}

/* Responsive */
@media (max-width: 992px) {
  .checkout-btn {
    width: 65%;
  }
}

@media (max-width: 768px) {
  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    border-bottom: 1px solid #eee;
  }

  .cart-table td {
    text-align: right;
    position: relative;
  }

  .cart-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 16px;
    font-weight: 600;
    color: #212529;
  }

  .quantity-controls {
    justify-content: end;
  }

  .cart .cart-coupon-summry {
    display: block;
    justify-content: space-between;
  }

  .cart .cart-coupon-summry .coupon-section {
    width: 100%;
    margin: 0 1rem 1rem 0;
  }

  .cart .cart-coupon-summry .cart-summary {
    width: 100%;
    margin: 0 0 1rem 0;
  }

  .apply-btn {
    padding: 0px 20px;
  }

  .checkout-btn {
    width: 100%;
  }

  .cart-btn .update-btn {
    padding: 4px 20px;
  }

  .cart-table tbody tr {
    margin-top: 1rem;
  }

  .cart-coupon-summry {
    margin: 0px 0px;
  }
}

/* cart page end */

#mojito {
  scroll-margin-top: 100px; /* jitna niche chahiye */
};

