/* =========================================================
   APP LIGHT THEME (shared across postcode.php, order.php, etc.)
   - Drop this file in your /css folder (or wherever you load CSS)
   - Works with: .app-page wrapper + "panel" cards, buttons, inputs
   ========================================================= */

:root{
  --bg1:#f7f8fc;
  --bg2:#eef2ff;
  --surface:#ffffff;
  --surface2: rgba(255,255,255,.80);
  --line: rgba(15,23,42,.12);
  --text: rgba(15,23,42,.92);
  --muted: rgba(15,23,42,.62);
  --accent:#f59e0b;
  --accent2:#d97706;
  --danger:#ef4444;
  --radius:18px;
  --shadow: 0 18px 55px rgba(15,23,42,.10);
  --shadow2: 0 10px 30px rgba(15,23,42,.08);
}

.app-page{
  min-height: 100vh;
  background:
    radial-gradient(900px 450px at 15% 20%, rgba(245,158,11,.16), transparent 60%),
    radial-gradient(900px 450px at 85% 70%, rgba(37,99,235,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel .ph{
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.panel .ph h3{
  margin:0;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .2px;
  color: var(--text);
}
.panel .ph .hint{
  margin:0;
  font-size: 12px;
  color: var(--muted);
}
.panel .pc{ padding: 12px; }

.input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.input:focus{
  border-color: rgba(245,158,11,.35);
  box-shadow: 0 0 0 4px rgba(245,158,11,.16);
}
.input::placeholder{ color: rgba(15,23,42,.38); }

.btn-primary-lite{
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 950;
  cursor:pointer;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(217,119,6,.18);
}

.btn-ghost-lite{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 950;
  cursor:pointer;
  background: rgba(255,255,255,.78);
  color: var(--text);
  box-shadow: var(--shadow2);
}

.badge-danger-lite{
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color: rgba(15,23,42,.88);
  font-size: 11px;
  font-weight: 950;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Modernize bootstrap modals globally (light mode) */
.modal-content{
  border-radius: 18px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  box-shadow: 0 25px 70px rgba(15,23,42,.18) !important;
  overflow:hidden;
}
.modal-header{ border-bottom: 1px solid rgba(15,23,42,.10) !important; }
.modal-footer{ border-top: 1px solid rgba(15,23,42,.10) !important; }
.modal-title{ font-weight: 950 !important; color: var(--text) !important; }
.modal-body{ color: var(--text) !important; }
.modal .close{ color: rgba(15,23,42,.70) !important; text-shadow: none !important; opacity: .9 !important; }
.modal input, .modal select, .modal textarea{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
}
.modal .btn{ border-radius: 14px !important; font-weight: 950 !important; }
.modal .btn-primary, .modal .btn-success{
  border: 0 !important;
  background: linear-gradient(180deg, var(--accent), var(--accent2)) !important;
  color: #1b1303 !important;
}
.modal .btn-outline-secondary{
  border: 1px solid rgba(15,23,42,.14) !important;
  background: rgba(255,255,255,.78) !important;
  color: var(--text) !important;
}


/* =========================================================
   PREMIUM PROMINENT BRANDING BAR
   ========================================================= */

/* ===== NAVBAR BASE ===== */

.navbar.bg-dark{
  background: linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(255,255,255,.92)
  ) !important;

  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15,23,42,.10);
  position: relative;
}

/* Accent glowing top strip */
.navbar.bg-dark::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background: linear-gradient(
      90deg,
      var(--accent),
      var(--accent2),
      #fbbf24
  );
}

/* Navbar padding */
.navbar{
  padding: 16px 24px !important;
}

/* ===== LOGO ===== */

.navbar-brand img{
  height: 46px !important;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
  transition: transform .2s ease;
}

.navbar-brand img:hover{
  transform: scale(1.05);
}

/* ===== NAV LINKS ===== */

.navbar-dark .navbar-nav .nav-link{
  color: var(--text) !important;
  font-weight: 800;
  font-size: 14px;
  opacity: .75;
  position: relative;
  transition: all .2s ease;
  padding: 8px 14px !important;
  border-radius: 12px;
}

.navbar-dark .navbar-nav .nav-link:hover{
  opacity: 1;
  background: rgba(245,158,11,.12);
  transform: translateY(-2px);
}

/* ===== DROPDOWN ===== */

.dropdown-menu{
  border-radius: 18px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 20px 50px rgba(15,23,42,.15) !important;
  background: rgba(255,255,255,.98) !important;
  padding: 10px !important;
}

.dropdown-item{
  font-weight: 700;
  border-radius: 12px;
  padding: 8px 12px;
}

.dropdown-item:hover{
  background: rgba(245,158,11,.12) !important;
}

/* ===== LOGOUT ICON ===== */

.navbar .btn{
  border-radius: 14px !important;
  padding: 6px 10px !important;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.25);
  transition: all .2s ease;
}

.navbar .btn:hover{
  background: rgba(239,68,68,.18);
  transform: translateY(-2px);
}

/* ===== BRANCH INFO CONTAINER ===== */

#branding_bar_cl_info{
  background: linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(255,255,255,.92)
  );

  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 25px 60px rgba(15,23,42,.12);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

/* Soft accent glow inside card */
#branding_bar_cl_info::after{
  content:"";
  position:absolute;
  top:-40px;
  right:-40px;
  width:150px;
  height:150px;
  background: radial-gradient(
      circle,
      rgba(245,158,11,.18),
      transparent 70%
  );
}

/* ===== RESTAURANT TITLE ===== */

.bb_client_title{
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: .4px;
  background: linear-gradient(
      90deg,
      var(--accent2),
      #fbbf24
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Remove harsh borders */
.border-dark{
  border-color: var(--line) !important;
}

/* ===== ICONS ===== */

#branding_bar_cl_info i{
  color: var(--accent2);
  margin-right: 8px;
}

/* ===== INFO BADGES ===== */

.info-badge{
  border-radius: 20px !important;
  border: none !important;

  background: linear-gradient(
      180deg,
      rgba(245,158,11,.15),
      rgba(217,119,6,.12)
  ) !important;

  color: var(--text) !important;
  font-weight: 900;
  font-size: 13px;

  box-shadow: 0 12px 30px rgba(217,119,6,.20);
  transition: all .25s ease;
}

.info-badge:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(217,119,6,.28);
}

.info-badge i{
  color: var(--accent2);
}

/* ===== MOBILE ===== */

@media (max-width:768px){

  .navbar{
    padding: 14px !important;
  }

  .bb_client_title{
    font-size: 18px;
  }

  #branding_bar_cl_info{
    padding: 16px;
    border-radius: 18px;
  }

  .info-badge{
    font-size: 12px;
    padding: 10px !important;
  }
}


.bb_client_title{
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.info-badge{
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .2px;
}

.gap-2 { gap: .75rem; }   /* if your Bootstrap version doesn't have gap utilities */
/* =========================================================
   ORDER PAGE (light) - depends on app-light.css
   ========================================================= */

.order-shell{ padding: 12px 12px 44px; }

.order-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}
.order-title h2{
  margin:0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .2px;
}
.order-title p{
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.order-search{
  flex: 1;
  max-width: 520px;
  position: relative;
}
.order-search .icon{
  position:absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15,23,42,.50);
  pointer-events:none;
  font-size: 14px;
}
.order-search input{
  padding-left: 38px;
}

/* Sticky capsule categories header — base (inline overrides position/z-index) */
.cat-sticky{
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 4px 28px rgba(15,23,42,.06);
}
.cat-row{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 48px;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar{ display: none; }

.cat-pill{
  flex: 0 0 auto;
  border: 1.5px solid rgba(15,23,42,.11);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.72);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1px;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.cat-pill:hover{
  border-color: rgba(245,158,11,.45);
  background: rgba(245,158,11,.08);
  color: rgba(15,23,42,.90);
  transform: translateY(-1px);
}
.cat-pill.active{
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 22px rgba(217,119,6,.38) !important;
  font-weight: 800;
}

/* Layout */
.order-grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items:start;
  margin-top: 12px;
}

/* Category sections */
.cat-section{
  scroll-margin-top: 86px;
  margin-bottom: 32px;
}
.cat-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 16px;
  padding: 0 4px;
}
.cat-title h4{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: rgba(15,23,42,.92);
  letter-spacing: -.2px;
  position: relative;
  padding-left: 14px;
}
.cat-title h4::before{
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
}
.cat-title span{
  font-size: 12.5px;
  color: rgba(15,23,42,.42);
  font-weight: 600;
  white-space: nowrap;
}

/* Product cards */
.prod-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prod-card{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.76);
  border-radius: 16px;
  padding: 10px;
  display:grid;
  grid-template-columns: 1fr 108px;
  gap: 10px;
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease, border-color .2s ease;
  position: relative;
  min-height: 106px;
  box-shadow: var(--shadow2);
}
.prod-card:hover{ transform: translateY(-1px); filter: brightness(1.01); }
.prod-card .name{
  margin:0;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}
.prod-card .desc{
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}
.prod-card .meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.prod-card .price{
  font-weight: 950;
  color: rgba(15,23,42,.92);
  font-size: 13px;
}
.prod-card .add{
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 950;
  font-size: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #1b1303;
  box-shadow: 0 10px 24px rgba(217,119,6,.18);
  white-space: nowrap;
}
.prod-card .img{
  width: 108px;
  height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  overflow:hidden;
  background: rgba(255,255,255,.9);
  display:flex;
  align-items:center;
  justify-content:center;
}
.prod-card .img img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.prod-card.no-img{ grid-template-columns: 1fr; }
.prod-card .badge-unavailable{
  position:absolute;
  top: 10px;
  right: 10px;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color: rgba(15,23,42,.88);
  font-size: 11px;
  font-weight: 950;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Basket */
/* Basket (fixed-height sticky column; internal scroll) */
/* Desktop: grow naturally, but cap height and enable internal scroll */
@media (min-width: 995px){
  .basket{
    position: sticky;
    top: 86px;
    height: auto;                        /* <-- not fixed */
    max-height: calc(100vh - 86px);      /* <-- cap */
    min-height: 0;
  }

  #side_basket{
    height: auto;                        /* <-- not fixed */
    max-height: calc(100vh - 86px);      /* <-- cap matches container */
    min-height: 0;
    display: block;                      /* <-- IMPORTANT: stop forcing full height */
    color: var(--text);
  }

  /* Your basket layout wrapper should also respect the cap */
  .sb-wrap{
    max-height: calc(100vh - 86px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;                    /* <-- body scroll happens inside */
  }

  .sb-body{
    min-height: 0;
    overflow-y: auto;                    /* <-- scroll items only */
    -webkit-overflow-scrolling: touch;
  }

  .sb-header{ flex: 0 0 auto; }
  .sb-footer{ flex: 0 0 auto; }
}

/* MOBILE BASKET FIX */
@media (max-width: 994px){

  .order-grid .basket{
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    flex-shrink: 0;
  }

  .basket .sb-wrap{
    width: 100%;
  }

  #side_basket{
    width: 100%;
  }

}

/* normalize legacy Bootstrap components inside basket */
#side_basket .card,
#side_basket .basket_card,
#side_basket .panel,
#side_basket .list-group,
#side_basket .list-group-item{
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(15,23,42,.12) !important;
}
#side_basket .table{ border-color: rgba(15,23,42,.12) !important; }
#side_basket hr{ border-color: rgba(15,23,42,.10) !important; }
#side_basket .text-dark{ color: var(--text) !important; }
#side_basket .text-muted{ color: var(--muted) !important; }

/* Mobile */
@media (max-width: 991px){
  .order-top{ flex-direction: column; align-items: stretch; }
  .order-search{ max-width: none; }
  .order-grid{ grid-template-columns: 1fr; }

  /* IMPORTANT: cancel desktop sticky sizing on mobile */
  .basket{ position: relative; top:auto; height: auto; min-height: 0; }
  #side_basket{ height: auto; min-height: 0; display: block; }

  .prod-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 767.98px){
  .sb-footer{
    visibility: hidden;
    opacity: 0;
  }

  .sb-mobilebar{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    z-index: 1060;
    transition: transform .18s ease, opacity .18s ease;
  }

  body{ padding-bottom: 74px; }

  /* when basket is in view: show footer + hide mobile bar */
  html.basket-in-view .sb-footer{ display:block; }
  html.basket-in-view .sb-mobilebar{
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  html.basket-in-view .sb-footer{
    visibility: visible;
    opacity: 1;
  }
}

/* ===== 4-column product grid (responsive) ===== */
.products-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1400px){
  .products-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  .products-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .products-grid{ grid-template-columns: 1fr; }
}

/* ===== Product card ===== */
.product-card{
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.08);
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(15,23,42,.06), 0 8px 32px rgba(15,23,42,.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(15,23,42,.13), 0 4px 14px rgba(217,119,6,.09);
}

/* ── Image block ── */
.product-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(15,23,42,.04);
  border-bottom: 1px solid rgba(15,23,42,.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
}

.product-img > img{
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-img.no-img{
  background: radial-gradient(520px 180px at 30% 0%, rgba(245,158,11,.16), rgba(255,255,255,.90));
}

.img-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.img-fallback img.pd-hero-img{
  max-width: 65%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .35;
  filter: saturate(0);
}

/* ── Body ── */
.product-body{
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name{
  font-size: 14.5px;
  font-weight: 800;
  color: rgba(15,23,42,.92);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc{
  font-size: 12.5px;
  color: rgba(15,23,42,.52);
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Price + CTA row ── */
.product-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,.06);
}

.product-price{
  font-weight: 900;
  font-size: 15px;
  color: #b45309;
  letter-spacing: -.2px;
}

/* Circular "+" button */
.product-add-btn{
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217,119,6,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-add-btn:hover{
  transform: scale(1.14);
  box-shadow: 0 10px 30px rgba(217,119,6,.44);
}

.product-add-btn:active{
  transform: scale(.93);
  box-shadow: 0 3px 10px rgba(217,119,6,.25);
}

/* Unavailable state */
.product-card .badge-unavailable{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: .3px;
}

.product-card:has(.badge-unavailable) .product-img{
  opacity: .5;
  filter: grayscale(.6);
}

/* Product detail card */

.modal-content {
    background: #f8f9fa;
}

.product-image-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.attribute-card {
    transition: all 0.2s ease;
}

.attribute-card:hover {
    transform: translateY(-2px);
}

.option-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background-color: #f1f3f5;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.btn-success {
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.4);
}

/* navbar toggle button  */

/* Remove default bootstrap icon */
.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none !important;
}

/* Custom Button Container */
.custom-toggler {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Hover effect */
.custom-toggler:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

/* Hamburger lines */
.toggler-icon,
.toggler-icon::before,
.toggler-icon::after {
    width: 20px;
    height: 2px;
    background-color: #333;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.toggler-icon::before,
.toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.toggler-icon::before {
    top: -6px;
}

.toggler-icon::after {
    top: 6px;
}

/* Animate to X when open */
.navbar-toggler[aria-expanded="true"] .toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* .sb-wrap{
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sb-header{ flex: 0 0 auto; }
.sb-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sb-footer{ flex: 0 0 auto; } */

/* =========================================================
   AUTH (login/register)
   ========================================================= */

.auth-shell{ padding: 12px 12px 44px; }

.auth-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin: 14px 0;
}

.auth-grid--register{
  grid-template-columns: 420px 1fr;
}

@media (max-width: 991px){
  .auth-grid,
  .auth-grid--register{ grid-template-columns: 1fr; }
}

.auth-card .ph h3{ font-size: 14px; }
.auth-card .ph .hint{ font-size: 12px; }

.auth-field{ margin-bottom: 12px; }
.auth-label{
  display:block;
  font-weight: 950;
  font-size: 12.5px;
  color: var(--text);
  margin: 0 0 6px;
}

.auth-rowline{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}

.auth-check{ display:flex; align-items:center; gap:10px; margin:0; user-select:none; }
.auth-check__input{ width: 16px; height: 16px; }
.auth-check__text{ color: var(--muted); font-size: 13px; font-weight: 800; }

.auth-link{
  color: var(--danger);
  font-weight: 950;
  text-decoration: none;
}
.auth-link:hover{ text-decoration: underline; }

.auth-btn-block{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none;
}

.auth-text{ color: var(--muted); margin: 0 0 10px; }

.auth-perks{
  list-style: none;
  padding: 0;
  margin: 10px 0 12px;
}
.auth-perks li{
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: var(--text);
  font-weight: 800;
}
.auth-perks li::before{
  content:"\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position:absolute;
  left:0;
  top:2px;
  color: rgba(16,185,129,.95);
}

.auth-benefits{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 6px;
}
@media (max-width: 575px){
  .auth-benefits{ grid-template-columns: 1fr; }
}

.auth-benefit{
  display:flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
}
.auth-benefit__ico{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.auth-benefit__ico i{ color: var(--accent2); }
.auth-benefit__title{ font-weight: 950; color: var(--text); line-height: 1.1; }
.auth-benefit__sub{ color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Register form grid */
.reg-form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.reg-form-grid .span-2{ grid-column: 1 / -1; }

@media (max-width: 575px){
  .reg-form-grid{ grid-template-columns: 1fr; }
  .reg-form-grid .span-2{ grid-column: auto; }
}

.reg-block{ margin-top: 10px; }
.small-note{ color: var(--muted); font-size: 12.5px; }

.select-address-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 10px;
}


/* ===== FORCE FULL-WIDTH ON AUTH PAGES (kills Bootstrap container max-width) ===== */
.auth-page .container,
.auth-page .container-sm,
.auth-page .container-md,
.auth-page .container-lg,
.auth-page .container-xl,
.auth-page .container-xxl{
  max-width: none !important;
  width: 100% !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

@media (min-width: 1400px){
  .auth-page .container,
  .auth-page .container-sm,
  .auth-page .container-md,
  .auth-page .container-lg,
  .auth-page .container-xl,
  .auth-page .container-xxl{
    padding-left: 42px !important;
    padding-right: 42px !important;
  }
}

/* Ensure auth shell itself doesn’t re-limit width */
.auth-shell{ max-width: none !important; width: 100%; }

/* Registration page proportions: info smaller, form bigger */
@media (min-width: 1200px){
  .auth-grid--register{
    grid-template-columns: 2fr 3fr;;
  }
}

.auth-benefits{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 6px;
}

@media (max-width: 575px){
  .auth-benefits{ grid-template-columns: 1fr; }
}

/* Inputs/selects always occupy full available width */
.auth-card .input,
.auth-card select.input{
  width: 100%;
}

/* =========================
   CONTACT PAGE (theme-aligned)
   ========================= */

.contact-page .container,
.contact-page .container-sm,
.contact-page .container-md,
.contact-page .container-lg,
.contact-page .container-xl,
.contact-page .container-xxl{
  max-width: none !important;
  width: 100% !important;
}

.contact-shell{
  padding-left: 28px !important;
  padding-right: 28px !important;
  padding-top: 12px;
  padding-bottom: 44px;
}

@media (min-width: 1400px){
  .contact-shell{
    padding-left: 42px !important;
    padding-right: 42px !important;
  }
}

.contact-grid{
  display: grid;
  grid-template-columns: 2fr 3fr; /* locations | form (60/40-ish) */
  gap: 14px;
  align-items: start;
  margin: 14px 0;
}

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

.contact-card{ width: 100%; }

.table-wrap{
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
}

.contact-table thead th{
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 950;
  background: rgba(255,255,255,.9);
}

.contact-table td{
  color: var(--text);
  font-weight: 750;
  vertical-align: top;
}

.contact-empty{
  color: var(--muted);
  font-weight: 800;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.6);
}

.contact-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form-grid .span-2{ grid-column: 1 / -1; }

@media (max-width: 575px){
  .contact-form-grid{ grid-template-columns: 1fr; }
  .contact-form-grid .span-2{ grid-column: auto; }
}

.contact-textarea{
  min-height: 140px;
  resize: vertical;
}

.contact-btn{
  display: block;
  width: 100%;
  margin-top: 12px;
}


/* =========================
   OS ALERT (success card)
   ========================= */

.os-alert{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow2);
}

.os-alert__icon{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  flex: 0 0 auto;
}

.os-alert__content{ flex: 1 1 auto; min-width: 0; }

.os-alert__title{
  font-weight: 950;
  color: var(--text);
  font-size: 15px;
  margin-top: 1px;
}

.os-alert__text{
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
  margin-top: 6px;
}

.os-alert__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Success variant */
.os-alert--success{
  border-color: rgba(16,185,129,.25);
  background: linear-gradient(180deg, rgba(16,185,129,.10), rgba(255,255,255,.86));
}

.os-alert--success .os-alert__icon{
  border-color: rgba(16,185,129,.22);
  background: rgba(16,185,129,.10);
}

.os-alert--success .os-alert__icon i{
  color: rgba(16,185,129,.95);
}

/* Error variant */
.os-alert--danger{
  border-color: rgba(239,68,68,.26);
  background: linear-gradient(180deg, rgba(239,68,68,.10), rgba(255,255,255,.86));
}

.os-alert--danger .os-alert__icon{
  border-color: rgba(239,68,68,.22);
  background: rgba(239,68,68,.10);
}

.os-alert--danger .os-alert__icon i{
  color: rgba(239,68,68,.95);
}
/* Product add to basket animation  */

.flying-img {
  position: fixed;
  width: 180px;
  z-index: 9999;
  pointer-events: none;
  transition: transform 2s cubic-bezier(0.25, 0.8, 0.25, 1),
            opacity 2s ease;
  border-radius: 10px;
}

/*  missing info card   */

.modern-card {
    max-width: 520px;
    width: 100%;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-4px);
}

.logo-wrap img {
    max-width: 220px;
}

.info-box {
    background: #fff8e1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #8a6d3b;
}

.modern-btn {
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

/* Prevent basket width collapse */
.basket,
.basket .sb-wrap{
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}