/* Reset default styles for consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #faf9f7;
  --header-height: 150px;
  --footer-height: 40px;
}

body:not(.home) {
  --header-height: 100px;
}

/* Header Styles */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 10px;
  width: 100%;
  top: 0;
  position: fixed;
  background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: padding 0.3s ease;
}

.title {
  text-align: center;
}

.logo {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  transition: max-width 0.3s ease;
}

.title h1 {
  font-family: "Roboto Mono", monospace;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 8px;
  text-transform: uppercase;
  transition: font-size 0.3s ease, letter-spacing 0.3s ease;
}

.title h1 a {
  color: inherit;
  text-decoration: none;
}

.title h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  color: #999;
  margin-top: 2px;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

nav ul li {
  margin: 0 18px;
}

nav ul li a {
  text-decoration: none;
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #b8860b;
  transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #1a1a1a;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Shrink header on subpages */
body:not(.home) header {
  padding: 6px 0;
}

body:not(.home) .logo {
  max-width: 80px;
}

body:not(.home) .header-top-right {
  padding-bottom: 2px;
}

body:not(.home) .title h1 {
  font-size: 0.85rem;
  letter-spacing: 5px;
}

body:not(.home) .title h2 {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Main Content */
main {
  padding-top: var(--header-height);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

/* Work Section */
.work {
  padding: 5px 5% 40px;
  background-color: #fff;
}

.work h3 {
  font-family: "Roboto Mono", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #2b2b2b;
  text-align: center;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.gallery {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease;
  width: 100%;
  touch-action: pan-y;
}

.gallery-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  padding: 0 5px;
}

.gallery-link {
  display: block;
  position: relative;
}

.gallery img {
  max-height: calc(100vh - var(--header-height) - var(--footer-height) - 50px);
  max-width: 100%;
  width: auto;
  height: auto;
  border: 2px solid #1a1a1a;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  margin-top: 5px;
}

@keyframes tap-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.65; }
  50%       { transform: scale(1.5); opacity: 0.2;  }
}

@keyframes tap-hint-fade {
  to { opacity: 0; }
}

.image-footer {
  text-align: center;
  padding: 14px 10px 4px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  color: #999;
  letter-spacing: 0.5px;
}

.footer-left {
  float: left;
}

.footer-right {
  float: right;
  margin-left: 5px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: #1a1a1a;
  border: none;
  padding: 14px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-nav:hover {
  color: #b8860b;
  background: rgba(255, 255, 255, 0.95);
}

.gallery-nav.prev {
  left: 0px;
}

.gallery-nav.next {
  right: 0px;
}

/* About Section */
.about {
  padding: 40px 10% 80px;
  background-color: #fff;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .content {
  max-width: 720px;
  margin: 0 auto;
}

.about h3 {
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #999;
  text-align: center;
}

.about-accent {
  width: 40px;
  height: 1px;
  background-color: #b8860b;
  margin: 0 auto 36px;
}

.about-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: #b8860b;
  text-align: center;
  margin: 0 auto 36px;
  padding: 0;
  border: none;
}

.about p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 1.4em;
  color: #444;
  text-align: left;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  padding: 40px 10% 80px;
  background-color: #fff;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact .content {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.contact h3 {
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #999;
  text-align: center;
}

.contact-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: #666;
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.6;
}

form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #888;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0ddd8;
  border-radius: 2px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #333;
  background-color: #faf9f7;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
  background-color: #fff;
}

form textarea {
  resize: vertical;
  min-height: 90px;
}

form button {
  background-color: #1a1a1a;
  color: #fff;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 2px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 12px;
}

form button:hover {
  background-color: #b8860b;
}

form button:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 2px;
}

/* Footer */
footer {
  padding: 10px 24px;
  background-color: #1a1a1a;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Roboto Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 1px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.footer-privacy-link {
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.footer-privacy-link:hover {
  color: #b8860b;
}

/* ── Cookie / Privacy consent banner ── */
#consent-banner {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  line-height: 1.6;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#consent-banner.consent-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.consent-text {
  margin: 0;
  flex: 1;
  min-width: 200px;
  color: #bbb;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.consent-link {
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b8860b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.consent-link:hover {
  color: #d4a030;
}

.consent-btn {
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #faf9f7;
  color: #1a1a1a;
  border: none;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.consent-btn:hover {
  background: #e8e7e4;
}

.consent-btn:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 2px;
}

/* ── Contact form inline feedback ── */
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  line-height: 1.6;
  border-radius: 2px;
}

.form-feedback--success {
  background: #f0f7f2;
  color: #2e6e42;
  border-left: 3px solid #4a7c59;
}

.form-feedback--error {
  background: #fdf2f2;
  color: #8b2222;
  border-left: 3px solid #c0392b;
}

/* Honeypot anti-spam field — must stay visually hidden */
.honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* ── Privacy policy page ── */
.privacy-updated {
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  color: #bbb;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 40px;
}

.privacy-heading {
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin: 2em 0 0.75em;
}

.privacy-list {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #444;
  padding-left: 1.5em;
  margin: 0 0 1.4em;
}

.privacy-list li {
  margin-bottom: 0.3em;
}

.privacy-policy .about p a,
.privacy-policy .privacy-list a {
  color: #b8860b;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
  transition: border-color 0.2s ease;
}

.privacy-policy .about p a:hover,
.privacy-policy .privacy-list a:hover {
  border-bottom-color: #b8860b;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  .title h1 {
    font-size: 1.1rem;
    letter-spacing: 5px;
  }
  .title h2 {
    font-size: 0.75rem;
  }
  .logo {
    max-width: 120px;
  }
  body:not(.home) .logo {
    max-width: 60px;
  }
  body:not(.home) .title h1 {
    font-size: 0.8rem;
    letter-spacing: 4px;
  }
  nav ul li {
    margin: 0 14px;
  }
  nav ul li a {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }
  .work, .about, .contact {
    padding: 20px 6% 50px;
  }
  .about-quote {
    font-size: 1.3rem;
  }
  .about p {
    font-size: 1.1rem;
  }
  .work h3, .about h3, .contact h3 {
    font-size: 2rem;
  }
  .gallery-item {
    padding: 0;
    text-align: center;
  }
  .gallery img {
    max-height: calc(100vh - var(--header-height) - var(--footer-height) - 50px);
    max-width: 100%;
    border-width: 1.5px;
  }
  .tap-hint {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 4;
    animation:
      tap-pulse   3s ease-in-out 1,
      tap-hint-fade 3s ease-in-out forwards;
  }
  .gallery-nav {
    font-size: 1rem;
    padding: 12px 10px;
  }
  .header-top-right {
    padding: 0 16px 4px 0;
  }
}

@media only screen and (max-width: 480px) {
  .title h1 {
    font-size: 0.9rem;
    letter-spacing: 4px;
  }
  .title h2 {
    font-size: 0.7rem;
  }
  .logo {
    max-width: 80px;
  }
  body:not(.home) .logo {
    max-width: 50px;
  }
  body:not(.home) .title h1 {
    font-size: 0.7rem;
    letter-spacing: 3px;
  }
  nav ul {
    flex-wrap: wrap;
  }
  nav ul li {
    margin: 4px 10px;
  }
  nav ul li a {
    font-size: 0.55rem;
  }
  .about p {
    font-size: 1rem;
  }
  .gallery img {
    max-height: calc(100vh - var(--header-height) - var(--footer-height) - 50px);
    max-width: 100%;
    border-width: 1px;
  }
  .gallery-nav {
    font-size: 0.9rem;
    padding: 10px 8px;
  }
  .header-top-right {
    padding: 0 12px 2px 0;
    gap: 10px;
  }
}

/* Landscape mobile: collapse header to a single thin row */
@media only screen and (max-height: 600px) and (orientation: landscape) {
  body {
    --header-height: 50px;
  }
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    min-height: 0;
  }
  .title {
    order: 1;
    text-align: left;
    flex-shrink: 0;
  }
  .title h2 {
    display: none;
  }
  .title h1 {
    font-size: 0.72rem;
    letter-spacing: 4px;
  }
  nav {
    order: 2;
    flex: 1;
  }
  nav ul {
    margin-top: 0;
    justify-content: center;
  }
  nav ul li {
    margin: 0 10px;
  }
  nav ul li a {
    font-size: 0.55rem;
    letter-spacing: 2px;
  }
  .header-top-right {
    order: 3;
    align-self: center;
    padding: 0;
    gap: 10px;
  }
  .work {
    padding-top: 2px;
    padding-bottom: 8px;
  }
  .gallery img {
    max-height: calc(100vh - var(--header-height) - var(--footer-height) - 8px);
  }
}

/* ═══════════════════════════════════════════
   Gallery link (clickable images)
   ═══════════════════════════════════════════ */
.gallery-link {
  display: inline-block;
  position: relative;
  line-height: 0;
  cursor: pointer;
}

.gallery-link:hover .gallery-img {
  opacity: 0.88;
  transition: opacity 0.3s ease;
}

.gallery-link::after {
  content: 'View';
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 26, 26, 0.75);
  padding: 8px 24px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.gallery-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════
   Header top-right (lang switcher + cart)
   ═══════════════════════════════════════════ */
.header-top-right {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px 6px 0;
}

/* ═══════════════════════════════════════════
   Language switcher — drop-up
   ═══════════════════════════════════════════ */
.lang-switcher {
  position: relative;
  display: inline-block;
}

/* Always-visible trigger showing the active flag */
.lang-trigger {
  background: none;
  border: 2px solid #b8860b;
  border-radius: 3px;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.lang-trigger:hover {
  opacity: 0.8;
}

/* Drop-up popup — hidden by default, appears above the trigger */
.lang-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(18, 18, 18, 0.88);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-switcher.open .lang-popup {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Flag buttons inside the popup */
.lang-flag {
  background: none;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  padding: 2px;
  opacity: 0.65;
  display: flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lang-flag:hover {
  opacity: 1;
}

/* Hide the currently selected language from the popup */
.lang-popup .lang-flag.active {
  display: none;
}

/* ═══════════════════════════════════════════
   Currency picker
   ═══════════════════════════════════════════ */
.currency-picker {
  display: flex;
  align-items: center;
}

.currency-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6rem;
  padding: 2px 18px 2px 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease, color 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 8px 5px;
}

.currency-select:hover,
.currency-select:focus {
  border-color: #b8860b;
  color: rgba(255, 255, 255, 0.8);
}

.currency-select option {
  background: #1a1a1a;
  color: #ccc;
}

/* ═══════════════════════════════════════════
   Product topbar right group
   ═══════════════════════════════════════════ */
.product-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ═══════════════════════════════════════════
   Cart button (shared: header + product topbar)
   ═══════════════════════════════════════════ */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #999;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.cart-btn:hover {
  color: #b8860b;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  background: #b8860b;
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 0.55rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 4px;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   Cart overlay & drawer
   ═══════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.cart-drawer-header h2 {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b2b2b;
  margin: 0;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.cart-drawer-close:hover {
  color: #2b2b2b;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: #999;
  text-align: center;
  padding: 40px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid #1a1a1a;
  border-radius: 2px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: #2b2b2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-detail {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  color: #999;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  margin-top: 2px;
}

.cart-item-price {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  color: #b8860b;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.cart-qty-btn {
  background: #f5f5f5;
  border: none;
  width: 28px;
  height: 26px;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
  line-height: 1;
}

.cart-qty-btn:hover {
  background: #e8e6e1;
  color: #2b2b2b;
}

.cart-qty-val {
  width: 30px;
  text-align: center;
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  color: #2b2b2b;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  line-height: 26px;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #ccc;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 10px;
}

.cart-item-remove:hover {
  color: #c0392b;
}

.cart-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
}

.cart-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary {
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cart-total {
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: 0.5px;
}

/* ── Checkout button (inside cart drawer footer) ── */
.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 13px 24px;
  margin-top: 14px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-checkout-btn:hover:not(:disabled) {
  background: #b8860b;
}

.cart-checkout-btn:disabled {
  background: #888;
  cursor: wait;
}

/* ── Sold badge on product page ── */
.sold-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  background: #c0392b;
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  vertical-align: middle;
}

.option-group.sold {
  opacity: 0.5;
  pointer-events: none;
}

.sold-badge.unavailable-badge {
  background: #555;
}

/* ── Success / Cancel message pages ── */
.message-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 20px;
}

.message-card {
  text-align: center;
  max-width: 480px;
}

.message-icon {
  margin-bottom: 24px;
}

.message-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 16px;
}

.message-text {
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.8;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.message-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.message-btn:hover {
  background: #b8860b;
}

/* ═══════════════════════════════════════════
   Product page
   ═══════════════════════════════════════════ */
.product-page {
  background: #faf9f7;
}

.product-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-back:hover {
  color: #b8860b;
}

.product-back svg {
  transition: transform 0.2s ease;
}

.product-back:hover svg {
  transform: translateX(-3px);
}

.product-main {
  padding-top: 56px;
  min-height: 100vh;
}

.product-image-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 5%;
  min-height: 40vh;
  background: #fff;
}

.product-image-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.product-image-wrap img {
  max-height: 60vh;
  max-width: 88vw;
  width: auto;
  height: auto;
  border: 2px solid #1a1a1a;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  animation: productFadeIn 0.6s ease both;
}

@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-details {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  animation: productFadeIn 0.6s ease 0.15s both;
}

.product-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #2b2b2b;
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.3;
}

.product-meta {
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  color: #999;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.product-divider {
  width: 40px;
  height: 2px;
  background: #b8860b;
  margin: 32px auto;
}

.product-options-heading {
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  text-align: center;
  margin: 0 0 24px;
}

/* Option groups */
.product-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-group {
  border: 1px solid #e8e6e1;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.option-group.selected {
  border-color: #b8860b;
  box-shadow: 0 0 0 1px #b8860b;
}

/* Custom checkbox */
.option-checkbox {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: #2b2b2b;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s ease;
  margin: 0;
}

.option-label-text {
  flex: 1;
}

.option-price {
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  color: #b8860b;
  letter-spacing: 0.5px;
  margin-left: auto;
  transition: opacity 0.3s ease;
}

.option-checkbox:hover {
  background: #faf9f7;
}

.option-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  margin-right: 14px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-checkbox input:checked ~ .checkmark {
  background: #b8860b;
  border-color: #b8860b;
}

.option-checkbox input:checked ~ .checkmark::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Sub-options (framed / unframed) */
.sub-options {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #faf9f7;
  border-top: 0 solid #e8e6e1;
  transition: max-height 0.35s ease, padding 0.35s ease, border-top-width 0.1s ease;
}

.sub-options.active {
  max-height: 80px;
  padding: 12px 20px 16px;
  border-top-width: 1px;
}

/* Custom radio */
.option-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  color: #555;
  letter-spacing: 0.5px;
  margin-right: 28px;
  user-select: none;
  -webkit-user-select: none;
  padding: 4px 0;
}

.option-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.option-radio input:checked ~ .radio-mark {
  border-color: #b8860b;
}

.option-radio input:checked ~ .radio-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #b8860b;
  border-radius: 50%;
}

/* Product total */
.product-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  margin-top: 20px;
  border-top: 1px solid #e8e6e1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
  margin-top: 0;
  padding: 0 20px;
}

.product-total.visible {
  opacity: 1;
  max-height: 70px;
  margin-top: 20px;
  padding: 18px 20px;
}

.product-total-label {
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}

.product-total-amount {
  font-family: "Roboto Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: 0.5px;
}

/* Add to Cart button */
.add-to-cart-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 32px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: #b8860b;
}

.add-to-cart-btn:disabled {
  background: #d5d5d5;
  color: #aaa;
  cursor: not-allowed;
}

.add-to-cart-btn:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   Toast notification
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #2b2b2b;
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 12px 30px;
  border-radius: 3px;
  z-index: 2000;
  transition: bottom 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.toast.show {
  bottom: 32px;
}

/* ═══════════════════════════════════════════
   Product page responsive
   ═══════════════════════════════════════════ */
@media only screen and (max-width: 768px) {
  .product-image-wrap img {
    max-height: 50vh;
    max-width: 92vw;
    border-width: 4px;
  }
  .product-details {
    padding: 30px 20px 70px;
  }
  .product-title {
    font-size: 1.5rem;
  }
  .product-image-wrap img {
    border-width: 2px;
  }
}

@media only screen and (max-width: 480px) {
  .product-topbar {
    padding: 12px 16px;
  }
  .product-image-wrap img {
    max-height: 40vh;
    max-width: 95vw;
    border-width: 3px;
  }
  .product-details {
    padding: 24px 16px 60px;
  }
  .product-title {
    font-size: 1.3rem;
  }
  .option-checkbox {
    padding: 14px 16px;
    font-size: 1.05rem;
  }
  .sub-options.active {
    padding: 10px 16px 14px;
  }
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }
  .product-image-wrap img {
    border-width: 1px;
  }
  .gallery-link::after {
    display: none;
  }
}