/* Kensington Luxury Vault - Premium E-Commerce Styling */
:root {
  --primary: #121212;
  --secondary: #1f1f1f;
  --accent: #c5a880;
  --accent-light: #e6d7c3;
  --accent-dark: #9e7f55;
  --bg: #faf9f6;
  --card-bg: #ffffff;
  --border: #e8e6e1;
  --text-main: #2b2b2b;
  --text-muted: #666666;
  --success: #2e7d32;
  --star: #ff9800;
  --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--primary);
  color: var(--accent-light);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(197, 168, 128, 0.3);
}

/* Header */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  text-decoration: none;
  color: var(--primary);
  display: flex;
  flex-direction: column;
}

.brand-logo .brand-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.brand-logo .brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 4px;
}

nav a:hover, nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.badge-trustpilot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00b67a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('../images/boutique-exterior.jpg') center/cover;
  color: #fff;
  padding: 70px 32px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero p {
  font-size: 16px;
  color: var(--accent-light);
  max-width: 780px;
  margin: 0 auto 24px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-desc {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e0e0e0;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 32px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--primary);
}

.inventory-pill {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inventory-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #2e7d32;
  border-radius: 50%;
  display: inline-block;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.product-img-box {
  position: relative;
  background: #f7f7f7;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-img-box img {
  transform: scale(1.04);
}

.tag-condition {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 18, 18, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tag-auth {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(197, 168, 128, 0.95);
  color: #121212;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-specs {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-meta-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-left: 6px;
}

.btn-buy {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-buy:hover {
  background: var(--accent-dark);
}

/* Reviews Page Styles */
.rating-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.rating-score-box {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}

.score-big {
  font-size: 56px;
  font-weight: 800;
  color: #00b67a;
  line-height: 1;
}

.stars-big {
  color: #00b67a;
  font-size: 24px;
  margin: 8px 0;
}

.score-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.bar-track {
  flex-grow: 1;
  height: 8px;
  background: #eef0f2;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #00b67a;
  border-radius: 4px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-verified {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.review-date {
  font-size: 12px;
  color: #888;
}

.review-stars {
  color: #00b67a;
  margin-bottom: 8px;
  font-size: 14px;
}

.review-item-tag {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* Sales Dashboard Styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  border-top: 4px solid var(--accent);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.metric-badge {
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
}

.data-table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 36px;
}

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: #f8f9fa;
  color: #555;
  text-align: left;
  padding: 12px 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

tr:hover td {
  background: #fafafa;
}

.status-delivered {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Floating Realtime Purchase Toast */
.live-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  max-width: 360px;
}

.toast-dot {
  width: 10px;
  height: 10px;
  background: #2e7d32;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-text {
  font-size: 12px;
  color: #333;
}

.toast-text strong {
  color: var(--primary);
  display: block;
}

/* Footer */
footer {
  background: var(--primary);
  color: #a0a0a0;
  padding: 60px 32px 30px;
  font-size: 13px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col p {
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1400px;
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
