/* 
  Umami Ryokan - Design System 
  Theme: Modern Ryokan (Red/White/Black)
*/

:root {
  /* Palette */
  --color-primary: #a50008;
  /* Darker Red as requested */
  --color-primary-dark: #991B1B;
  --color-text: #111827;
  /* Ink Black */
  --color-text-light: #6B7280;
  /* Gray */
  --color-bg: #F9FAFB;
  /* Paper White */
  --color-surface: #FFFFFF;
  /* Pure White */

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Header */
.header {
  height: var(--header-height);
  background-color: var(--color-primary);
  /* Red Background */
  border-bottom: 1px solid #991B1B;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Header Container Override */
.header .container {
  max-width: 95%;
  /* Wider than body container */
  width: 95%;
}

.header-content {
  display: flex;
  align-items: center;
  width: 100%;
  color: white;
  /* Removed justify-content: space-between to allow margin-auto alignment */
}

.logo {
  height: 50px;
  width: auto;
}

.header-title {
  font-size: 1.25rem;
  /* Enlarged from 0.9rem */
  font-weight: 500;
  opacity: 0.9;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 1rem;
  height: 30px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* Prevent wrapping */
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  /* Pushes Nav and Cart to the right */
  margin-right: 2rem;
  /* Space between Nav and Cart */
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.btn-add-simple {
  background-color: var(--color-primary);
  color: white;
  border: none;
  width: auto;
  padding: 0.5rem 1.5rem;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0% 100%, 0% 30%);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-add-simple:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

.btn-add-simple:active {
  transform: scale(0.95);
}

/* Balance Beverages */
#beverages .menu-img-container {
  height: 120px;
  padding: 0.5rem;
}

#beverages .menu-details {
  padding: 1rem;
}

#beverages h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Header Cart Hover */
.header-cart:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
}

.hero-img-overlay {
  max-width: 800px;
  margin: 0 auto 2rem;
  display: block;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-location {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

/* Menu Section */
.menu-section {
  padding: 5rem 0;
}

.menu-title {
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 3rem;
}

.menu-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0.5rem auto 0;
}

.category-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-subtitle {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* Removed gap, using padding for spacing to center borders */
  /* align-items: start; Removed to allow stretch for equal separator heights */
}

.menu-category {
  position: relative;
  padding: 0 2rem;
  /* Increased padding to balance spacing around border */
}

.menu-category:not(:last-child) {
  border-right: 3px solid rgba(0, 0, 0, 0.1);
  /* Thicker separator */
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Stack items in the column */
  gap: 2rem;
}

@media (max-width: 900px) {
  .menu-columns {
    grid-template-columns: 1fr;
    /* Stack on mobile/tablet */
  }
}

.menu-item {
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.menu-img-container {
  height: 250px;
  background-color: rgb(222, 204, 175);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.badge-bestseller {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  /* Smaller size as requested */
  height: auto;
  z-index: 10;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}

.menu-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.menu-details {
  padding: 1.5rem;
  text-align: center;
}

.price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Footer / Contact */
.footer {
  background-color: rgb(222, 204, 175);
  color: var(--color-text);
  padding: 4rem 0 2rem;
  text-align: center;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

/* Currency Icon */
.currency-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Add-on Buttons */
.addon-container {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-addon {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-addon:hover {
  border-color: var(--color-primary);
  background: #fff5f5;
}

.addon-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.footer h3 {
  color: var(--color-text);
  /* Changed to black/text color as requested */
  margin-bottom: 2rem;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

.qr-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr-img {
  width: 150px;
  height: 150px;
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Added shadow for pop */
}

.qr-label {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
  /* Dark text */
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Lighter dark border */
  padding-top: 2rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .nav-links {
    display: none;
  }

  /* Simplified mobile for now */
  .qr-container {
    flex-direction: column;
  }
}

/* Cart Dropdown */
.cart-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  z-index: 1000;
  color: var(--color-text);
  margin-top: 0.5rem;
}

.cart-dropdown.active {
  display: block;
}

.cart-dropdown-header {
  font-weight: 700;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-dropdown-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cart-dropdown-total {
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-reset-cart {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  width: 100%;
}

.btn-reset-cart:hover {
  background: #dc2626;
}

/* Scrollbar for cart list */
.cart-items-list::-webkit-scrollbar {
  width: 6px;
}

.cart-items-list::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 3px;
}