/* ================ */
/* HOME PAGE STYLES */
/* ================ */

/* Base Styles */
.fd-home {
    --primary-color: #f03250;
    --primary-dark: #f03250;
    --text-color: #2d333f;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius: 12px;
  }
  
  /* Hero Section */
  .fd-hero {
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    padding: 80px 0;
  }
  
  .fd-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .fd-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.5;
  }
  
  .fd-hero h1 span {
    color: var(--primary-color);
    display: block;
  }
  
  .fd-search-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 5px;
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow);
  }
  
  .fd-location-picker {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
  }
  
  .fd-location-picker i {
    color: var(--primary-color);
    margin-right: 10px;
  }
  
  .fd-location-picker input {
    border: none;
    padding: 15px 10px;
    flex: 1;
    font-size: 1rem;
  }
  
  .fd-location-picker input:focus {
    outline: none;
  }
  
  .fd-locate-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
  }
  
  .fd-search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .fd-search-btn:hover {
    background: var(--primary-dark);
  }
  
  /* Section Styles */
  .fd-section {
    padding: 50px 0;
  }
  
  .fd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
  }
  
  .fd-section h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
  }
  
  .fd-view-all {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .fd-view-all:hover {
    text-decoration: underline;
  }
  
  /* Categories Grid */
  .fd-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }
  
  .fd-category-card {
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
    text-align: center;
  }
  
  .fd-category-card:hover {
    transform: translateY(-5px);
  }
  
  .fd-category-image {
    width: 100%;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--light-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .fd-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .fd-category-icon {
    color: var(--primary-color);
    font-size: 2rem;
  }
  
  .fd-category-card h3 {
    font-size: 1rem;
    margin: 0 0 5px 0;
  }
  
  .fd-category-count {
    font-size: 0.8rem;
    color: #666;
  }
  
  /* Restaurant Grid */
  .fd-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .fd-restaurant-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  }
  
  .fd-restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  
  .fd-restaurant-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
  }
  
  .fd-restaurant-image {
    height: 180px;
    position: relative;
    overflow: hidden;
  }
  
  .fd-restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  
  .fd-restaurant-card:hover .fd-restaurant-image img {
    transform: scale(1.05);
  }
  
  .fd-restaurant-info {
    padding: 20px;
  }
  
  .fd-restaurant-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
  }
  
  .fd-restaurant-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .fd-rating {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .fd-stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1rem;
    font-family: Times;
    line-height: 1;
  }
  
  .fd-stars::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg, #FFD700 var(--percent), #ccc var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .fd-delivery-info {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
  }
  
  .fd-delivery-time {
    display: block;
  }
  
  .fd-delivery-fee {
    display: block;
  }
  
  .fd-restaurant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
    font-size: 0.9rem;
  }
  
  .fd-min-order {
    color: var(--text-color);
    font-weight: 500;
  }
  
  .fd-cuisine-type {
    color: var(--primary-color);
    font-weight: 500;
  }
  
  /* How It Works */
  .fd-how-it-works {
    background: var(--light-gray);
    text-align: center;
  }
  
  .fd-how-it-works h2 {
    margin-bottom: 60px;
  }
  
  .fd-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .fd-step {
    position: relative;
  }
  
  .fd-step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
    position: relative;
  }
  
  .fd-step-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
  }
  
  .fd-step-icon span {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }
  
  .fd-step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .fd-step p {
    color: #666;
    margin: 0;
  }
  
  /* App CTA */
  .fd-app-cta {
    background: var(--primary-color);
    color: var(--white);
  }
  
  .fd-app-content {
    display: flex;
    align-items: center;
    gap: 60px;
  }
  
  .fd-app-text {
    flex: 1;
  }
  
  .fd-app-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
  }
  
  .fd-app-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
  }
  
  .fd-app-buttons {
    display: flex;
    gap: 15px;
  }
  
  .fd-app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    font-size: 0.8rem;
    transition: transform 0.3s;
  }
  
  .fd-app-btn:hover {
    transform: translateY(-3px);
  }
  
  .fd-app-btn i {
    font-size: 1.8rem;
  }
  
  .fd-app-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  
  .fd-app-btn strong {
    font-size: 1.1rem;
  }
  
  .fd-app-store {
    background: #000;
  }
  
  .fd-play-store {
    background: #3bccff;
  }
  
  .fd-app-image {
    flex: 1;
    text-align: center;
  }
  
  .fd-app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .fd-hero h1 {
      font-size: 2.8rem;
    }
    
    .fd-app-content {
      flex-direction: column;
      text-align: center;
    }
    
    .fd-app-buttons {
      justify-content: center;
    }
  }
  
  @media (max-width: 768px) {
    .fd-hero {
      min-height: 60vh;
      padding: 60px 0;
    }
    
    .fd-hero h1 {
      font-size: 2.2rem;
    }
    
    .fd-search-container {
      flex-direction: column;
      background: transparent;
      box-shadow: none;
      gap: 10px;
    }
    
    .fd-location-picker {
      background: var(--white);
      border-radius: var(--border-radius);
      /* padding: 10px 15px; */
    }
    
    .fd-search-btn {
      width: 100%;
      padding: 15px;
    }
    
    .fd-section {
      padding: 20px 0;
    }
    
    .fd-app-buttons {
      flex-direction: column;
    }
  }
  
  @media (max-width: 576px) {
    .fd-hero h1 {
      font-size: 1.8rem;
    }
    
    .fd-category-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 15px;
    }
    
    .fd-restaurant-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Address Suggestions */
.fd-address-suggestions {
    position: absolute;
    width: 100%;
    max-width: 600px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
}

.fd-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.fd-suggestion-item:hover {
    background-color: #f5f5f5;
}

.fd-suggestion-item:last-child {
    border-bottom: none;
}

/* Search button loading state */
.fd-search-btn .fa-spinner {
    margin-right: 8px;
}

/* AutoCare Page */
.fd-AutoCare {
    padding: 30px 0;
}

.fd-AutoCare-header {
    margin-bottom: 30px;
    text-align: center;
}

.fd-AutoCare-header h1 {
    margin: 20px 0;
    font-size: 2rem;
}

.fd-AutoCare-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.fd-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fd-filter-group select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.fd-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.fd-no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px 0;
}

.fd-no-results i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.fd-no-results h3 {
    margin-bottom: 10px;
}

.fd-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.fd-pagination .page-numbers {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fd-pagination .current {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}


  
  /* ========== GENERAL RESET ========== */
  .fd-restaurant-card a {
    text-decoration: none;
    color: inherit;
  }
  
  /* ========== RESTAURANT GRID ========== */
  .fd-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  
  /* ========== CARD ========== */
  .fd-restaurant-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .fd-restaurant-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-4px);
  }
  
  /* ========== IMAGE ========== */
  .fd-restaurant-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
  }
  .fd-restaurant-card:hover .fd-restaurant-image img {
    transform: scale(1.03);
  }
  
  /* ========== INFO ========== */
  .fd-restaurant-info {
    padding: 16px;
  }
  .fd-restaurant-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #222;
  }
  .fd-restaurant-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
  }
  
  /* ========== META ========== */
  .fd-restaurant-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    align-items: center;
    margin-top: 8px;
  }
  .fd-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f39c12;
  }
  .fd-stars {
    font-size: 14px;
    color: #f39c12;
  }
  .fd-rating-number {
    color: #444;
    font-weight: 500;
  }
  .fd-delivery-info span {
    margin-left: 10px;
    color: #333;
  }
  
  /* ========== FOOTER ========== */
  .fd-restaurant-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #444;
  }
  .fd-min-order {
    font-weight: 500;
  }
  .fd-cuisine-type {
    background: #e0f2f1;
    color: #00796b;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
  }
  
  /* ========== VIEW ALL LINK STYLING ========== */
  .fd-view-all {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
  }
  .fd-view-all:hover {
    color: #0056b3;
    text-decoration: none;
  }
  
  /* ========== RESPONSIVE ========== */
  @media (max-width: 600px) {
    .fd-restaurant-grid {
      grid-template-columns: 1fr;
    }
  
    .fd-restaurant-card {
      border-radius: 12px;
    }
  
    .fd-restaurant-info {
      padding: 12px;
    }
  }
  .fd-view-all {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: underline;  /* <-- causes underline */
    font-weight: 500;
  }
  .fd-view-all:hover {
    color: #0056b3;
    text-decoration: none; /* removes underline on hover */
  }
  

  /*pageination */
  .fd-pagination {
    margin-top: 40px;
    text-align: center;
  }
  
  .fd-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .fd-pagination .page-numbers:hover {
    background-color: #007bff;
    color: #fff;
  }
  
  .fd-pagination .current {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
  }
  

  /*  */
  .fd-radius-title {
  background-color: #f0f4f8;
  color: #333;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 16px;
}

.fd-radius-title button#fd-clear-radius {
  background: transparent;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.fd-radius-title button#fd-clear-radius:hover {
  background-color: #007bff;
  color: #fff;
}
.text-red{
  color:red;
}
