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

:root {
  --cream: #f5f0e8;
  --cream-dark: #ede6d8;
  --black: #000000;
  --dark: #1a1a1a;
  --gold: #c8a96e;
  --gold-light: #e2c99a;
  --text-muted: #888;
}

body {
  background: #fff;
  color: var(--dark);
  font-family: 'Cormorant Garamond', serif;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;  
  background: #000000; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(12px, 5vw, 40px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  width: 100%;
}

nav .nav-icon {
  width: clamp(18px, 5vw, 28px);
  height: clamp(18px, 5vw, 28px);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  color: #fff;
  stroke: #fff;
}
nav .nav-icon:hover { opacity: 1; }

nav .nav-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

nav .nav-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-wrap {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -5px; right: -6px;
  background: var(--gold);
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(7px, 1.5vw, 11px);
  width: clamp(13px, 3vw, 18px); 
  height: clamp(13px, 3vw, 18px);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
}

/* ── NEW HEADER HERO BLOCK ── */
.site-header {
  background-color: var(--black);
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ── LOGO ── */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 8vw, 48px) clamp(12px, 5vw, 40px) clamp(16px, 5vw, 32px);
  width: 100%;
}

.logo-mark {
  width: clamp(180px, 35vw, 260px);
  height: clamp(180px, 35vw, 260px);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(9px, 2vw, 13px);
  letter-spacing: 0.35em;
  font-weight: 300;
  color: var(--dark);
  margin-top: clamp(6px, 2vw, 12px);
  text-transform: uppercase;
}

/* ── HERO HEADING ── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 7vw, 40px);
  font-weight: 700;
  padding: clamp(20px, 6vw, 36px) clamp(12px, 5vw, 40px) clamp(14px, 4vw, 24px);
  line-height: 1.15;
  color: #fff; 
  width: 100%;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: clamp(6px, 2vw, 12px) clamp(12px, 5vw, 40px) 0; /* Stopped bottom margin for a perfect baseline fit */
}

/* ── SEARCH ── */
.search-wrap {
  position: relative;
  padding: clamp(20px, 5vw, 32px) clamp(12px, 5vw, 40px) clamp(20px, 5vw, 32px); /* Shifted padding top slightly */
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 50px;
  padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 24px);
  gap: 10px;
  transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-color: var(--gold);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(13px, 3vw, 15px);
  color: var(--dark);
  background: transparent;
  letter-spacing: 0.05em;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.search-clear:hover { color: var(--black); }

/* ── SEARCH RESULTS ── */
.search-results {
  position: absolute;
  top: calc(100% - clamp(20px, 5vw, 32px) + 4px);
  left: clamp(12px, 5vw, 40px);
  right: clamp(12px, 5vw, 40px);
  background: #fff;
  border: 2px solid var(--black);
  border-top: none;
  border-radius: 0 0 20px 20px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--dark);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f5f3f2; }

.search-result-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--medium-gray);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

.search-result-category {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.search-result-price {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.search-no-results {
  padding: 20px;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── CATEGORY CARDS ── */
.categories {
  padding: 0 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-card {
  border: 4px solid #111;
  border-radius: 0;
  overflow: visible;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}

.cat-card .img-placeholder {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #f5f3f2;
  box-sizing: border-box;
}

.cat-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── CATEGORY BUTTON ── */
.cat-label {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  min-height: 50px;
}

.cat-btn {
  background: var(--dark);
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: clamp(12px, 3vw, 20px) clamp(40px, 8vw, 80px);
  border-radius: 50px;
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
}
.cat-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 12px 35px rgba(200, 169, 110, 0.4);
  transform: translateY(-8px);
}
.cat-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(200, 169, 110, 0.2);
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: clamp(18px, 6vw, 32px) clamp(12px, 5vw, 40px);
  font-family: inherit;
  font-size: clamp(9px, 2vw, 13px);
  letter-spacing: 0.15em;
  width: 100%;
}

footer .footer-logo {
  font-size: clamp(16px, 5vw, 24px);
  color: #fff;
  margin-bottom: clamp(6px, 2vw, 12px);
}

footer .footer-copy {
  margin-top: clamp(6px, 2vw, 12px);
  font-size: clamp(8px, 1.5vw, 11px);
  opacity: 0.5;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(11px, 2vw, 13px);
  letter-spacing: 0.1em;
  margin-top: clamp(8px, 2vw, 12px);
  transition: color 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
}

.footer-instagram:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(200,169,110,0.1);
}

.instagram-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-section                   { animation: fadeUp 0.6s ease both; }
.section-title                  { animation: fadeUp 0.6s ease 0.1s both; }
.cat-card:nth-child(1)         { animation: fadeUp 0.6s ease 0.2s both; }
.cat-card:nth-child(2)         { animation: fadeUp 0.6s ease 0.35s both; }
.cat-card:nth-child(3)         { animation: fadeUp 0.6s ease 0.5s both; }

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 480px) {
  .categories { gap: clamp(14px, 3vw, 20px); }
  .cat-card { border-width: 6px; }
}

@media (min-width: 768px) {
  .categories {
    max-width: 100%;
    padding-left: clamp(40px, 10vw, 80px);
    padding-right: clamp(40px, 10vw, 80px);
  }
  .logo-section { padding-top: clamp(40px, 10vw, 60px); }
}

@media (min-width: 1024px) {
  body { max-width: 100%; }
  .categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: clamp(24px, 3vw, 40px);
  }
  .cat-card { max-width: 100%; }
  .nav-brand { font-size: 30px; font-weight: 700; color: #fff; }
}