/* Category Header Styles */
.category-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    color: white;
}

.category-overlay h5 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.category-overlay p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    max-width: 80%;
}

/* Clickable Item Styles */
.list-item-rows {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 15px;
}

.list-item-rows.clickable-item {
    cursor: pointer;
}

.list-item-rows.clickable-item:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-item-rows.clickable-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure buttons are still clickable */
.list-item-rows a,
.list-item-rows button,
.list-item-rows .el-button {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Disabled state */
.list-item-rows.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.list-item-rows.disabled:hover {
    transform: none;
    background-color: white !important;
}

@media (max-width: 768px) {
    .category-overlay h5 {
        font-size: 1.5rem;
    }
    
    .category-overlay p {
        font-size: 0.9rem;
    }
}

.btn-grey {
    background: #b52d18;
    color: #fff;
}
.el-image__inner {
    opacity: 1;
    vertical-align: top;
    border-radius: 10px;
}
.text-center.mb-3 {
    color: #fff;
}

@media (max-width: 768px) {
    .text-center.mb-3 {
        color: #831818;
    }
}

.el-button--success.is-link, .el-button--success.is-plain, .el-button--success.is-text {
    --el-button-text-color: #a72b2c;
    --el-button-bg-color: rgb(255 255 255);
    --el-button-border-color: rgb(167 43 44);
    --el-button-hover-text-color: var(--el-color-white);
    --el-button-hover-bg-color: #a72b2c;
    --el-button-hover-border-color: #a72b2c;
    --el-button-active-text-color: var(--el-color-white);
}
.el-button.is-disabled, .el-button.is-disabled:hover {
    background-color: rgb(10 9 10);
    background-image: none;
    border-color: rgb(213 70 70);
    color: var(--el-button-disabled-text-color);
    cursor: not-allowed;
}
.el-button--success {
    --el-button-text-color: var(--el-color-white);
    --el-button-bg-color: #831818;
    --el-button-border-color: #831818;
    --el-button-outline-color: #b05454;
    --el-button-active-color: #831818;
    --el-button-hover-text-color: var(--el-color-white);
    --el-button-hover-link-text-color: rgb(176 84 84);
    --el-button-hover-bg-color: #831818;
    --el-button-hover-border-color: #924141;
    --el-button-active-bg-color: rgb(131 24 24);
    --el-button-active-border-color: #831818;
    --el-button-disabled-text-color: var(--el-color-white);
    --el-button-disabled-bg-color: rgb(176 84 84);
    --el-button-disabled-border-color: rgb(143 64 64);
}



@media (max-width: 768px) {
  /* Scope only rows that contain an item image preview */
  .row.m-0:has(.item-image-preview) > .col-3.p-0 {
    -ms-flex: 0 0 25%;
    flex: 0 0 45%;
    max-width: 35%;
  }

  .row.m-0:has(.item-image-preview) > .col-9.p-0 {
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 65%;
  }

  /* Vertically center the image inside its fixed-height box */
  .row.m-0:has(.item-image-preview) .el-image {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.button-fixed-buttom {
    bottom: 0;
    right: 0;
    z-index: 5;
}

.list-item-rows .button-fixed-buttom .el-button {
  --el-button-bg-color: #b52d18 !important;
  --el-button-text-color: #fff !important;
  --el-button-border-color: #b52d18 !important;
  --el-button-hover-bg-color: #992514 !important;
  --el-button-hover-text-color: #fff !important;
  --el-button-hover-border-color: #992514 !important;
  --el-button-active-bg-color: #7a1e10 !important;
  --el-button-active-border-color: #7a1e10 !important;
}

.modal-content #item-details .item_s:first-child .el-image {
  height: 250px !important;
}

/* ============================================
   Mobile App Section - Premium Red Design
   ============================================ */

/* Desktop Animations */
@keyframes floatAnimationDesktop {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Animation */
@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Desktop - Remove height from download buttons container */
@media (min-width: 992px) {
  .tree-columns-center .row.mt-4 .d-flex {
    height: 0px;
  }
}

/* ============================================
   Add to Cart Flying Animation
   ============================================ */
@keyframes flyToCart {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  30% {
    opacity: 1;
    transform: translate(0, -30px) scale(0.8);
  }
  70% {
    opacity: 0.8;
    transform: translate(var(--tx), var(--ty)) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.1);
  }
}

.flying-item {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  animation: flyToCart 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.flying-item .cart-icon-wrapper {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3ecf8e 0%, #2eb87c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(62, 207, 142, 0.5);
  border: 3px solid #fff;
}

.flying-item .cart-icon-wrapper i {
  font-size: 24px;
  color: #fff;
}

/* Cart icon pulse effect */
@keyframes cartPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.cart-pulse {
  animation: cartPulse 0.4s ease-in-out;
}

/* ============================================
   Restaurant Card - Compact Design
   ============================================ */

/* Reduce restaurant card content padding */
.rounded-box .p-2 {
    padding: 0.4rem 0.5rem !important;
}

/* Restaurant name size - readable - NO margin for mb-2 class */
.rounded-box .font-weight-bold {
    font-size: 14px !important;
    line-height: 1.3;
}

/* Specific rule: if it has mb-2 class, margin is 0 */
.rounded-box .font-weight-bold.mb-2 {
    margin-bottom: 0 !important;
}

/* Otherwise keep small margin */
.rounded-box .font-weight-bold:not(.mb-2) {
    margin-bottom: 0.1rem !important;
}

/* Remove ALL mb-2 margins inside restaurant cards */
.rounded-box .mb-2,
.rounded-box .my-2,
.rounded-box .p-2 > .mb-2,
.rounded-box .p-2 > div.mb-2,
.rounded-box div.mb-2,
.rounded-box .row.mb-2 {
    margin-bottom: 0 !important;
}

/* Cuisine text size - small and compact */
.rounded-box .font-weight-light {
    font-size: 10px !important;
    margin-bottom: 0.15rem !important;
    line-height: 1.1;
}

/* Ratings and time section - compact */
.rounded-box .row.align-items-center.no-gutters,
.rounded-box .p-2 > .row.mb-2 {
    font-size: 11px !important;
    margin-bottom: 0.15rem !important;
}

.rounded-box .row.align-items-center.no-gutters i {
    font-size: 13px !important;
}

/* Delivery Information Section - Compact */
.delivery-info-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 0.35rem !important;
    margin-top: 0.15rem !important;
}

.delivery-info-section .d-flex {
    font-size: 10px !important;
}

.delivery-info-section .text-center {
    padding: 0 0.2rem;
}

.delivery-info-section .mb-1 {
    margin-bottom: 0.1rem !important;
}

.delivery-info-section i {
    font-size: 15px !important;
    line-height: 1;
}

.delivery-info-section .text-muted {
    font-size: 10px !important;
    line-height: 1.1;
}

.delivery-info-section .font-weight-bold {
    font-size: 11px !important;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rounded-box .p-2 {
        padding: 0.5rem !important;
    }
    
    .rounded-box .font-weight-bold {
        font-size: 15px !important;
    }
    
    .delivery-info-section i {
        font-size: 16px !important;
    }
    
    .delivery-info-section .text-muted {
        font-size: 11px !important;
    }
    
    .delivery-info-section .font-weight-bold {
        font-size: 12px !important;
    }
    .mb-2, .my-2 {
      margin-bottom: .0rem !important;
  }
  }

/* Remove hover effects from restaurant cards completely */
a.rounded-box.no-hover:hover,
a.rounded-box.no-hover:hover *,
a.rounded-box.no-hover:hover div,
a.rounded-box.no-hover:hover h5,
a.rounded-box.no-hover:hover h6,
a.rounded-box.no-hover:hover p,
a.rounded-box.no-hover:hover span,
a.rounded-box.no-hover:hover i {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Ensure no visual changes on hover for restaurant cards */
a.rounded-box.no-hover:hover {
  transform: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Styling for closed restaurant badge */
.badge-closed {
  display: inline-block;
  background-color: #dc3545 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  line-height: 1.2;
}