
:root {
  --sm-bg-dark: #050607;
  --sm-bg-light: #f7f7f9;
  --sm-surface-dark: #15171c;
  --sm-surface-light: #ffffff;
  --sm-text-dark: #f5f5f5;
  --sm-text-light: #121316;
  --sm-accent-red: #e02424;
  --sm-accent-red-soft: #ff4545;
  --sm-accent-gold: #f5b82e;
  --sm-border-subtle: rgba(255, 255, 255, 0.08);
  --sm-border-subtle-light: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] {
  background: radial-gradient(circle at top left, #1a0000 0, #050607 40%, #000000 100%);
  color: var(--sm-text-dark);
}

html[data-theme="light"] {
  background: #f7f7f9;
  color: var(--sm-text-light);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.sm-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1.5rem;
  padding: 1rem 5vw;
  border-bottom: 1px solid var(--sm-border-subtle);
  background: linear-gradient(90deg, #050607, #231217);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .sm-header {
  background: linear-gradient(90deg, #ffffff, #ffe3e3);
  border-bottom-color: var(--sm-border-subtle-light);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sm-header-admin {
  grid-template-columns: auto;
}

.sm-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sm-logo {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 2px solid var(--sm-accent-gold);
}

.sm-brand-text {
  display: flex;
  flex-direction: column;
}

.sm-name {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sm-tagline {
  font-size: 0.85rem;
  opacity: 0.85;
}

.sm-nav {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
}

.sm-nav-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--sm-text-dark);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-theme="light"] .sm-nav-link {
  color: var(--sm-text-light);
}

.sm-nav-link:hover {
  opacity: 1;
  color: var(--sm-accent-gold);
}

.sm-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.sm-btn {
  border-radius: 999px;
  border: 1px solid var(--sm-border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-theme="light"] .sm-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--sm-border-subtle-light);
}

.sm-btn-primary {
  background: var(--sm-accent-red);
  border-color: var(--sm-accent-red);
  color: #fff;
}

.sm-btn-primary:hover {
  background: var(--sm-accent-red-soft);
}

.sm-btn-outline {
  border-color: var(--sm-accent-red);
}

.sm-btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sm-btn-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}

.sm-btn-icon-amazon {
  background: #ff9900;
}

.sm-btn-icon-ebay {
  background: #0064d2;
}

.sm-lang-switch {
  display: flex;
  gap: 0.25rem;
}

.sm-btn-lang.active {
  background: var(--sm-accent-gold);
  border-color: var(--sm-accent-gold);
  color: #000;
}

.sm-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 2rem 5vw 1rem;
  align-items: center;
}

.sm-hero-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] .sm-hero-image {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.sm-hero-text h1 {
  font-size: 2.7rem;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sm-hero-text p {
  margin: 0 0 1rem;
  max-width: 32rem;
}

.sm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.sm-section {
  padding: 1.5rem 5vw 2.5rem;
}

.sm-section-alt {
  background: linear-gradient(135deg, rgba(255, 51, 51, 0.18), transparent);
}

html[data-theme="light"] .sm-section-alt {
  background: linear-gradient(135deg, rgba(255, 51, 51, 0.06), #ffffff);
}

.sm-section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sm-section-intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.sm-products-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sm-product-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sm-product-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--sm-surface-dark);
  border-radius: 16px;
  border: 1px solid var(--sm-border-subtle);
  overflow: hidden;
}

html[data-theme="light"] .sm-product-row {
  background: var(--sm-surface-light);
  border-color: var(--sm-border-subtle-light);
}

.sm-product-image-wrap {
  overflow: hidden;
}

.sm-product-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.sm-product-row:hover .sm-product-image,
.sm-photo-card:hover .sm-product-image {
  transform: scale(1.04);
}

.sm-frame-small .sm-product-image {
  max-height: 220px;
}

.sm-frame-medium .sm-product-image {
  max-height: 320px;
}

.sm-frame-large .sm-product-image {
  max-height: 420px;
}

.sm-product-details {
  padding: 1rem 1.25rem 1.2rem;
}

.sm-product-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sm-price {
  font-weight: 700;
  color: var(--sm-accent-red);
  margin: 0.2rem 0 0.5rem;
}

.sm-product-desc {
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.sm-product-meta {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.7rem;
}

.sm-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sm-link-btn {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--sm-border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sm-link-btn-amazon {
  background: #ff9900;
  color: #000;
}

.sm-link-btn-ebay {
  background: #0064d2;
  color: #fff;
}

.sm-link-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.sm-product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.sm-photo-card {
  background: var(--sm-surface-dark);
  border-radius: 12px;
  border: 1px solid var(--sm-border-subtle);
  padding: 0.4rem;
}

html[data-theme="light"] .sm-photo-card {
  background: var(--sm-surface-light);
  border-color: var(--sm-border-subtle-light);
}

.sm-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: flex-start;
}

.sm-contact-info p {
  max-width: 24rem;
}

.sm-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sm-contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.sm-contact-form input,
.sm-contact-form textarea,
.sm-admin-select select {
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--sm-border-subtle);
  background-color: #1e2025;
  color: var(--sm-text-dark);
}

html[data-theme="light"] .sm-contact-form input,
html[data-theme="light"] .sm-contact-form textarea,
html[data-theme="light"] .sm-admin-select select {
  border-color: var(--sm-border-subtle-light);
  background-color: #ffffff;
  color: var(--sm-text-light);
}

.sm-contact-note {
  font-size: 0.8rem;
  opacity: 0.8;
}

.sm-footer {
  padding: 1rem 5vw 1.5rem;
  border-top: 1px solid var(--sm-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

html[data-theme="light"] .sm-footer {
  border-top-color: var(--sm-border-subtle-light);
}

.sm-footer-links {
  display: flex;
  gap: 0.75rem;
}

.sm-footer-link {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--sm-border-subtle);
}

.sm-about-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.sm-about-logo-wrap {
  display: flex;
  justify-content: center;
}

.sm-about-logo {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 2px solid var(--sm-accent-gold);
}

.sm-about-text p {
  margin-top: 0.2rem;
}

/* Lightbox */
.sm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sm-lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.sm-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

.sm-lightbox-close {
  position: absolute;
  top: -32px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.sm-lightbox.show {
  display: flex;
}

/* Admin styles */
.sm-admin-body {
  background: var(--sm-bg-dark);
}

.sm-admin-main {
  padding-top: 0.5rem;
}

.sm-admin-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sm-admin-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--sm-surface-dark);
  border: 1px solid var(--sm-border-subtle);
  font-size: 0.85rem;
}

.sm-admin-product-meta {
  display: flex;
  flex-direction: column;
}

.sm-admin-product-meta span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.sm-admin-product-actions {
  display: flex;
  gap: 0.5rem;
}

.sm-admin-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.sm-admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.sm-admin-select {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .sm-header {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }
  .sm-controls {
    justify-content: flex-start;
  }
  .sm-hero {
    grid-template-columns: 1fr;
  }
  .sm-contact-layout {
    grid-template-columns: 1fr;
  }
  .sm-product-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .sm-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
