/* Basic styling for CapeChoiceRestaurants mobile web site */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fdfdfd;
  color: #333;
  line-height: 1.5;
}

/* Header styling */
header {
  background: #046a38; /* deep green reminiscent of Cape Cod pines */
  color: #fff;
  padding: 1rem 1.5rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0.05rem;
}

/* Site URL under the header title */
header .site-url {
  font-size: 0.8rem;
  color: #e0ffe4;
  margin-top: 0.1rem;
}
header .site-url a {
  color: #e0ffe4;
  text-decoration: none;
}
header .site-url a:hover {
  text-decoration: underline;
}

/* Navigation bar */
nav {
  display: flex;
  flex-wrap: wrap;
  background: #0b8457; /* lighter green for contrast */
  overflow-x: auto;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.9rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.2);
}

nav a:last-child {
  border-right: none;
}

nav a:hover {
  background: #0c975f;
}

/* Container for content */
.container {
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Alphabetical section headings */
.letter-section {
  margin-top: 2rem;
}

.letter-section h2 {
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #0b8457;
  padding-bottom: 0.25rem;
  color: #0b8457;
}

/* Restaurant list styling */
ul.restaurant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.restaurant-list li {
  background: #fff;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

ul.restaurant-list li a.name {
  font-weight: bold;
  color: #046a38;
  text-decoration: none;
}

ul.restaurant-list li .address,
ul.restaurant-list li .phone {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Category heading on category pages */
.category-heading {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: #046a38;
  text-align: center;
}

/* Letters index on home page */
.letters-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.letters-index a {
  padding: 0.4rem 0.6rem;
  background: #e6f4ea;
  color: #046a38;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

.letters-index a:hover {
  background: #d5ecd9;
}

/* Additional styles for clickable address and phone links */
ul.restaurant-list li a.address,
ul.restaurant-list li a.phone {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: #333;
  text-decoration: none;
}

ul.restaurant-list li a.address:hover,
ul.restaurant-list li a.phone:hover {
  text-decoration: underline;
}

/* Shop page styles */
.shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
  color: #046a38;
}

.product-card .price {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.product-card .buy-button {
  margin-top: auto;
  background: #0b8457;
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.product-card .buy-button:hover {
  background: #0c975f;
}