/* Only wine page gets wood background */
.wine-page .wine-section {
  background-color: #e8e1de;
  background-repeat: repeat;
  background-size: auto;
  padding: 8rem 1rem 3rem; /* increased top padding to push content below nav */
  box-sizing: border-box;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: #1a1a1a;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  position: relative;
  z-index: auto;
}

.wine-page .grid-layout-wine {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .wine-page .wine-section {
    padding: 6rem 0.5rem 3rem; /* Reduced horizontal padding for mobile */
  }

  .wine-page .grid-layout-wine {
    grid-template-columns: 1fr 1fr; /* two equal columns */
    grid-template-areas:
      "left right"  /* left and right side by side on top */
      "center center"; /* center full width below */
    gap: 0.5rem; /* Reduced gap for mobile */
    padding: 0 0.25rem; /* Small padding to prevent edge clipping */
    align-items: stretch; /* Make both columns same height */
  }

  .wine-page .left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex items to shrink */
  }
  .wine-page .right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex items to shrink */
  }
  .wine-page .center {
    grid-area: center;
  }
}

.wine-page .center {
  background-color: #e3d5c0;
  background-image: url('/images/cuttingboardCropped.webp');
  background-size: cover;
  background-repeat: repeat;
  padding: 2rem;
  border-radius: 16px;
  box-shadow:
    inset 0 0 10px rgba(0,0,0,0.1),
    0 8px 20px rgba(0,0,0,0.15);
  border: 2px solid #d5c3aa;
  transition: all 0.3s ease;
}

.wine-page .center ul li {
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  padding: 0.5rem 0.8rem;
  font-weight: 500;
}

/* Fancy serif wine titles */
.wine-page .left h1,
.wine-page .right h1,
.wine-page #winePairingsBox h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* Mobile title consistency - FIXED */
@media (max-width: 768px) {
  .wine-page .left h2,
  .wine-page .right h2 {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    /* Increased height to accommodate "White Wine Pairings" (3 lines) */
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
  }
  
  .wine-page .left p,
  .wine-page .right p {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 1rem;
    /* Increased height to accommodate longer red wine paragraph */
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
  }

  /* Ensure bottle containers take remaining space and align bottoms */
  .wine-page .left .bottle-img-container,
  .wine-page .right .bottle-img-container {
    margin-top: auto; /* Push bottles to bottom */
    align-self: flex-end; /* Align to bottom of flex container */
    flex-shrink: 0; /* Prevent bottles from shrinking */
  }
}

/* Red Wine Title Better Visibility */
.wine-page .left h1 {
  color: #4b0000; /* deep red */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Pairing Section Titles */
#winePairingsBox h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #4b0000;
  font-family: 'Cinzel', serif;
  border-bottom: 1px solid #d7ccc8;
  padding-bottom: 0.5rem;
}

#winePairingsBox .pairing-category {
  margin-bottom: 1.5rem;
}

#winePairingsBox .pairing-category h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #2d2b29;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

/* Pairing Item Styles */
#winePairingsBox .pairing-category ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#winePairingsBox .pairing-category ul li {
  background-color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Remove bullets for wine lists */
#redWineList ul,
#whiteWineList ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Remove selected look completely */
#redWineList li.selected,
#whiteWineList li.selected {
  background-color: rgba(255, 255, 255, 0.9); /* same as normal */
  font-weight: normal;
  box-shadow: none;
}

/* Hover effect with more elegant contrast */
#redWineList li:hover {
  background-color: rgba(255, 229, 229, 0.8);
  color: rgba(80, 0, 0, 0.85);
}

#whiteWineList li:hover {
  background-color: rgba(255, 251, 224, 0.85);
  color: rgba(60, 50, 0, 0.8);
}

/* Bottle image container */
.wine-page .bottle-img-container {
  position: relative;
  width: 300px;      /* Try a bit larger */
  height: 955px;     /* Try a bit taller */
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Bottle image itself */
.wine-page .bottle-img-container img {
  width: 30px;
  height: 1000px;
  object-fit: contain;
  border-radius: 32px;
}

/* Red wine bottle: taller, wider, shifted up towards label */
.wine-page .left .bottle-img-container {
  width: 275px;
  height: 1125px;
  margin-bottom: 2rem;
  margin-left: 7px; /* shift right for better look */
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Mobile adjustments for red wine bottle */
@media (max-width: 768px) {
  .wine-page .left .bottle-img-container {
    width: 100%; /* Use full available width */
    max-width: 170px; /* Even wider */
    height: auto; /* Let content determine height */
    min-height: 450px; /* Minimum height for consistency */
    margin: 0 auto 1rem auto; /* Center it, no left margin */
  }
}

.wine-page .left .bottle-img-container img {
  width: 340px;
  height: 1200px;
  object-fit: contain;
  border-radius: 32px;
  margin-top: -80px; /* shift bottle up towards label */
}

/* Mobile adjustments for red wine bottle image */
@media (max-width: 768px) {
  .wine-page .left .bottle-img-container img {
    width: 150px; /* Slightly smaller to fit better */
    height: 450px; /* Same height as white wine bottle image */
    margin-top: 0; /* Reset margin */
  }
}

/* White wine bottle: much larger */
.wine-page .right .bottle-img-container {
  width: 275px;
  height: 1125px;
  margin-bottom: 2rem;
  margin-left: 15px; /* shift right for better look */
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Mobile adjustments for white wine bottle */
@media (max-width: 768px) {
  .wine-page .right .bottle-img-container {
    width: 100%; /* Use full available width */
    max-width: 170px; /* Even wider */
    height: auto; /* Let content determine height */
    min-height: 450px; /* Minimum height for consistency */
    margin: 0 auto 1rem auto; /* Center it, no left margin */
  }
}

.wine-page .right .bottle-img-container img {
  width: 340px;
  height: 1200px;
  object-fit: contain;
  border-radius: 32px;
  margin-top: -80px; /* shift bottle up towards label */
}

/* Mobile adjustments for white wine bottle image */
@media (max-width: 768px) {
  .wine-page .right .bottle-img-container img {
    width: 150px; /* Slightly smaller to fit better */
    height: 450px; /* Reduced height */
    margin-top: 0; /* Reset margin */
  }
}

/* Overlay label for wine list (optional: make a bit wider for new bottle sizes) */
.wine-page .bottle-label-list {
  position: absolute;
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 1rem 0.5rem;
  text-align: center;
  z-index: 10;
}

/* Mobile adjustments for wine label list */
@media (max-width: 768px) {
  .wine-page .bottle-label-list {
    width: 70%; /* Smaller width on mobile to fit better */
    max-width: 109px; /* Smaller max width */
    bottom: 20%; /* Adjust position */
    padding: 0.3rem 0.2rem; /* Smaller padding */
  }
}

.wine-page .bottle-label-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wine-page .bottle-label-list li {
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.3rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 1rem;
  color: #4b0c0c;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

/* Mobile adjustments for wine list items */
@media (max-width: 768px) {
  .wine-page .bottle-label-list li {
    padding: 0.2rem 0.25rem; /* Even smaller padding */
    font-size: 0.7rem; /* Smaller font */
    margin-bottom: 0.1rem; /* Less spacing */
    line-height: 1.1; /* Tighter line height */
  }
}

.wine-page .bottle-label-list li:last-child {
  margin-bottom: 0;
}
/*     Wine Pairings Box      */
/* -------------------------- */
#winePairingsBox {
  border-radius: 8px;
  padding: 1rem;
}
#winePairingsBox h2 {
  font-size: 1.5rem;
}
#winePairingsBox .pairing-category {
  margin-top: 1rem;
}
#winePairingsBox .pairing-category ul li {
  list-style-type: none;
}

/* -------------------------- */