/* ============================================================
   KAZDAL OTOMOTİV — Modern Design System
   Dark Navy #1a2332 | Electric Blue #2563eb | White #ffffff
   ============================================================ */

/* --- Google Fonts (Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --navy:       #1a2332;
  --navy-dark:  #111827;
  --navy-mid:   #243044;
  --blue:       #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #dbeafe;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --green:      #16a34a;
  --green-light:#dcfce7;
  --red:        #dc2626;
  --red-light:  #fee2e2;
  --yellow:     #d97706;
  --yellow-light:#fef3c7;
  --radius-sm:  4px;
  --radius:     6px;
  --radius-lg:  8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow:     0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --header-h:   64px;
  --transition: 0.15s ease;
  --silver:       #94a3b8;
  --silver-light: #e2e8f0;
  --silver-dark:  #64748b;
  --chrome-grad:  linear-gradient(135deg, #94a3b8 0%, #cbd5e1 50%, #94a3b8 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
a:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

img { max-width: 100%; height: auto; vertical-align: middle; }

h1,h2,h3,h4,h5,h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
ul.list-unstyled { list-style: none; padding-left: 0; }
ul.list-inline    { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
ul.list-inline > li { display: inline-block; }

hr { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--gray-200); }

small, .small { font-size: 0.8125rem; }

/* --- Screen-reader utilities --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1200px) { .container { padding: 0 2rem; } }

.container-fluid { width: 100%; padding: 0 1rem; }

/* Bootstrap grid compatibility */
.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 { width:100%; float:left; padding:0 0.75rem; box-sizing:border-box; }
.col-xs-6,.col-sm-6  { width:50%; float:left; padding:0 0.75rem; box-sizing:border-box; }
.col-xs-4,.col-sm-4  { width:33.3333%; float:left; padding:0 0.75rem; box-sizing:border-box; }
.col-xs-3,.col-sm-3  { width:25%; float:left; padding:0 0.75rem; box-sizing:border-box; }
.col-xs-2,.col-sm-2  { width:16.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }

@media (min-width: 768px) {
  .col-sm-5  { width:41.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-sm-7  { width:58.3333%; float:left; padding:0 0.75rem; box-sizing:border-box; }
}
@media (min-width: 992px) {
  .col-md-2  { width:16.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-md-3  { width:25%;      float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-md-4  { width:33.3333%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-md-5  { width:41.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-md-6  { width:50%;      float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-md-8  { width:66.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-md-9  { width:75%;      float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-md-offset-3 { margin-left:25%; }
}
@media (min-width: 1200px) {
  .col-lg-2  { width:16.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-3  { width:25%;      float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-4  { width:33.3333%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-5  { width:41.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-6  { width:50%;      float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-7  { width:58.3333%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-8  { width:66.6667%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-9  { width:75%;      float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-10 { width:83.3333%; float:left; padding:0 0.75rem; box-sizing:border-box; }
  .col-lg-offset-1  { margin-left:8.3333%; }
  .col-lg-offset-2  { margin-left:16.6667%; }
  .col-lg-offset-3  { margin-left:25%; }
  .col-lg-offset-4  { margin-left:33.3333%; }
  .col-lg-offset-5  { margin-left:41.6667%; }
}

.row { margin-left:-0.75rem; margin-right:-0.75rem; }
.row::after { content:''; display:table; clear:both; }

.clearfix::after { content: ''; display: table; clear: both; }
.group::after    { content: ''; display: table; clear: both; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  min-height: calc(100vh - var(--header-h) - 80px);
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 3rem;
}

/* ============================================================
   GUEST HERO BANNER
   ============================================================ */
.guest-hero {
  background: var(--navy);
  border-bottom: 1px solid var(--silver);
  padding: 0;
}
.guest-hero .container {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.guest-hero-text strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.guest-hero-text span {
  display: block;
  font-size: 0.875rem;
  color: var(--silver);
  margin-top: 0.25rem;
  font-weight: 400;
}
.guest-hero-actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .guest-hero .container { flex-direction: column; align-items: flex-start; min-height: auto; padding-top: 1rem; padding-bottom: 1rem; }
  .guest-hero-actions { width: 100%; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo */
header .logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
header .logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
header .logo:hover { text-decoration: none; }

/* Split bg (legacy) */
.left-bg, .right-bg, .mobile-border { display: none; }

/* ------------------------------------------------------------
   Brand wordmark — brushed-chrome treatment (automotive badge feel).
   Selector matches Bootstrap's `.navbar-dark .navbar-brand` specificity
   so the metallic fill wins over its flat white `color`.
   ------------------------------------------------------------ */
.navbar-dark .navbar-brand {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.14em;
  padding-right: 0.25rem;
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #eef2f6 18%,
    #aab4c1 43%,
    #767f8d 50%,
    #c6cfda 57%,
    #ffffff 78%,
    #9aa6b4 100%
  );
  background-size: 100% 240%;
  background-position: 50% 32%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* drop-shadow paints the glyphs (not a box), giving an engraved edge */
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.12));
  transition: background-position 0.45s ease, filter 0.25s ease;
}
/* Hover: slide the highlight band down the letters like light catching metal */
.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-position: 50% 82%;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 6px rgba(219, 234, 254, 0.4));
}

/* Fallback where background-clip:text is unsupported — plain silver text */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .navbar-dark .navbar-brand,
  .navbar-dark .navbar-brand:hover,
  .navbar-dark .navbar-brand:focus {
    background: none;
    color: #e8edf3;
    -webkit-text-fill-color: #e8edf3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-dark .navbar-brand { transition: none; }
  .navbar-dark .navbar-brand:hover,
  .navbar-dark .navbar-brand:focus { background-position: 50% 32%; }
}

/* Nav */
nav.menu {
  flex: 1;
  display: flex;
  align-items: center;
}
nav.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.125rem;
}
nav.menu ul.catalog { margin-left: 0.5rem; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 0.5rem; }

nav.menu ul li { display: list-item; }
nav.menu ul li.hide-sm a {
  display: block;
  padding: 0.4375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
nav.menu ul li.hide-sm a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Search Form */
.search-form {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--navy-dark);
  padding: 0.75rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.search-form.closed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.search-form .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.search-form .form-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.search-form input[type="text"],
.search-form input[name="search-hd"] {
  flex: 1;
  height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
}
.search-form input[type="text"]::placeholder { color: rgba(255,255,255,0.45); }
.search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.12);
}
.search-form button[type="submit"] {
  height: 42px;
  padding: 0 1.25rem;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}
.search-form button[type="submit"]:hover { background: var(--blue-hover); }
.close-search {
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  padding: 0 0.375rem;
  transition: color var(--transition);
  user-select: none;
}
.close-search:hover { color: var(--white); }

/* Search & buttons in toolbar */
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  padding: 0;
}
.search-btn:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-outlined-invert {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-outlined-invert:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  text-decoration: none;
}

.middle-btns {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 1.125rem;
  transition: background var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 767px) {
  .menu-toggle { display: flex; }
  nav.menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  nav.menu.open { display: flex; }
  nav.menu ul { flex-direction: column; width: 100%; gap: 0; }
  nav.menu ul.catalog { margin-left: 0; border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.5rem; margin-top: 0.5rem; }
  nav.menu ul li { display: block; width: 100%; }
  nav.menu ul li.hide-sm a { display: block; padding: 0.625rem 0.75rem; width: 100%; }
  .middle-btns .btn-outlined-invert span { display: none; }
  header .logo img { height: 28px; max-width: 90px; object-fit: contain; }
  header .container { gap: 0.5rem; }
}

@media (max-width: 380px) {
  header .container { gap: 0.25rem; }
  header .logo img { max-width: 72px; }
  .middle-btns { gap: 0.25rem; }
  .btn-outlined-invert { padding: 0.25rem 0.5rem; }
}

.small-header header,
header.stuck { box-shadow: 0 2px 12px rgba(0,0,0,0.4); }

/* ============================================================
   CART DROPDOWN
   ============================================================ */
.cart-btn { position: relative; }
.cart-btn > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.cart-btn > a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.cart-btn > a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--blue);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}

.cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
  overflow: hidden;
}
.cart-dropdown > span {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  display: block;
}
.cart-btn:hover .cart-dropdown,
.cart-btn:focus-within .cart-dropdown { display: block; }

.cart-dropdown .body {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.75rem;
}
.cart-dropdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.cart-dropdown table th {
  padding: 0.375rem 0.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-dropdown table tr.item td { padding: 0.5rem; color: var(--gray-700); vertical-align: middle; }
.cart-dropdown table tr.item:hover td { background: var(--gray-50); }
.cart-dropdown .delete { cursor: pointer; color: var(--red); }
.cart-dropdown .removeProductButton { cursor: pointer; width: 18px; height: 18px; display: inline-block; background: var(--red-light); color: var(--red); border-radius: 3px; text-align: center; line-height: 18px; font-size: 0.75rem; }

.cart-dropdown .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.cart-dropdown .footer .buttons { display: flex; gap: 0.5rem; }
.cart-dropdown .footer .buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}
.cart-dropdown .footer .buttons a:first-child { background: var(--gray-200); color: var(--gray-700); }
.cart-dropdown .footer .buttons a:first-child:hover { background: var(--gray-300); }
.cart-dropdown .footer .buttons a:last-child { background: var(--blue); color: var(--white); }
.cart-dropdown .footer .buttons a:last-child:hover { background: var(--blue-hover); }
.cart-dropdown .footer .total { font-weight: 700; color: var(--navy); font-size: 0.9375rem; }

.quantityField {
  width: 60px;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  text-align: center;
  font-family: inherit;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1rem; }

label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-control {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control { background: var(--gray-100); cursor: not-allowed; opacity: 0.7; }
textarea.form-control { height: auto; padding: 0.625rem 0.875rem; resize: vertical; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px; padding-right: 2.25rem; }

.help-link { display: inline-block; margin-top: 0.375rem; font-size: 0.8125rem; color: var(--blue); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend {
  display: block;
  width: 100%;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--silver);
}

.input-group { position: relative; display: table; border-collapse: separate; }
.input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; }
.input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; display: table-cell; }
.input-group-addon { padding: 0 0.75rem; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--gray-600); display: table-cell; white-space: nowrap; width: 1%; vertical-align: middle; }

.radio, .checkbox { margin: 0.5rem 0; display: block; }
.radio label, .checkbox label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; cursor: pointer; }
.radio input[type="radio"], .checkbox input[type="checkbox"] { cursor: pointer; }
.radio-inline, .checkbox-inline { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 400; }

.has-success .form-control { border-color: var(--green); }
.has-error   .form-control { border-color: var(--red); }
.help-block { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.25rem; display: block; }

.form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; }
.form-inline .form-control { display: inline-block; width: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  user-select: none;
  -webkit-appearance: none;
}
.btn:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--white); }

.btn-success { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-success:hover, .btn-success:focus { background: #15803d; border-color: #15803d; color: var(--white); }

.btn-danger  { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-danger:hover, .btn-danger:focus  { background: #b91c1c; border-color: #b91c1c; color: var(--white); }

.btn-warning { background: var(--yellow); border-color: var(--yellow); color: var(--white); }
.btn-warning:hover, .btn-warning:focus { background: #b45309; border-color: #b45309; color: var(--white); }

.btn-default { background: var(--gray-200); border-color: var(--gray-300); color: var(--gray-700); }
.btn-default:hover, .btn-default:focus { background: var(--gray-300); color: var(--gray-800); }

.btn-info    { background: #0ea5e9; border-color: #0ea5e9; color: var(--white); }
.btn-info:hover, .btn-info:focus { background: #0284c7; color: var(--white); }

.btn-link { background: transparent; border-color: transparent; color: var(--blue); }
.btn-link:hover { color: var(--blue-hover); text-decoration: underline; }

.btn-sm, .btn-group-sm > .btn { padding: 0.3125rem 0.875rem; font-size: 0.8125rem; }
.btn-lg, .btn-group-lg > .btn { padding: 0.75rem 1.75rem; font-size: 1.0625rem; }
.btn-xs, .btn-group-xs > .btn { padding: 0.1875rem 0.625rem; font-size: 0.75rem; }
.btn-block { display: flex; width: 100%; }
input.btn-block, button.btn-block { width: 100%; }

.btn-group { position: relative; display: inline-flex; vertical-align: middle; }
.btn-group > .btn { position: relative; }
.btn-group > .btn:not(:first-child) { margin-left: -1px; border-radius: 0; }
.btn-group > .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.btn-group > .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ============================================================
   BADGES / LABELS
   ============================================================ */
.badge, .label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  vertical-align: middle;
}
.label-success, .badge-success { background: var(--green-light); color: #15803d; }
.label-danger,  .badge-danger  { background: var(--red-light); color: var(--red); }
.label-warning, .badge-warning { background: var(--yellow-light); color: #92400e; }
.label-info,    .badge-info    { background: #e0f2fe; color: #0369a1; }
.label-default, .badge-default { background: var(--gray-200); color: var(--gray-700); }

/* ============================================================
   TABLES
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
}
.table > thead > tr > th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 2px solid var(--silver);
  vertical-align: bottom;
}
.table > tbody > tr > td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.table-striped > tbody > tr:nth-child(odd) > td { background: var(--gray-50); }
.table-hover > tbody > tr:hover > td { background: rgba(148,163,184,0.08); }
.table-bordered { border: 1px solid var(--gray-200); }
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td { border: 1px solid var(--gray-200); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Items list (order/transaction/search tables) */
.items-list,
.item-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.items-list th,
.item-list th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 2px solid var(--silver);
}
.items-list tr.item td,
.item-list tr.item td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.items-list tr.item:hover td,
.item-list tr.item:hover td { background: rgba(148,163,184,0.08); }
.items-list tr.item:last-child td,
.item-list tr.item:last-child td { border-bottom: none; }

/* Zebra striping — opt-in via `.striped` (used by the search results table) */
.items-list.striped tr.item:nth-child(even) td { background: var(--gray-50); }
.items-list.striped tr.item:hover td { background: rgba(148,163,184,0.14); }

/* ============================================================
   MODALS
   ============================================================ */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1050; overflow-x: hidden; overflow-y: auto; }
.modal.in { display: block; }
.modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); z-index: 1040; }
.modal-backdrop.in { opacity: 1; }
.modal-dialog { margin: 3rem auto; max-width: 560px; width: calc(100% - 2rem); }
.modal-content {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  border-bottom: 2px solid var(--silver);
}
.modal-header h2,
.modal-header h4.modal-title,
.modal-header h4 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
}
.modal-header h2 a { color: rgba(255,255,255,0.75); }
.modal-header h2 a:hover { color: var(--white); }
.modal-header .close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.375rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}
.modal-header .close:hover { color: var(--white); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ============================================================
   ALERTS / TEXT STATES
   ============================================================ */

/* Cart "Sepete Ekle" feedback toast — populated via htmx OOB swap from
   partials/cart_add_response.html. Empty (and invisible) until an add fails. */
.cart-flash {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1090;
  max-width: min(92vw, 420px);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
}
.cart-flash--show {
  padding: 0.625rem 1rem;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid var(--red);
  animation: cartFlash 4.5s ease forwards;
}
@keyframes cartFlash {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  6%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  82%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-flash--show { animation: none; opacity: 1; }
}

.alert-danger  { color: var(--red); font-size: 0.875rem; }
.alert-success { color: var(--green); font-size: 0.875rem; }
.alert-warning { color: var(--yellow); font-size: 0.875rem; }
.text-danger   { color: var(--red) !important; }
.text-success  { color: var(--green) !important; }
.text-warning  { color: var(--yellow) !important; }
.text-muted    { color: var(--gray-400) !important; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-left     { text-align: left; }
.align-r       { text-align: right; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid var(--silver-dark);
  padding: 2rem 0 0;
}
footer.footer .info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
footer.footer .info .logo img {
  height: 30px;
  filter: brightness(0) invert(1) opacity(0.8);
}
footer.footer .info .logo:hover { text-decoration: none; }
footer.footer .info p { margin: 0; font-size: 0.875rem; color: rgba(255,255,255,0.45); }
footer.footer .contacts { font-size: 0.875rem; }
footer.footer .copyright {
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}
footer.footer .copyright p { margin: 0; }

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.loading-state,
div[style*="text-align:center;padding:40px"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--gray-400);
  font-size: 0.9375rem;
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton-block {
  background: linear-gradient(
    90deg,
    var(--silver-light) 25%,
    var(--white)    50%,
    var(--silver-light) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

/* Tile-shaped skeleton (4-up grid, matches latestAdds) */
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
}
.skeleton-card .sk-price {
  height: 30px;
  width: 90px;
  margin: 0.875rem 0.875rem 0;
}
.skeleton-card .sk-body {
  padding: 0.875rem;
}
.skeleton-card .sk-line {
  height: 13px;
  margin-bottom: 0.5rem;
}
.skeleton-card .sk-line.wide  { width: 100%; }
.skeleton-card .sk-line.mid   { width: 68%; }
.skeleton-card .sk-line.short { width: 48%; }
.skeleton-card .sk-btn {
  height: 30px;
  width: 110px;
  margin-top: 0.625rem;
}

/* Table-row-shaped skeleton (matches orders/transactions tables) */
.skeleton-table {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.skeleton-row {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.skeleton-row:last-child { border-bottom: none; }
.skeleton-row .sk-col        { height: 13px; flex: 1; }
.skeleton-row .sk-col.narrow { flex: 0 0 70px; }
.skeleton-row .sk-col.wide   { flex: 2; }
.skeleton-row .sk-col.btn    { flex: 0 0 56px; height: 24px; }

/* ============================================================
   HOME / PRODUCT GRID
   ============================================================ */
.catalog-grid { padding: 1.5rem 0; }
.catalog-grid h2.primary-color { margin-bottom: 1.25rem; }
.catalog-grid .row::after { content:''; display:table; clear:both; }

/* Product tile */
.tile {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin-bottom: 1.25rem;
  height: calc(100% - 1.25rem);
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--silver); }
.tile .price-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  margin: 0.875rem 0.875rem 0;
  background: linear-gradient(135deg, #1a2332 0%, #2d3e55 50%, #1a2332 100%);
  border: 1px solid var(--silver);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.tile .footer {
  padding: 0.875rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  margin-top: 0.875rem;
}
.tile .footer > a {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
  text-decoration: none;
}
.tile .footer > a:hover { color: var(--blue); }
.tile .footer > span {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.tile .tools { display: flex; }
.add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}
.add-cart-btn:hover { background: var(--blue-hover); color: var(--white); text-decoration: none; }
.add-cart-btn.disabled { background: var(--silver-light); color: var(--silver-dark); cursor: not-allowed; pointer-events: none; }

/* Primary color helper */
.primary-color { color: var(--blue); }

/* Jumbotron (home.html) */
.jumbotron {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.jumbotron h1, .jumbotron h2, .jumbotron h3 { color: var(--white); }

/* Announcements (bxSlider) */
.bxslider { list-style: none; padding: 0; margin: 0; }
.bxslider li h2 {
  padding: 1.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0;
}
.bxslider li img { display: block; width: 1px; height: 1px; }
#announcement {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--silver);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.wishlist { padding: 0; }
.wishlist section { margin-bottom: 1.5rem; }

/* ============================================================
   SHOPPING CART (checkout.html)
   ============================================================ */
.shopping-cart { padding: 0; }
.shopping-cart h2.title { margin-bottom: 1.25rem; }

.cart-sidebar form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cart-totals table { width: 100%; border-collapse: collapse; }
.cart-totals td { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--gray-100); font-size: 0.9375rem; }
.cart-totals td.total { font-weight: 700; color: var(--navy); font-size: 1.0625rem; }
.cart-totals tr.devider td { background: var(--gray-50); font-size: 0.875rem; color: var(--gray-500); }

.shopping-cart .incr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition);
}
.shopping-cart .incr-btn:hover { background: var(--gray-200); text-decoration: none; }
.shopping-cart .qnt-count { display: flex; align-items: center; gap: 0.375rem; }
.shopping-cart .quantity {
  width: 50px;
  text-align: center;
  padding: 0.25rem 0.375rem;
  height: 28px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
}
.shopping-cart td.delete { cursor: pointer; color: var(--red); font-size: 1.125rem; }
.shopping-cart .icon-delete { cursor: pointer; color: var(--red); }
.shopping-cart td.price { font-weight: 600; color: var(--navy); white-space: nowrap; }
.shopping-cart td.name { color: var(--gray-700); font-size: 0.875rem; }

/* ============================================================
   ORDER/TRANSACTION BUTTONS
   ============================================================ */
.itemListButton {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}
.itemListButton:hover { background: var(--blue-hover); color: var(--white); text-decoration: none; }

.orderStatusButton { cursor: pointer; }
.orderStatusButton:hover { opacity: 0.8; }
.orderCancelButton { cursor: pointer; }
.orderCancelButton:hover { opacity: 0.8; }

/* ============================================================
   ORDERS / TRANSACTIONS PAGES
   ============================================================ */
.wishlist h2.primary-color { margin-bottom: 1.25rem; }
.detailedItemList th { padding: 0.5rem 0.75rem; }
.detailedItemList td { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }

/* ============================================================
   SIDEBAR FILTER
   ============================================================ */
.col-lg-3 h3 { font-size: 0.9375rem; margin-bottom: 0.75rem; }

/* ============================================================
   LOGIN / REGISTER
   ============================================================ */
.log-reg { max-width: 960px; margin: 0 auto; padding: 1.5rem 0; }
.log-reg > h2 { margin-bottom: 1.5rem; color: var(--navy); }

.login-form,
.registr-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  box-sizing: border-box;
}
.login-form .btn-success,
.registr-form .btn-success { margin-top: 0.5rem; }

/* Modal login form — no card treatment */
.modal-body .login-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ============================================================
   MY ACCOUNT / SUPPORT / ANNOUNCEMENTS
   ============================================================ */
.support, .announcements, .approvals { padding: 0; }
.support .title,
.announcements .title,
.approvals .title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--silver);
}
.space-top    { margin-top: 1.5rem; }
.space-bottom { margin-bottom: 1.5rem; }
.light-weight { font-weight: 400; }
.uppercase    { text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================================================
   APPROVALS
   ============================================================ */
.approvals ul.list-unstyled li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-700);
}
.approvals ul.list-unstyled li:last-child { border-bottom: none; }
.approvalToggle { cursor: pointer; font-size: 0.75rem; flex-shrink: 0; }

/* ============================================================
   ANNOUNCEMENTS ADMIN
   ============================================================ */
.announcementsAdmin .list-unstyled li,
section.announcements .list-unstyled li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  gap: 1rem;
}
.deleteAnnouncementBtn { cursor: pointer; flex-shrink: 0; font-size: 0.75rem; }

/* ============================================================
   ADDRESS PAGE
   ============================================================ */
address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
address strong { color: var(--navy); }

.removeAddressButton { margin-top: 0.5rem; }

/* ============================================================
   CONTACT INFO WIDGET
   ============================================================ */

/* Heading for contactInfo template */
.contact-info-heading {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-weight: 600;
}

/* Card wrapper used on page sidebars (light background) */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Base widget styles — neutral, inherits color from context */
.cont-info-widget ul { list-style: none; padding: 0; margin: 0; }
.cont-info-widget li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cont-info-widget li:last-child { border-bottom: none; }

/* On light backgrounds (inside .contact-info-card) */
.contact-info-card .contact-info-heading { color: var(--navy); }
.contact-info-card .cont-info-widget li { color: var(--gray-600); border-bottom-color: var(--gray-100); }
.contact-info-card .cont-info-widget a { color: var(--blue); }
.contact-info-card .cont-info-widget a:hover { color: var(--blue-hover); }

/* On dark backgrounds (inside footer .contacts) */
footer.footer .contacts .contact-info-heading { color: rgba(255,255,255,0.85); }
footer.footer .contacts .cont-info-widget li { color: rgba(255,255,255,0.65); border-bottom-color: rgba(255,255,255,0.1); }
footer.footer .contacts .cont-info-widget a { color: rgba(255,255,255,0.65); }
footer.footer .contacts .cont-info-widget a:hover { color: var(--white); text-decoration: none; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.panel-heading { padding: 0.875rem 1.25rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); font-weight: 600; color: var(--navy); }
.panel-body { padding: 1.25rem; }
.page-header { padding-bottom: 0.5rem; margin: 0 0 1.5rem; border-bottom: 2px solid var(--silver); }
.pull-left  { float: left; }
.pull-right { float: right; }
.hide-sm    { display: list-item; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  z-index: 1000; display: none;
  min-width: 180px; padding: 0.5rem 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius); list-style: none;
  box-shadow: var(--shadow-lg); margin: 2px 0 0;
}
.dropdown-menu.pull-right { left: auto; right: 0; }
.open > .dropdown-menu { display: block; }
.dropdown-menu > li > a { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--gray-700); }
.dropdown-menu > li > a:hover { background: var(--gray-50); color: var(--navy); text-decoration: none; }

/* Nav */
.nav { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav > li > a { display: block; padding: 0.5rem 1rem; border-radius: var(--radius-sm); color: var(--gray-600); font-size: 0.875rem; transition: background var(--transition); }
.nav > li > a:hover { background: var(--gray-100); color: var(--navy); text-decoration: none; }
.nav-pills > li.active > a { background: var(--blue); color: var(--white); }
.nav-tabs { border-bottom: 2px solid var(--gray-200); }
.nav-tabs > li.active > a { border-bottom: 2px solid var(--blue); color: var(--navy); }

/* Collapse */
.collapse { display: none; }
.collapse.in { display: block; }
.collapsing { position: relative; height: 0; overflow: hidden; transition: height 0.3s ease; }

/* Fade */
.fade { opacity: 0; transition: opacity 0.15s; }
.fade.in { opacity: 1; }

/* Caret */
.caret { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; }

/* Glyphicons (font-face not shipped — use Unicode fallbacks) */
.glyphicon { display: inline-block; font-family: inherit; }
.glyphicon-shopping-cart::before { content: '🛒'; }

/* Responsive */
@media (max-width: 991px) {
  .col-md-9, .col-lg-9 { width: 100%; float: none; }
  .col-md-3, .col-lg-3 { width: 100%; float: none; padding-top: 1.5rem; }
  .col-md-8, .col-lg-8 { width: 100%; float: none; }
  .col-md-4, .col-lg-4 { width: 100%; float: none; }
}

@media (max-width: 767px) {
  .page-content { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 2rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .login-form, .registr-form { padding: 1.25rem; }
  .modal-dialog { margin: 1rem; width: calc(100% - 2rem); }
  .col-lg-offset-2, .col-lg-offset-3, .col-lg-offset-4, .col-lg-offset-5,
  .col-md-offset-3 { margin-left: 0; }
  [class*="col-"] { float: none !important; width: 100% !important; padding: 0 !important; }
  .row { margin: 0; }
  .row::after { content: ''; display: table; clear: both; }
  .items-list, .item-list { font-size: 0.8125rem; }
  .items-list th, .item-list th { font-size: 0.6875rem; padding: 0.5rem 0.625rem; }
  .items-list tr.item td, .item-list tr.item td { padding: 0.5rem 0.625rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
