/* ===== PREMIUM MONOCHROME THEME FOR OSSTORE 3.0.3.9 =====
   Классический чёрно-белый дизайн | Максимальная элегантность
   Объёмные тени | Профессиональная типографика
   ========================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Монохромная палитра - От глубокого чёрного до чистого белого */
  --black-pure: #000000;
  --black-soft: #0a0a0a;
  --black-light: #1a1a1a;
  --gray-darkest: #262626;
  --gray-darker: #333333;
  --gray-dark: #404040;
  --gray-medium: #525252;
  --gray-light: #737373;
  --gray-lighter: #a3a3a3;
  --gray-lightest: #d4d4d4;
  --white-dark: #e5e5e5;
  --white-soft: #f5f5f5;
  --white-pure: #ffffff;

  /* Основные поверхности */
  --bg-primary: var(--black-pure);
  --bg-secondary: var(--black-soft);
  --bg-tertiary: var(--black-light);
  --bg-surface: var(--gray-darkest);
  --bg-elevated: var(--gray-darker);
  --bg-card: var(--black-light);
  --bg-overlay: rgba(0, 0, 0, 0.8);

  /* Текстовая иерархия */
  --text-primary: var(--white-pure);
  --text-secondary: var(--white-soft);
  --text-tertiary: var(--white-dark);
  --text-quaternary: var(--gray-lightest);
  --text-muted: var(--gray-lighter);
  --text-subtle: var(--gray-light);
  --text-disabled: var(--gray-medium);

  /* Границы */
  --border-subtle: var(--gray-dark);
  --border-primary: var(--gray-medium);
  --border-secondary: var(--gray-light);
  --border-strong: var(--gray-lighter);

  /* Система теней - Драматические объёмные тени */
  --shadow-ambient: 0 1px 3px rgba(0, 0, 0, 0.8);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.9);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.95), 0 4px 8px rgba(0, 0, 0, 0.85);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.98), 0 8px 16px rgba(0, 0, 0, 0.9);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.99), 0 12px 24px rgba(0, 0, 0, 0.95);
  
  /* Внутренние тени */
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-inset-lg: inset 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-inset-deep: inset 0 6px 12px rgba(0, 0, 0, 0.6);

  /* Подсветка */
  --highlight-subtle: rgba(255, 255, 255, 0.05);
  --highlight-soft: rgba(255, 255, 255, 0.1);
  --highlight-medium: rgba(255, 255, 255, 0.15);
  --highlight-strong: rgba(255, 255, 255, 0.25);

  /* Переходы */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Радиусы */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;
  --radius-full: 9999px;

  /* Отступы */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--white-pure);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  font-variant-ligatures: common-ligatures;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  margin: 0 0 var(--space-5) 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

h1 { font-size: 2.75rem; font-weight: 900; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; font-weight: 700; }
h6 { font-size: 1rem; color: var(--text-secondary); font-weight: 600; }

p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-4) 0;
  font-weight: 400;
}

a {
  color: var(--text-quaternary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
}

a:hover, a:focus {
  color: var(--text-primary);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

strong, b {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== BUTTONS - Объёмные монохромные ===== */
.btn, .button, button[type="submit"], input[type="submit"], input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--gray-darker) 0%, var(--gray-darkest) 50%, var(--black-light) 100%);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-height: 42px;
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--highlight-soft);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--highlight-medium), transparent);
  transition: left var(--transition-slow);
}

.btn:hover {
  background: linear-gradient(145deg, var(--gray-dark) 0%, var(--gray-darker) 50%, var(--gray-darkest) 100%);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--highlight-medium);
  transform: translateY(-2px);
  color: var(--text-primary);
  text-decoration: none;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm), inset 0 2px 6px rgba(0, 0, 0, 0.4);
  background: linear-gradient(145deg, var(--gray-darkest) 0%, var(--black-light) 50%, var(--black-soft) 100%);
}

.btn:disabled {
  background: var(--gray-medium);
  color: var(--text-disabled);
  border-color: var(--border-subtle);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-xs);
  opacity: 0.6;
}

.btn:disabled::before {
  display: none;
}

/* Button variants */
.btn-default, .btn-secondary {
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-tertiary) 50%, var(--black-soft) 100%);
  color: var(--text-secondary);
  border-color: var(--border-primary);
}

.btn-default:hover, .btn-secondary:hover {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-surface) 50%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-primary {
  background: linear-gradient(145deg, var(--white-pure) 0%, var(--white-soft) 50%, var(--white-dark) 100%);
  color: var(--black-pure);
  border-color: var(--white-dark);
  text-shadow: none;
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--white-pure) 0%, var(--white-pure) 100%);
  color: var(--black-pure);
  border-color: var(--white-pure);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--black-pure);
  border-color: var(--text-primary);
  text-shadow: none;
}

.btn-sm, .btn-xs {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
  min-height: 36px;
  font-weight: 600;
}

.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: 1rem;
  min-height: 52px;
  font-weight: 800;
}

/* ===== FORMS - Глубокие объёмные поля ===== */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition-normal);
  min-height: 44px;
  box-shadow: var(--shadow-inset-deep), var(--shadow-ambient);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-subtle);
  opacity: 1;
  font-weight: 400;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-inset-deep), 0 0 0 4px var(--highlight-medium), var(--shadow-md);
  transform: translateY(-1px);
}

.form-control:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  background: var(--gray-darkest);
  border-color: var(--border-subtle);
  color: var(--text-disabled);
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: var(--shadow-inset);
}

/* Form styling */
.form-group {
  margin-bottom: var(--space-6);
}

.control-label, .form-label, label {
  display: block;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.required::after {
  content: ' *';
  color: var(--text-primary);
  font-weight: 700;
}

.help-block, .form-text {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-top: var(--space-2);
  font-style: italic;
}

/* ===== BOOTSTRAP GRID - Полная совместимость ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  position: relative;
  min-height: 1px;
  padding: 0 15px;
  flex: 0 0 auto;
}

/* Колонки XS (по умолчанию) */
.col-xs-1 { width: 8.333333%; }
.col-xs-2 { width: 16.666667%; }
.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.333333%; }
.col-xs-5 { width: 41.666667%; }
.col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.333333%; }
.col-xs-8 { width: 66.666667%; }
.col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.333333%; }
.col-xs-11 { width: 91.666667%; }
.col-xs-12 { width: 100%; }

/* SM колонки */
.col-sm-1 { width: 8.333333%; }
.col-sm-2 { width: 16.666667%; }
.col-sm-3 { width: 25%; }
.col-sm-4 { width: 33.333333%; }
.col-sm-5 { width: 41.666667%; }
.col-sm-6 { width: 50%; }
.col-sm-7 { width: 58.333333%; }
.col-sm-8 { width: 66.666667%; }
.col-sm-9 { width: 75%; }
.col-sm-10 { width: 83.333333%; }
.col-sm-11 { width: 91.666667%; }
.col-sm-12 { width: 100%; }

/* ===== HEADER - Монументальный дизайн ===== */
#header {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 3px solid var(--white-pure);
  padding: var(--space-5) 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-2xl);
}

#header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-pure), transparent);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
}

#logo {
  flex-shrink: 0;
  position: relative;
}

#logo img {
  max-height: 56px;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9)) contrast(1.1) brightness(1.05);
}

#logo:hover img {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.95)) contrast(1.2) brightness(1.1);
  transform: scale(1.03);
}

/* Search - Элегантный поиск */
#search {
  position: relative;
  max-width: 450px;
  flex: 1 1 350px;
}

#search .form-control {
  padding: var(--space-4) var(--space-6);
  padding-right: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-inset-deep), var(--shadow-sm);
  font-size: 0.9375rem;
}

#search .form-control:focus {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-inset-deep), 0 0 0 4px var(--highlight-medium), var(--shadow-lg);
  transform: translateY(-1px);
}

#search .btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  padding: 0;
  min-height: auto;
  background: linear-gradient(145deg, var(--text-primary) 0%, var(--gray-lightest) 100%);
  color: var(--black-pure);
  border: none;
  box-shadow: var(--shadow-md);
  text-shadow: none;
}

#search .btn:hover {
  background: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.05);
}

/* Cart - Стильная корзина */
#cart .btn {
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  border-color: var(--border-primary);
  position: relative;
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--highlight-subtle);
  min-width: 120px;
}

#cart .btn:hover {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-surface) 50%, var(--bg-tertiary) 100%);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--highlight-soft);
}

#cart .btn .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(145deg, var(--text-primary) 0%, var(--gray-lightest) 100%);
  color: var(--black-pure);
  border-radius: var(--radius-full);
  width: 22px;
  height: 22px;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--bg-primary);
  text-shadow: none;
}

/* ===== NAVIGATION - Архитектурное меню ===== */
#menu {
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-surface) 100%);
  border-bottom: 2px solid var(--border-primary);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--highlight-subtle);
}

.navbar {
  border: none;
  margin: 0;
  background: transparent;
  min-height: auto;
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.navbar-nav > li > a,
.nav > li > a {
  display: block;
  padding: var(--space-5) var(--space-6);
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-normal);
  border-bottom: 4px solid transparent;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.navbar-nav > li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--highlight-subtle) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.nav > li.active > a {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-bottom-color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.navbar-nav > li > a:hover::before,
.navbar-nav > li.active > a::before {
  opacity: 1;
}

/* Dropdown menus - Глубокие тени */
.dropdown-menu {
  background: var(--bg-elevated);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-4) 0;
  margin-top: 8px;
  min-width: 240px;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 24px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--bg-elevated);
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.5));
}

.dropdown-menu li a {
  padding: var(--space-4) var(--space-6);
  color: var(--text-secondary);
  display: block;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  border-left: 4px solid transparent;
}

.dropdown-menu li a:hover {
  background: linear-gradient(90deg, var(--highlight-soft) 0%, transparent 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-left-color: var(--text-primary);
  padding-left: var(--space-8);
  box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.2);
}

.dropdown-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: var(--space-3) var(--space-4);
  border: none;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-tertiary) 100%);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--highlight-subtle);
}

.breadcrumb > li {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.breadcrumb > li a {
  color: var(--text-tertiary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.breadcrumb > li a:hover {
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.breadcrumb > li + li::before {
  content: '/';
  margin: 0 var(--space-3);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.1em;
}

.breadcrumb > li:last-child {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== PRODUCT COMPONENTS - Премиум карточки ===== */
.product-thumb {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.product-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--highlight-subtle) 0%, transparent 50%, var(--highlight-subtle) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.product-thumb:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-6px);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.product-thumb:hover::before {
  opacity: 1;
}

.product-thumb .image {
  position: relative;
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  padding: var(--space-6);
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 2