
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --bg: #100d0a;
  --panel: #1b1510;
  --gold: #c9945b;
  --cream: #f5e9d8;
  --muted: #a99b8c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input { font: inherit; }
button { cursor: pointer; }

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand span { color: var(--gold); }

/* REGISTRATION */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 15px;
  position: relative;
  overflow: hidden;
}

.auth-background {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(#100d0aee,#100d0aee),
    url('https://images.unsplash.com/photo-1442512595331-e89e73853f31?w=1600') center/cover;
  z-index: -1;
}

.auth-container {
  width: min(440px,100%);
  text-align: center;
}

.auth-subtitle {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 4px;
  margin: 12px 0 30px;
}

.auth-card {
  background: #1b1510f2;
  border: 1px solid #c9945b35;
  padding: 30px;
  text-align: left;
  border-radius: 9px;
  box-shadow: 0 20px 80px #0008;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 30px;
}

.auth-tab {
  padding: 12px;
  background: #292018;
  color: var(--muted);
  border: none;
}

.auth-tab.active {
  background: var(--gold);
  color: #160f09;
  font-weight: 800;
}

.auth-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 29px;
}

.auth-card form > p {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 25px;
}

.auth-card label {
  display: block;
  font-size: 12px;
  margin: 18px 0 8px;
  color: var(--cream);
}

.auth-card input {
  width: 100%;
  padding: 14px;
  background: #100d0a;
  color: white;
  border: 1px solid #ffffff20;
  outline: none;
}

.auth-card input:focus {
  border-color: var(--gold);
}

.main-btn {
  display: inline-block;
  border: none;
  background: var(--gold);
  color: #170f08;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  transition: .3s;
}

.main-btn:hover {
  background: #e1b77f;
  transform: translateY(-2px);
}

.auth-card .main-btn {
  width: 100%;
  margin-top: 25px;
}

.hidden { display: none !important; }

#authMessage {
  font-size: 12px;
  color: var(--gold);
  margin-top: 15px;
  text-align: center;
}

.auth-bottom {
  color: #75675a;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 30px;
}

/* SHOP HEADER */

.shop-header {
  height: 85px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #100d0a;
  border-bottom: 1px solid #ffffff15;
  position: sticky;
  top: 0;
  z-index: 10;
}

.shop-header nav {
  display: flex;
  gap: 30px;
}

.shop-header nav a {
  color: var(--muted);
  font-size: 13px;
}

.shop-header nav a:hover { color: var(--gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}

.cart-btn, .logout-btn {
  background: none;
  color: var(--gold);
  border: 1px solid #c9945b60;
  padding: 10px 13px;
}

.logout-btn { color: var(--muted); }

/* HERO */

.shop-hero {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 80px 8%;
  background:
    linear-gradient(90deg,#100d0a 5%,#100d0acc 50%,transparent),
    url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1800') center/cover;
}

.hero-content { max-width: 650px; }

.shop-label {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 11px;
  margin-bottom: 25px;
}

.shop-hero h1 {
  font-family: 'Playfair Display',serif;
  font-size: clamp(42px,7vw,80px);
  line-height: 1.1;
}

.shop-hero h1 span { color: var(--gold); }

.shop-hero p {
  color: #c0b3a5;
  line-height: 1.9;
  max-width: 460px;
  margin: 25px 0 35px;
}

.hero-btn { text-align: center; }

/* MENU */

.menu-section {
  padding: 100px 6%;
}

.section-heading { text-align: center; }

.section-heading > span,
.about-section > div > span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 4px;
}

.section-heading h2,
.about-section h2 {
  font-family: 'Playfair Display',serif;
  font-size: clamp(30px,5vw,48px);
  margin: 15px 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
}

.category-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.category {
  background: transparent;
  border: 1px solid #ffffff30;
  color: var(--cream);
  padding: 12px 22px;
}

.category.active,
.category:hover {
  background: var(--gold);
  color: #170f08;
  border-color: var(--gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.product {
  background: var(--panel);
  border: 1px solid #ffffff12;
  overflow: hidden;
  transition: .3s;
}

.product:hover {
  transform: translateY(-7px);
  border-color: var(--gold);
}

.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-info { padding: 22px; }

.product-info h3 {
  font-family: 'Playfair Display',serif;
  font-size: 22px;
}

.product-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0 20px;
  min-height: 40px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  color: var(--gold);
  font-weight: 800;
  font-size: 17px;
}

.add-btn {
  background: var(--gold);
  color: #170f08;
  border: none;
  padding: 11px 15px;
  font-weight: 800;
}

/* ABOUT */

.about-section {
  padding: 90px 8%;
  background: #19130e;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-section h2 { line-height: 1.3; }

.about-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* FOOTER */

footer {
  padding: 35px 6%;
  border-top: 1px solid #ffffff15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer p {
  color: var(--muted);
  font-size: 11px;
}

/* CART */

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #0009;
  z-index: 19;
}

.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: min(420px,100%);
  height: 100vh;
  background: #1b1510;
  z-index: 20;
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: .35s;
}

.cart-panel.open { right: 0; }

.cart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff20;
}

.cart-top h2 {
  font-family: 'Playfair Display',serif;
}

.cart-top button {
  background: none;
  color: white;
  border: 0;
  font-size: 22px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ffffff15;
  padding: 15px 0;
}

.cart-item small { color: var(--gold); }

.cart-item button {
  background: #3a2417;
  color: white;
  border: none;
  padding: 7px 10px;
}

.cart-bottom { padding-top: 20px; }

.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.total-line strong { color: var(--gold); }

.cart-bottom .main-btn { width: 100%; }

@media(max-width:850px) {
  .shop-header { padding: 0 4%; }
  .shop-header nav { display: none; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .about-section { grid-template-columns: 1fr; }
}

@media(max-width:550px) {
  .shop-header { height: auto; min-height: 75px; flex-wrap: wrap; gap: 10px; padding: 15px 4%; }
  .header-right { gap: 7px; }
  .header-right > span { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .shop-hero { min-height: 580px; padding: 60px 6%; }
  .menu-section { padding: 75px 5%; }
  .about-section { padding: 65px 6%; }
  .product img { height: 260px; }
}
