/*
 * Elegant storefront: modern food ordering layout.
 * Category chips, categories sheet, floating dock (category_nav.blade.php) and a lighter
 * product list. Scoped to #quickCart / el-* classes so other Elegant pages are untouched.
 */
:root {
  --el-ink: #0f172a;
  --el-muted: #64748b;
  --el-line: #e2e8f0;
  --el-soft: #f8fafc;
  --el-accent: var(--storecolor, #102c56);
  --el-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  --el-radius: 16px;
}

/* sticky needs overflow-x: clip, not hidden (custom.css sets hidden on body) */
body {
  overflow-x: clip;
}

/* ---------- layout: chips replace the sidebar ---------- */
#quickCart .product_listing_main_container > .row > .sidebar_category {
  display: none !important;
}

#quickCart .product_listing_main_container > .row > .product_section_main {
  flex: 0 0 100%;
  max-width: 100%;
}

.categories_title_sec_main .categories_section_title {
  display: none;
}

.categories_title_sec_main .col-md-9:has(> .tags_filter_section) {
  flex: 0 0 100%;
  max-width: 100%;
}

/* the grid/list toggle used to float over the menu on phones */
.categories_title_sec_main .grid_list_section.d-md-none {
  display: none !important;
}

/* header menu (hamburger) icon: was black on the dark header until hovered */
#header > .packer .related-mobile-menu > .show-mobile-menu,
#header > .packer .related-mobile-menu > .show-mobile-menu > i {
  color: var(--el-accent);
}

/* ---------- category chips ---------- */
.el-catbar {
  position: sticky;
  top: var(--el-sticky-top, 0px);
  z-index: 50;
  margin: 0 -15px 12px;
  padding: 10px 15px;
  background: #ffffff;
  transition: box-shadow 0.2s ease;
}

.el-catbar.el-catbar-stuck {
  box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.35);
}

.el-catbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.el-chips {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10px, #000 88%, transparent);
  padding: 2px 28px 2px 4px;
}

.el-chips::-webkit-scrollbar {
  display: none;
}

.el-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 4px;
  border: 1px solid var(--el-line);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.el-chip:focus {
  outline: none;
}

.el-chip:focus-visible {
  outline: 2px solid var(--el-accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .el-chip:hover {
    border-color: var(--el-accent);
    color: var(--el-accent);
  }
}

.el-chip-img {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--el-accent) 12%, #ffffff);
  color: var(--el-accent);
  font-size: 13px;
  font-weight: 800;
}

.el-chip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
}

.el-chip-glyph i {
  font-size: 17px;
}

.el-chip-count {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.55;
}

.el-chip-count:empty {
  display: none;
}

.el-chip.active {
  border-color: var(--el-accent);
  background: var(--el-accent);
  color: #ffffff;
}

.el-chip.active .el-chip-img {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.el-chip.active .el-chip-count {
  opacity: 0.85;
}

.el-chip-all {
  box-shadow: 6px 0 10px -8px rgba(15, 23, 42, 0.4);
}

/* ---------- category section headings ---------- */
#quickCart #product_section .box-info > .head.cat-head.category_heading {
  top: var(--el-head-top, 0px) !important;
  z-index: 5; /* under the fixed header (z-index 8) */
  margin: 0 0 10px;
  padding: 12px 2px 8px;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#quickCart #product_section .category_heading h3 {
  margin: 0;
  color: var(--el-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- product cards (list layout) ---------- */
#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal {
  align-items: stretch;
  gap: 14px;
  height: auto;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  background: #ffffff;
  box-shadow: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  #quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal:hover {
    border-color: transparent;
    box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.35);
  }
}

#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal > a {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
}

#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal picture img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--el-soft);
}

#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal > .info {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0 !important; /* legacy 125px kept every card tall */
  height: auto;
  padding: 2px 0 0;
}

#quickCart section[data-category-id] .item-offer-horizontal > .info h4 a {
  color: var(--el-ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
}

#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal .grid_item_price {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto !important;
  padding-top: 8px;
}

#quickCart section[data-category-id] .item-offer-horizontal .price,
#quickCart section[data-category-id] .item-offer-horizontal .price span {
  color: var(--el-ink);
  font-size: 16px;
  font-weight: 700;
}

#quickCart section[data-category-id] .item-offer-horizontal .extras .btn {
  height: 36px;
  min-width: 84px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
  box-shadow: none;
}

/* after an add, cartFunctions.js swaps the label for <i class="bx-cart-alt">, which elegant.css
   redraws as "ADD +" at 1rem in another font: match the original label instead */
#quickCart section[data-category-id] .item-offer-horizontal .extras .btn i.bx-cart-alt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 100%;
  vertical-align: top;
  font-family: inherit !important;
  font-weight: inherit !important;
}

#quickCart section[data-category-id] .item-offer-horizontal .extras .btn i.bx-cart-alt::before {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: inherit !important;
  line-height: 1 !important;
  letter-spacing: inherit;
  color: inherit !important;
}

@media (max-width: 767px) {
  #quickCart section[data-category-id] .item-offer-horizontal .extras .btn i.bx-cart-alt::before {
    font-size: 12px !important;
  }
}

/* ---- dishes already in the cart ---- */
#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal.el-in-cart {
  border-color: color-mix(in srgb, var(--el-accent) 55%, #ffffff);
  background: color-mix(in srgb, var(--el-accent) 3%, #ffffff);
}

/* plain dishes: the ADD + button gives way to a stepper */
#quickCart section[data-category-id] .item-offer-horizontal.el-in-cart .extras > .quantity-area {
  display: none !important;
}

#quickCart section[data-category-id] .item-offer-horizontal .el-card-stepper {
  padding: 2px;
  gap: 2px;
  border-color: color-mix(in srgb, var(--el-accent) 35%, #ffffff);
}

#quickCart section[data-category-id] .item-offer-horizontal .el-card-stepper .el-step {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
}

#quickCart section[data-category-id] .item-offer-horizontal .el-card-stepper.el-busy {
  opacity: 0.5;
  pointer-events: none;
}

/* dishes with options: how many are in the cart, on the Select button.
   The badge sits over the button's corner, so its wrappers must not clip it. */
#quickCart section[data-category-id] .item-offer-horizontal [onclick*="handleSelectItem"] {
  position: relative;
  overflow: visible !important;
}

#quickCart section[data-category-id] .item-offer-horizontal:has(.el-card-qty) > .info,
#quickCart section[data-category-id] .item-offer-horizontal:has(.el-card-qty) .grid_item_price,
#quickCart section[data-category-id] .item-offer-horizontal:has(.el-card-qty) .extras,
#quickCart section[data-category-id] .item-offer-horizontal:has(.el-card-qty) .select-option,
#quickCart section[data-category-id] .item-offer-horizontal:has(.el-card-qty) #addToCartbtn {
  overflow: visible !important;
}

#quickCart section[data-category-id] .item-offer-horizontal .el-card-qty {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: var(--el-ink) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 16px !important;
  text-align: center;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

#quickCart section[data-category-id] .item-offer-horizontal .extras,
#quickCart section[data-category-id] .item-offer-horizontal .extras .quantity-area {
  height: auto !important;
}

#quickCart section[data-category-id] .item-offer-horizontal .extras .form-group,
#quickCart section[data-category-id] .item-offer-horizontal .extras .btn {
  margin: 0 !important;
}

/* a card that shows a description gets the taller photo back */
#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal:has(.product_info) > a,
#quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal:has(.product_info) picture img {
  flex-basis: 112px;
  width: 112px;
  height: 112px;
}

#quickCart section[data-category-id] .item-offer-horizontal > a,
#quickCart section[data-category-id] .item-offer-horizontal .info h4 a {
  cursor: pointer;
}

@media (max-width: 767px) {
  #quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal {
    gap: 12px;
    padding: 10px;
  }

  #quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal > a,
  #quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal picture img {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }

  #quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal:has(.product_info) > a,
  #quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal:has(.product_info) picture img {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }

  #quickCart section[data-category-id] .item-offer-horizontal .extras .btn {
    height: 32px;
    min-width: 72px;
    padding: 0 14px;
    font-size: 12px;
    line-height: 32px;
  }
}

/* wide screens: three dishes per row instead of two stretched ones */
@media (min-width: 1200px) {
  #quickCart .product_listing_main_container:not(.grid_product) section[data-category-id] .item-offer-horizontal {
    flex: 0 0 calc((100% - 10px) / 3);
    width: calc((100% - 10px) / 3);
    max-width: calc((100% - 10px) / 3);
  }
}

/* ---------- categories sheet ---------- */
.el-catsheet {
  position: fixed;
  inset: 0;
  z-index: 10045;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.el-catsheet[hidden] {
  display: none;
}

.el-catsheet.el-open {
  opacity: 1;
}

.el-catsheet-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  max-height: 85dvh;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: var(--el-shadow);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.el-catsheet.el-open .el-catsheet-panel {
  transform: none;
}

@media (min-width: 768px) {
  .el-catsheet {
    align-items: center;
  }

  .el-catsheet-panel {
    border-radius: 22px;
    max-height: 80vh;
  }
}

.el-catsheet-handle {
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: var(--el-line);
}

.el-catsheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
}

.el-catsheet-head h4 {
  margin: 0;
  color: var(--el-ink);
  font-size: 18px;
  font-weight: 700;
}

.el-catsheet-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--el-ink);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.el-catsheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.el-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .el-sheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.el-sheet-group-wide {
  grid-column: 1 / -1;
}

.el-sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--el-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--el-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.el-sheet-item .el-chip-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.el-sheet-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  /* long names wrap onto as many lines as needed so the full text is always visible */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.el-sheet-subs .el-sheet-sub {
  max-width: 100%;
  height: auto;
  min-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}

.el-sheet-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--el-muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.el-sheet-count:empty {
  display: none;
}

.el-sheet-all {
  margin-top: 2px;
}

.el-sheet-item.active {
  border-color: var(--el-accent);
  background: color-mix(in srgb, var(--el-accent) 7%, #ffffff);
  color: var(--el-accent);
}

/* a category with subcategories: one card, parent row on top, subcategory pills below */
.el-sheet-group-wide {
  border: 1px solid var(--el-line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.el-sheet-group-wide > .el-sheet-item {
  border: none;
  border-radius: 0;
}

.el-sheet-group-wide:has(> .el-sheet-item.active) {
  border-color: var(--el-accent);
}

.el-sheet-subs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 10px 10px 27px;
  padding: 10px 10px 10px 18px;
  border-left: 2px solid color-mix(in srgb, var(--el-accent) 35%, #ffffff);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--el-accent) 4%, #f8fafc);
}

.el-sheet-subs-label {
  flex: 0 0 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  color: var(--el-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.el-sheet-subs-label i {
  transform: rotate(90deg);
  font-size: 13px;
  color: var(--el-accent);
}

.el-sheet-subs .el-sheet-sub::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--el-accent);
  opacity: 0.6;
  flex: 0 0 auto;
}

.el-sheet-subs .el-sheet-sub {
  background: #ffffff;
}

.el-sheet-subs .el-sheet-sub.active,
.el-sheet-subs .el-sheet-sub.active * {
  background: var(--el-accent);
  border-color: var(--el-accent);
  color: #ffffff !important;
}

.el-sheet-subs .el-sheet-sub.active::before {
  background: #ffffff;
  opacity: 1;
}

.el-sheet-subs .el-sheet-sub.active .el-sheet-subcount {
  background: transparent;
  opacity: 0.85;
}

.el-sheet-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--el-line);
  border-radius: 999px;
  background: var(--el-soft);
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 400px) {
  .el-sheet-subs {
    padding-left: 12px;
  }
}

.el-sheet-subcount {
  opacity: 0.55;
  font-size: 11px;
}

.el-sheet-sub.active {
  border-color: var(--el-accent);
  background: var(--el-accent);
  color: #ffffff;
}

html.el-sheet-open,
html.el-sheet-open body {
  overflow: hidden;
}

/* ---------- floating dock ---------- */
.el-dock {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 24px);
  max-width: 600px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.el-dock > * {
  pointer-events: auto;
}

/* no cart yet: just the round Menu button, bottom-centre */
.el-dock:not(.el-dock-has-cart) {
  justify-content: center;
}

.el-cat-fab {
  position: relative;
  flex: 0 0 64px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border: 1px solid var(--el-line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--el-accent);
  box-shadow: var(--el-shadow);
  cursor: pointer;
}

.el-dock:not(.el-dock-has-cart) .el-cat-fab {
  flex: 0 0 auto;
  flex-direction: row;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--el-ink);
  color: #ffffff;
}

.el-cat-fab i {
  font-size: 22px;
}

.el-cat-fab span {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
}

.el-dock:not(.el-dock-has-cart) .el-cat-fab span {
  font-size: 14px;
  color: #ffffff;
}

.el-cartbar {
  position: relative;
  border: none;
  font: inherit;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 18px;
  background: var(--el-accent);
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: var(--el-shadow);
  cursor: pointer;
  user-select: none;
  animation: el-rise 0.25s ease;
}

.el-cartbar[hidden] {
  display: none;
}

@keyframes el-rise {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.el-cartbar-icon {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
}

.el-cartbar-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--el-accent);
  background: #ffffff;
  color: var(--el-accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.el-cartbar-details {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.el-cartbar-total {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.el-cartbar-info {
  font-size: 11.5px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.el-cartbar-items {
  display: none;
  font-size: 12px;
  opacity: 0.85;
}

@media (max-width: 380px) {
  .el-cartbar-icon {
    display: none;
  }

  .el-cartbar {
    padding-left: 14px;
  }
}

.el-cartbar-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--el-accent);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.el-cartbar-action i {
  font-size: 16px;
}

@media (hover: hover) {
  .el-cartbar:hover .el-cartbar-action {
    transform: translateX(2px);
  }
}

@media (min-width: 1200px) {
  .el-dock {
    max-width: 520px;
  }
}

@media (max-width: 400px) {
  .el-dock {
    gap: 8px;
  }

  .el-cat-fab {
    flex-basis: 56px;
  }

  .el-cartbar {
    gap: 8px;
  }

  .el-cartbar-info {
    display: none;
  }

  .el-cartbar-items {
    display: block;
  }

  .el-cartbar-total {
    font-size: 15px;
  }

  .el-cartbar-action {
    padding: 0 12px;
    font-size: 13px;
  }

  .el-cartbar-action i {
    display: none;
  }
}

.el-cartbar:focus {
  outline: none;
}

/* ---------- cart sheet ---------- */
.el-cartsheet-count {
  color: var(--el-muted);
  font-size: 14px;
  font-weight: 600;
}

.el-cartsheet-items {
  padding-bottom: 8px;
}

.el-cart-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--el-line);
  transition: opacity 0.15s ease;
}

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

.el-cart-row.el-busy {
  opacity: 0.5;
  pointer-events: none;
}

.el-cart-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--el-soft);
  color: var(--el-muted);
  font-size: 22px;
}

.el-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.el-cart-name {
  color: var(--el-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.el-cart-meta {
  margin-top: 2px;
  color: var(--el-muted);
  font-size: 12px;
  line-height: 1.35;
}

.el-cart-unit {
  margin-top: 4px;
  color: var(--el-muted);
  font-size: 12.5px;
}

.el-cart-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.el-cart-line {
  color: var(--el-ink);
  font-size: 14.5px;
  font-weight: 700;
}

.el-cart-row-free .el-cart-line {
  color: #16a34a;
}

.el-cart-qty-fixed {
  color: var(--el-muted);
  font-size: 13px;
  font-weight: 600;
}

.el-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--el-line);
  border-radius: 999px;
  background: #ffffff;
}

.el-step {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--el-accent) 10%, #ffffff);
  color: var(--el-accent);
  font-size: 14px;
  cursor: pointer;
}

.el-step-trash {
  background: #fef2f2;
  color: #dc2626;
}

.el-step-qty {
  min-width: 22px;
  color: var(--el-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.el-cart-empty {
  padding: 32px 0;
  color: var(--el-muted);
  text-align: center;
}

.el-cart-empty i {
  font-size: 40px;
}

.el-cart-empty p {
  margin: 6px 0 0;
}

.el-cartsheet-foot {
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--el-line);
  background: #ffffff;
  border-radius: 0 0 22px 22px;
}

.el-cartsheet-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--el-ink);
  font-size: 15px;
  font-weight: 600;
}

.el-cartsheet-subtotal strong {
  color: var(--el-ink);
  font-size: 19px;
  font-weight: 800;
}

.el-cartsheet-note {
  margin: 2px 0 12px;
  color: var(--el-muted);
  font-size: 12px;
}

.el-cartsheet-actions {
  display: flex;
  gap: 10px;
}

.el-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.el-btn-ghost {
  flex: 0 0 auto;
  border: 1px solid var(--el-line);
  background: #ffffff;
  color: var(--el-ink);
}

.el-btn-primary {
  flex: 1 1 auto;
  border: none;
  background: var(--el-accent);
  color: #ffffff !important;
}

/* legacy "a, a:hover { background-color: transparent }" would blank the link on hover */
a.el-btn-primary,
a.el-btn-primary:hover,
a.el-btn-primary:focus,
a.el-btn-primary:active,
a.el-btn-primary:visited {
  background-color: var(--el-accent) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

@media (hover: hover) {
  a.el-btn-primary:hover {
    filter: brightness(0.93);
  }

  .el-btn-ghost:hover {
    background: var(--el-soft);
  }
}

/* keep the last products and the scroll-to-top button clear of the dock */
#quickCart .product_section_main {
  padding-bottom: 90px;
}

#scrollTopBtn {
  bottom: 96px !important;
}

/* no floating dock over the product popup either */
body.modal-open .el-dock {
  visibility: hidden;
}

/* the sheet covers everything; hide the dock behind it on small screens */
html.el-sheet-open .el-dock {
  visibility: hidden;
}

/* ==========================================================================
   Product options popup (#productModal, ElegantTemplate templates/modals.blade.php)
   The popup's own styles are !important throughout, so these use a stronger selector.
   ========================================================================== */
body #productModal.modal .modal-content {
  position: relative;
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;
}

/* header: white with a dark title; over the photo it is just a floating close button */
body #productModal.modal .modal-header {
  align-items: center !important;
  padding: 14px 16px 10px 20px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body #productModal.modal .modal-title,
body #productModal.modal #modalTitle {
  color: var(--el-ink) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

body #productModal.modal .modal-header .close {
  width: 36px !important;
  height: 36px !important;
  background: #f1f5f9 !important;
  color: var(--el-ink) !important;
  font-size: 20px !important;
  box-shadow: none !important;
}

@media (hover: hover) {
  body #productModal.modal .modal-header .close:hover {
    transform: none !important;
    background: #e2e8f0 !important;
  }
}

body #productModal.modal.el-pm-has-hero .modal-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20 !important;
  justify-content: flex-end !important;
  background: transparent !important;
  pointer-events: none;
}

body #productModal.modal.el-pm-has-hero .modal-header .modal-title {
  display: none !important;
}

body #productModal.modal.el-pm-has-hero .modal-header .close {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}

/* body: white, scrolls as one */
body #productModal.modal .modal-body {
  background: #ffffff !important;
  padding-top: 0 !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

body #productModal.modal .modal-body::-webkit-scrollbar-track {
  background: transparent !important;
}

body #productModal.modal .modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

.el-pm-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 300px;
  overflow: hidden;
  background: var(--el-soft);
}

.el-pm-hero[hidden],
.el-pm-name[hidden] {
  display: none !important;
}

.el-pm-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body #productModal.modal .el-pm-name {
  margin: 0 !important;
  padding: 16px 20px 0 !important;
  color: var(--el-ink) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* price: left aligned under the name, no floating card */
body #productModal.modal .ItemPricetab {
  position: static !important;
  display: flex !important;
  align-items: baseline;
  gap: 8px;
  margin: 0 !important;
  padding: 4px 0 12px !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--el-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

body #productModal.modal:not(.el-pm-has-hero) .ItemPricetab {
  padding-top: 0 !important;
}

body #productModal.modal #modalPrice {
  color: var(--el-accent) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

body #productModal.modal #modalSalePrice {
  order: 2;
  font-size: 14px !important;
}

/* description + "View full details" under the price */
body #productModal.modal .el-pm-desc {
  margin: 12px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body #productModal.modal .el-pm-desc img,
body #productModal.modal .el-pm-desc table {
  max-width: 100%;
}

body #productModal.modal .el-pm-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 10px 0 2px;
  color: var(--el-accent) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  background: transparent !important;
}

body #productModal.modal .el-pm-desc[hidden],
body #productModal.modal .el-pm-more[hidden] {
  display: none !important;
}

/* the price row loses its bottom rule; the description/link sit between it and the options */
body #productModal.modal .ItemPricetab {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

body #productModal.modal .variant_main_sec {
  margin-top: 14px !important;
  padding-top: 4px !important;
  border-top: 1px solid var(--el-line);
}

/* "Select your options" + group titles */
body #productModal.modal #select_optionlabel {
  margin: 16px 0 4px !important;
  color: var(--el-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

body #productModal.modal .variants_button_section {
  margin-top: 6px;
}

body #productModal.modal .variants_button_section > br {
  display: none;
}

body #productModal.modal .variants_button_section .form-control-label {
  margin: 10px 0 8px !important;
  color: var(--el-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  box-shadow: none !important;
  animation: none !important;
}

/* option tiles: white with a thin border; selected = store-colour outline, tint and tick */
body #productModal.modal .variants_btn_inside {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  width: 100%;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body #productModal.modal .variants_btn_inside > b {
  display: none;
}

body #productModal.modal .variants_btn_inside .btn {
  position: relative;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  margin: 0 !important;
  padding: 10px 34px 10px 14px !important;
  border: 1.5px solid var(--el-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--el-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  white-space: normal !important;
  box-shadow: none !important;
  transform: none !important;
}

body #productModal.modal .variants_btn_inside .btn::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
}

body #productModal.modal .variants_btn_inside .btn.active,
body #productModal.modal .variants_btn_inside label.active {
  border-color: var(--el-accent) !important;
  background: color-mix(in srgb, var(--el-accent) 8%, #ffffff) !important;
  color: var(--el-ink) !important;
}

body #productModal.modal .variants_btn_inside .btn.active::after {
  border-color: var(--el-accent);
  background: var(--el-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (hover: hover) {
  body #productModal.modal .variants_btn_inside .btn:not(.active):hover {
    border-color: color-mix(in srgb, var(--el-accent) 45%, #ffffff) !important;
  }
}

body #productModal.modal .variants_btn_inside .btn.disabled,
body #productModal.modal .variants_btn_inside .btn:disabled {
  opacity: 0.45;
}

body #productModal.modal #variants-area-inside,
body #productModal.modal .variants_button_section,
body #productModal.modal .variants_button_section > div {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body #productModal.modal .modal-body .card-body {
  padding: 0 20px !important;
}

body #productModal.modal .modal-header {
  padding-left: 20px !important;
}

/* bootstrap .row's -15px margin pushed the price out of line with the name */
body #productModal.modal .modal-body .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ---- modifier groups (extras): theme colour + font instead of red / blue / grey ---- */
body #productModal.modal #extras_group .modifier-group {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden;
}

body #productModal.modal #extras_group .modifier-group > .form-control-label,
body #productModal.modal #extras_group .modifier-group > .form-control-label.req-border {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: none !important;
  border-bottom: 1px solid var(--el-line) !important;
  border-radius: 0 !important;
  background: var(--el-soft) !important;
  box-shadow: none !important;
  animation: none !important;
  font-family: inherit !important;
}

body #productModal.modal #extras_group .modifier-group > .form-control-label > span:first-child {
  color: var(--el-ink) !important;
  -webkit-text-fill-color: var(--el-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

body #productModal.modal #extras_group .modifier-group .quantity_label_title {
  color: var(--el-muted) !important;
  -webkit-text-fill-color: var(--el-muted) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

body #productModal.modal #extras_group .modifier-group .badge-req-opt {
  flex: 0 0 auto;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: none !important;
}

body #productModal.modal #extras_group .modifier-group .badge-req {
  background: color-mix(in srgb, var(--el-accent) 14%, #ffffff) !important;
  color: var(--el-accent) !important;
  -webkit-text-fill-color: var(--el-accent) !important;
}

body #productModal.modal #extras_group .modifier-group .badge-opt {
  background: #e2e8f0 !important;
  color: var(--el-muted) !important;
  -webkit-text-fill-color: var(--el-muted) !important;
}

body #productModal.modal #extras_group .modifier-group .no_input_name {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

body #productModal.modal #extras_group .modifier-group .custom-control {
  margin: 0 !important;
  padding: 13px 14px !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

body #productModal.modal #extras_group .modifier-group .custom-control:last-child {
  border-bottom: none !important;
}

@media (hover: hover) {
  body #productModal.modal #extras_group .modifier-group .custom-control:hover {
    background: var(--el-soft) !important;
  }
}

body #productModal.modal #extras_group .modifier-group .custom-control:has(.custom-control-input:checked) {
  background: color-mix(in srgb, var(--el-accent) 7%, #ffffff) !important;
}

body #productModal.modal #extras_group .modifier-group .custom-control-label {
  width: 100% !important;
  padding-left: 32px !important;
  color: var(--el-ink) !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
}

body #productModal.modal #extras_group .modifier-group .custom-control-input:checked ~ .custom-control-label {
  font-weight: 600 !important;
}

body #productModal.modal #extras_group .modifier-group .custom-control-label span {
  color: var(--el-muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body #productModal.modal #extras_group .modifier-group .custom-control-label::before {
  width: 20px !important;
  height: 20px !important;
  border: 1.5px solid #cbd5e1 !important;
  transform: translateY(-50%) !important;
}

body #productModal.modal #extras_group .modifier-group .custom-checkbox .custom-control-label::before {
  border-radius: 6px !important;
}

body #productModal.modal #extras_group .modifier-group .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--el-accent) !important;
  background: var(--el-accent) !important;
  transform: translateY(-50%) !important;
}

/* radio: white dot in the filled circle; checkbox: white tick */
body #productModal.modal #extras_group .modifier-group .custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  left: 6px !important;
  width: 8px !important;
  height: 8px !important;
  background: #ffffff !important;
}

body #productModal.modal #extras_group .modifier-group .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  left: 0 !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat !important;
}

/* quantity groups: name · stepper · price on one row, no radio circle */
body #productModal.modal #extras_group .modifier-group .custom-qtybox .custom-control-label {
  padding-left: 0 !important;
}

body #productModal.modal #extras_group .modifier-group .custom-qtybox .custom-control-label::before,
body #productModal.modal #extras_group .modifier-group .custom-qtybox .custom-control-label::after {
  display: none !important;
}

body #productModal.modal #extras_group .modifier-group .option_li_main {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}

body #productModal.modal #extras_group .modifier-group .option_li_main .option_name_value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--el-ink) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  white-space: normal !important;
}

body #productModal.modal #extras_group .modifier-group .option_li_main .option_li_price {
  flex: 0 0 auto;
  min-width: 72px;
  text-align: right;
}

body #productModal.modal #extras_group .modifier-group .option_li_main .quantity-area {
  flex: 0 0 auto;
  margin: 0 !important;
}

body #productModal.modal #extras_group .modifier-group .number-input {
  height: 36px !important;
  padding: 2px !important;
  gap: 2px;
  border: 1px solid var(--el-line) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body #productModal.modal #extras_group .modifier-group .number-input button {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--el-accent) 10%, #ffffff) !important;
  transform: none !important;
}

body #productModal.modal #extras_group .modifier-group .number-input button::before,
body #productModal.modal #extras_group .modifier-group .number-input button::after {
  background-color: var(--el-accent) !important;
}

body #productModal.modal #extras_group .modifier-group .number-input input[type=number] {
  width: 26px !important;
  color: var(--el-ink) !important;
  font-size: 14px !important;
}

body #productModal.modal #extras_group .modifier-group .group-selection-status {
  color: var(--el-accent) !important;
  padding: 0 14px 10px !important;
}

body #productModal.modal #extras_group .modifier-group .btn_collapse_div {
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
}

body #productModal.modal #extras_group .modifier-group .toggle-button,
body #productModal.modal #extras_group .modifier-group .chevron_icon_btn {
  color: var(--el-accent) !important;
  background: transparent !important;
  font-weight: 600 !important;
}

/* ---- "Your selections" summary: one-line header, chips per choice ---- */
body #productModal.modal #your-selections-section {
  margin: 14px 0 !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
}

body #productModal.modal #your-selections-section > .card-header {
  padding: 12px 14px !important;
  background: #ffffff !important;
}

body #productModal.modal #your-selections-header h6 {
  color: var(--el-ink) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

body #productModal.modal #your-selections-header h6[data-el-count]:not([data-el-count=""])::after {
  content: " · " attr(data-el-count);
  color: var(--el-muted);
  font-weight: 500;
}

body #productModal.modal #your-selections-chevron {
  color: var(--el-muted);
}

/* bin icon → "Clear all" text */
body #productModal.modal #your-selections-section .btn-clear-all {
  padding: 4px 2px !important;
  color: var(--el-muted) !important;
  font-size: 13px;
  font-weight: 600;
}

body #productModal.modal #your-selections-section .btn-clear-all i {
  display: none !important;
}

body #productModal.modal #your-selections-section .btn-clear-all::before {
  content: "Clear all";
}

@media (hover: hover) {
  body #productModal.modal #your-selections-section .btn-clear-all:hover {
    color: #dc2626 !important;
  }
}

body #productModal.modal #your-selections-body {
  padding: 0 14px 12px !important;
  background: #ffffff !important;
}

/* each group: small grey label, then its choices as chips */
body #productModal.modal #your-selections-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px !important;
}

body #productModal.modal #your-selections-list > div:last-child {
  margin-bottom: 0 !important;
}

body #productModal.modal #your-selections-list > div > .font-weight-bold:first-child {
  flex: 0 0 100%;
  margin: 0 !important;
  color: var(--el-muted) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase !important;
}

body #productModal.modal #your-selections-list > div > .d-flex {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  margin: 0 !important;
  padding: 4px 4px 4px 12px !important;
  border: 1px solid color-mix(in srgb, var(--el-accent) 30%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--el-accent) 7%, #ffffff);
  color: var(--el-ink) !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.2 !important;
}

body #productModal.modal #your-selections-list > div > .d-flex > span .font-weight-bold {
  margin-left: 2px;
  color: var(--el-muted) !important;
  font-size: 12px;
  font-weight: 600 !important;
}

body #productModal.modal #your-selections-list .btn-remove-selection {
  width: 22px;
  height: 22px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.07) !important;
  color: var(--el-muted) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

@media (hover: hover) {
  body #productModal.modal #your-selections-list .btn-remove-selection:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
  }
}

/* notes */
body #productModal.modal #single_note {
  margin-top: 12px;
  border: 1px solid var(--el-line) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  box-shadow: none !important;
  resize: vertical;
}

body #productModal.modal #single_note:focus {
  border-color: var(--el-accent) !important;
}

/* footer: round stepper, wide Add to cart, outlined Buy now */
body #productModal.modal .modal-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 15 !important;
  width: auto !important;
  max-width: none !important;
  justify-content: stretch !important;
  gap: 10px !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--el-line) !important;
  box-shadow: 0 -8px 20px -12px rgba(15, 23, 42, 0.25) !important;
}

body #productModal.modal .modal-footer .form-group {
  flex: 0 0 auto !important;
}

body #productModal.modal .modal-footer .number-input {
  height: 48px !important;
  padding: 4px !important;
  gap: 2px;
  border: 1px solid var(--el-line) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body #productModal.modal .modal-footer .number-input button {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  aspect-ratio: 1;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--el-accent) 10%, #ffffff) !important;
  color: var(--el-accent) !important;
  transform: none !important;
}

body #productModal.modal .modal-footer .number-input button::before,
body #productModal.modal .modal-footer .number-input button::after {
  background-color: var(--el-accent) !important;
}

body #productModal.modal .modal-footer .number-input input[type=number] {
  width: 30px !important;
  color: var(--el-ink) !important;
}

body #productModal.modal .modal-footer .quantity-btn {
  flex: 1 1 auto !important;
  min-width: 0;
}

body #productModal.modal .modal-footer .quantity-btn .add-to-cart-btn,
body #productModal.modal .modal-footer .quantity-btn .btn-primary {
  width: 100% !important;
}

body #productModal.modal .modal-footer .btn-primary,
body #productModal.modal #buynow_form button {
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transform: none !important;
  box-shadow: none !important;
}

body #productModal.modal #buynow_form button {
  min-width: 0 !important;
  padding: 0 16px !important;
  border-width: 1.5px !important;
}

@media (max-width: 767px) {
  body #productModal.modal .modal-content {
    border-radius: 22px 22px 0 0 !important;
  }

  body #productModal.modal .modal-footer {
    gap: 8px !important;
    margin: 10px -20px 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body #productModal.modal .modal-footer .btn-primary,
  body #productModal.modal #buynow_form button {
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }

  body #productModal.modal .modal-footer .number-input {
    height: 44px !important;
    padding: 3px !important;
  }

  body #productModal.modal .modal-footer .number-input button {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  body #productModal.modal .modal-footer .number-input input[type=number] {
    width: 24px !important;
    margin: 0 !important;
  }

  .el-pm-hero {
    max-height: 240px;
  }
}

@media (max-width: 380px) {
  body #productModal.modal .variants_btn_inside {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Toolbar above the menu (place-content.blade.php .categories_title_sec_main):
   order-type pill first, then tag chips; flat instead of a boxed card
   ========================================================================== */
section.categories_title_sec_main,
section.categories_title_sec_main > .container,
section.categories_title_sec_main > .container > .row,
section.categories_title_sec_main .tags_filter_section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

section.categories_title_sec_main {
  padding-top: 14px !important;
  padding-bottom: 0 !important;
}

section.categories_title_sec_main .tags_filter_section {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
}

section.categories_title_sec_main .tags_filter_section > .mobile_search_sec {
  order: -1;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

section.categories_title_sec_main .tags_filter_section > .tags_main_section {
  flex: 0 0 auto;
  max-width: 100%;
  width: 100%;
  padding: 0 !important;
}

/* ---- order pill: icon · ORDER TYPE / time · Change, search circle beside it ---- */
section.categories_title_sec_main .mobile-order-type-box {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

section.categories_title_sec_main a.mobile-order-type {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto !important;
  max-width: none !important;
  min-height: 56px;
  margin: 0 54px 0 0 !important;
  padding: 8px 12px 8px 8px !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.35) !important;
  text-decoration: none !important;
}

section.categories_title_sec_main a.mobile-order-type .order-type-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 10px;
}

section.categories_title_sec_main a.mobile-order-type .order-icon {
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--el-accent) !important; /* the pickup / delivery icons are white */
}

section.categories_title_sec_main a.mobile-order-type .order-icon img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  border-radius: 0 !important;
  background: transparent !important;
}

section.categories_title_sec_main a.mobile-order-type .order-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* the search toggle hides the pill with an inline display:none */
section.categories_title_sec_main a.mobile-order-type[style*="none"] {
  display: none !important;
}

/* small label over the time, from whichever order-type icon is showing */
section.categories_title_sec_main a.mobile-order-type .order-info::before {
  content: "Your order";
  color: var(--el-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

section.categories_title_sec_main a.mobile-order-type:has(.pickup_icon:not([style*="none"])) .order-info::before {
  content: "Pickup";
}

section.categories_title_sec_main a.mobile-order-type:has(.delivery_icon:not([style*="none"])) .order-info::before {
  content: "Delivery";
}

section.categories_title_sec_main a.mobile-order-type .order-time {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--el-ink) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

/* pencil → "Change" */
section.categories_title_sec_main a.mobile-order-type .edit-icon {
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;
  color: var(--el-accent);
  font-size: 13px;
  font-weight: 700;
}

section.categories_title_sec_main a.mobile-order-type .edit-icon::before {
  content: "Change";
}

section.categories_title_sec_main a.mobile-order-type .edit-icon::after {
  display: none !important;
}

section.categories_title_sec_main a.mobile-order-type .search-toggle-icon {
  position: absolute !important;
  top: 50%;
  right: -54px;
  width: 46px !important;
  height: 46px !important;
  margin: -23px 0 0 !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.35) !important;
}

section.categories_title_sec_main a.mobile-order-type .search-toggle-icon img {
  width: 18px !important;
  height: 18px !important;
  opacity: 0.7;
}

/* search box that replaces the pill */
section.categories_title_sec_main #mobileSearchBoxWrapper .products_input_wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

section.categories_title_sec_main .mobile-search-input-box {
  height: 50px;
  border: 1.5px solid var(--el-accent) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.35) !important;
}

/* desktop order pill (right of the grid/list toggle) */
section.categories_title_sec_main .mobile-order-type-box.d-md-flex .mobile-order-type {
  border: 1px solid var(--el-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* ---- tag chips ---- */
section.categories_title_sec_main .tags_section {
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 !important;
  flex-wrap: nowrap !important;
}

section.categories_title_sec_main .tags_section::-webkit-scrollbar {
  display: none;
}

section.categories_title_sec_main .tags_section .tags-filter-pills {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
}

section.categories_title_sec_main .tags_filter {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #334155 !important;
}

section.categories_title_sec_main .tags_filter .tags-filter-heading {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

section.categories_title_sec_main .tags_filter img {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  border-radius: 50%;
  object-fit: cover;
}

/* tags without their own icon only have the placeholder: drop it */
section.categories_title_sec_main .tags_filter img[src*="item_placeholder"] {
  display: none !important;
}

section.categories_title_sec_main .tags_filter.active {
  border-color: var(--el-accent) !important;
  background: var(--el-accent) !important;
  color: #ffffff !important;
}

section.categories_title_sec_main .clear_filter_button.tags {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px !important;
  height: 34px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

section.categories_title_sec_main .clear_filter_button.tags::before {
  content: "×";
  color: var(--el-ink);
  font-size: 18px;
  line-height: 1;
}

section.categories_title_sec_main .tags_section .tags-filter-pills.ml-3 {
  margin-left: 0 !important;
}

/* ---- desktop: tags on the left, order pill + grid/list toggle on the right, one row ---- */
@media (min-width: 768px) {
  section.categories_title_sec_main .tags_filter_section {
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 16px;
  }

  section.categories_title_sec_main .tags_filter_section > .tags_main_section {
    flex: 1 1 auto !important;
    width: auto;
    max-width: none !important;
    min-width: 0;
  }

  section.categories_title_sec_main .tags_filter_section > .mobile_search_sec {
    display: none !important;
  }

  section.categories_title_sec_main .tags_filter_section > .d-flex {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-left: auto;
    gap: 10px;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex {
    width: auto;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .mobile-order-type {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 6px 14px 6px 6px !important;
    box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.35) !important;
    cursor: pointer;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-type-right {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-icon {
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--el-accent) !important;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-icon img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-info::before {
    content: "Your order";
    color: var(--el-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .mobile-order-type:has(.pickup_icon:not([style*="none"])) .order-info::before {
    content: "Pickup";
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .mobile-order-type:has(.delivery_icon:not([style*="none"])) .order-info::before {
    content: "Delivery";
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-time {
    color: var(--el-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-edit,
  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-edit .edit-icon {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    background: none !important;
  }

  section.categories_title_sec_main .mobile-order-type-box.d-md-flex .order-edit .edit-icon::before {
    content: "Change";
    color: var(--el-accent);
    font-size: 13px;
    font-weight: 700;
  }

  section.categories_title_sec_main .grid_list_section.d-md-flex {
    margin: 0 !important;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--el-line);
    border-radius: 12px;
    background: #ffffff;
  }

  section.categories_title_sec_main .grid_list_section.d-md-flex a {
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--el-muted) !important;
  }

  section.categories_title_sec_main .grid_list_section.d-md-flex a.active {
    background: color-mix(in srgb, var(--el-accent) 12%, #ffffff) !important;
    color: var(--el-accent) !important;
  }

  section.categories_title_sec_main .grid_list_section.d-md-flex a i {
    color: inherit !important;
    font-size: 19px !important;
  }
}

/* ---- grid view (grid/list toggle): real grid, photos fill the card ---- */
#quickCart .product_listing_main_container.grid_product section[data-category-id] .cat_sec {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  #quickCart .product_listing_main_container.grid_product section[data-category-id] .cat_sec {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  #quickCart .product_listing_main_container.grid_product section[data-category-id] .cat_sec {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal {
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius) !important;
  background: #ffffff;
  box-shadow: none !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  #quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal:hover {
    border-color: transparent;
    box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.35) !important;
  }
}

#quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal > a,
#quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal picture {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

#quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal picture img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px !important;
  background: var(--el-soft);
}

#quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal > .info {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 2px 0 !important;
}

#quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal .grid_item_price {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto !important;
  padding-top: 10px;
}

#quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal.el-in-cart {
  border-color: color-mix(in srgb, var(--el-accent) 55%, #ffffff);
  background: color-mix(in srgb, var(--el-accent) 3%, #ffffff);
}

@media (max-width: 767px) {
  #quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal {
    padding: 8px !important;
  }

  #quickCart .product_listing_main_container.grid_product section[data-category-id] .item-offer-horizontal .grid_item_price {
    flex-wrap: wrap;
  }
}

/* "Change Order Details" (#changeOrderModal) is position:fixed but lives inside the toolbar
   page section's stacking context (z-index 9 / 25), under the sticky category chips (50)
   and the dock: lift those sections while it is open */
section.categories_title_sec_main:has(.change-order-modal.active),
section.section-place-content:has(.change-order-modal.active) {
  z-index: 60 !important;
}

html:has(.change-order-modal.active) .el-dock,
html:has(.change-order-modal.active) #giftBoxBtn {
  visibility: hidden;
}

/* ==========================================================================
   Side cart (templates/side_cart.blade.php in the slide-in menu): used on Elegant pages
   without the cart sheet, e.g. the product page. Same look as the cart sheet.
   ========================================================================== */
.info:has(#cartListMobile) {
  background: #ffffff !important;
}

.info:has(#cartListMobile) .box-info > .head {
  margin: 0 !important;
  padding: 16px 18px 6px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.info:has(#cartListMobile) .shop_cart_basket_icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--el-ink) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.info:has(#cartListMobile) .shop_cart_basket_icon i {
  color: var(--el-accent) !important;
  font-size: 24px !important;
}

#cartListMobile {
  padding: 0 18px !important;
  background: transparent !important;
}

#cartListMobile .items {
  margin: 0 !important;
  padding: 14px 0 !important;
  border: none !important;
  border-bottom: 1px dashed var(--el-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#cartListMobile .items > .d-flex {
  align-items: center;
  gap: 12px;
}

#cartListMobile .cartitem_details {
  flex: 1 1 auto;
  min-width: 0;
}

#cartListMobile .product-item_title {
  margin: 0 0 2px !important;
  color: var(--el-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

#cartListMobile .cart_product_meta,
#cartListMobile .cart_product_meta * {
  color: var(--el-muted) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

#cartListMobile .product-item_quantity {
  margin: 4px 0 0 !important;
  color: var(--el-muted) !important;
  font-size: 13px !important;
}

#cartListMobile .cart_buttons {
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

/* − qty + in one pill (markup order is −, +, qty) */
#cartListMobile .cart_count_action {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  padding: 3px !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

#cartListMobile .cart_count_action .btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--el-accent) 10%, #ffffff) !important;
  box-shadow: none !important;
}

#cartListMobile .cart_count_action .btn i {
  color: var(--el-accent) !important;
  font-size: 14px !important;
}

#cartListMobile .cart_count_action .btn:nth-child(2) {
  order: 3;
}

#cartListMobile .cart_count_action .btn:nth-child(3) {
  order: 2;
  width: 24px !important;
  background: transparent !important;
  pointer-events: none;
}

#cartListMobile .cart_count_action .item_quantity {
  color: var(--el-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

#cartListMobile .cart_trash_item {
  width: 32px !important;
  height: 32px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #fef2f2 !important;
  box-shadow: none !important;
}

#cartListMobile .cart_trash_item i {
  color: #dc2626 !important;
  font-size: 15px !important;
}

#totalPricesMobile .actionsCart {
  padding: 14px 18px 18px !important;
  background: transparent !important;
}

#totalPricesMobile .totalprice_sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 !important;
  border: none !important;
}

#totalPricesMobile .totalprice_sec strong {
  color: var(--el-ink) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

#totalPricesMobile .totalprice_sec .ammount strong {
  font-size: 20px !important;
  font-weight: 800 !important;
}

#totalPricesMobile .actionsCart > br {
  display: none;
}

#totalPricesMobile .bottom-cart-buttons {
  display: flex !important;
  gap: 10px !important;
  margin-top: 14px;
}

#totalPricesMobile .bottom-cart-buttons .btn {
  flex: 1 1 0;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

#totalPricesMobile .bottom-cart-buttons .btn-outline-primary,
#totalPricesMobile .bottom-cart-buttons .btn-outline-primary:hover {
  border: 1px solid var(--el-line) !important;
  background: #ffffff !important;
  color: var(--el-ink) !important;
}

#totalPricesMobile .bottom-cart-buttons .btn-primary,
#totalPricesMobile .bottom-cart-buttons .btn-primary:hover,
#totalPricesMobile .bottom-cart-buttons .btn-primary:focus {
  border: none !important;
  background: var(--el-accent) !important;
  color: #ffffff !important;
}

/* ---- card price with a sale: old price small, grey and struck, never on top of the new one ---- */
#quickCart section[data-category-id] .item-offer-horizontal .price {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  line-height: 1.25 !important;
}

#quickCart section[data-category-id] .item-offer-horizontal .price span {
  position: static !important;
  margin: 0 !important;
}

#quickCart section[data-category-id] .item-offer-horizontal .price span:has(> strike),
#quickCart section[data-category-id] .item-offer-horizontal .price strike {
  order: 2;
  color: var(--el-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* ---- product sheet opened from a "View" card: details only, no ordering ---- */
body #productModal.modal.el-pm-viewonly .modal-footer,
body #productModal.modal.el-pm-viewonly #variants-area,
body #productModal.modal.el-pm-viewonly #exrtas-area,
body #productModal.modal.el-pm-viewonly #extras_group,
body #productModal.modal.el-pm-viewonly #package_service_list,
body #productModal.modal.el-pm-viewonly #your-selections-section,
body #productModal.modal.el-pm-viewonly #single_note,
body #productModal.modal.el-pm-viewonly .variant_main_sec > .col-12 {
  display: none !important;
}

body #productModal.modal.el-pm-viewonly .variant_main_sec {
  border-top: none;
}

body #productModal.modal .el-pm-unavailable {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
}

body #productModal.modal .el-pm-unavailable i {
  font-size: 18px;
}

body #productModal.modal .el-pm-unavailable[hidden] {
  display: none !important;
}

/* ==========================================================================
   Order-type popup (restorants/partials/ordermodal.blade.php, #order_type_selection):
   white header, tiles for Delivery / Pickup / Reserve, store-colour Continue,
   bottom sheet on phones. Store-written notices inside are left as authored.
   ========================================================================== */
#order_type_selection .modal-dialog {
  max-width: 460px;
}

#order_type_selection .modal-content {
  overflow: hidden;
  border: none !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;
}

@media (max-width: 575px) {
  #order_type_selection .modal-dialog {
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    max-width: none;
    margin: 0 !important;
  }

  #order_type_selection .modal-content {
    width: 100%;
    border-radius: 22px 22px 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* header: white, title + one muted line */
#order_type_selection .modal-header {
  position: relative;
  display: block !important;
  padding: 22px 56px 6px 20px !important;
  border: none !important;
  background: #ffffff !important;
  text-align: left !important;
}

#order_type_selection #order_type_selection_title {
  margin: 0 !important;
  color: var(--el-ink) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  text-transform: none !important;
}

#order_type_selection #order_type_selection_sub_title {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: var(--el-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-transform: none !important;
}

#order_type_selection .modal-header .close {
  top: 16px !important;
  right: 16px !important;
  width: 36px;
  height: 36px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9 !important;
  color: var(--el-ink) !important;
  font-size: 22px !important;
  opacity: 1 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#order_type_selection .modal-header .close span {
  color: inherit !important;
}

#order_type_selection .modal-body {
  padding: 8px 20px 18px !important;
}

#order_type_selection .modal-body .container-fluid {
  padding: 0 !important;
}

/* "Welcome to …" as a quiet line */
#order_type_selection .order-body h2 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: var(--el-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-transform: none !important;
}

/* ---- Delivery / Pickup / Reserve tiles ---- */
#order_type_selection .order_delivery_row {
  padding: 0 !important;
}

#order_type_selection ul.order_delivery_item {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

#order_type_selection ul.order_delivery_item > li {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
}

#order_type_selection .ordericon_link {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: 100%;
  min-height: 104px;
  margin: 0 !important;
  padding: 16px 8px 12px !important;
  border: 1.5px solid var(--el-line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#order_type_selection .ordericon_link .header-ordernow-single-img {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#order_type_selection .ordericon_link img.order_type_img {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  object-fit: contain;
  filter: none !important;
}

#order_type_selection .ordericon_link h4 {
  margin: 0 !important;
  color: var(--el-ink) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  text-align: center;
}

@media (hover: hover) {
  #order_type_selection .ordericon_link:hover {
    border-color: color-mix(in srgb, var(--el-accent) 45%, #ffffff) !important;
  }
}

#order_type_selection ul.order_delivery_item > li:has(input:checked) .ordericon_link,
#order_type_selection ul.order_delivery_item > li.active .ordericon_link {
  border-color: var(--el-accent) !important;
  background: color-mix(in srgb, var(--el-accent) 7%, #ffffff) !important;
}

#order_type_selection ul.order_delivery_item > li:has(input:checked) .header-ordernow-single-img,
#order_type_selection ul.order_delivery_item > li.active .header-ordernow-single-img {
  background: transparent !important;
}

#order_type_selection ul.order_delivery_item > li:has(input:checked) .ordericon_link h4,
#order_type_selection ul.order_delivery_item > li.active .ordericon_link h4 {
  color: var(--el-ink) !important;
}

#order_type_selection ul.order_delivery_item > li:has(input:checked) img.order_type_img,
#order_type_selection ul.order_delivery_item > li.active img.order_type_img {
  filter: none !important;
}

/* tick in the corner of the chosen tile */
#order_type_selection ul.order_delivery_item > li:has(input:checked) .ordericon_link::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--el-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* the radio dot from custom-control is not needed on tiles */
#order_type_selection .ordericon_link::before {
  display: none !important;
}

/* validation message: a small red line, not a pill */
#order_type_selection .error_placement,
#order_type_selection .error_placement * {
  background: transparent !important;
  box-shadow: none !important;
}

#order_type_selection .error_placement label.error,
#order_type_selection .error_placement .error {
  display: block;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  color: #dc2626 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center;
}

/* Skip & browse: quiet text link */
#order_type_selection #browse {
  position: static !important;
  transform: none !important;
  display: block;
  margin: 12px auto 0 !important;
  padding: 6px 12px !important;
  color: var(--el-muted) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

/* ---- closed store: picture smaller, "Opens at" as an amber chip ---- */
#order_type_selection .store_hour_closed img {
  max-width: 96px !important;
  margin-bottom: 6px;
}

#order_type_selection .store_hour_closed h4 {
  color: var(--el-ink) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
}

#order_type_selection .store_hour_closed .open_notice {
  display: inline-block;
  margin: 8px 0 10px !important;
  padding: 6px 14px !important;
  border: 1px solid #fcd34d !important;
  border-radius: 999px !important;
  background: #fffbeb !important;
  color: #92400e !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

#order_type_selection #continue_place_order {
  height: 36px;
  margin: 0 0 0 8px !important;
  padding: 0 16px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--el-accent) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* ---- wizard buttons: Back (outlined) + Continue (store colour) ---- */
#order_type_selection .wizard > .actions {
  position: static !important;
  width: auto !important;
  margin-top: 14px !important;
  padding: 0 !important;
}

/* desktop pinned the buttons absolutely under a fixed-height step: let the step size itself */
#order_type_selection .wizard > .content > .body {
  min-height: 0 !important;
}

#order_type_selection .wizard > .actions > ul {
  display: flex !important;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}

#order_type_selection .wizard > .actions > ul > li {
  flex: 1 1 0;
  margin: 0 !important;
}

#order_type_selection .wizard > .actions > ul > li[style*="none"],
#order_type_selection .wizard > .actions > ul > li.disabled[aria-hidden="true"] {
  display: none !important;
}

#order_type_selection .wizard > .actions a,
#order_type_selection .wizard > .actions a:hover,
#order_type_selection .wizard > .actions a:active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: none !important;
  border-radius: 14px !important;
  background: var(--el-accent) !important;
  color: #ffffff !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#order_type_selection .wizard > .actions a[href="#previous"] {
  border: 1px solid var(--el-line) !important;
  background: #ffffff !important;
  color: var(--el-ink) !important;
}

/* ---- time step: date chips + time picker ---- */
#order_type_selection .time_slot_ranger_container {
  gap: 8px;
}

#order_type_selection .time_slot_box .time_slot_content {
  border: 1.5px solid var(--el-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#order_type_selection .time_slot_box .time_slot_content .time_slot_day,
#order_type_selection .time_slot_box .time_slot_content .time_slot_month {
  color: var(--el-muted) !important;
}

#order_type_selection .time_slot_box .time_slot_content .time_slot_date {
  color: var(--el-ink) !important;
  font-weight: 800 !important;
}

#order_type_selection .time_slot_box input:checked + .time_slot_content,
#order_type_selection .time_slot_box input:checked + label .time_slot_content {
  border-color: var(--el-accent) !important;
  background: color-mix(in srgb, var(--el-accent) 8%, #ffffff) !important;
}

#order_type_selection .time_slot_box input:checked + .time_slot_content *,
#order_type_selection .time_slot_box input:checked + label .time_slot_content * {
  color: var(--el-accent) !important;
}

#order_type_selection .time_slot_box .time_slot_content.closed {
  opacity: 0.45;
}

#order_type_selection #timeslot,
#order_type_selection select.form-control {
  height: 48px !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: var(--el-ink) !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

#order_type_selection .additional_date_checkbox label {
  color: var(--el-accent) !important;
  font-weight: 600 !important;
}

#order_type_selection .time_slot_box .time_slot_type,
#order_type_selection .time_slot_box input:checked + .time_slot_content .time_slot_type,
#order_type_selection .time_slot_box input:checked + label .time_slot_content .time_slot_type {
  color: #ffffff !important;
}

/* ==========================================================================
   "Change Order Details" sheet (place-content.blade.php #changeOrderModal):
   same look as the order-type popup
   ========================================================================== */
#changeOrderModal .modal-content-box {
  overflow: hidden;
  border-radius: 22px 22px 0 0 !important;
  background: #ffffff !important;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.25) !important;
}

@media (min-width: 768px) {
  #changeOrderModal .modal-content-box {
    border-radius: 22px !important;
  }
}

#changeOrderModal .modal-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 8px 20px !important;
  border: none !important;
  background: #ffffff !important;
}

#changeOrderModal .modal-header > span {
  color: var(--el-ink) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
}

#changeOrderModal .close-modal {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #f1f5f9 !important;
  color: var(--el-ink) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#changeOrderModal .modal-body {
  padding: 8px 20px 4px !important;
}

/* Pickup / Delivery: chosen side filled with the store colour */
#changeOrderModal .order-toggle {
  display: flex !important;
  gap: 4px;
  margin-bottom: 14px !important;
  padding: 4px !important;
  border: none !important;
  border-radius: 14px !important;
  background: #f1f5f9 !important;
}

#changeOrderModal .order-toggle .toggle-btn {
  flex: 1 1 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin: 0 !important;
  border: none !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

#changeOrderModal .order-toggle .toggle-btn.active {
  background: var(--el-accent) !important;
  color: #ffffff !important;
}

#changeOrderModal .order-toggle .toggle-btn.active .pickup-icon,
#changeOrderModal .order-toggle .toggle-btn.active .delivery-icon {
  --icon-color: #ffffff !important;
  background-color: #ffffff !important;
}

/* address + time rows: light cards with a small label and a "Change" link */
#changeOrderModal .order-box {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#changeOrderModal .order-box .info-icon {
  flex: 0 0 auto;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  opacity: 0.75;
}

#changeOrderModal .order-box .time-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 12px;
}

#changeOrderModal .el-co-text,
#changeOrderModal .order-box .order-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  line-height: 1.35;
}

#changeOrderModal .el-co-label {
  color: var(--el-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#changeOrderModal .el-co-label-addr::before {
  content: "Pickup from";
}

#changeOrderModal:has(.delivery-btn.active) .el-co-label-addr::before {
  content: "Deliver to";
}

#changeOrderModal .delivery_address,
#changeOrderModal .order-box .order-time {
  color: var(--el-ink) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

#changeOrderModal .order-box .edit-icon {
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  -webkit-mask: none !important;
  mask: none !important;
  background: none !important;
}

#changeOrderModal .order-box .edit-icon::before {
  content: "Change";
  color: var(--el-accent);
  font-size: 13px;
  font-weight: 700;
}

/* the address can only be changed for delivery */
#changeOrderModal:not(:has(.delivery-btn.active)) .edit-delivery_area {
  display: none !important;
}

/* Confirm: full width, same as the popup's Continue */
#changeOrderModal .confirm-wrapper {
  padding: 6px 20px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}

#changeOrderModal .confirm-btn,
#changeOrderModal .confirm-btn:hover {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  height: 50px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: none !important;
  border-radius: 14px !important;
  background: var(--el-accent) !important;
  color: #ffffff !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* delivery step of the Change Order sheet */
#changeOrderModal #deliveryModal {
  padding-top: 2px;
}

#changeOrderModal .el-co-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--el-accent) 7%, #ffffff);
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}

#changeOrderModal .el-co-hint i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--el-accent);
  font-size: 18px;
}

#changeOrderModal #deliveryModal .form-group,
#changeOrderModal #deliveryModal .qraddressBox {
  margin: 0 0 10px !important;
  padding: 0 !important;
}

#changeOrderModal #deliveryModal label {
  display: block;
  margin: 0 0 6px !important;
  color: var(--el-muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

#changeOrderModal #deliveryModal .form-control,
#changeOrderModal #deliveryModal select {
  height: 48px !important;
  padding: 0 14px !important;
  border: 1px solid var(--el-line) !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: var(--el-ink) !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

#changeOrderModal #deliveryModal .form-control:focus,
#changeOrderModal #deliveryModal select:focus {
  border-color: var(--el-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--el-accent) 15%, transparent) !important;
}

#changeOrderModal #deliveryModal .error-text {
  display: block;
  margin-top: 4px;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
}

#changeOrderModal.el-co-delivery-step #pickup_info .order-box {
  display: none !important;
}

/* ==========================================================================
   Footer (templates/footer.blade.php). Colours stay the store's own footer settings
   (--store_footer_*); this only tidies layout, sizes and spacing.
   ========================================================================== */
footer.footer {
  padding: 32px 0 24px !important;
}

footer.footer .container > .row {
  row-gap: 22px;
}

/* store name + logo */
footer.footer .store_sec {
  margin-bottom: 12px !important;
}

footer.footer .store_sec h2 {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

/* logo: a small rounded tile unless the store set its own size */
footer.footer .site-logo-footer:not([style]) {
  width: auto !important;
  max-width: 160px !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain;
}

footer.footer .site-logo-footer {
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.35);
}

/* section titles with their icon on one line */
footer.footer .contact_sec,
footer.footer .payment_sec {
  display: flex !important;
  gap: 10px;
  padding: 0 !important;
}

footer.footer .content_icon {
  flex: 0 0 36px;
  width: 36px !important;
  height: 36px;
  padding: 0 !important;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
}

footer.footer .content_icon i {
  margin: 0 !important;
  color: var(--store_footer_text, #0f172a) !important;
  font-size: 19px !important;
}

/* title on the icon's line, content under the title */
footer.footer .content_text h5 {
  min-height: 36px;
  display: flex;
  align-items: center;
}

footer.footer .content_text {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  padding-left: 0 !important;
}

footer.footer .content_text h5 {
  margin: 0 0 6px !important;
  padding-left: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

footer.footer .content_text p {
  margin: 0 0 6px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* phone numbers as call pills */
footer.footer .contact_sec .content_text p a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

footer.footer .contact_sec .content_text p a[href^="tel:"]::before {
  content: "\f095";
  font-family: "Line Awesome Free";
  font-weight: 900;
  font-size: 15px;
}

/* payment logos: one tidy row of chips */
footer.footer .payment_sec ul {
  gap: 6px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

footer.footer .payment_sec ul li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

footer.footer .payment_sec ul li img {
  height: 20px !important;
  width: auto;
}

/* quick links: the empty spacer column goes, links in two columns on phones */
footer.footer .col-md-4 .row > .col-md-12.col-lg-5:empty {
  display: none;
}

footer.footer .col-md-4 .row > .col-md-12.col-lg-7 {
  flex: 0 0 100%;
  max-width: 100%;
}

footer.footer .col-md-4 .contact_sec .content_icon.pl-3 {
  padding-left: 0 !important;
}

footer.footer .footer-quick-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
  margin: 0 !important;
  padding: 0 !important;
}

footer.footer .footer-quick-links .nav-link {
  padding: 5px 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

@media (min-width: 768px) {
  footer.footer .footer-quick-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* bottom: one muted "Powered by" line, room for the floating dock */
footer.footer hr {
  margin: 18px 0 14px !important;
}

footer.footer .copyright,
footer.footer .copyright p {
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 12.5px !important;
  opacity: 0.85;
}

footer.footer .copyright .footerimg img {
  height: 24px !important;
  width: auto;
  max-width: none !important;
}

footer.footer #footer-pages {
  justify-content: center !important;
}

footer.footer #footer-pages .nav-link {
  padding: 4px 0 !important;
  font-size: 12.5px !important;
  opacity: 0.85;
}

@media (max-width: 767px) {
  footer.footer {
    padding-bottom: 104px !important;
    text-align: left;
  }
}

@media (min-width: 768px) {
  footer.footer .copyright,
  footer.footer .copyright p {
    justify-content: flex-start;
  }

  footer.footer #footer-pages {
    justify-content: flex-end !important;
  }

  footer.footer {
    padding-bottom: 96px !important;
  }
}

/* top strip (opening hours + social): hours as a chip, round social icons */
.site-footer-top {
  padding: 14px 0 !important;
}

.site-footer-top .icon-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.site-footer-top .btn-wrapper {
  display: flex;
  gap: 8px;
}

.site-footer-top .btn-wrapper .btn-icon-only {
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

.site-footer-top .btn-wrapper .btn-icon-only i {
  font-size: 18px !important;
}

/* the old icon bar under the footer is replaced by the floating dock on the menu page */
body:has(#elDock) .footer_mobnav {
  display: none !important;
}
/* ===== Product popup: full image (no crop), clean white, visible close ===== */

/* Image: rounded card inside the popup, shown fully, centered, no grey bars */
body #productModal.modal .el-pm-hero {
  aspect-ratio: auto !important;
  max-height: none !important;
  display: flex;
  justify-content: center;
  padding: 16px 20px 0;
  background: #ffffff !important;
  overflow: visible;
}

body #productModal.modal .el-pm-hero img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;      /* crop aagaadhu */
  border-radius: 16px;
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.35);
  display: block;
}

/* Close button: above the body, always visible */
body #productModal.modal.el-pm-has-hero .modal-header {
  z-index: 1000001 !important;
  padding: 12px 14px 0 20px !important;
}

body #productModal.modal.el-pm-has-hero .modal-header .close {
  width: 36px !important;
  height: 36px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
  opacity: 1 !important;
  pointer-events: auto;
}

body #productModal.modal.el-pm-has-hero .modal-header .close span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Name + price compact */
body #productModal.modal .el-pm-name {
  padding: 14px 20px 0 !important;
}

body #productModal.modal .ItemPricetab {
  padding: 4px 0 0 !important;
}

@media (max-width: 767px) {
  body #productModal.modal .el-pm-hero {
    padding: 14px 16px 0;
  }
  body #productModal.modal .el-pm-hero img {
    max-height: 200px;
  }
}
/* Image: full image (no crop) on a soft store-colour band */
body #productModal.modal .el-pm-hero {
  aspect-ratio: auto !important;
  max-height: none !important;
  width: 100%;
  height: 260px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: color-mix(in srgb, var(--el-accent) 8%, #ffffff) !important;
}

body #productModal.modal .el-pm-hero img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767px) {
  body #productModal.modal .el-pm-hero {
    height: 210px;
  }
}
body #productModal.modal .el-pm-hero img {
  display: block;
  width: auto;
  height: calc(100% - 24px);
  max-width: calc(100% - 32px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.45);
}

/* "View full details" right under the product name */
body #productModal.modal *:has(> .el-pm-name):has(> .el-pm-more) {
  display: flex;
  flex-direction: column;
}

body #productModal.modal .el-pm-name { order: 1; }
body #productModal.modal .el-pm-more { order: 2; margin: 2px 0 0 !important; padding: 0 20px; }
body #productModal.modal .ItemPricetab { order: 3; padding-top: 8px !important; }
body #productModal.modal .el-pm-desc { order: 4; }
body #productModal.modal .el-pm-more {
  margin: 4px 0 0 !important;
}
/* View full details: on the name row, right side */
body #productModal.modal .el-pm-name {
  display: inline-block;
}

body #productModal.modal .el-pm-more {
  order: unset !important;
  padding: 0 !important;
  margin: 2px 0 0 20px !important;
}
body #productModal.modal .el-pm-more {
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
}
/* Product popup: hero band height kuraivu, image top/bottom gap kammi */
body #productModal.modal .el-pm-hero {
  height: 200px !important;
}

body #productModal.modal .el-pm-hero img {
  height: calc(100% - 12px) !important;
  max-width: calc(100% - 32px);
}

@media (max-width: 767px) {
  body #productModal.modal .el-pm-hero {
    height: 170px !important;
  }
}
