/* ========== GLOBAL ========== */
body {
    margin: 0;
    padding: 0;
    background-color: #f9f7f4;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* ========== HEADER ========== */
  header {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid #e3e0da;
    background-color: #f4f2ed; /* match About header */
  }
  
  .logo h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2rem;
    margin: 0;
    color: #3d3129;
  }
  
  .logo span {
    display: block;
    font-weight: 400;
    font-size: 1.1rem;
    color: #8a7465;
    letter-spacing: 0.5px;
  }
  
  nav {
    margin-top: 0.8rem;
  }
  nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  
  nav a {
    color: #7d6554;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
  }
  
  nav a:hover {
    color: #b89c84;
  }

  /* Active nav link */
  nav a.active {
    color: #b89c84;
  }

  /* About-style tagline under the site title */
  .tagline {
    margin: 0.25rem 0 0;
    color: #8a7465;
    font-size: 1rem;
  }
  
  /* ========== GALLERY LAYOUT ========== */
  .gallery-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1rem;
    box-sizing: border-box;
  }
  
  /* ----- Sidebar (Left Panel) ----- */
  .sidebar {
    flex: 0 0 360px; /* locked width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
  }
  
  /* Series buttons */
  .series-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .series-buttons button {
    background-color: #f5efe8;
    border: 1px solid #d2c5b5;
    color: #6a594b;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, color 0.25s ease;
  }
  
  .series-buttons button:hover,
  .series-buttons button.active {
    background-color: #d2c5b5;
    color: #fff;
  }
  
  /* Thumbnails grid */
  .thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
    box-sizing: border-box;
    justify-items: center;
  }
  
  .thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .thumbnails img:hover {
    transform: scale(1.05);
    opacity: 1;
  }
  
  .thumbnails img.active {
    border: 2px solid #8a7465;
    opacity: 1;
  }
  
  /* ----- Main display (Right Panel) ----- */
  .main-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }
  
  .main-display img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease-in-out;
  }
  
  .painting-title {
    margin-top: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #6d5c50;
  }
  
/* ========== FOOTER ========== */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 1.5rem 0;
  color: #888;
  border-top: 1px solid #e3e0da;
  margin-top: 3rem;
}

/* ========== CART PAGE ========== */
.cart { 
  padding: 3rem 1rem; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  min-height: 70vh; 
}
.cart h2 {
  font-family: 'Playfair Display', serif;
  color: #5a463c;
  margin: 0 0 1rem;
}
.cart-box {
  background: #fff;
  width: 100%;
  max-width: 880px;
  border-radius: 12px;
  border: 1px solid #e8e2da;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 1.25rem;
}
.cart-table-wrap { overflow-x: auto; }
.cart-table { 
  width: 100%; 
  border-collapse: collapse; 
}
.cart-table th, .cart-table td { 
  text-align: left; 
  padding: .75rem .6rem; 
  border-bottom: 1px solid #eee; 
}
.cart-table th { 
  color: #5a463c; 
  font-weight: 600; 
  border-bottom: 2px solid #e6dfd6; 
}
.cart-total-row td { font-weight: 600; color:#5a463c; }
.cart-empty { text-align:center; color:#7a6a61; padding:2rem 0; }
.cart-actions { 
  display:flex; 
  justify-content:center; 
  gap:.75rem; 
  margin-top: 1rem; 
}
.btn { 
  display:inline-block; 
  padding:.7rem 1.2rem; 
  border:none; 
  border-radius:8px; 
  text-decoration:none; 
  cursor:pointer; 
}
.btn-primary { background:#b48a76; color:#fff; }
.btn-primary:hover { background:#a4745d; }
.btn-ghost { background:transparent; color:#6a594b; border:1px solid #d2c5b5; }
.btn-ghost:hover { background:#f5efe8; }

/* Small remove link in cart */
.remove-link { color:#a55; text-decoration:none; font-size:20px; line-height:1; }
.remove-link:hover { color:#7a2222; }

@media (max-width: 640px) {
  .cart-box { padding: .9rem; }
  .cart-table th, .cart-table td { padding: .6rem .4rem; font-size:.95rem; }
}

  /* ========== RESPONSIVE ========== */
  @media (max-width: 1000px) {
    .gallery-layout {
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }
  
    .sidebar {
      width: 100%;
    }
  
    .thumbnails {
      grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
      max-height: none;
      overflow-y: visible;
    }
  
    .main-display img {
      max-height: 70vh;
    }
  }
  
  /* ========== SCROLLBAR STYLE ========== */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #d2c5b5;
    border-radius: 6px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: #bda896;
  }
  
