/* ========================================
   CENTER SUPPLEMENT — BLACK & RED THEME
   ======================================== */

:root {
  --bg: #0b0b0d;
  --surface: #151518;
  --surface-light: #202024;
  --red: #e32636;
  --red-hover: #ff3547;
  --text: #f5f5f5;
  --muted: #a7a7af;
  --border: #303036;
  --success: #36c98f;
  --danger: #ff5a65;
  --radius: 16px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

body,
input,
button,
textarea,
select {
  font-family: Tahoma, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font-size: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

[hidden] {
  display: none !important;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(5%, calc((100% - 1200px) / 2));
  background: rgba(11, 11, 13, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 1px;
}

.logo span {
  color: var(--red);
  font-size: 11px;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.nav-links a {
  color: #dedee2;
  font-size: 13px;
  transition: color 0.2s;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--red-hover);
}

#cart-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  padding: 0 5px;
  border-radius: 50px;
  background: var(--red);
  color: white;
  font-size: 11px;
}

/* Layout */

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section {
  padding-top: 48px;
  padding-bottom: 64px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(27px, 4vw, 43px);
  line-height: 1.5;
}

h2 {
  font-size: 22px;
  line-height: 1.6;
}

h3 {
  font-size: 16px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}

.muted,
small {
  color: var(--muted);
}

.text-link {
  color: #ff6571;
  font-size: 13px;
  transition: color 0.2s;
}

.link-button {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: clamp(32px, 7vw, 80px);
  border: 1px solid #482027;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(227, 38, 54, 0.23), transparent 45%),
    linear-gradient(135deg, #1b1114, #111113 65%);
}

.hero h1 {
  max-width: 700px;
}

.hero h1 span {
  color: var(--red);
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  color: #bcbcc4;
}

/* Buttons */

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-red {
  background: var(--red);
  color: white;
}

.btn-red:hover:not(:disabled) {
  background: var(--red-hover);
}

.btn-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--red);
  background: rgba(227, 38, 54, 0.07);
}

.btn-block {
  width: 100%;
  margin-top: 12px;
}

/* Sections */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading h1 {
  margin-bottom: 0;
}

/* Search */

.search-bar {
  margin-bottom: 25px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #101013;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #777780;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 38, 54, 0.12);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* Forms */

form label,
.panel > label,
.filter-row label,
.account-card label {
  display: block;
  margin: 16px 0 7px;
  color: #e6e6eb;
  font-size: 13px;
  font-weight: bold;
}

form .btn {
  margin-top: 20px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.account-tabs .btn {
  width: 100%;
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #77303a;
}

.product-card > a {
  display: block;
  flex: 1;
}

.product-image {
  display: flex;
  height: 220px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 11px;
  background: #202024;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-placeholder {
  padding: 20px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;
}

.product-card-content {
  padding: 15px 3px 8px;
}

.product-category {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 11px;
}

.product-card h3 {
  min-height: 50px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.product-price {
  color: #ff5b6a;
  font-size: 16px;
}

.old-price {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.loading {
  padding: 24px 0;
  color: var(--muted);
}

/* Product detail */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 40px;
  margin-top: 25px;
}

.product-detail-image {
  display: flex;
  min-height: 350px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.product-detail-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.product-description {
  margin-top: 22px;
  color: #c5c5cd;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.product-specifications {
  margin: 25px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.product-specifications p {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.product-specifications p:last-child {
  margin-bottom: 0;
}

.product-detail-content .btn {
  margin: 5px 5px 5px 0;
}

/* Cart */

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.cart-item > img {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface-light);
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  overflow-wrap: anywhere;
}

.cart-item > strong {
  white-space: nowrap;
}

.quantity-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.quantity-controls button {
  min-width: 30px;
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-light);
  color: var(--text);
}

.quantity-controls button:hover {
  border-color: var(--red);
}

.cart-summary {
  max-width: 500px;
  margin: 30px 0 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.summary-row > * {
  overflow-wrap: anywhere;
}

.total-row {
  margin-top: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}

.total-row strong {
  color: #ff5968;
  text-align: left;
}

/* Account */

.account-page {
  display: flex;
  justify-content: center;
}

.account-card {
  width: min(100%, 500px);
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-card h1 {
  font-size: 30px;
}

.account-card form h2 {
  margin-bottom: 18px;
}

/* Checkout */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 24px;
  margin-top: 28px;
}

.panel {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel h2 {
  margin-bottom: 14px;
}

.choice {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 !important;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--red);
  background: rgba(227, 38, 54, 0.06);
}

.choice input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 5px;
  accent-color: var(--red);
}

.choice span {
  display: grid;
  gap: 5px;
}

.choice small {
  font-weight: normal;
}

.payment-card {
  display: grid;
  gap: 7px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #55232a;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(227, 38, 54, 0.12), transparent),
    #111113;
}

.payment-card strong[dir="ltr"] {
  padding: 10px 0;
  font-size: clamp(16px, 3vw, 21px);
  letter-spacing: 1px;
  text-align: center;
}

hr {
  margin: 25px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Admin */

.filter-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 0;
}

.filter-row label {
  flex-shrink: 0;
  margin: 0;
}

.admin-orders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.order-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.order-card h3 {
  color: #ff6571;
  overflow-wrap: anywhere;
}

.order-card p {
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}

.order-card label {
  display: block;
  margin: 15px 0 7px;
  font-size: 13px;
}

.order-card select {
  margin-bottom: 8px;
}

/* Messages */

.message {
  margin-top: 16px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.message:empty {
  display: none;
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--danger);
}

.empty-state {
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.site-footer {
  margin-top: 35px;
  padding: 35px 5%;
  border-top: 1px solid var(--border);
  background: #080809;
  text-align: center;
}

.site-footer strong {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 2px;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-orders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    flex-direction: column;
    gap: 12px;
    padding: 16px 5%;
  }

  .nav-links {
    justify-content: center;
    gap: 17px;
  }

  .container {
    width: 92%;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 45px;
  }

  .hero {
    margin-top: 18px;
    padding: 30px 22px;
    border-radius: 17px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 9px;
  }

  .product-image {
    height: 160px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-price {
    font-size: 14px;
  }

  .product-card .btn {
    padding: 9px 6px;
    font-size: 11px;
  }

  .product-detail,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-detail-image {
    min-height: 250px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cart-item > strong {
    width: 100%;
    text-align: left;
  }

  .cart-summary {
    padding: 18px;
  }

  .filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 220px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 12px;
  }
}
