/* Loading Screen */
.lod {
  background: #fe0000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fe0000;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.Loading_logo {
  max-width: 200px;
  height: auto;
  animation: pulse 1.5s infinite;
  margin: 0 !important;
  position: relative;
  /* Removed the margin-top to ensure proper centering */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.lod.fade-out {
  opacity: 0;
  pointer-events: none;
}
/* Banner Slider */
.slider-container {
  background-image: url("../../backgroundimages/back.jpg");
  width: 100%;
  max-width: 1600px;
  overflow: hidden;
  background-size: contain;
  position: relative;
}

.slider-wrapper {
  display: flex;
  gap: 50px;
  padding: 20px;
  overflow: visible;
  cursor: grab;
  transform: translateX(0);
  transition: transform 0.4s ease;
  user-select: none;
  margin: 0 auto;
  width: calc(100% - 40px);
}

.slider-wrapper:active {
  cursor: grabbing;
}

.slide {
  height: 100%;
  flex: 0 0 calc(60% - 40px);
  min-width: calc(60% - 40px);
  aspect-ratio: 16/9;
  transform-origin: center;
  position: relative;
  left: calc(20% + 20px);
  transition: transform 0.4s ease;
}

.slide-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  transform: scale(0.85);
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.7;
}

.slide.active .slide-inner {
  transform: scale(1.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.slide-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-slider {
  padding: 10px 0;
  background: white;
  direction: rtl;
}

.category-item {
  display: inline-block;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: auto;
}

.category-item.active {
  color: #fe0000;
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background-size: cover;
  background-position: center;
  border: 2px solid #eee;
  transition: all 0.3s ease;
}

.category-item.active .category-icon {
  border-color: #fe0000;
  transform: scale(1.1);
}

.category-name {
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
}

/* Featured Stores Section */
.featured-stores-section {
  background: #fe0000;
}

.section-title {
  text-align: center;
  background: #fe0000;
  color: white;
  padding: 2px;
  margin: 0;
}
/* Store Card Image Fixes */
.card-product {
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: 100%;
}

.card-product:hover {
  transform: translateY(-5px);
}

/* Image container with fixed aspect ratio */
.card-product .text-center {
  position: relative;
  padding-bottom: 100%; /* 1:1 Aspect ratio */
  height: 0;
  overflow: hidden;
}

/* Image styling */
.card-product .img-fluid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important; /* Changed from cover to contain */
  margin: 0 !important;
}

/* Status badge positioning */
.card-product .position-absolute {
  z-index: 2;
  padding: 5px;
}

.card-product .badge {
  padding: 6px 12px;
  border-radius: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-product .text-center {
    padding-bottom: 100%; /* Maintain aspect ratio on mobile */
  }
  /* Featured stores image container */
  #featured-stores .card-product .text-center {
    padding-bottom: 76%;
  }
}

/* Drinks Sidebar */
.drink_side {
  position: fixed;
  z-index: 1000;
  right: 0;
  top: 350px;
  background: #fe0000;
  border-radius: 20px 0 0 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.drink_side:hover {
  transform: translateX(-5px);
}

.drink_side div {
  background: url(../../image/icons/1.png) no-repeat;
  background-size: 120%;
  background-position: center;
  width: 56px;
  height: 59px;
}

.drink_side p {
  margin: 0;
  background: #0c0101;
  color: white;
  width: 100%;
  text-align: center;
  padding: 5px;
}

/* Search Form */
.index_form {
  max-width: 600px;
  margin: 0 auto;
}

.index_form input {
  height: 50px;
  border-radius: 25px !important;
  padding-right: 20px;
}

.index_form button {
  border-radius: 0 25px 25px 0 !important;
  width: 50px;
  background: transparent;
}

/* Slick Slider Customization */
.slick-track {
  display: flex;
  align-items: stretch;
}

.slick-slide {
  height: auto;
  margin: 0 10px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .slide {
    flex: 0 0 calc(65% - 40px);
    min-width: calc(65% - 40px);
    left: calc(17.5% + 20px);
  }

  .category-icon {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 768px) {
  .slide {
    flex: 0 0 calc(70% - 40px);
    min-width: calc(70% - 40px);
    left: calc(15% + 20px);
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-name {
    font-size: 12px;
  }

  .drink_side {
    top: 250px;
  }
}

@media (max-width: 480px) {
  .slide {
    flex: 0 0 calc(80% - 40px);
    min-width: calc(80% - 40px);
    left: calc(10% + 20px);
  }

  .category-icon {
    width: 45px;
    height: 45px;
  }

  .Loading_logo {
    background-color: #fe0000;
    max-width: 350px;
  }

  .store-name {
    font-size: 14px;
  }
}

@keyframes storeLoading {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.store-loading {
  position: relative;
  opacity: 0;
}

.store-entry-animation {
  animation: storeLoading 0.3s ease-out forwards;
}

/* Section Loading Spinner */
.section-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #fe0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
