/* =============================================
   MOBILIER — Design & Décor
   Inspired by Pamono editorial style
   ============================================= */

:root {
  --bg: #ffffff;
  --bg-light: #f8f6f2;
  --bg-dark: #1c1c1c;
  --text: #1c1c1c;
  --text-mid: #4a4a4a;
  --text-light: #8a8a8a;
  --accent: #b5975a;
  --accent-light: #d4b98a;
  --border: #e4e0da;
  --border-light: #f0ece6;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1440px;
  --radius: 2px;
  --tr: 0.3s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Splash Screen ---- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#splash.hidden {
  opacity: 0;
  pointer-events: none;
}
#splash img {
  width: 180px;
  height: auto;
}

/* ---- Announcement Bar ---- */
.topbar {
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 9px 20px;
}
.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.topbar-sep { color: #666; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  height: 68px;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-main a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 500;
  transition: color var(--tr);
  white-space: nowrap;
}
.nav-main a:hover { color: var(--text); }
.nav-main a.active { color: var(--text); border-bottom: 1px solid var(--text); padding-bottom: 1px; }

.nav-right {
  justify-content: flex-end;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.site-logo span { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.header-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color var(--tr);
  position: relative;
}
.header-actions button:hover { color: var(--accent); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--text);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* ---- Search Bar ---- */
.search-bar {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 10px 40px;
  display: none;
}
.search-bar.active { display: block; }
.search-bar input {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  border-radius: var(--radius);
}
.search-bar input::placeholder { color: var(--text-light); }

/* ---- Hero Editorial ---- */
.hero-editorial {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 40px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 340px 260px;
  gap: 4px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-card.hero-tall {
  grid-row: 1 / 3;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-card:hover img { transform: scale(1.04); }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 28px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: #fff;
}
.hero-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 6px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-card.small .hero-title { font-size: 20px; }
.hero-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.hero-btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  transition: border-color var(--tr);
}
.hero-card:hover .hero-btn { border-color: #fff; }

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}
.section-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--tr), border-color var(--tr);
}
.section-link:hover { color: var(--text); border-color: var(--text); }

/* ---- Category Strip ---- */
.category-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 40px;
  border-bottom: 1px solid var(--border-light);
}
.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.cat-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--tr);
}
.cat-pill:hover .cat-img,
.cat-pill.active .cat-img {
  border-color: var(--accent);
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-name {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--tr);
}
.cat-pill:hover .cat-name,
.cat-pill.active .cat-name { color: var(--text); }

/* ---- Products Grid ---- */
.products-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 40px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.product-card {
  cursor: pointer;
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-light);
  margin-bottom: 14px;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-dark);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
}
.product-badge.sale { background: #c0392b; }
.product-badge.new { background: var(--accent); }
.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr);
  color: var(--text-mid);
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { color: #c0392b; }

.product-info { padding: 0 2px; }
.product-seller {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
}
.product-origin {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.product-price .old-price {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ---- Banner Strip ---- */
.banner-strip {
  background: var(--bg-light);
  padding: 56px 40px;
}
.banner-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.banner-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
}
.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.banner-card:hover img { transform: scale(1.04); }
.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 80%;
}
.banner-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.banner-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 18px;
}
.banner-cta {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 11px 28px;
  transition: background var(--tr), border-color var(--tr);
}
.banner-card:hover .banner-cta {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ---- Editorial Stories ---- */
.editorial-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 40px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.editorial-card {
  cursor: pointer;
}
.editorial-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
}
.editorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.editorial-card:hover .editorial-img img { transform: scale(1.05); }
.editorial-cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.editorial-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}
.editorial-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- Second Products Row ---- */
.products-section-alt {
  background: var(--bg-light);
  padding: 60px 0;
}
.products-section-alt .products-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Trust Strip ---- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 40px;
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.trust-icon { color: var(--accent); }
.trust-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.trust-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---- Newsletter ---- */
.newsletter {
  background: var(--bg-dark);
  color: #fff;
  padding: 64px 40px;
  text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.newsletter-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 12px;
}
.newsletter-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form button {
  padding: 14px 26px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background var(--tr);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-light); }

/* ---- Footer ---- */
.site-footer {
  background: #161616;
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-logo {
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--tr);
  font-size: 13px;
  font-weight: 600;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--tr);
  line-height: 1.4;
}
.footer-col ul a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-payments {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pay-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- Sticky Add to Cart (product hover) ---- */
.product-quick {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(28,28,28,0.88);
  color: #fff;
  text-align: center;
  padding: 13px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.product-card:hover .product-quick { transform: translateY(0); }

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all var(--tr);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-inner { padding: 0 20px; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 200px 200px;
  }
  .hero-card.hero-tall { grid-row: 1 / 2; grid-column: 1 / 3; }
  .nav-main { display: none; }
  .nav-toggle { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .hero-editorial { padding: 16px 20px 0; }
  .products-section { padding: 36px 20px; }
  .category-strip { padding: 28px 20px; }
  .trust-strip { padding: 28px 20px; }
  .newsletter { padding: 48px 20px; }
  .site-footer { padding: 40px 20px 0; }
}

@media (max-width: 600px) {
  .topbar-inner span:nth-child(3),
  .topbar-inner .topbar-sep:last-of-type { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 220px);
  }
  .hero-card.hero-tall { grid-column: 1; grid-row: 1; }
  .hero-title { font-size: 22px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .banner-strip-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; }
  .section-title { font-size: 26px; }
  .banner-title { font-size: 28px; }
}
