:root {
  color-scheme: dark;
  --bg: #0e0e0e;
  --surface: #141414;
  --surface-2: #1f1f1f;
  --text: #f5f5f5;
  --muted: #c7c7c7;
  --accent: #e10f18;
  --accent-soft: #ff3f41;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(225, 15, 24, 0.16), transparent 34%), #0f0f0f;
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  background: #080808;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

.brand-hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #940000);
  position: relative;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #111;
  border-radius: 999px;
}

.brand-mark::before {
  width: 16px;
  height: 8px;
  top: 12px;
  left: 8px;
}

.brand-mark::after {
  width: 8px;
  height: 18px;
  right: 8px;
  top: 14px;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}

.top-contacts a {
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.9rem 2rem 1rem;
  align-items: center;
}

.main-nav a,
.cart-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  transition: background 0.22s ease, transform 0.18s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

button,
input[type="submit"],
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #ff4d53);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-actions a.btn,
.product-actions button.btn {
  width: 100%;
}

button:hover,
input[type="submit"]:hover,
a.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

button:focus-visible,
input[type="submit"]:focus-visible,
a.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff4d53);
  border-color: transparent;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.product-actions button,
.floating-cart .floating-cart-actions button {
  width: 100%;
}

.floating-cart {
  position: fixed;
  top: 88px;
  right: 1.5rem;
  z-index: 120;
  min-width: 280px;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.7rem;
}

.floating-cart.hidden {
  display: none !important;
}

.floating-cart strong {
  color: var(--accent);
  font-size: 0.98rem;
}

.floating-cart .floating-cart-actions {
  display: grid;
  gap: 0.65rem;
}

.floating-cart .floating-cart-actions a,
.floating-cart .floating-cart-actions button {
  width: 100%;
}

.main-nav a:hover,
.cart-info:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.cart-info {
  color: #fff;
}

.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.8rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
}

.hero-copy {
  padding: 1rem 0;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.hero-panel p {
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-aside {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: linear-gradient(180deg, #191919, #111111);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 360px;
  padding: 2rem;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.28);
}

.hero-card-title {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-card p {
  margin: 0.65rem 0;
  color: var(--text);
}

.summary-grid,
.card-grid,
.product-grid,
.category-grid,
.brand-grid,
.about-gallery {
  display: grid;
  gap: 1.5rem;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.summary-card,
.card,
.product-card,
.category-card,
.brand-card,
.dashboard-panel,
.purchase-card,
.about-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.75rem;
  padding: 1.75rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.summary-card:hover,
.card:hover,
.product-card:hover,
.category-card:hover,
.brand-card:hover,
.purchase-card:hover,
.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 15, 24, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
}

.summary-card h2,
.card h3,
.product-card h3,
.category-card h3,
.brand-card h3 {
  margin-top: 0;
}

.summary-card p,
.card p,
.product-card p,
.category-card p,
.brand-card p,
.purchase-card p,
.dashboard-panel p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.link-action {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title h2 {
  margin: 0;
  font-size: 2rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-grid,
.brand-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  display: grid;
  gap: 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-meta span {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.product-actions a,
.product-actions button {
  width: 100%;
}

.form-row {
  display: grid;
  gap: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.95);
  color: var(--text);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(225, 15, 24, 0.75);
  background: rgba(4, 4, 4, 1);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.42);
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

input::placeholder {
  color: #666;
}

.hidden {
  display: none !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dashboard-panel {
  min-height: 320px;
}

.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.95rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table th {
  color: var(--accent);
}

.cart-list,
.purchase-list {
  display: grid;
  gap: 1rem;
}

.cart-entry,
.purchase-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background: #111;
}

.cart-entry h4,
.purchase-card h4 {
  margin: 0 0 0.5rem;
}

.cart-entry p,
.purchase-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.alert {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(225, 15, 24, 0.12);
  color: #fff;
}

.alert.success {
  background: rgba(56, 183, 88, 0.18);
  color: #d7ffd9;
  border: 1px solid rgba(56, 183, 88, 0.35);
}

.alert.error {
  background: rgba(225, 15, 24, 0.18);
  color: #ffffff;
  border: 1px solid rgba(225, 15, 24, 0.35);
}

.about-story {
  margin-bottom: 1.5rem;
}

.about-gallery {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-card h3 {
  margin-bottom: 0.6rem;
}

.site-footer {
  padding: 2rem;
  background: #090909;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
}

@media (max-width: 900px) {
  .hero-panel,
  .dashboard-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar,
  .main-nav,
  .page-main,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-nav {
    gap: 0.5rem;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }
}
