* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 125%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  /* Smooth scrolling globally */
}

/* Base increased for readability (~20px) */
/* Base: ~19.2px for improved readability */

body {
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  font-style: normal;
  font-weight: 400;
  background: #fffafc;
  color: #333333;
  /* Darker text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.8;
  /* more breathing room for readability */
  font-size: 1.05rem;
  /* slightly larger base text */
}

/* General readable text sizes for common elements */
p,
li,
label,
input,
textarea,
button {
  font-size: 1.05rem;
  line-height: 1.8;
}

input,
textarea,
button,
select,
option {
  font-size: 1rem;
  /* keep form controls comfortable but not oversized */
}

/* Use Gardez for headings and product titles only */
h1,
h2,
h3,
h4,
h5,
h6,
.product-name,
.product-title,
.related-product-name,
.related-products h2,
.cart-header h2 {
  font-family: 'Gardez', 'Playfair Display', serif !important;
  font-style: italic;
}

/* Keep form controls inheriting text font (monospace by default) */
input,
textarea,
button,
select,
option {
  font-family: inherit !important;
}

:root {
  /* Exact match for desktop header */
  --header-height: 10.5rem;
  --gallery-top-gap: 3vh;
}

/* Global reset */
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------------- HEADER ---------------- */

/* Top navigation bar grid */
.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 10.5rem;
  width: 100%;
  position: fixed;
  /* Fixed to viewport so it doesn't scroll off immediately */
  top: 0;
  z-index: 1001;
  background-color: #fffafc;
  padding-inline: 2rem;
  /* Horizontal padding only for vertical centering */
  box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
}

/* Sections */
.header-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

.header-center {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

/* Ensure body has padding to prevent header overlap */
body {
  padding-top: var(--header-height);
}

/* Base Logo Style (Desktop) */
.logo {
  max-height: 9.0rem;
  /* ~85-90% of 10.5rem header */
  width: auto;
  height: auto;
  display: block;
}

/* Response Order ID Styling */
.order-id {
  font-family: monospace;
  background: #f5f5f5;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  display: inline-block;
  margin: 1rem 0;
  /* Prevent overflow */
  word-break: break-all;
  max-width: 100%;
  /* Copy interaction */
  cursor: pointer;
  position: relative;
  border: 1px dashed #ccc;
  transition: background 0.2s;
}

.order-id:hover {
  background: #e9ecef;
  border-color: #aaa;
}

.order-id::after {
  content: 'Click to copy';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #888;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  font-family: sans-serif;
  white-space: nowrap;
}

.order-id:hover::after {
  opacity: 1;
}

.order-id.copied {
  background: #d3f9d8;
  border-color: #40c057;
  color: #2b8a3e;
}

.order-id.copied::after {
  content: 'Copied!';
  color: #2b8a3e;
  opacity: 1;
  font-weight: bold;
}

/* Mobile Header Adjustment */
/* Mobile Header Adjustment - Reserved for future tweaks */
/* @media (max-width: 768px) { } */

/* Sticky Scroll Title (Hidden by default, shown on scroll up) */
.header-sticky-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  font-family: 'Gardez', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
  /* Bigger on desktop: 24px-48px */
  color: #555555;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-transform: none;
}

.header-sticky-title.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

/* Hide logo when sticky title is active */
.logo-link.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon Buttons */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.12s ease, opacity 0.12s ease;
  position: relative;
  z-index: 1002;
}

.icon-btn>* {
  max-width: 1.8rem;
  /* Limit icon size */
  height: auto;
}

/* Wrapper for Cart Icon to anchor badge */
.cart-icon-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #8b8b8b;
  color: #fffafc;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700;
  font-size: 0.75rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 0 2px #fffafc;
  /* white ring to separate from icon */
}

.cart-badge.visible {
  display: flex;
}

/* Hover effect */
.icon-btn:hover {
  opacity: 0.98;
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --header-height: 7.0rem;
  }

  body {
    padding-top: 7.0rem;
    /* Explicit match to header */
  }

  /* Tall Header (User Req: 2x thicker) */
  .top-bar {
    padding-inline: 0.75rem;
    height: var(--header-height) !important;
    /* ~112px */
    gap: 0.25rem;
    grid-template-columns: 1fr auto 1fr;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: auto !important;
  }

  .header-left,
  .header-right {
    flex-shrink: 0;
  }

  /* Reduce button size on mobile */
  .icon-btn {
    min-width: 30px;
    min-height: 30px;
    padding: 2px;
  }

  .icon-btn .icon-img {
    width: 20px;
    height: 20px;
  }

  .logo {
    max-height: 6.0rem;
    /* ~90% of 7rem header */
    max-width: 100%;
    height: auto;
    width: auto;
  }

  /* Sticky Title - Normal Size */
  .header-sticky-title {
    font-size: 1.2rem !important;
    /* Small for mobile */
    font-family: 'Gardez', 'Playfair Display', serif !important;
    font-style: italic;
    color: #ce0000;
    text-shadow: none;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
  }

  .header-sticky-title.visible {
    transform: translate(-50%, -50%);
  }

  /* Search Icon Hiding */
  #search-btn {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
    overflow: hidden;
  }

  #search-btn.hidden {
    opacity: 0;
    transform: scale(0) rotate(180deg);
    width: 0;
    min-width: 0;
    padding: 0;
    pointer-events: none;
  }

  .header-right {
    gap: 0.25rem;
  }

  main {
    margin-top: 0 !important;
    /* Zero gap request */
  }

  /* Cart Badge Position Fix */
  .cart-icon-wrapper {
    position: relative;
    overflow: visible;
  }

  .cart-badge {
    top: -12px;
    right: -12px;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.75rem;
    border: 1px solid #fffafc;
    background: #ce0000;
  }

  /* Menu Scroll Fix */
  .menu-content {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: scroll !important;
    padding-bottom: 300px !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding-inline: 0.5rem;
    height: 7.0rem !important;
    grid-template-columns: min-content 1fr min-content;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .logo {
    max-height: 5.5rem;
    /* Big on small screen too */
    max-width: 160px;
  }

  main {
    margin-top: 0;
  }
}

/* ---------------- MAIN CONTENT ---------------- */
main {
  margin-top: 10px;
  /* push below sticky header */
}

/* ---------------- FOOTER ---------------- */

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid #e0e0e0;
  background: #fffafc;
  padding-bottom: 5rem;
  /* Space for secret message */
  min-height: 50px;
  /* reserve vertical space to prevent jumps */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 150px;
  /* reserve space for links & text */
  box-sizing: border-box;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  min-height: 30px;
  /* reserve height for link row */
}

.footer-link {
  font-size: 0.7rem;
  color: #8b8b8b;
  text-decoration: none;
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  transition: color 0.25s ease;
  position: relative;
  line-height: 1rem;
  /* reserve vertical space for text */
  min-width: 50px;
  /* reserve width to prevent layout jump */
  display: inline-block;
  /* keep width consistent */
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0.02rem;
  left: 0;
  width: 0;
  /* start at 0 width for animation */
  height: 1px;
  background-color: #8b8b8b;
  transition: width 0.25s ease;
}

.footer-link:hover {
  color: #6b6b6b;
}

.footer-link:hover::after {
  width: 100%;
}

.copyright {
  font-size: 0.75rem;
  color: #8b8b8b;
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  margin: 0;
  line-height: 1rem;
  /* reserve vertical space */
  min-height: 1rem;
  /* prevent jumps when font loads */
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    min-height: 60px;
    /* enough for 2 rows of links at mobile font size */
  }


  .copyright {
    font-size: 0.7rem;
  }

  .footer-link {
    font-size: 0.65rem;
  }
}


.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0.02rem;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #8b8b8b;
  transition: width 0.25s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-link:hover {
  color: #6b6b6b;
}

.copyright {
  font-size: 0.75rem;
  color: #8b8b8b;
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  margin: 0;
  line-height: 1rem;
  min-height: 1rem;
  /* reserve vertical space */
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-height: auto;
  }

  .copyright {
    font-size: 0.7rem;
  }

  .footer-link {
    font-size: 0.65rem;
  }
}

/* ---------------- FONT PRELOAD (for CLS) ---------------- */
@font-face {
  font-family: 'Gardez';
  src: url('../fonts/gardez/Gardez-ExtraBoldItalic.woff2') format('woff2'),
    url('../fonts/gardez/Gardez-ExtraBoldItalic.woff') format('woff'),
    url('../fonts/gardez/Gardez-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gardez';
  src: url('../fonts/gardez/Gardez-ExtraBoldItalic.woff2') format('woff2'),
    url('../fonts/gardez/Gardez-ExtraBoldItalic.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}




/* Ensure all text uses paler colors */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: #8b8b8b;
}

/* Use Gardez for headings and product titles only (lowercase) */
h1,
h2,
h3,
h4,
h5,
h6,
.product-name,
.product-title,
.related-product-name,
.related-products h2,
.cart-header h2 {
  font-family: 'Gardez', 'Playfair Display', serif !important;
  font-style: italic;
  text-transform: lowercase;
}

/* Icon buttons: larger hitboxes for touch; do not span full header height to avoid vertical extension */
.icon-btn {
  opacity: 0.85;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 1rem;
  /* small vertical padding + horizontal */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.12s ease, transform 0.12s ease;
  min-height: 48px;
  /* recommended touch target */
  min-width: 48px;
  /* recommended touch target */
  width: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
  transform-origin: center;
  border-radius: 8px;
}

/* subtle scale for icons except the fixed menu close button */
.icon-btn:not(.menu-close):hover {
  opacity: 0.98;
  transform: scale(1.03);
}

/* Icon images */
.icon-img {
  width: clamp(0.9rem, 1.6vw + 0.9rem, 2.6rem);
  /* responsive: shrinks on small screens */
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.menu-btn .icon-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* keep menu icon visually centered in its button */
}

.menu-btn .menu-icon,
.menu-btn .close-icon {
  transition: opacity 0.2s;
}

.menu-btn,
.back-btn {
  grid-column: 1;
}

/* Position search icon right of logo */
.search-btn {
  grid-column: 4;
}

/* Position cart icon far right */
.cart-btn {
  grid-column: 5;
}

/* Cart Modal Styles (shared with product page) */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90%;
  height: 100%;
  background: #fffafc;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cart-overlay.active .cart-content {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.cart-header h2 {
  font-size: 1.5rem;
  color: #8b8b8b;
  margin: 0;
  font-family: 'Gardez', 'Inter', serif;
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.cart-items {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 1rem;
  color: #8b8b8b;
  margin: 0 0 0.5rem 0;
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  font-weight: 600;
}

/* .cart-badge styles moved to header section */

.cart-item-price {
  font-size: 0.95rem;
  color: #9b9b9b;
  margin: 0 0 0.5rem 0;
}

.cart-item-size {
  font-size: 0.8rem;
  color: #9b9b9b;
  margin: 0 0 0.5rem 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cart-qty-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #e0e0e0;
  background: #fffafc;
  color: #8b8b8b;
  cursor: pointer;
  font-family: inherit;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #8b8b8b;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.empty-cart {
  text-align: center;
  padding: 2rem;
  color: #9b9b9b;
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  display: block;
}

.cart-overlay:not(.active) {
  display: none !important;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid #e0e0e0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.45rem;
  /* larger total */
  color: #8b8b8b;
  margin-bottom: 1rem;
  font-family: inherit;
}

.checkout-btn {
  width: 100%;
  padding: 1.15rem;
  border: 1px solid #8b8b8b;
  background: #fffafc;
  color: #8b8b8b;
  font-family: inherit;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.checkout-btn:hover {
  background: #8b8b8b;
  color: #fffafc;
}

.cart-badge {
  position: absolute;
  /* top-right overlap inside icon button */
  top: 6px;
  right: 6px;
  background: #8b8b8b;
  color: #fffafc;
  border-radius: 50%;
  width: 1.35rem;
  height: 1.35rem;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700;
  font-style: normal !important;
  font-size: 0.78rem;
  line-height: 1;
  display: none;
  /* hidden until first item is added */
  align-items: center;
  justify-content: center;
}

/* Make sure cart-badge shows when JS toggles it */
.cart-badge.visible {
  display: flex;
}

@media (max-width: 768px) {
  .cart-content {
    width: 100%;
  }
}

/* --- Menu Overlay --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  /* Smoother fade in/out using cubic-bezier */
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  background: #fffafc;
  padding: 3rem 0.5rem;
  width: min(420px, 60%);
  max-width: 420px;
  height: 100%;
  position: relative;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  border-radius: 0;
  z-index: 5100;
  left: 0;
  /* "Decelerate" curve: Slides in fast, slows down gently at the end */
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-overlay.active .menu-content {
  transform: translateX(0);
}

/* --- Menu Close Button (X) --- */
.menu-close {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  /* Ensure click area is generous */
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10000;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-overlay.active .menu-close {
  display: flex;
}

.menu-close img,
.menu-close .icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.menu-close:hover,
.menu-close:focus,
.menu-close:active {
  opacity: 0.98;
  outline: none;
  /* Fix transform order: translate matches base state */
  transform: translateX(-50%) scale(1.1);
}

.menu-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 139, 139, 0.12);
}

/* Social Icons in Menu */
.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: #8b8b8b;
  transition: color 0.25s ease;
}

.menu-link:hover .menu-icon {
  color: #4a4a4a;
}

/* --- Menu Navigation Links --- */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

/* Container: 90% Width, Handles Background Transition */
.menu-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  width: 90%;
  margin: 0.3rem auto;
  border-radius: 4px;

  cursor: pointer;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;

  /* Smooth background fade */
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text Box: Inline-Block (Hugs text length for underline) */
.menu-link-text {
  display: inline-block;
  max-width: none;
  /* Removed constraint */
  padding: 0.85rem 0.85rem;
  box-sizing: border-box;
  text-align: left;
  white-space: normal;
  /* Allow wrap */
  overflow: visible;
  /* Show all text */
  text-overflow: clip;
  position: relative;

  /* Smooth text color change matches background speed */
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State */
.menu-link.active {
  background-color: rgba(0, 0, 0, 0.07);
}

.menu-link.active .menu-link-text {
  color: #4a4a4a;
  font-weight: 700;
}

/* Underline Animation */
.menu-link-text::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.1rem;
  height: 1px;
  background: #8b8b8b;
  transform-origin: left;

  /* Hardware accelerated transform */
  transform: scaleX(0) translateZ(0);

  /* Sophisticated easing for the line drawing */
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.8;
}

.menu-link:hover .menu-link-text::after,
.menu-link:focus .menu-link-text::after {
  transform: scaleX(1) translateZ(0);
}

/* --- Menu Header/Title --- */
.menu-header {
  padding: 0 2rem;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  margin-top: 0;
}

.menu-title-wrapper {
  display: inline-block;
  padding-top: 2rem;
  text-align: center;
}

.menu-title {
  font-size: clamp(0.8rem, 2vw, 1rem);
  /* Much smaller to fit */
  font-weight: 800;
  font-family: 'Gardez', 'Playfair Display', serif;
  font-style: italic;
  color: #6b6b6b;
  display: block;
  line-height: 1.3;
  padding: 0.3rem 0.5rem;
  margin: 0 auto;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  /* NEVER wrap */
  max-width: 200px;
  /* Smaller max-width */
}

/* --- Separators & Utilities --- */
.menu-nav hr {
  border: none !important;
  width: 80%;
  margin: 1.25rem auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.15) !important;
  opacity: 0.95;
}

.menu-btn {
  margin-left: 0;
  min-width: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.right-icons {
  margin-right: 0;
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 139, 139, 0.12);
  border-radius: 6px;
}

/* Art Gallery - Responsive Column Layout */
.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem !important;
  /* Force no top padding */
  padding-top: 0 !important;
  /* Double force */
  margin-top: 0 !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Product Card */
.product-card {
  background: #fffafc;
  border-radius: 0;
  overflow: visible;
  /* allow hover scale to show beyond card */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease, width 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 240px;
  width: 100%;
  cursor: pointer;
  position: relative;
  /* so z-index works */
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  z-index: 6;
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: scale(0.95);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.product-card:hover .product-image {
  transform: scale(1.04);
  /* gentle pop on hover */
}

.product-info {
  padding: 0.5rem;
  text-align: center;
}

.product-title {
  font-size: clamp(0.95rem, 2.5vw, 1.5rem) !important;
  /* Balanced: 15px-24px */
  font-weight: 800;
  /* Bold */
  font-style: italic;
  /* Italic */
  margin-bottom: 0.2rem;
  margin-top: 0.4rem;
  color: #4f4f4f;
  font-family: 'Gardez', 'Playfair Display', serif !important;
  /* Restored Font */
  position: relative;
  display: inline-block;
  transition: color 0.25s ease;
  letter-spacing: -0.02em;
}

.product-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  /* Closer to text */
  left: 0;
  width: 0;
  height: 1px;
  background-color: #8b8b8b;
  transition: width 0.25s ease;
}

.product-card:hover .product-title {
  color: #6b6b6b;
}

.product-card:hover .product-title::after {
  width: 100%;
}

.product-price {
  font-size: 0.85rem;
  /* Smaller: ~14px */
  color: #6b6b6b;
  /* Darker grey as requested */
  font-weight: 500;
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fffafc;
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-container {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.search-input {
  flex: 1;
  box-sizing: border-box;
  /* Explicit height + matching line-height centers text vertically across browsers */
  padding: auto 1rem 0 1.8rem;
  padding-left: 14px;
  height: 2.6rem;
  line-height: 2.6rem;
  border: 1px solid #e0e0e0;
  background: #fffafc;
  color: #6b6b6b;
  font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .search-input {
    height: 2.4rem;
    line-height: 2.4rem;
    font-size: 1rem;
  }
}

.search-input:focus {
  border-color: #8b8b8b;
}

.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Badge improved scaling */
.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
}

.cart-badge {
  position: absolute;
  top: -0.4em;
  right: -0.4em;
  width: 1.4em;
  height: 1.4em;
  font-size: 0.7em;
  /* Scales with parent font-size */
  background: #6b6b6b;
  color: #fffafc;
  border-radius: 50%;
  border: 2px solid #fffafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  pointer-events: none;
  font-family: 'Inter', sans-serif !important;
  font-style: normal;
}

/* Responsive Design */
/* iPhone and mobile devices */
/* (Duplicate media query removed) */

.logo-link.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header-left,
.header-right {
  min-width: 90px;
  flex-shrink: 0;
}

.header-center {
  flex-shrink: 1;
  min-width: 0;
  overflow: visible !important;
  position: relative;
  flex-grow: 1;
}

/* (Duplicate styles removed) */

.icon-img {
  width: clamp(0.95rem, 4vw, 2.2rem);
  /* scales down on smaller devices */
  height: auto;
}

.product-image {
  transform: scale(0.9);
}

/* Hover override removed to allow scale up */

.search-container {
  padding: 1rem;
}

@media (max-width: 480px) {
  .art-gallery {
    padding: 0 1rem 1rem;
    /* Top padding removed */
    margin-top: 0px;
    gap: 1rem;
  }

  .product-image {
    transform: scale(0.9);
  }

  .product-title {
    font-size: 0.65rem;
  }

  .product-price {
    font-size: 0.6rem;
  }

  .icon-img {
    width: clamp(0.8rem, 4.5vw, 1.6rem);
    /* smaller icons on very small screens */
    height: auto;
  }
}

@media (min-width: 769px) {
  .art-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    max-width: 100%;
  }

  .product-card {
    max-width: 240px;
  }
}

@media (min-width: 900px) {
  .art-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .product-card {
    max-width: 220px;
  }
}

@media (min-width: 1100px) {
  .art-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .product-card {
    max-width: 240px;
  }
}

@media (min-width: 1400px) {
  .art-gallery {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1600px;
  }

  .product-card {
    max-width: 240px;
  }
}

/* Ensure fixed header doesn't overlap content */
.art-gallery,
.product-page,
.product-container {
  padding-top: 2rem !important;
  /* Good amount of whitespace */
}

@media (max-width: 768px) {
  .top-bar {
    padding-inline: 0.75rem;
    height: 6.5rem;
  }

  .logo {
    max-height: 5.5rem;
    max-width: 180px;
  }

  .art-gallery,
  .product-page,
  .product-container {
    padding-top: 1.5rem !important;
    /* Good amount of whitespace on mobile */
  }
}


/* ---------------- FOOTER ---------------- */
.footer {
  padding-bottom: 4rem;
  /* Space for secret message */
}

/* ---------------- HEADER ---------------- */

/* Top navigation bar grid */
.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* Increased height to fully encompass logo */
  height: 10.5rem;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1001;
  background-color: #fffafc;
  padding: 0 2rem;
  box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
}

/* ... logo ... */

/* Sticky Scroll Title */
.header-sticky-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  font-family: 'Gardez', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
  /* Bigger on desktop: 24px-48px */
  color: #555555;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  letter-spacing: -0.03em;
  text-transform: none;
  z-index: 1005;
  /* Ensure above logo */
}

/* Menu Title Overflow Fix */
.menu-title {
  font-family: 'Gardez', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  color: #6b6b6b;
  line-height: 1.1;
  padding: 0;
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 4.5vw, 3.5rem);
  max-width: 85vw;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-align: center;
}

@media (max-width: 480px) {
  .menu-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem) !important;
    /* Dynamic fit */
    max-width: 90vw;
    font-family: 'Gardez', 'Playfair Display', serif !important;
    font-style: italic;
    color: #6b6b6b;
    /* Reverted to old grey/silver */
  }
}

/* ---------------- IMAGES (Strict Portrait) ---------------- */
/* Main Gallery Images */
.product-image {
  width: 100%;
  aspect-ratio: 3/4;
  /* Force portrait shape */
  object-fit: contain;
  /* Do not crop */
  background-color: transparent;
  display: block;
}

/* Product Page Main Image */
.product-image-wrapper img,
#product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  /* Force portrait shape */
  object-fit: contain;
  /* Do not crop */
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

/* Performance Optimizations */
.product-image,
.header-sticky-title,
.secret-msg,
.logo-link {
  will-change: transform, opacity;
}

/* Secret Message Refined */
.secret-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #d1d1d1;
  font-family: 'Courier New', monospace;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.8s ease, color 0.3s ease;
  z-index: 50;
  cursor: default;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 1rem;
}

.secret-msg.visible {
  opacity: 0.6;
}

.secret-msg:hover {
  color: #6b6b6b;
}

/* Mobile secret message styling */
@media (max-width: 768px) {
  .secret-msg {
    font-size: 0.7rem;
    bottom: 1.5rem;
    letter-spacing: 0.08em;
    max-width: 90vw;
    white-space: nowrap;
  }

  .secret-msg.visible {
    opacity: 0.5;
  }
}

/* Sticky Scroll Title - Smooth Transition */
.header-sticky-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px) scale(0.9);
  font-family: 'Gardez', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 3.5rem;
  color: #444444;
  /* Better color - darker than #555 */
  opacity: 0;
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: -0.03em;
  text-transform: none;
  z-index: 1005;
  filter: blur(5px);
}

.header-sticky-title.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
  pointer-events: auto;
  filter: blur(0);
}

/* Logo fade improvement */
.logo-link.hidden {
  opacity: 0;
  pointer-events: none;
  filter: blur(3px);
  transition: all 0.5s ease;
}

/* Product Names - Darker */
.product-title,
.product-name,
.related-product-name {
  color: #2a2a2a !important;
  /* Much darker */
}

/* Typography defaults: headings use Gardez (if available), fallback to Playfair Display; body uses Inter */
/* If you use Adobe Fonts, add your kit script to the <head> of each page
   (e.g., <script src="https://use.typekit.net/xxxxxx.js"></script><script>try{Typekit.load({ async: true });}catch(e){}</script>) */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Gardez', 'Playfair Display', serif;
  font-weight: 800;
  font-style: italic;
  color: #8b8b8b;
  letter-spacing: 0.01em;
  /* slightly wider */
}

h1 {
  font-size: 3.4rem;
  line-height: 1.04;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2.6rem;
  line-height: 1.06;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 2.05rem;
  line-height: 1.08;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.6rem;
  line-height: 1.12;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.05rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #8b8b8b;
  color: #fffafc;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #6b6b6b;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 5rem;
    /* Above secret message */
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}