/* Variables */
:root {
  --terracotta: #e35336;
  --terracotta-dark: #cb5324;
  --cream: #faf5ef;
  --blush: #f2e5d8;
  --charcoal: #2a2219;
  --mid: #6b5c4e;
  --light-border: #e3d5c8;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --nav-h: 64px;
  --announce-h: 40px;
  --transition: 0.25s ease;
  --shadow-soft: 0 4px 24px rgba(42,34,25,0.09);
  --shadow-hover: 0 8px 32px rgba(42,34,25,0.15);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* Announcement Bar */
.announcement-bar {
  background: var(--charcoal);
  color: var(--cream);
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 200;
}

.close-announcement {
  position: absolute;
  right: 20px;
  color: var(--cream);
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.close-announcement:hover { opacity: 1; }

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-border);
  height: var(--nav-h);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-right { justify-content: flex-end; gap: 16px; }

.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--charcoal);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--terracotta); }

.nav-logo {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.02em;
  text-align: center;
}

.icon-btn {
  color: var(--charcoal);
  display: flex;
  align-items: center;
  transition: color var(--transition);
  position: relative;
}
.icon-btn:hover { color: var(--terracotta); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.cart-count.bump { transform: scale(1.4); }

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,245,239,0.97);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}
.search-box input {
  flex: 1;
  border: none;
  border-bottom: 2px solid var(--charcoal);
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--charcoal);
  padding: 8px 0;
  outline: none;
}
.search-box input::placeholder { color: var(--mid); opacity: 0.6; }
.search-box button {
  font-size: 1.4rem;
  color: var(--mid);
  transition: color var(--transition);
}
.search-box button:hover { color: var(--terracotta); }

.search-results {
  margin-top: 32px;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-border);
  cursor: pointer;
  transition: opacity var(--transition);
}
.search-result-item:hover { opacity: 0.7; }
.search-result-item img { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; }
.search-result-item span { font-size: 0.9rem; }
.search-result-item strong { display: block; }

/* Hero */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h) - var(--announce-h));
  min-height: 480px;
  background: url('images/landing_page.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(42,34,25,0.62) 0%, rgba(42,34,25,0.1) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: clamp(40px, 8vw, 120px);
  animation: fadeUp 0.9s ease both;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 100;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--charcoal);
  padding: 12px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--white);
  transition: background var(--transition), color var(--transition);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

/* Inverted for use on cream bg */
section:not(.hero) .btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
section:not(.hero) .btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--charcoal);
  padding: 12px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--charcoal);
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.full-width { width: 100%; text-align: center; }

/* Marquee Banner */
.marquee-bar {
  background: var(--terracotta);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.marquee-track {
  display: inline-flex;
  gap: 32px;
  animation: marquee 26s linear infinite;
}

.marquee-track .dot { font-size: 0.5rem; opacity: 0.6; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Sections */
.section-pad { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }

/* Product Grids */
.featured-grid {
  display: grid;
  grid-template-columns: 260px repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.featured-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--terracotta);
  line-height: 1.25;
  padding-top: 16px;
}

.beadwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.beadwork-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 16px;
}
.beadwork-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--terracotta);
  line-height: 1.25;
}

/* Product Card */
.product-card {
  cursor: pointer;
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--blush);
}

.product-img-wrap img {
  transition: transform 0.45s ease;
  height: 100%;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(to top, rgba(42,34,25,0.55) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.product-card:hover .product-actions { transform: translateY(0); }

.btn-wishlist {
  background: var(--white);
  color: var(--terracotta);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.btn-wishlist:hover, .btn-wishlist.active { background: var(--terracotta); color: var(--white); }

.btn-quick-add {
  flex: 1;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 12px;
  height: 36px;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
}
.btn-quick-add:hover { background: var(--terracotta); color: var(--white); }

.product-info { padding: 12px 0 4px; }
.product-name {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 4px;
  line-height: 1.4;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--charcoal);
}

/* What We Do */
.what-we-do {
  background: var(--blush);
}
.what-we-do h2.accent {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--terracotta);
  margin-bottom: 20px;
}
.body-text {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
  color: var(--mid);
  line-height: 1.8;
}
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 0.83rem; color: rgba(250,245,239,0.6); line-height: 1.6; }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: rgba(250,245,239,0.5);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.88rem;
  color: rgba(250,245,239,0.75);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: rgba(250,245,239,0.35);
}

/* Sidebar Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,34,25,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.active { opacity: 1; pointer-events: all; }

/* Sidebars (Cart & Wishlist) */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 40px rgba(42,34,25,0.15);
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--light-border);
}
.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.sidebar-header button { font-size: 1.3rem; color: var(--mid); transition: color var(--transition); }
.sidebar-header button:hover { color: var(--terracotta); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.empty-msg { color: var(--mid); font-size: 0.88rem; }

/* Discount Row */
.discount-row {
  display: flex;
  gap: 8px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--light-border);
}
.discount-row input {
  flex: 1;
  border: 1px solid var(--light-border);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  outline: none;
  border-radius: 2px;
}
.discount-row input:focus { border-color: var(--terracotta); }
.discount-row button {
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0 16px;
  border-radius: 2px;
  transition: background var(--transition);
}
.discount-row button:hover { background: var(--terracotta); }
.discount-msg {
  padding: 4px 28px 0;
  font-size: 0.78rem;
  min-height: 18px;
}

/* Cart Item Card */
.cart-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--blush);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.82rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-price { font-size: 0.88rem; color: var(--terracotta); font-family: var(--font-display); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-control button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--light-border);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: border-color var(--transition), color var(--transition);
  border-radius: 2px;
}
.qty-control button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.qty-control span { font-size: 0.88rem; min-width: 20px; text-align: center; }
.remove-item { font-size: 0.72rem; color: var(--mid); text-decoration: underline; margin-top: 4px; display: inline-block; cursor: pointer; }
.remove-item:hover { color: var(--terracotta); }

/* Cart Footer */
.cart-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--light-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  font-size: 0.88rem;
}
.total-label { font-weight: 600; }
.total-val { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--cream);
  padding: 12px 24px;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 400;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-heading { grid-column: 1 / -1; }
  .beadwork-grid { grid-template-columns: 1fr 1fr; }
  .beadwork-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --nav-h: 56px; }
  .nav-left .nav-link:not(:first-child) { display: none; }
  .nav-logo { font-size: 1rem; }
  .featured-grid, .beadwork-grid { grid-template-columns: 1fr; }
  .featured-heading { grid-column: auto; }
  .sidebar { width: 100vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
