/* =============================== */
/* PAGE BASE + LAYOUT              */
/* =============================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
}

/* Main content spacing (header + bottom nav offset) */
.main-content {
  padding: 100px 15px 80px; /* top padding for header, bottom for mobile nav */
}

/* =============================== */
/* SECTION: LOCATION BAR           */
/* =============================== */
.location-header {
  background: #112B53;
  color: #fff;
  font-weight: 500;
  text-align: center;
  padding: 10px 0;
  position: sticky;
  top: 80px;
  z-index: 900;
}

.location-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.location-content .dot {
  width: 6px;
  height: 6px;
  background: #4CAF50;
  border-radius: 50%;
}

#detected-city {
  font-weight: 600;
}

#delivery-time {
  color: #FFD700;
}

/* =============================== */
/* SECTION: CAROUSEL               */
/* =============================== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
}

.carousel button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

@media (max-width: 768px) {
  .carousel-slide img { height: 250px; }
}

@media (max-width: 480px) {
  .carousel-slide img { height: 200px; }
  .carousel button { font-size: 16px; padding: 6px; }
}

/* =============================== */
/* SECTION: GRID CARDS             */
/* =============================== */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 230px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content { padding: 15px; }

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 10px 0 5px;
  color: #333;
}

.card-desc {
  font-size: 0.95rem;
  color: #666;
}

@media (max-width: 600px) {
  .card { max-width: 100%; }
}

/* =============================== */
/* HEADINGS                        */
/* =============================== */
h1 {
  font-size: 2rem;
  text-align: center;
  margin: 20px 0;
}


/* Override responsive button */
.index-page .responsive-btn {
    background-color: #1a1f71; /* deep navy blue */ 
    color: #FFD700; /* golden yellow */ 
    font-size: 1.2rem; 
    padding: 15px 30px; 
    width: 250px; /* increased width */ 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    text-align: center;
}

.index-page .button-container {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
    height: 5vh;             /* adjust as needed */
    width: 100%;             /* full width */
    margin: 0 auto;          /* center if needed */
}

/* Hover effect */


/* Focus effect */
.index-page .responsive-btn:focus {
    outline: 2px solid #001F3F;
    outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .index-page .responsive-btn {
        width: 100%;
        font-size: 1rem;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .index-page .responsive-btn {
        font-size: 0.95rem;
        padding: 14px 20px;
    }
}

/* Index page footer override */
.index-page .footer {
    background-color: #001F3F; /* deep navy blue */
    color: #FFD700;            /* golden yellow */
    padding: 40px 20px;
    text-align: center;
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif;
}

.index-page .footer p {
    margin: 8px 0;
}

/* Footer responsive */
@media (max-width: 768px) {
    .index-page .footer {
        font-size: 1rem;
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .index-page .footer {
        font-size: 0.9rem;
        padding: 25px 10px;
    }
}