/* ---------- Antique Jewellery Shop Theme ---------- */
:root {
  --gold: #c9a24b;
  --gold-light: #e6c878;
  --dark-bg: #1b140f;
  --dark-panel: #241a13;
  --cream: #f5ecdd;
  --cream-soft: #e8dcc5;
  --maroon: #5c1a2b;
  --success: #4a7c59;
  --danger: #a63d40;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--cream-soft);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: linear-gradient(180deg, #241a13 0%, #1b140f 100%);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1150px;
  margin: 0 auto;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--cream-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 30% 20%, #3a2418 0%, #1b140f 70%);
  padding: 90px 20px;
  text-align: center;
  border-bottom: 1px solid #3a2b1e;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--cream-soft);
  font-size: 1.1rem;
}

/* ---------- Rotating hero gallery ---------- */
.hero-gallery {
  position: relative;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  cursor: pointer;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 20, 15, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 90px 20px;
}

.hero-hint {
  margin-top: 18px !important;
  font-size: 0.9rem !important;
  color: var(--gold-light) !important;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241a13;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35);
  color: #241a13;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-light);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

/* ---------- Sections ---------- */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title p {
  color: var(--cream-soft);
  opacity: 0.85;
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--dark-panel);
  border: 1px solid #3a2b1e;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #2b1d14;
}

.product-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}

.product-body h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.product-body p.desc {
  font-size: 0.9rem;
  color: var(--cream-soft);
  opacity: 0.85;
  flex: 1;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 10px 0 14px;
}

.badge-custom {
  display: inline-block;
  background: var(--maroon);
  color: var(--cream);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--dark-panel);
  border: 1px solid #3a2b1e;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
  color: var(--cream-soft);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #4a382a;
  background: #17110c;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--gold);
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 24px;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(74, 124, 89, 0.2);
  border: 1px solid var(--success);
  color: #b7e3c4;
}

.alert-error {
  background: rgba(166, 61, 64, 0.2);
  border: 1px solid var(--danger);
  color: #f2b5b6;
}

/* ---------- About ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid #3a2b1e;
}

@media (max-width: 800px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #140f0a;
  border-top: 2px solid var(--gold);
  padding: 30px 0;
  text-align: center;
  color: var(--cream-soft);
  font-size: 0.9rem;
}

/* ---------- Admin ---------- */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark-panel);
  border-radius: var(--radius);
  overflow: hidden;
}

table.admin-table th,
table.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #3a2b1e;
  text-align: left;
  font-size: 0.9rem;
}

table.admin-table th {
  background: #2b1d14;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

table.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-section {
  margin-bottom: 50px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .nav-wrap {
    flex-direction: column;
    gap: 14px;
  }
  nav.main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}
