/* ================================
   Item Detail Page
================================ */
.checkout-page-wrapper {
  background-color: #151414;

  display: flex;
  flex-direction: column;
}


footer {
  flex-shrink: 0;
}

.item-breadcrumb {
  background: transparent;
}

.item-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.item-breadcrumb .breadcrumb-item a:hover {
  color: #ff6b35;
}

.item-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.item-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.2);
  content: "/";
}

/* Image */
.item-detail-img {
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  max-height: 320px;
  border: 1px solid rgba(254, 254, 254, 0.315);
  display: block;
  margin-left: 32px;
}

.item-detail-img-placeholder {
  width: 100%;
  max-width: 420px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border: 3px solid rgba(255, 107, 53, 0.5);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.item-ssl-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
}

.item-price {
  color: #ffc907;
  font-size: 1.5rem;
  font-weight: 700;
}

.item-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.item-badge-halal {
  background: rgba(4, 38, 28, 0.795);
  color: #63fb0b;
  border: 1px solid rgb(15, 255, 103);
}

.item-badge-veg {
  background: rgba(40, 167, 69, 0.12);
  color: #5cb85c;
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.item-badge-vegan {
  background: rgba(32, 178, 170, 0.12);
  color: #20b2aa;
  border: 1px solid rgba(32, 178, 170, 0.25);
}

.item-badge-popular {
  background: rgb(31, 11, 4);
  color: #fd6f0a;
  border: 1px solid rgba(255, 107, 53, 0.836);
}

.item-badge-cal {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-detail-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.item-description {
  color: rgba(255, 255, 255, 0.882);
  font-size: 15px;
  line-height: 1.7;
}

.item-allergen-box {
  background: rgba(255, 98, 7, 0.138);
  border: 1px solid rgba(168, 130, 17, 0.627);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.83);
}

.item-form-label {
  display: block;
  color: rgb(244, 243, 243);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.item-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-check:checked + .item-option-btn {
  background: rgba(35, 12, 3, 0.15);
  border-color: #aa7410ea;
  color: #f16633;
}

.item-option-btn:hover {
  border-color: rgba(255, 107, 53, 0.4);
  color: #fff;
}

.item-select {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  font-size: 14px;
}

.item-select:focus {
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
  outline: none;
}

.item-select option {
  background: #0d1b2a;
  color: #fff;
}

.item-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  font-size: 14px;
}

.item-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
  outline: none;
}

.item-input::placeholder {
  color: rgba(255, 255, 255, 0.336);
}

.item-qty-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 10px;
  padding: 10px 14px;
  width: 80px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.item-qty-input:focus {
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
  outline: none;
}

.item-meal-deal-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.item-meal-deal-box:has(.item-meal-check:checked) {
  background: rgba(18, 7, 3, 0.08);
}

.item-meal-deal-box label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

.item-meal-check {
  width: 18px;
  height: 18px;
  accent-color: #ff6b35;
  cursor: pointer;
  flex-shrink: 0;
}

.item-meal-price {
  color: rgba(255, 255, 255, 0.474);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

.item-divider {
  border: none;
  border-top: 1px solid rgba(255, 107, 53, 0.25);
  margin:auto;
}

.related-item-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s;
}

.related-item-card:hover {
  border-color: rgba(21, 8, 3, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.related-item-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-item-placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.checkout-submit-btn {
  color: #000100 !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}

.related-items-section {
  border-top: 1.5px solid rgba(255, 255, 255, 0.419);
  padding-top: 28px;
}

.ssl-icon {
  color: #14e0a3;
}

.option-cards-track {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  /* NOTE: scrolling for this track is owned by the parent .gl-group-panel.
     Do NOT set overflow-y/max-height here -- that created a nested
     scroll container and produced the double-scrollbar bug. */
  overflow-x: hidden;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}
.option-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,53,0.5);
  background: rgba(255, 107, 53, 0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.option-card:has(input:checked) {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.14);
  box-shadow: 0 0 0 2px rgba(255,107,53,0.35);
}
.option-card input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
  margin: 0;
  position: relative;
}
.option-card input:checked {
  border-color: #ff6b35;
  background: #ff6b35;
}
.option-card input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.option-card-img-wrap {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.option-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.option-card-name {
  flex: 1 1 auto;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-card-price {
  flex: 0 0 auto;
  min-width: 50px;
  text-align: right;
  color: #ffc93c;
  font-size: 0.85rem;
  font-weight: 700;
}

.gl-drink-track {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  /* scrolling is owned by the parent .gl-group-panel -- intentionally no
     overflow-y / max-height here, to avoid a nested double scrollbar */
}

.gl-drink-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  padding: 8px 4px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  cursor: pointer;
}

.gl-drink-radio {
  width: 14px !important;
  height: 14px !important;
}

.more-from-section .products-grid,
.more-from-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

@media (max-width: 375px) {
  .more-from-section .products-grid,
  .more-from-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
}

/* ===== Responsive: Drinks + Item Detail ===== */

@media (max-width: 1024px) {
  .item-detail-img {
    margin-left: 0;
    max-width: 100%;
  }
  .gl-cards-groups-toggle-wrap {
    margin-left: 0;
    max-width: 100%;
  }
  .gl-meal-deal-block {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .item-detail-img {
    max-height: 220px;
  }
  .item-detail-img-placeholder {
    height: 220px;
  }
  .gl-group-panel {
    max-height: 240px;
  }
  .gl-drink-name,
  .option-card-name {
    font-size: 0.85rem;
    white-space: normal;
  }
  .gl-drink-price,
  .option-card-price {
    font-size: 0.8rem;
    min-width: 40px;
  }
  .gl-drink-imgwrap,
  .option-card-img-wrap {
    width: 36px;
    height: 36px;
  }
  .item-form-label {
    font-size: 13px;
  }
}

@media (max-width: 375px) {
  .gl-group-panel {
    max-height: 210px;
  }
  .option-card {
    padding: 10px 4px;
    gap: 10px;
  }
}

.gl-cards-groups-toggle-wrap {
  margin-top: 16px;
  margin-bottom: 10px;
  margin-left: 32px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gl-group-toggle-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gl-group-toggle-btn:hover {
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.06);
}

.gl-group-toggle-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.gl-group-toggle-sub {
  color: #ff6b35;
  font-size: 13px;
  font-weight: 600;
}

.gl-group-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px 8px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff6b35 rgba(255,255,255,0.05);
}
.gl-group-panel::-webkit-scrollbar { width: 1px; }
.gl-group-panel::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.gl-group-panel::-webkit-scrollbar-thumb { background: #ff6b35; border-radius: 10px; }

/* Meal Deal block sits directly under the toggle-wrap in the left column */
.gl-meal-deal-block {
  margin-top: 12px;
  margin-left: 32px;
  max-width: 560px;
}

.gl-meal-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin: 10px 4px 4px;
}

.gl-meal-required-pill {
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: #ff6b35;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

.gl-meal-price-hint {
  color: #ffc93c;
  font-weight: 600;
  font-size: 13px;
  margin-left: 8px;
}

@media (max-width: 576px) {
  .gl-cards-groups-toggle-wrap,
  .gl-meal-deal-block {
    margin-left: 16px;
    margin-right: 16px;
    max-width: none;
  }
  .gl-group-toggle-btn {
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .gl-group-toggle-name {
    font-size: 14px;
  }
  .gl-group-toggle-sub {
    font-size: 12px;
    white-space: nowrap;
  }
}


/* ================================
   Add to Order button — center
================================ */
.gl-total-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gl-total-btn {
  margin: 0 auto;
}

/* ================================
   Add to Order button — center
================================ */
.gl-total-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gl-total-btn {
  margin: 0 auto;
}

/* ================================
   Option buttons (Spice Level, Serving Style etc.)
   Responsive — ছোট স্ক্রিনে center
================================ */
@media (max-width: 576px) {
  .item-options-row {
    justify-content: center;
  }

  .item-option-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Mini tablet */
@media (min-width: 577px) and (max-width: 768px) {
  .item-options-row {
    justify-content: center;
  }
}



.gl-total-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gl-total-btn {
  margin: 0 auto;
}
