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

:root {
  --color-bg: #fbfbfd;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: #d2d2d7;
  --color-success: #34c759;
  --color-danger: #ff3b30;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 52px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s;
}

.cart-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

.logo__badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 6px;
}

.header--admin .header__inner {
  gap: 16px;
}

/* Banner */
.banner {
  width: 100%;
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 45%, #1d1d1f 100%);
  overflow: hidden;
}

.banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 420px;
}

.banner__content {
  color: #f5f5f7;
  padding-bottom: 48px;
}

.banner__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.banner__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: #a1a1a6;
  margin-bottom: 28px;
  max-width: 380px;
  line-height: 1.5;
}

.banner__cta {
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.35);
}

.banner__cta:hover {
  box-shadow: 0 6px 28px rgba(0, 113, 227, 0.5);
}

.banner__visual {
  padding-bottom: 40px;
}

.banner__hero {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.banner:hover .banner__hero {
  transform: scale(1.01);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
}

/* Products grid */
.section {
  padding: 24px 0 80px;
}

.section__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
  position: relative;
  height: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(40px);
  pointer-events: none;
}

.product-card[data-bg="phones"] .product-card__image-wrap {
  background: linear-gradient(145deg, #0b1d26 0%, #1a3a4a 55%, #0f2d3d 100%);
}

.product-card[data-bg="audio"] .product-card__image-wrap {
  background: linear-gradient(145deg, #1a1033 0%, #2d1b69 55%, #1e1145 100%);
}

.product-card[data-bg="watch"] .product-card__image-wrap {
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 50%, #3a3a3c 100%);
}

.product-card[data-bg="laptop"] .product-card__image-wrap {
  background: linear-gradient(145deg, #0d1117 0%, #161b22 50%, #21262d 100%);
}

.product-card[data-bg="tablet"] .product-card__image-wrap {
  background: linear-gradient(145deg, #0a2540 0%, #134074 55%, #0d3b66 100%);
}

.product-card[data-bg="default"] .product-card__image-wrap {
  background: linear-gradient(145deg, #2c2c2e 0%, #48484a 100%);
}

.product-card__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 200px;
}

.product-card__category {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-card__name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-card__description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  flex: 1;
  min-height: 63px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .add-to-cart-btn {
  transition: background 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.product-card:hover .add-to-cart-btn {
  background: #0077ed;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.45);
  filter: brightness(1.12);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card__cart-action {
  flex-shrink: 0;
}

.qty-control--card {
  background: var(--color-accent);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.25);
  transition: background 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.qty-control--card .qty-control__btn {
  color: #fff;
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.qty-control--card .qty-control__btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.qty-control--card .qty-control__value {
  color: #fff;
  min-width: 32px;
  font-size: 15px;
  font-weight: 600;
}

.product-card:hover .qty-control--card {
  background: #0077ed;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.45);
  filter: brightness(1.08);
}

.product-card__price {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-card__price-currency {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 980px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

.btn--danger {
  background: transparent;
  color: var(--color-danger);
  padding: 8px 12px;
}

.btn--danger:hover {
  background: rgba(255, 59, 48, 0.08);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

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

/* Quantity controls */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 980px;
  overflow: hidden;
}

.qty-control__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-accent);
  transition: background 0.2s;
}

.qty-control__btn:hover {
  background: rgba(0, 113, 227, 0.08);
}

.qty-control__value {
  min-width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

/* Cart page */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
}

.page-header__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-header__subtitle {
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-size: 17px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding-bottom: 80px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.cart-item__image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f5f5f7;
  border-radius: var(--radius-sm);
  padding: 8px;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cart-item__total {
  font-size: 17px;
  font-weight: 600;
  min-width: 90px;
  text-align: right;
}

.cart-summary {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.cart-summary__title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 21px;
  font-weight: 600;
}

.checkout-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-bg);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-group input.error {
  border-color: var(--color-danger);
}

.form-error {
  font-size: 12px;
  color: var(--color-danger);
}

.cart-empty {
  text-align: center;
  padding: 80px 22px;
}

.cart-empty__icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.cart-empty__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-empty__text {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* Toast / Alert */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: #fff;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

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

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #f0f0f5 100%);
}

.success {
  width: 100%;
  padding: 40px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success__card {
  text-align: center;
  background: var(--color-surface);
  border-radius: 24px;
  padding: 56px 48px 48px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  animation: successFadeIn 0.6s ease;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  color: var(--color-success);
  animation: successCheck 0.5s ease 0.2s both;
}

@keyframes successCheck {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success__icon svg {
  width: 100%;
  height: 100%;
}

.success__title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 12px;
}

.success__subtitle {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}

.success__btn {
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.25);
}

.success__btn:hover {
  box-shadow: 0 6px 28px rgba(0, 113, 227, 0.35);
}

@media (max-width: 480px) {
  .success__card {
    padding: 44px 28px 36px;
  }
}

/* Loading & Error states */
.loading {
  text-align: center;
  padding: 80px 22px;
  color: var(--color-text-secondary);
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  padding: 40px;
  color: var(--color-danger);
  background: rgba(255, 59, 48, 0.06);
  border-radius: var(--radius-md);
  margin: 24px 0;
}

/* Admin */
.admin-layout {
  padding-bottom: 80px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f5f5f7;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f5f5f7;
  border-radius: 6px;
  padding: 4px;
}

.admin-table input,
.admin-table textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.admin-table textarea {
  min-height: 60px;
  resize: vertical;
}

.admin-table .btn {
  padding: 6px 14px;
  font-size: 12px;
}

.admin-image-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-bg);
  margin-bottom: 8px;
}

.admin-image-preview {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  background: #f5f5f7;
  padding: 8px;
}

.form-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge--active {
  background: rgba(52, 199, 89, 0.12);
  color: var(--color-success);
}

.status-badge--inactive {
  background: rgba(255, 59, 48, 0.1);
  color: var(--color-danger);
}

.admin-login {
  max-width: 400px;
  margin: 80px auto;
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admin-login__title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.admin-login__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.product-card__name a {
  color: inherit;
  transition: color 0.2s;
}

.product-card__name a:hover {
  color: var(--color-accent);
}

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Catalog toolbar */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}

.catalog-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.catalog-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.catalog-search__input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--color-border);
  border-radius: 980px;
  font-size: 15px;
  font-family: inherit;
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-select {
  padding: 11px 36px 11px 16px;
  border: 1px solid var(--color-border);
  border-radius: 980px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s;
}

.catalog-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.catalog-empty {
  text-align: center;
  padding: 48px 22px;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.section--muted {
  background: #f5f5f7;
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin: -16px auto 40px;
  max-width: 520px;
  font-size: 17px;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f7;
}

.review-card__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.review-card__date {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.review-card__stars {
  color: #ffb800;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Info blocks */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.info-card__title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.info-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card__list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  padding-left: 18px;
  position: relative;
}

.info-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Product page */
.product-page-wrap {
  padding: 32px 22px 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #2c2c2e 0%, #48484a 100%);
  margin-bottom: 16px;
}

.product-gallery__main[data-bg="phones"] {
  background: linear-gradient(145deg, #0b1d26 0%, #1a3a4a 55%, #0f2d3d 100%);
}

.product-gallery__main[data-bg="audio"] {
  background: linear-gradient(145deg, #1a1033 0%, #2d1b69 55%, #1e1145 100%);
}

.product-gallery__main[data-bg="watch"] {
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 50%, #3a3a3c 100%);
}

.product-gallery__main[data-bg="laptop"] {
  background: linear-gradient(145deg, #0d1117 0%, #161b22 50%, #21262d 100%);
}

.product-gallery__main[data-bg="tablet"] {
  background: linear-gradient(145deg, #0a2540 0%, #134074 55%, #0d3b66 100%);
}

.product-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, object-position 0.35s ease;
}

.product-gallery__thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #f5f5f7;
  transition: border-color 0.2s, transform 0.2s;
}

.product-gallery__thumb:hover {
  transform: scale(1.04);
}

.product-gallery__thumb.active {
  border-color: var(--color-accent);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__category {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.product-detail__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.product-detail__price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.product-detail__description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.product-detail__add-btn {
  min-width: 240px;
}

.product-detail__qty {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-detail__qty-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.qty-control--lg .qty-control__btn {
  width: 40px;
  height: 40px;
}

.qty-control--lg .qty-control__value {
  min-width: 40px;
  font-size: 17px;
}

.product-not-found {
  text-align: center;
  padding: 80px 22px;
}

.product-not-found h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 32px;
  }

  .banner__content {
    padding-bottom: 16px;
  }

  .banner__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .banner__hero {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item__actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }

  .product-card {
    min-height: 420px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-filters {
    flex-direction: column;
  }

  .catalog-select {
    width: 100%;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }
}
