/* 
    Magtibay E-Commerce Hub | Gold & Gray Luxury Structure
    Aesthetic: Modern Premium Ecommerce
    Colors: Gold (#c9a227), Dark Gray (#2b2b2b), White
*/

:root {
  --gold: #c9a227;
  --gold-soft: #f4e6b3;
  --dark-gray: #2b2b2b;
  --mid-gray: #6b6b6b;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --radius: 22px;
}

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

body {
  font-family: 'Instrument Sans', Arial, sans-serif;
  background: var(--light-gray);
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ── NAVIGATION ── */
.navbar {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 1px;
  font-family: 'Fraunces', serif;
}

.nav-link {
  color: var(--dark-gray) !important;
  margin-left: 18px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gold) !important;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: none;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: #b89220;
  color: var(--white);
  transform: translateY(-2px);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(120deg, rgba(43,43,43,0.92), rgba(65,65,65,0.8)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=1400&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 180px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  font-family: 'Fraunces', serif;
}

.hero span {
  color: var(--gold);
  font-style: italic;
}

.hero p {
  color: #e0e0e0;
  max-width: 560px;
  font-size: 18px;
  margin-top: 24px;
  font-weight: 300;
}

.badge-gold {
  background: var(--gold-soft);
  color: #8a6b10;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── SECTIONS ── */
.section-title {
  font-weight: 900;
  color: var(--dark-gray);
  font-family: 'Fraunces', serif;
}

.section-subtitle {
  color: var(--mid-gray);
  font-weight: 300;
}

/* ── CARDS ── */
.category-card,
.product-card,
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(201,162,39,0.12);
  overflow: hidden;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.category-card:hover,
.product-card:hover,
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
  border-color: var(--gold);
}

/* ── CATEGORY CARD (IMAGE VERSION) ── */
.category-card {
  padding: 0;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.category-img-wrap {
  height: 420px;
  width: 100%;
  overflow: hidden;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-img-wrap img {
  transform: scale(1.1);
}

.category-body {
  padding: 40px 20px;
}

.category-body h5 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* ── PRODUCT CARD ── */
.product-img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  background: #f0f0f0;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-body {
  padding: 24px;
}

.product-title {
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
}

.price {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

/* ── PROMO ── */
.promo {
  background: var(--dark-gray);
  color: var(--white);
  border-radius: 28px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.promo::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--gold);
  opacity: 0.18;
  border-radius: 50%;
  right: -70px;
  bottom: -90px;
  z-index: -1;
  pointer-events: none;
}

.promo h2 span {
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-style: italic;
}

/* ── CONTACT ── */
.contact-card {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.contact-link {
    color: var(--mid-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
    padding: 2px 0;
    display: block;
}

.contact-link:hover {
    color: var(--gold);
}

/* ── FOOTER ── */
footer {
  background: var(--dark-gray);
  color: #d5d5d5;
  padding: 60px 0;
  margin-top: 80px;
}

footer h5 {
  color: var(--gold);
  font-weight: 800;
  font-family: 'Fraunces', serif;
  margin-bottom: 25px;
}

footer a {
  color: #d5d5d5;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--gold);
}

.hover-gold:hover {
    color: var(--gold) !important;
}

/* ── UTILS ── */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 3.5rem; height: 3.5rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.back-to-top.show { opacity: 1; visibility: visible; }

.deerflow-badge {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: rgba(43, 43, 43, 0.8);
  backdrop-filter: blur(5px);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  text-decoration: none;
  z-index: 1000;
  border: 1px solid rgba(201, 162, 39, 0.2);
  transition: all 0.3s ease;
}

.deerflow-badge:hover {
  background: var(--gold);
  color: var(--dark-gray);
  transform: translateY(-5px);
}

.d-none { display: none !important; }

/* ── FILTERS (CLEAN) ── */
.filter-bar {
  background: var(--white);
  border-radius: 50px;
  padding: 8px;
  border: 1px solid rgba(201,162,39,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
}

.filter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  background: transparent;
}

.filter-select {
  border: none;
  outline: none;
  padding: 10px 20px;
  background: transparent;
  border-left: 1px solid var(--light-gray);
  color: var(--mid-gray);
}
