*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clay:  #c97d52;
  --ochre: #d4a86a;
  --sand:  #f0e6d3;
  --linen: #faf6ef;
  --bark:  #3d2b1f;
  --moss:  #6b7c5c;
  --cream: #fffdf9;
  --ink:   #2a1e14;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--linen);
  color: var(--ink);
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: .45;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(250,246,239,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,125,82,.15);
  z-index: 100;
  animation: fadeDown .8s ease both;
}
@keyframes fadeDown { from { opacity:0; transform:translateY(-16px) } to { opacity:1; transform:none } }

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 300; letter-spacing: .06em;
  color: var(--bark); text-decoration: none;
}
.logo span { color: var(--clay); font-style: italic; }

nav ul { list-style: none; display: flex; gap: 2.2rem; }
nav ul a {
  text-decoration: none; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bark); font-weight: 400;
  position: relative; padding-bottom: 2px; transition: color .3s;
}
nav ul a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--clay);
  transition: width .35s ease;
}
nav ul a:hover { color: var(--clay); }
nav ul a:hover::after { width: 100%; }

.cart-btn {
  background: var(--clay); color: var(--cream);
  border: none; padding: .5rem 1.2rem; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: .5rem;
  transition: background .3s;
}
.cart-btn:hover { background: var(--bark); }
.cart-count {
  background: var(--ochre); color: var(--bark);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .68rem; display: grid; place-items: center; font-weight: 500;
}

/* ── LANG TOGGLE ── */
.lang-toggle {
  display: flex; align-items: center;
  border: 1px solid rgba(201,125,82,.35); overflow: hidden;
}
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .6rem; color: #9b7c66;
  transition: background .2s, color .2s; min-height: 32px;
}
.lang-toggle button.active { background: var(--clay); color: var(--cream); }
.lang-toggle button:not(.active):hover { color: var(--clay); }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: .5rem; z-index: 200;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--bark); transition: all .3s ease; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  background: rgba(250,246,239,.97); backdrop-filter: blur(10px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem; z-index: 150; padding: 6rem 2rem 3rem;
  transform: translateY(-100%); transition: transform .4s ease;
  border-bottom: 1px solid rgba(201,125,82,.15);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  text-decoration: none; font-size: 1.1rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bark); font-weight: 400;
  padding: .6rem 0; min-height: 44px; display: flex; align-items: center;
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--clay); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 5rem;
  animation: fadeLeft 1s .2s ease both;
}
@keyframes fadeLeft { from { opacity:0; transform:translateX(-30px) } to { opacity:1; transform:none } }

.hero-eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 36px; height: 1px; background: var(--clay);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--bark); margin-bottom: 1.6rem;
}
.hero h1 em { font-style: italic; color: var(--clay); }
.hero p {
  font-size: 1rem; line-height: 1.75; color: #6b5040;
  max-width: 38ch; margin-bottom: 2.6rem; font-weight: 300;
}
.btn-primary {
  display: inline-block; text-decoration: none;
  background: var(--bark); color: var(--sand);
  padding: .85rem 2.2rem; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, transform .2s; align-self: flex-start;
}
.btn-primary:hover { background: var(--clay); transform: translateY(-2px); }

.hero-image {
  position: relative; overflow: hidden;
  animation: fadeRight 1s .3s ease both;
}
@keyframes fadeRight { from { opacity:0; transform:translateX(30px) } to { opacity:1; transform:none } }
.hero-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,125,82,.18) 0%, transparent 60%);
  z-index: 1;
}
.canvas-label {
  background: rgba(250,246,239,.9); padding: .6rem 1rem;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bark); border-left: 2px solid var(--clay);
}

/* ── SECTION HEADINGS ── */
.section-header { text-align: center; padding: 5rem 2rem 3rem; }
.section-header .eyebrow {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: .8rem;
}
.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: ''; display: block; width: 28px; height: 1px; background: var(--clay);
}
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300;
  color: var(--bark); line-height: 1.2;
}

/* ── GALLERY ── */
.gallery {
  padding: 0 4rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.painting-card {
  position: relative; background: var(--cream);
  border: 1px solid rgba(201,125,82,.12);
  transition: transform .35s ease, box-shadow .35s ease;
  animation: fadeUp .7s ease both;
}
.painting-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(61,43,31,.12); }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:none } }
.painting-card:nth-child(2) { animation-delay: .1s; }
.painting-card:nth-child(3) { animation-delay: .2s; }
.painting-card:nth-child(4) { animation-delay: .3s; }
.painting-card:nth-child(5) { animation-delay: .4s; }
.painting-card:nth-child(6) { animation-delay: .5s; }

.painting-img { width: 100%; overflow: hidden; position: relative; }
.painting-img .canvas-art {
  width: 100%; height: auto; display: block; transition: transform .5s ease;
}
.painting-card:hover .canvas-art { transform: scale(1.04); }

.sold-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bark); color: var(--sand);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .7rem;
}
.painting-info { padding: 1.3rem 1.4rem 1.6rem; }
.painting-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400; color: var(--bark); margin-bottom: .3rem;
}
.painting-meta { font-size: .72rem; color: #9b7c66; letter-spacing: .06em; margin-bottom: 1rem; }
.painting-bottom { display: flex; align-items: center; justify-content: space-between; }
.painting-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300; color: var(--clay);
}
.add-btn {
  background: transparent; border: 1px solid var(--clay);
  color: var(--clay); padding: .45rem 1rem;
  font-family: 'Jost', sans-serif; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: all .25s;
}
.add-btn:hover { background: var(--clay); color: var(--cream); }
.add-btn:disabled { border-color: #bbb; color: #bbb; cursor: default; }
.add-btn:disabled:hover { background: transparent; color: #bbb; }

/* ── ABOUT ── */
.about {
  background: var(--bark);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 420px;
}
.about-portrait {
  background: linear-gradient(160deg,#8b6b4a,#5c3d28,#c4a07a,#3d2b1f);
  min-height: 340px;
}
.about-text {
  padding: 5rem 4.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.about-text .eyebrow {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ochre); margin-bottom: 1.2rem;
}
.about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 300; color: var(--sand);
  line-height: 1.25; margin-bottom: 1.4rem;
}
.about-text p { color: #c4a882; font-size: .95rem; line-height: 1.8; font-weight: 300; max-width: 42ch; }

/* ── CONTACT ── */
#contact { background: var(--sand); padding: 5rem 2rem; text-align: center; }
.contact-inner { max-width: 560px; margin: 0 auto; }
.contact-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; color: var(--bark); margin-bottom: 1rem;
}
.contact-inner p { color: #6b5040; line-height: 1.8; margin-bottom: 2.2rem; font-weight: 300; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--cream); border: 1px solid rgba(201,125,82,.25);
  font-family: 'Jost', sans-serif; font-size: .9rem; color: var(--ink);
  outline: none; transition: border-color .25s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--clay); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button {
  background: var(--clay); color: var(--cream); border: none;
  padding: .9rem 2.4rem; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s; align-self: flex-start;
}
.contact-form button:hover { background: var(--bark); }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: #9b8070;
  padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; letter-spacing: .08em;
}
footer .logo { color: var(--sand); font-size: 1.2rem; }

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(42,30,20,.5);
  z-index: 500; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 380px;
  background: var(--cream); z-index: 600;
  transform: translateX(100%); transition: transform .35s ease;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(42,30,20,.15);
}
.cart-drawer.open { transform: none; }
.cart-header {
  padding: 1.8rem; border-bottom: 1px solid rgba(201,125,82,.15);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; color: var(--bark);
}
.close-cart { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--bark); }
.cart-items { flex: 1; overflow-y: auto; padding: 1.2rem 1.8rem; }
.cart-empty { text-align: center; padding: 3rem 0; color: #9b7c66; font-size: .9rem; }
.cart-item {
  display: flex; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid rgba(201,125,82,.1);
  animation: fadeUp .3s ease;
}
.cart-item-thumb { width: 64px; height: 64px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; color: var(--bark); margin-bottom: .2rem;
}
.cart-item-info p { font-size: .78rem; color: #9b7c66; }
.cart-item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; color: var(--clay); align-self: center;
}
.remove-item {
  background: none; border: none; cursor: pointer;
  color: #bbb; font-size: .9rem; align-self: flex-start;
  margin-top: .2rem; transition: color .2s;
}
.remove-item:hover { color: var(--clay); }
.cart-footer { padding: 1.5rem 1.8rem; border-top: 1px solid rgba(201,125,82,.15); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem;
}
.cart-total span:first-child { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #9b7c66; }
.cart-total span:last-child { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--bark); }
.checkout-btn {
  width: 100%; background: var(--bark); color: var(--sand);
  border: none; padding: 1rem; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; transition: background .3s;
}
.checkout-btn:hover { background: var(--clay); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bark); color: var(--sand);
  padding: .75rem 1.8rem; font-size: .8rem; letter-spacing: .08em;
  opacity: 0; transition: all .35s; z-index: 900; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(42,30,20,.92); backdrop-filter: blur(6px);
}
.lightbox-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: min(90vw, 860px); max-height: 92vh;
  transform: scale(.94); transition: transform .35s ease;
}
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-img-wrap {
  overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 78vh;
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 78vh; object-fit: contain; display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-info {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 0 0; gap: 1rem;
}
.lightbox-meta { color: var(--sand); }
.lightbox-meta h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; margin-bottom: .2rem; }
.lightbox-meta p { font-size: .75rem; color: #c4a882; letter-spacing: .06em; }
.lightbox-price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--ochre); white-space: nowrap; }
.lightbox-close {
  position: fixed; top: 1.4rem; right: 1.6rem;
  background: none; border: 1px solid rgba(240,230,211,.25);
  color: var(--sand); font-size: 1.1rem; cursor: pointer;
  width: 40px; height: 40px; display: grid; place-items: center;
  transition: background .2s, border-color .2s; z-index: 2;
}
.lightbox-close:hover { background: rgba(240,230,211,.1); border-color: var(--ochre); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(240,230,211,.2);
  color: var(--sand); font-size: 1.2rem; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center;
  transition: background .2s, border-color .2s; z-index: 2;
}
.lightbox-nav:hover { background: rgba(240,230,211,.1); border-color: var(--ochre); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero { grid-template-columns: 1fr; grid-template-rows: 50vw auto; min-height: unset; }
  .hero-image { order: -1; }
  .hero-image img { min-height: unset !important; height: 100%; }
  .hero-text { padding: 2.5rem 1.8rem 3rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .section-header { padding: 3.5rem 1.5rem 2rem; }
  .gallery { padding: 0 1.2rem 4rem; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

  .about { grid-template-columns: 1fr; }
  .about-portrait { min-height: 280px; }
  .about-text { padding: 3rem 1.8rem; }

  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .cart-drawer { width: 100%; }

  .btn-primary { padding: 1rem 2rem; min-height: 44px; }
  .add-btn { min-height: 44px; padding: .6rem 1rem; }
  .cart-btn { min-height: 44px; }
  .checkout-btn { min-height: 52px; font-size: .85rem; }
}

/* ── RESPONSIVE — PHONE ── */
@media (max-width: 480px) {
  .hero { grid-template-rows: 60vw auto; }
  .hero-text { padding: 2rem 1.2rem 2.5rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero p { font-size: .92rem; }

  .gallery { grid-template-columns: 1fr; padding: 0 1rem 3rem; gap: 1.2rem; }
  .painting-info { padding: 1rem 1.1rem 1.3rem; }
  .painting-info h3 { font-size: 1.15rem; }
  .painting-price { font-size: 1.3rem; }

  .section-header { padding: 2.5rem 1rem 1.5rem; }
  .about-text { padding: 2rem 1.2rem; }
  .about-text h2 { font-size: 1.9rem; }

  #contact { padding: 3rem 1.2rem; }
  .contact-inner h2 { font-size: 2rem; }

  .canvas-label { font-size: .65rem; }
  .toast { font-size: .75rem; padding: .65rem 1.2rem; white-space: normal; text-align: center; max-width: 85vw; }
  .lightbox-nav { display: none; }
  .lightbox-inner { max-width: 96vw; }
}

/* ── TOUCH DEVICES ── */
@media (hover: none) {
  .painting-card:hover { transform: none; box-shadow: none; }
  .painting-card:active { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(61,43,31,.1); }
  .btn-primary:hover { transform: none; }
  .btn-primary:active { background: var(--clay); }
}
