@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #050505;
  --bg-elevated: #0b0b0b;
  --bg-card: #111111;
  --bg-card-soft: #151515;
  --gold: #d4af37;
  --gold-bright: #ebca62;
  --gold-muted: rgba(212, 175, 55, 0.24);
  --border: rgba(212, 175, 55, 0.2);
  --text-main: #ffffff;
  --text-muted: #b8b8b8;
  --text-soft: #8a8a8a;
  --success: #67c583;
  --danger: #ff6d6d;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-gold: 0 12px 40px rgba(212, 175, 55, 0.14);
  --surface-glass: linear-gradient(135deg, rgba(20, 20, 20, 0.86), rgba(9, 9, 9, 0.76));
}

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

html,
body,
#root {
  min-height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% -10%, rgba(212, 175, 55, 0.13), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(212, 175, 55, 0.08), transparent 38%),
    linear-gradient(150deg, #020202 0%, #050505 40%, #0a0a0a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: rgba(212, 175, 55, 0.24);
  color: #fff;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  width: min(1320px, 94vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* Generic */
.section {
  margin: 4rem 0;
}

.section h2,
.sales-header h1,
.products-page h1,
.product-detail h1,
.cart-page h1,
.checkout-page h1,
.auth-container h1,
.profile-page h1,
.contact-page h1,
.orders-page h1,
.wishlist-page h1,
.about-page h1,
.messages-header h1 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.section h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.8vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.loading,
.error,
.no-products,
.empty-state,
.empty-cart {
  border: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #121212;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  filter: saturate(1.05);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 0.95rem 1.8rem;
}

.btn-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn-outline {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border);
  color: var(--gold-bright);
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(255, 109, 109, 0.4);
  color: #ff7f7f;
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 10px 24px rgba(255, 109, 109, 0.17);
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--gold);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(12px);
}

.navbar-container {
  width: min(1320px, 94vw);
  margin: 0 auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.36rem;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.03));
}

.navbar-logo small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-soft);
}

.navbar-logo strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.navbar-center {
  width: 100%;
  max-width: 360px;
}

.search-bar {
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  padding: 0 2.5rem 0 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--border);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.13);
}

.search-bar::after {
  content: '⌕';
  position: absolute;
  right: 0.85rem;
  top: 0.42rem;
  color: var(--gold);
  font-size: 1.12rem;
}

.search-results {
  position: absolute;
  inset: calc(100% + 0.5rem) 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
  z-index: 5;
  box-shadow: var(--shadow-soft);
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.search-result-item:hover {
  background: rgba(212, 175, 55, 0.08);
  color: #fff;
}

.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.navbar-menu a {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.24s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active,
.navbar-menu a.admin-link {
  color: var(--gold-bright);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after,
.navbar-menu a.admin-link::after {
  width: 100%;
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.04);
  transition: transform 0.24s ease, border-color 0.24s ease;
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.5);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -6px;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--gold);
  color: #121212;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Home */
.hero {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  background:
    linear-gradient(110deg, rgba(3, 3, 3, 0.92), rgba(11, 11, 11, 0.86) 50%, rgba(212, 175, 55, 0.08)),
    radial-gradient(circle at 74% 18%, rgba(212, 175, 55, 0.17), transparent 35%);
  box-shadow: var(--shadow-soft);
}

.hero-content {
  max-width: 580px;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero .kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  color: var(--gold-bright);
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-media {
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 40%);
}

.feature-strip {
  margin-top: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.feature-strip .item {
  background: rgba(255, 255, 255, 0.015);
  padding: 1rem;
  border-right: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-strip .item:last-child {
  border-right: none;
}

.feature-strip .item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.feature-strip .item span {
  font-size: 0.83rem;
  color: var(--text-soft);
}

.sale-banner,
.promo-banner {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(5, 5, 5, 0.75));
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: grid;
  gap: 0.85rem;
}

.promo-banner {
  margin: 4rem 0;
}

.promo-banner input {
  width: min(340px, 100%);
  height: 44px;
}

/* Cards */
.product-card-link {
  display: block;
}

.product-card,
.category-card,
.order-card,
.contact-form,
.contact-info,
.profile-form,
.checkout-form,
.checkout-summary,
.cart-items,
.cart-summary,
.filters-sidebar {
  border: 1px solid var(--border);
  background: linear-gradient(150deg, #0f0f0f, #161616 65%, #131313);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.product-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212, 175, 55, 0.42);
}

.product-image-container {
  position: relative;
  background: #0b0b0b;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.06);
}

.discount-badge,
.featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.discount-badge {
  background: linear-gradient(140deg, #e17070, #be3b3b);
  color: #fff;
}

.featured-badge {
  right: auto;
  left: 0.75rem;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--border);
  color: var(--gold-bright);
}

.product-wishlist-icon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.product-info {
  padding: 1rem;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  min-height: 2.8rem;
  color: #f4f4f4;
}

.brand {
  color: var(--gold);
  margin-top: 0.22rem;
  font-size: 0.85rem;
}

.price {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0.72rem 0;
}

.price .original {
  text-decoration: line-through;
  color: var(--text-soft);
}

.price .discounted,
.price .current,
.price span {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1.16rem;
}

.stock {
  font-size: 0.84rem;
}

.in-stock {
  color: var(--success);
}

.out-of-stock {
  color: var(--danger);
}

.category-card {
  padding: 0.8rem;
}

.category-card img {
  border-radius: 12px;
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.category-card h3 {
  margin-top: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Product page */
.products-page,
.sales-page,
.cart-page,
.checkout-page,
.auth-page,
.profile-page,
.contact-page,
.orders-page,
.wishlist-page,
.about-page,
.messages-page,
.product-detail {
  padding-top: 1.2rem;
}

.products-container {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.filters-sidebar {
  padding: 1rem;
  position: sticky;
  top: 96px;
  height: fit-content;
}

.filters-sidebar h3 {
  margin-bottom: 0.9rem;
  color: var(--gold-bright);
}

.filter-group {
  margin-bottom: 0.95rem;
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.form-group label,
.filter-group label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

input,
select,
textarea,
.filter-group input,
.filter-group select,
.quantity-selector input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 0.62rem 0.8rem;
}

input::placeholder,
textarea::placeholder {
  color: #737373;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.11);
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 0.72rem;
}

.sort-bar label,
.product-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.pagination .page-btn {
  min-width: 38px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
}

.page-btn {
  min-width: 38px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
}

.pagination .page-btn.active,
.pagination .page-btn:hover {
  color: #121212;
  background: var(--gold);
}

/* Product detail */
.detail-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.3rem;
}

.detail-images,
.detail-info {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #101010, #161616);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.main-image-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.65);
  color: var(--gold);
  font-size: 1.25rem;
}

.nav-arrow.prev {
  left: 0.8rem;
}

.nav-arrow.next {
  right: 0.8rem;
}

.thumbnail-gallery {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
}

.thumbnail.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.26);
}

.detail-info h1 {
  font-size: clamp(1.6rem, 1.35rem + 1.6vw, 2.4rem);
  line-height: 1.14;
}

.rating {
  color: var(--gold-bright);
  margin: 0.55rem 0;
}

.model-code {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.description {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.option-group {
  margin-bottom: 1rem;
}

.option-group > label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 0.5rem;
}

.size-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #ececec;
  min-height: 42px;
}

.size-btn.active,
.size-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.11);
}

.quantity-selector {
  width: 150px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-selector button {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.04);
}

.quantity-selector input {
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  border-radius: 0;
}

.action-buttons {
  margin: 1.35rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.product-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.product-details ul {
  list-style: none;
  display: grid;
  gap: 0.33rem;
  color: var(--text-muted);
}

/* Cart */
.cart-container,
.checkout-container,
.profile-container,
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1rem;
}

.cart-items,
.cart-summary {
  padding: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-product {
  display: flex;
  gap: 0.72rem;
  align-items: center;
}

.cart-item-product img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cart-item > img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.product-name {
  font-weight: 600;
}

.quantity-control {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-control button {
  width: 30px;
  color: var(--gold);
}

.quantity-control span {
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #efefef;
}

.summary-rows,
.summary-items {
  display: grid;
  gap: 0.55rem;
}

.summary-row,
.summary-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.summary-row.total,
.summary-total {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

/* Checkout */
.checkout-form,
.checkout-summary {
  padding: 1rem;
}

.form-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-section h2 {
  font-size: 1.02rem;
  color: var(--gold-bright);
  margin-bottom: 0.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.required {
  color: #e69191;
}

.error,
.error-message {
  color: #ff8d8d;
}

.error-message {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.payment-info,
.text-muted {
  color: var(--text-muted);
}

/* Auth */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.auth-container {
  width: min(1040px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1.4rem auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #101010;
}

.auth-visual {
  position: relative;
  background: #070707;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.auth-visual-copy {
  position: absolute;
  inset: auto 1.2rem 1.2rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

.auth-panel {
  padding: clamp(1rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-panel h1 {
  margin-bottom: 1rem;
}

.forgot-password-link,
.auth-switch {
  margin-top: 0.65rem;
}

.link-button {
  color: var(--gold-bright);
  font-size: 0.88rem;
}

.auth-meta {
  margin: 0.7rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-meta label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.auth-switch a {
  color: var(--gold-bright);
}

/* Modal + toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 1rem;
}

.modal-content {
  width: min(530px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111;
}

.modal-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1rem;
}

.modal-close {
  color: #d7d7d7;
  font-size: 1.25rem;
}

.cart-modal {
  text-align: center;
  padding: 1.4rem;
}

.cart-modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gold);
  display: grid;
  place-items: center;
}

.cart-modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: var(--shadow-soft);
  z-index: 95;
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error .toast-icon {
  color: #ff8d8d;
}

.toast-info .toast-icon {
  color: #8fc1ff;
}

.toast-close {
  margin-left: auto;
  color: #bbb;
}

/* Profile */
.profile-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.profile-nav {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  padding: 0.7rem;
  height: fit-content;
}

.profile-nav button,
.profile-nav a {
  width: 100%;
  text-align: left;
  color: var(--text-muted);
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  display: block;
}

.profile-nav .active,
.profile-nav button:hover,
.profile-nav a:hover {
  color: var(--gold-bright);
  border-color: var(--border);
  background: rgba(212, 175, 55, 0.09);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.profile-metric {
  border: 1px solid var(--border);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 12px;
  padding: 0.75rem;
}

.profile-metric span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.profile-metric strong {
  font-size: 1.5rem;
  color: var(--gold-bright);
  font-family: 'Montserrat', sans-serif;
}

.admin-pill {
  margin-left: 0.7rem;
  border: 1px solid var(--border);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.profile-forms {
  display: grid;
  gap: 0.95rem;
}

.profile-form {
  padding: 1rem;
}

.profile-form h2 {
  margin-bottom: 0.75rem;
  color: var(--gold-bright);
}

/* Orders & wishlist */
.orders-container,
.wishlist-container {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
}

.order-card {
  padding: 1rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.status,
.status-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  color: var(--gold-bright);
}

.order-details,
.order-items,
.shipping-info {
  margin-top: 0.75rem;
}

.order-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0;
}

.order-item img {
  width: 60px;
  height: 60px;
  border-radius: 9px;
  object-fit: cover;
}

.wishlist-item {
  display: grid;
  gap: 0.7rem;
}

/* About + contact */
.about-page {
  display: grid;
  gap: 0.95rem;
}

.about-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  padding: 1rem;
}

.about-section h2 {
  margin-bottom: 0.45rem;
  color: var(--gold-bright);
}

.about-section p,
.values-list li {
  color: var(--text-muted);
}

.values-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.why-us-grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.why-us-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.contact-container {
  margin-top: 1rem;
}

.contact-info,
.contact-form {
  padding: 1rem;
}

.info-item {
  margin-bottom: 0.9rem;
}

.info-item h3 {
  color: var(--gold-bright);
  margin-bottom: 0.2rem;
}

.social-links,
.social-icons {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.social-icon,
.social-links a {
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.success-message {
  border: 1px solid rgba(103, 197, 131, 0.4);
  background: rgba(103, 197, 131, 0.11);
  color: #87e0a1;
  border-radius: 10px;
  padding: 0.65rem;
  margin-bottom: 0.8rem;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #080808;
}

.footer-container {
  width: min(1320px, 94vw);
  margin: 0 auto;
  padding: 2.2rem 0 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 0.65rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--gold);
}

.footer-section h4 {
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-section li,
.footer-section p {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  color: var(--text-soft);
  padding: 0.8rem 0;
  width: min(1320px, 94vw);
  margin: 0 auto;
}

/* Admin and models fallback theme */
.admin-page,
.models-page,
.admin-content,
.admin-tabs,
.admin-form,
.admin-grid,
.admin-table {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 1180px) {
  .navbar-container {
    grid-template-columns: auto 1fr auto;
  }

  .navbar-menu {
    order: 4;
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 0.7rem;
  }

  .products-container,
  .detail-container,
  .cart-container,
  .checkout-container,
  .profile-shell,
  .contact-container,
  .auth-container,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
  }

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

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

  .main-image-container {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .main-content {
    width: min(1320px, 96vw);
    padding-top: 1rem;
  }

  .navbar-container {
    min-height: 76px;
    gap: 0.6rem;
  }

  .navbar-center {
    grid-column: 1 / -1;
    order: 3;
    max-width: 100%;
  }

  .navbar-icons {
    justify-content: flex-end;
  }

  .feature-strip,
  .profile-metrics,
  .form-row {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cart-modal-actions {
    flex-direction: column;
  }
}
