:root {
  --navy: #1A1A2E;
  --gold: #E8C87A;
  --gold-dark: #C9A84C;
  --cream: #F5F0E8;
  --bg: #FAFAF7;
  --text: #2D2D2D;
  --light-text: #F5F0E8;
  --border: #E2DDD4;
  --shadow: rgba(0, 0, 0, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  color: var(--navy);
}

.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 200, 122, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--light-text);
  font-weight: 600;
  padding: 10px 24px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--navy);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  border-bottom: 2px solid var(--gold);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 1px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--light-text);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== HERO ===== */
.hero {
  min-height: 85vh;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(232, 200, 122, 0.06) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===== FEATURED CATEGORIES ===== */
.categories { padding: 80px 24px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.category-card .icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.category-card h3 { font-size: 1rem; color: var(--navy); font-weight: 600; }

/* ===== BESTSELLERS ===== */
.bestsellers { padding: 80px 24px; background: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 12px var(--shadow);
}

.product-card:hover {
  border-left: 3px solid var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-info { padding: 20px; }

.product-info h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 600;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.product-rating {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.product-card .btn-primary { width: 100%; }

/* ===== TRUST BADGES ===== */
.trust-badges {
  background: var(--cream);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 32px 24px;
}

.badges-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.badge-icon { font-size: 1.6rem; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--navy);
  padding: 64px 24px;
  text-align: center;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}

.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form .btn-primary {
  padding: 12px 24px;
  white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--light-text);
  padding: 60px 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .nav-logo { margin-bottom: 10px; display: inline-block; }

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color 0.25s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.25s;
}

.footer-newsletter input:focus { border-color: var(--gold); }
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, 0.4); }

.footer-newsletter .btn-primary {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

/* ===== SHOP PAGE ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.shop-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.shop-sidebar h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}

.filter-section { margin-bottom: 24px; }
.filter-section:last-child { margin-bottom: 0; }

.filter-section h4 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}

.filter-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
  cursor: pointer;
}

.filter-section input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.filter-section input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.price-range-display {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
}

.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-topbar p { font-size: 0.9rem; color: #777; }

.shop-topbar select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.25s;
  font-weight: 500;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.pagination a.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
}

.about-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.about-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.about-story-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-story-text p {
  line-height: 1.8;
  color: #555;
  font-size: 0.95rem;
}

.about-story-image {
  background: var(--navy);
  border-radius: 10px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.value-card .icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.value-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: #777; line-height: 1.6; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--gold);
}

.team-card h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.team-card p {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.5;
}

.about-location {
  background: var(--cream);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  text-align: center;
  padding: 32px 24px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

.contact-form-wrapper h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #E53935;
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.form-error.visible { display: block; }

.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.info-item .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.info-item strong { color: var(--navy); display: block; margin-bottom: 2px; }

.contact-map {
  margin-top: 20px;
}

.contact-map iframe {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  border: none;
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-message.visible { display: block; }

.success-message .icon { font-size: 3rem; margin-bottom: 12px; }
.success-message h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 8px; }
.success-message p { font-size: 0.9rem; color: #777; }

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.error-content { position: relative; z-index: 1; }

.error-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.error-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

.error-page p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.floating-shapes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--gold);
  animation: shapeFloat 8s ease-in-out infinite;
}

.shape:nth-child(1) { width: 120px; height: 120px; top: 10%; left: 10%; animation-delay: 0s; }
.shape:nth-child(2) { width: 80px; height: 80px; top: 60%; left: 80%; animation-delay: 1.5s; }
.shape:nth-child(3) { width: 160px; height: 160px; top: 30%; left: 70%; animation-delay: 3s; }
.shape:nth-child(4) { width: 60px; height: 60px; top: 70%; left: 15%; animation-delay: 4.5s; }
.shape:nth-child(5) { width: 100px; height: 100px; top: 80%; left: 50%; animation-delay: 6s; }

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
    border-bottom: 2px solid var(--gold);
    z-index: 999;
  }

  .nav-links.open { max-height: 400px; }

  .hamburger { display: flex; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }

  .contact-layout { grid-template-columns: 1fr; }

  .about-story { grid-template-columns: 1fr; gap: 24px; }
  .about-story-image { height: 200px; }

  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .newsletter-form { flex-direction: column; }

  .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 20px; }
  .nav-logo { font-size: 1.4rem; }

  .hero-content h1 { font-size: 1.8rem; }

  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }

  .section-heading { font-size: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .error-page h1 { font-size: 5rem; }

  .badges-row { gap: 20px; }
  .badge-item { font-size: 0.8rem; }
}
