/* =====================================================
   MODERN DROPSHIPPING THEME
   Version: 2.0 - Blue Gradient Design
   Primary Color: #3b82f6 (Tailwind blue-500)
   ===================================================== */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  /* Primary colors */
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-darker: #1e3a8a;
  --primary-light: #60a5fa;
  --primary-lighter: #dbeafe;

  /* Text colors */
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #9ca3af;

  /* Backgrounds */
  --bg-gradient-start: #FFFAFA;
  --bg-gradient-end: #FFFAFA;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;

  /* Other */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border-color: #e5e7eb;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Border radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transition */
  --transition: all 0.2s ease;
}

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

/* =====================================================
   BASE STYLES
   ===================================================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
  background: #FFFAFA;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.fa {
  font-size: 14px;
}

/* Utility classes */
.hidden { display: none !important; }
.btn-pill { border-radius: var(--radius-pill); }

/* =====================================================
   TOP BAR (White strip - logo + nav + utilities)
   ===================================================== */
#top {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  margin: 0;
  min-height: auto;
}

#top .container {
  padding: 0 20px;
}

#top .top-row {
  display: flex;
  align-items: center;
  min-height: 56px;
}

#top .top-row > div {
  float: none;
}

/* --- Logo --- */
#logo {
  margin: 0;
  display: flex;
  align-items: center;
}

#logo img {
  max-height: 40px;
}

#logo h1 {
  margin: 0;
}

#logo h1 a {
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

/* --- Navigation Links (center column) --- */
.top-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
}

.top-nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

.top-nav-links li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: var(--text-medium);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.15s ease;
}

.top-nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.top-nav-links li a:hover {
  color: var(--text-dark);
}

.top-nav-links li a:hover::after {
  transform: scaleX(1);
}

.top-nav-links li.active a {
  color: var(--primary);
  font-weight: 600;
}

.top-nav-links li.active a::after {
  transform: scaleX(1);
}

/* --- Mobile hamburger for top nav --- */
.top-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 18px;
}

/* --- Right column utilities --- */
#top .btn-link,
#top-links li,
#top-links a {
  color: var(--text-dark);
  text-shadow: none;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

#top .btn-link:hover,
#top-links a:hover {
  color: var(--primary);
}

#top-links {
  padding-top: 0;
}

#top-links .list-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

#top-links .list-inline > li {
  padding: 0;
}

#top-links .list-inline > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

#top-links .list-inline > li > a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Telegram manager link */
.telegram-manager-link {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.telegram-manager-link .fa-telegram {
  font-size: 16px;
  vertical-align: middle;
}

.telegram-manager-link:hover {
  color: var(--primary-dark) !important;
  background: var(--primary-lighter) !important;
}

/* Dropdown */
#top .dropdown-menu {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin-top: 4px;
}

#top .dropdown-menu a {
  color: var(--text-dark);
  padding: 8px 16px;
  font-size: 13px;
}

#top .dropdown-menu a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
  background-image: none;
}

/* --- Top bar mobile --- */
@media (max-width: 991px) {
  .top-link-text { display: none; }

  .top-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    height: auto;
    padding: 8px 0;
    z-index: 1050;
  }

  .top-nav-links.open {
    display: flex;
  }

  .top-nav-links li {
    height: auto;
    width: 100%;
  }

  .top-nav-links li a {
    height: auto;
    padding: 12px 24px;
    width: 100%;
    font-size: 15px;
  }

  .top-nav-links li a::after {
    display: none;
  }

  .top-nav-links li a:hover,
  .top-nav-links li a:active {
    background: var(--bg-light);
  }

  #top .top-row {
    position: relative;
  }
}

@media (max-width: 767px) {
  #top-links .list-inline {
    gap: 0;
  }

  #top-links .list-inline > li > a {
    padding: 8px;
  }

  #logo img {
    max-height: 32px;
  }
}

@media (min-width: 992px) {
  .top-link-text { display: inline; }
}

/* =====================================================
   HEADER (Primary blue background - currency + search + cart)
   ===================================================== */
header {
  background: var(--primary);
  padding: 15px 0;
  border-bottom: none;
}

header .header-row {
  display: flex;
  align-items: center;
}

header .header-row > div {
  float: none;
}

/* Currency & Language in header */
header .header-currency .btn-link,
header .header-currency .btn-link strong {
  color: #fff;
  text-shadow: none;
}

header .header-currency .btn-link:hover {
  color: rgba(255,255,255,0.8);
}

header .header-currency .dropdown-menu {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
}

header .header-currency .dropdown-menu a,
header .header-currency .dropdown-menu button {
  color: var(--text-dark);
}

/* Logo (now in top bar) */
#logo {
  margin: 0;
  display: flex;
  align-items: center;
}

#logo img {
  max-height: 45px;
}

#logo h1 a {
  color: var(--text-dark);
  font-size: 24px;
  font-weight: 700;
}

/* =====================================================
   SEARCH (White rounded box)
   ===================================================== */
#search {
  margin-bottom: 0;
}

#search .input-lg {
  height: 44px;
  line-height: 20px;
  padding: 0 15px;
  border: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-size: 14px;
  background: var(--bg-white);
  transition: var(--transition);
}

#search .input-lg:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  outline: none;
}

#search .btn-lg {
  height: 44px;
  background: var(--bg-white);
  border: none;
  border-left: 1px solid var(--border-color);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  color: var(--primary);
  padding: 0 20px;
  font-size: 16px;
  line-height: 18px;
  text-shadow: none;
  transition: var(--transition);
}

#search .btn-lg:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
}

/* =====================================================
   CART BUTTON (Header)
   ===================================================== */
#cart {
  margin-bottom: 0;
}

#cart > .btn {
  background: rgba(255, 255, 255, 0.15);
  background-image: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: white;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  padding: 10px 18px;
  transition: var(--transition);
}

#cart > .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

#cart.open > .btn {
  background: var(--bg-white);
  border-color: var(--bg-white);
  color: var(--primary);
  box-shadow: none;
  text-shadow: none;
}

/* --- Cart Dropdown --- */
#cart .dropdown-menu {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin-top: 10px;
  z-index: 1001;
  min-width: 420px;
  max-width: 500px;
  right: 0;
  left: auto;
}

#cart .dropdown-menu li > div {
  padding: 0;
}

#cart .dropdown-menu li p {
  margin: 20px 0;
}

/* Scrollable items wrapper */
.cart-items-wrapper {
  max-height: 350px;
  overflow-y: auto;
  padding: 4px 0;
}

/* Item card */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
  border-bottom: none;
}

/* Thumbnail */
.cart-item-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Details */
.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
  line-height: 1.3;
}

a.cart-item-name:hover {
  color: var(--primary);
}

.cart-item-option {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.3;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
}

.cart-item-qty {
  color: var(--text-light);
}

.cart-item-price {
  font-weight: 600;
  color: var(--text-dark);
}

/* Remove button */
.cart-item-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  margin-top: 2px;
}

.cart-item-remove:hover {
  background: #fee2e2;
  color: var(--danger);
}

/* Totals */
.cart-totals {
  padding: 10px 15px;
  border-top: 1px solid var(--border-color);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 13px;
  color: var(--text-medium);
}

.cart-total-final {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid var(--border-color);
}

/* Checkout button */
.cart-actions {
  padding: 0 15px 15px;
}

.cart-actions .btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
}

/* Mobile: full-width dropdown */
@media (max-width: 478px) {
  #cart .dropdown-menu {
    min-width: 100%;
    max-width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* =====================================================
   MENU / NAVIGATION (Below header)
   ===================================================== */
#menu {
  background: var(--bg-white);
  background-image: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  min-height: 48px;
  border-radius: 0;
}

#menu .nav > li > a {
  color: var(--text-medium);
  text-shadow: none;
  padding: 14px 20px;
  min-height: 15px;
  font-size: 14px;
  font-weight: 500;
  background-color: transparent;
  transition: var(--transition);
}

#menu .nav > li > a:hover,
#menu .nav > li.open > a {
  background: var(--primary-lighter);
  color: var(--primary);
}

#menu .dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
}

#menu .dropdown-inner {
  display: table;
}

#menu .dropdown-inner ul {
  display: table-cell;
}

#menu .dropdown-inner a {
  min-width: 160px;
  display: block;
  padding: 8px 20px;
  clear: both;
  line-height: 20px;
  font-size: 13px;
  color: var(--text-medium);
  transition: var(--transition);
}

#menu .dropdown-inner li a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

#menu .see-all {
  display: block;
  margin-top: 0.5em;
  border-top: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}

#menu .see-all:hover,
#menu .see-all:focus {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

#menu #category {
  float: left;
  padding-left: 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  color: var(--text-dark);
  text-shadow: none;
}

#menu .btn-navbar {
  font-size: 15px;
  color: var(--text-dark);
  padding: 8px 18px;
  float: right;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
}

#menu .btn-navbar:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 768px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
}

@media (max-width: 767px) {
  #menu {
    border-radius: 0;
  }
  #menu div.dropdown-inner > ul.list-unstyled {
    display: block;
  }
  #menu div.dropdown-menu {
    margin-left: 0;
    padding-bottom: 10px;
    background-color: var(--bg-light);
  }
  #menu .dropdown-inner {
    display: block;
  }
  #menu .dropdown-inner a {
    width: 100%;
  }
}

/* =====================================================
   SIDEBAR CATEGORIES
   ===================================================== */
#column-left,
#column-right {
  padding: 15px;
}

#column-left .list-group,
#column-right .list-group {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-sm);
}

#column-left .list-group a,
#column-right .list-group a {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-medium);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

#column-left .list-group a:last-child,
#column-right .list-group a:last-child {
  border-bottom: none;
}

#column-left .list-group a.active,
#column-left .list-group a.active:hover,
#column-left .list-group a:hover,
#column-right .list-group a.active,
#column-right .list-group a.active:hover,
#column-right .list-group a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
  border-color: transparent;
  text-shadow: none;
}

#column-left .list-group a.active,
#column-right .list-group a.active {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  margin: 5px 8px;
  padding: 12px 15px;
}

/* =====================================================
   CONTENT AREA
   ===================================================== */
#content {
  min-height: 500px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

#common-home #content {
  background: transparent;
}

/* =====================================================
   PRODUCT GRID (5 columns on desktop)
   ===================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 10px 0;
}

@media (max-width: 1600px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Bootstrap grid fallback */
.row.products-container {
  margin: 0 -12px;
}

.row.products-container .product-layout {
  padding: 0 12px;
  margin-bottom: 24px;
}

/* =====================================================
   PRODUCT CARD (Key element)
   ===================================================== */
.product-thumb {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-thumb:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

/* Product Image */
.product-thumb .image {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  padding: 15px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb .image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-thumb .image img {
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
  transition: var(--transition);
}

.product-thumb:hover .image img {
  transform: scale(1.05);
}

/* Product Caption */
.product-thumb .caption {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Product Name */
.product-thumb h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb h4 a {
  color: var(--text-dark);
}

.product-thumb h4 a:hover {
  color: var(--primary);
}

/* Product SKU & Supplier */
.product-thumb .product-sku {
  font-size: 11px;
  color: var(--text-light);
  margin: 0 0 5px 0;
}

.product-thumb .product-supplier {
  font-size: 11px;
  color: var(--primary);
  margin: 0 0 8px 0;
}

/* Description - hide on cards */
.product-thumb .caption > p:not(.price):not(.product-sku):not(.product-supplier):not(.wholesale-price):not(.avg-price) {
  display: none;
}

/* =====================================================
   PRICING BLOCK
   ===================================================== */
.product-thumb .price {
  margin: auto 0 0 0;
  padding-top: 10px;
}

/* Main price - large and bold */
.product-thumb .price-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 8px;
}

/* Drop and Opt prices */
.product-thumb .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 4px;
}

.product-thumb .price-label {
  color: var(--text-light);
  font-weight: 500;
}

.product-thumb .price-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* Price icons (inline webp) */
.price-icon {
  height: 36px;
  width: auto;
  vertical-align: middle;
  margin-right: -2px;
}

/* Legacy price styles */
.product-thumb .price {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
}

.product-thumb .price-new {
  font-weight: 700;
  color: var(--primary);
}

.product-thumb .price-old {
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
}

.product-thumb .price-tax {
  color: var(--text-light);
  font-size: 11px;
  display: block;
  font-weight: 400;
}

/* Wholesale price */
.product-thumb .wholesale-price {
  font-size: 13px;
  color: var(--warning);
  margin: 5px 0;
  font-weight: 500;
}

/* Average price */
.product-thumb .avg-price {
  color: var(--success);
  font-weight: 500;
  margin-top: 5px;
  font-size: 13px;
}

/* =====================================================
   BUY BUTTON (Full width, pill shape)
   ===================================================== */
.product-thumb .button-group {
  border-top: none;
  background-color: transparent;
  padding: 0 15px 15px 15px;
  overflow: visible;
}

.product-thumb .btn-buy {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.product-thumb .btn-buy:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.product-thumb .btn-buy i {
  font-size: 16px;
}

.product-thumb .btn-buy.btn-buy--out-of-stock {
  background: var(--gray-300, #dee2e6);
  color: var(--gray-600, #6c757d);
  cursor: not-allowed;
  pointer-events: none;
}

.product-thumb .btn-buy.btn-buy--out-of-stock:hover {
  transform: none;
}

.product-thumb .quantity-selector.qty--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* pp-btn-disabled handles out-of-stock on product detail page */

/* Legacy button group (for backward compatibility) */
.product-thumb .button-group button {
  border: none;
  background-color: transparent;
  color: var(--text-medium);
  transition: var(--transition);
}

/* Quick actions row */
.product-thumb .quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-thumb .quick-actions button {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-medium);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.product-thumb .quick-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
}

.product-thumb .quick-actions .btn-favorite:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fee2e2;
}

.product-thumb .quick-actions .btn-favorite.active {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.product-thumb .quick-actions button:only-child {
  flex: 1;
}

/* Quantity selector (pill style) */
.product-thumb .quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 36px;
}
.product-thumb .qty-btn {
  width: 36px; height: 36px; border: none; background: transparent;
  color: var(--text-medium); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); padding: 0;
}
.product-thumb .qty-btn:hover {
  background: var(--primary-lighter); color: var(--primary);
}
.product-thumb .qty-input {
  width: 40px; text-align: center; border: none; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--text-dark);
  padding: 0; height: 36px; line-height: 36px;
}

/* =====================================================
   HOME PAGE BLOCKS
   ===================================================== */
.home-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* Legacy home-products-block styles */
.home-products-block {
  margin-bottom: 50px;
}

.home-products-block .block-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary);
  color: var(--text-dark);
  display: inline-block;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.breadcrumb i {
  font-size: 15px;
}

.breadcrumb > li {
  text-shadow: none;
  padding: 0 10px;
  position: relative;
  white-space: nowrap;
  font-size: 13px;
}

.breadcrumb > li:first-child {
  padding-left: 0;
}

.breadcrumb > li + li:before {
  content: '/';
  color: var(--text-light);
  padding: 0 5px 0 0;
}

.breadcrumb > li:after {
  display: none;
}

.breadcrumb a {
  color: var(--text-medium);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.buttons {
  margin: 1em 0;
}

.btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: none;
  transition: var(--transition);
  text-shadow: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-lighter);
}

.btn-xs {
  font-size: 9px;
  padding: 4px 8px;
}

.btn-sm {
  font-size: 10.2px;
  padding: 6px 12px;
}

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

.btn-group > .btn,
.btn-group > .dropdown-menu,
.btn-group > .popover {
  font-size: 12px;
}

.btn-default {
  background: var(--bg-white);
  background-image: none;
  border: 1px solid var(--border-color);
  color: var(--text-medium);
}

.btn-default:hover {
  background: var(--bg-light);
  border-color: var(--border-color);
  color: var(--text-dark);
}

.btn-primary {
  background: var(--primary);
  background-image: none;
  border-color: var(--primary);
  color: white;
}

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

.btn-primary.disabled,
.btn-primary[disabled] {
  background: var(--primary);
  opacity: 0.6;
}

.btn-success {
  background: var(--success);
  background-image: none;
  border-color: var(--success);
  color: white;
}

.btn-success:hover,
.btn-success:active {
  background: #059669;
  border-color: #059669;
}

.btn-warning {
  background: var(--warning);
  background-image: none;
  border-color: var(--warning);
  color: white;
}

.btn-warning:hover,
.btn-warning:active {
  background: #d97706;
  border-color: #d97706;
}

.btn-danger {
  background: var(--danger);
  background-image: none;
  border-color: var(--danger);
  color: white;
}

.btn-danger:hover,
.btn-danger:active {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-info {
  background: var(--primary-light);
  background-image: none;
  border-color: var(--primary-light);
  color: white;
}

.btn-info:hover,
.btn-info:active {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-link {
  color: var(--primary);
  border: none;
  border-color: transparent;
  cursor: pointer;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.btn-inverse {
  background: var(--text-dark);
  background-image: none;
  border-color: var(--text-dark);
  color: white;
}

.btn-inverse:hover {
  background: #0f172a;
  border-color: #0f172a;
}

/* Load more button */
.load-more-btn {
  padding: 12px 40px;
  font-size: 15px;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-pill);
}

.load-more-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.load-more-btn:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

/* =====================================================
   FORMS
   ===================================================== */
select.form-control,
textarea.form-control,
input[type="text"].form-control,
input[type="password"].form-control,
input[type="datetime"].form-control,
input[type="datetime-local"].form-control,
input[type="date"].form-control,
input[type="month"].form-control,
input[type="time"].form-control,
input[type="week"].form-control,
input[type="number"].form-control,
input[type="email"].form-control,
input[type="url"].form-control,
input[type="search"].form-control,
input[type="tel"].form-control,
input[type="color"].form-control {
  font-size: 14px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 15px;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lighter);
  outline: none;
}

textarea.form-control {
  height: auto;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
  line-height: normal;
}

.input-group input,
.input-group select,
.input-group .dropdown-menu,
.input-group .popover {
  font-size: 12px;
}

.input-group .input-group-addon {
  font-size: 12px;
  height: 30px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-medium);
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 20px;
}

legend {
  font-size: 18px;
  padding: 7px 0;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

div.required .control-label:before {
  content: '* ';
  color: var(--danger);
  font-weight: bold;
}

.nav-tabs {
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.nav-tabs > li {
  margin-bottom: -2px;
}

.nav-tabs > li > a {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-medium);
  padding: 12px 20px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-tabs > li > a:hover {
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--primary-light);
  color: var(--primary);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border: none;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

/* =====================================================
   WELL (Legacy fallback)
   ===================================================== */
.well {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.well h2 {
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
  border: none;
  border-radius: var(--radius);
  padding: 15px 20px;
  font-size: 14px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
}

.alert-info {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.alert i {
  margin-right: 8px;
}

/* =====================================================
   DROPDOWN MENUS
   ===================================================== */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}

.dropdown-menu li > a:hover {
  text-decoration: none;
  color: var(--primary);
  background-color: var(--primary-lighter);
  background-image: none;
}

/* =====================================================
   TABLES
   ===================================================== */
.table {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.table > thead > tr > th {
  background: var(--bg-light);
  border-bottom: 2px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 15px;
}

.table > tbody > tr > td {
  padding: 12px 15px;
  vertical-align: middle;
  border-top: 1px solid var(--border-color);
}

.table > tbody > tr:hover {
  background: var(--bg-light);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  margin: 20px 0;
}

.pagination > li > a,
.pagination > li > span {
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  margin-left: -1px;
  transition: var(--transition);
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
  border-radius: var(--radius) 0 0 var(--radius);
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pagination > li > a:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 25px;
}

.modal-header .close {
  font-size: 24px;
  opacity: 0.5;
  transition: var(--transition);
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 15px 25px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--text-dark);
  border-top: none;
  margin-top: 50px;
  padding: 50px 0 30px;
  color: rgba(255, 255, 255, 0.7);
}

footer h5 {
  font-family: 'Inter', sans-serif;
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}

footer a:hover {
  color: white;
}

footer hr {
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}

@media (max-width: 767px) {
  #content {
    padding: 15px;
    margin-bottom: 15px;
  }

  .breadcrumb {
    padding: 10px 15px;
    font-size: 12px;
  }

  .well {
    padding: 20px;
  }

  header {
    padding: 10px 0;
  }

  footer {
    padding: 30px 0 20px;
  }

  footer h5 {
    margin-top: 20px;
  }

  .section-title,
  .home-products-block .block-title {
    font-size: 20px;
  }
}

/* =====================================================
   COLUMN LAYOUT FIXES
   ===================================================== */
@media (min-width: 1200px) {
  #content .col-lg-2:nth-child(6n+1),
  #content .col-lg-3:nth-child(4n+1),
  #content .col-lg-4:nth-child(3n+1),
  #content .col-lg-6:nth-child(2n+1) {
    clear: left;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #content .col-md-2:nth-child(6n+1),
  #content .col-md-3:nth-child(4n+1),
  #content .col-md-4:nth-child(3n+1),
  #content .col-md-6:nth-child(2n+1) {
    clear: left;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #content .col-sm-2:nth-child(6n+1),
  #content .col-sm-3:nth-child(4n+1),
  #content .col-sm-4:nth-child(3n+1),
  #content .col-sm-6:nth-child(2n+1) {
    clear: left;
  }
}

@media (min-width: 768px) {
  #column-left .product-layout .col-md-3 {
    width: 100%;
  }
  #column-left + #content .product-layout .col-md-3 {
    width: 50%;
  }
  #column-left + #content + #column-right .product-layout .col-md-3 {
    width: 100%;
  }
  #content + #column-right .product-layout .col-md-3 {
    width: 100%;
  }
}

#column-left .product-layout,
#column-right .product-layout {
  width: 100%;
}

.input-group .form-control[name^=quantity] {
  min-width: 50px;
}

/* =====================================================
   SEARCH AUTOCOMPLETE
   ===================================================== */
#search { position: relative; }
.search-autocomplete {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 400px;
  overflow-y: auto;
}
.search-autocomplete .search-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}
.search-autocomplete .search-item:hover {
  background: var(--bg-light);
}
.search-autocomplete .search-item img {
  flex-shrink: 0;
  margin-right: 10px;
  border-radius: 3px;
}
.search-autocomplete .search-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-autocomplete .search-item-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-autocomplete .search-item-meta {
  font-size: 11px;
  color: var(--text-light);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-light); }

.bg-primary { background-color: var(--primary); }
.bg-light { background-color: var(--bg-light); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* =====================================================
   PRINT STYLES
   ===================================================== */
/* =====================================================
   PRODUCT CARD WRAPPER (for grid items)
   ===================================================== */
.product-card {
  display: flex;
}

/* =====================================================
   SORT / LIMIT TOOLBAR (category & search)
   ===================================================== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.catalog-toolbar .toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-toolbar .toolbar-group label {
  margin: 0;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-medium);
}

.catalog-toolbar .toolbar-group select.form-control {
  height: 36px;
  font-size: 13px;
  padding: 4px 30px 4px 12px;
  border-radius: var(--radius);
  min-width: 150px;
}

.catalog-toolbar .toolbar-views .btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.catalog-toolbar .toolbar-compare {
  margin-left: auto;
}

.catalog-toolbar .toolbar-compare .btn-link {
  font-size: 13px;
  padding: 6px 12px;
}

/* =====================================================
   PRODUCT DETAIL PAGE (pp-* prefix)
   ===================================================== */

/* --- Layout: 2-column CSS Grid --- */
.pp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

/* --- Left column (gallery + tabs + attachments) --- */
.pp-left {
  min-width: 0;
}

/* --- Gallery: main photo + vertical thumbs on left side --- */
.pp-gallery {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  max-height: 900px;
}

.pp-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 80px;
  overflow-y: auto;
}

.pp-gallery-side::-webkit-scrollbar {
  width: 3px;
}

.pp-gallery-side::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.pp-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
}

.pp-thumb-item:hover {
  border-color: var(--primary);
}

.pp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-gallery-main {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-gallery-main a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.pp-gallery-main img {
  max-width: 100%;
  max-height: 880px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-xl);
}

.pp-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.pp-gallery-main:hover .pp-zoom-hint {
  opacity: 1;
}

/* --- Info column (sticky) --- */
.pp-info {
  position: sticky;
  top: 20px;
  min-width: 0;
}

/* --- Info panel --- */
.pp-info-panel {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.pp-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.pp-title-row h1 {
  flex: 1;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.pp-favorite {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.pp-favorite:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.pp-favorite.active {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

/* Meta badges */
.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pp-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-light);
  color: var(--text-medium);
}

.pp-meta-badge .fa {
  font-size: 12px;
}

.pp-meta-badge a {
  color: inherit;
  text-decoration: none;
}

.pp-meta-badge a:hover {
  color: var(--primary-dark);
}

.pp-meta-badge--accent {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.pp-meta-badge--success {
  background: #d1fae5;
  color: #065f46;
}

.pp-meta-badge--danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Price block */
.pp-price-block {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.pp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pp-price-current {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.pp-price-current--sale {
  color: var(--danger);
}

.pp-price-old {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: line-through;
}

.pp-price-tax {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.pp-price-extra {
  font-size: 14px;
  font-weight: 600;
  color: var(--warning);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pp-price-extra .fa {
  font-size: 14px;
}

.pp-price-extra--success {
  color: var(--success);
}

.pp-discounts {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pp-discount-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
}

/* Options */
.pp-options {
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.pp-options .form-control {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.pp-options .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Recurrings */
.pp-recurrings {
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Buy section */
.pp-buy-section {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.pp-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pp-qty-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  margin: 0;
}

.pp-qty-spinner {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
}

.pp-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-qty-btn:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.pp-qty-input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-white);
  -moz-appearance: textfield;
}

.pp-qty-input::-webkit-outer-spin-button,
.pp-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pp-qty-input:focus {
  outline: none;
}

/* Buttons */
.pp-btn-primary {
  width: 100%;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}

.pp-btn-primary:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.pp-btn-secondary {
  width: 100%;
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pp-btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pp-btn-disabled {
  width: 100%;
  background: var(--bg-light);
  color: var(--text-light);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
}

.pp-minimum-alert {
  border-radius: var(--radius);
  margin-top: 12px;
}

/* --- Tabs (inside left column) --- */
.pp-tabs-section {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.pp-tabs-nav {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--bg-light);
  border-bottom: none;
}

.pp-tabs-nav li {
  flex: 1;
}

.pp-tabs-nav li a {
  display: block;
  text-align: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-medium);
  text-decoration: none;
  border: none;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  margin: 0;
}

.pp-tabs-nav li a:hover {
  color: var(--primary);
  background: var(--bg-white);
}

.pp-tabs-nav li.active a,
.pp-tabs-nav li a:focus {
  color: var(--primary);
  background: var(--bg-white);
  border-bottom-color: var(--primary);
}

.pp-tab-content {
  padding: 28px;
}

.pp-tab-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.pp-spec-table {
  border: none;
}

.pp-spec-table thead td {
  background: var(--bg-light);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.pp-spec-table td {
  border-color: var(--border-color);
  padding: 10px 14px;
}

.pp-spec-table tbody tr:hover {
  background: var(--bg-light);
}

/* --- Attachments --- */
.pp-attachments {
  margin-bottom: 32px;
}

.pp-attachments h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.pp-attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.pp-attachment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

.pp-attachment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--text-dark);
  text-decoration: none;
}

.pp-attachment-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pp-attachment-info {
  flex: 1;
  min-width: 0;
}

.pp-attachment-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-attachment-size {
  font-size: 12px;
  color: var(--text-light);
}

.pp-attachment-dl {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Tags --- */
.pp-tags {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pp-tags-label {
  font-weight: 600;
  color: var(--text-medium);
  font-size: 14px;
}

.pp-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-medium);
  text-decoration: none;
  transition: var(--transition);
}

.pp-tag:hover {
  background: var(--primary-lighter);
  color: var(--primary);
  text-decoration: none;
}

/* --- Mobile sticky buy bar --- */
.pp-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--bg-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.pp-mobile-bar--visible {
  transform: translateY(0);
}

.pp-mobile-bar-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.pp-mobile-bar-btn {
  flex: 1;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pp-mobile-bar-btn:hover {
  background: #059669;
}

.pp-mobile-bar-oos {
  flex: 1;
  text-align: center;
  color: var(--text-light);
  font-weight: 600;
}

/* Related products */
.related-products {
  margin-top: 0;
  margin-bottom: 32px;
}

.related-products h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .pp-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pp-info {
    position: static;
  }

  .pp-mobile-bar {
    display: flex;
  }
}

@media (max-width: 767px) {
  .pp-info-panel {
    padding: 20px;
  }

  .pp-title-row h1 {
    font-size: 18px;
  }

  .pp-price-current {
    font-size: 26px;
  }

  .pp-tab-content {
    padding: 16px;
  }

  .pp-attachments-grid {
    grid-template-columns: 1fr;
  }

  .pp-gallery {
    flex-direction: column-reverse;
  }

  .pp-gallery-side {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .pp-thumb-item {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .pp-meta {
    gap: 6px;
  }

  .pp-meta-badge {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* =====================================================
   CHECKOUT MODAL STYLES
   ===================================================== */
.checkout-modal .modal-dialog {
  width: 95%;
  max-width: 1200px;
}

.checkout-modal .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.checkout-modal .modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-bottom: none;
  padding: 16px 24px;
}

.checkout-modal .modal-header .modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.checkout-modal .modal-header .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
  font-size: 24px;
}

.checkout-modal .modal-header .close:hover {
  opacity: 1;
}

.checkout-modal .modal-body {
  padding: 16px 24px;
}

/* Checkout modal footer */
.cm-modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cm-btn-close {
  background: var(--bg-light);
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-weight: 500;
  transition: var(--transition);
}

.cm-btn-close:hover {
  background: var(--border-color);
  color: var(--text-dark);
}

.cm-btn-confirm {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-weight: 600;
  transition: var(--transition);
}

.cm-btn-confirm:hover {
  background: var(--primary-dark);
  color: #fff;
}

.cm-btn-confirm-next {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-weight: 600;
  transition: var(--transition);
}

.cm-btn-confirm-next:hover {
  background: #059669;
  color: #fff;
}

/* Order card (replaces .panel) */
.cm-order-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}

.cm-order-card-header {
  background: var(--bg-light);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
}

.cm-order-card-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.cm-order-card-body {
  padding: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Checkout modal quantity spinner (same style as product page) */
.cm-qty-spinner {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
}

.cm-qty-spin-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.cm-qty-spin-btn:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.cm-qty-input {
  width: 36px;
  height: 28px;
  text-align: center;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-white);
  -moz-appearance: textfield;
  padding: 0;
}

.cm-qty-input::-webkit-outer-spin-button,
.cm-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cm-qty-input:focus {
  outline: none;
}

/* Remove button in modal */
.cm-btn-remove {
  padding: 4px 8px;
  font-size: 11px;
  background: #fee2e2;
  color: var(--danger);
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cm-btn-remove:hover {
  background: var(--danger);
  color: #fff;
}

/* Column widths for order table */
.order-summary-table .col-qty { width: 90px; }
.order-summary-table .col-price { width: 80px; }
.order-summary-table .col-sale { width: 90px; }
.order-summary-table .col-profit { width: 80px; }
.order-summary-table .col-actions { width: 30px; }

/* Checkout modal mobile */
@media (max-width: 767px) {
  .checkout-modal .modal-dialog {
    width: 100%;
    margin: 0;
  }
  .checkout-modal .modal-content {
    border-radius: 0;
    min-height: 100vh;
  }
  .checkout-modal .modal-body {
    padding: 12px;
  }
  .cm-modal-footer {
    flex-wrap: wrap;
  }
  .cm-modal-footer .btn {
    flex: 1;
    min-width: 120px;
  }
}

.delivery-type-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.delivery-btn {
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.delivery-btn:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.delivery-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.delivery-btn.active i {
  color: white;
}

/* NP delivery type toggle */
.np-delivery-type-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.np-type-btn {
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.np-type-btn:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.np-type-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.np-type-btn.active i {
  color: white;
}

/* Suggestions dropdowns */
.suggestions-dropdown {
  position: absolute;
  z-index: 1000;
  max-height: 350px;
  overflow-y: auto;
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  width: calc(100% - 30px);
}

.suggestions-dropdown .list-group-item {
  cursor: pointer;
  padding: 10px 15px;
  border: none;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  transition: var(--transition);
}

.suggestions-dropdown .list-group-item:last-child {
  border-bottom: none;
}

.suggestions-dropdown .list-group-item:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.suggestions-dropdown .list-group-item small {
  color: var(--text-light);
}

/* Order summary table in modal */
.order-summary-table {
  font-size: 12px;
  margin-bottom: 5px;
}

.order-summary-table th {
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-medium);
  white-space: nowrap;
}

.order-summary-table td {
  padding: 5px 8px;
  vertical-align: middle;
}

.order-summary-table .product-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-summary-table .product-name-cell img {
  width: 25px;
  border-radius: 4px;
}

.order-summary-table .product-name-cell small {
  font-size: 11px;
  font-weight: 600;
}

/* (quantity-compact removed — replaced by .cm-qty-spinner) */

/* Sale price input in modal */
.sale-price-compact {
  width: 80px;
  padding: 2px 4px;
  font-size: 11px;
  height: 22px;
}

/* Profit display */
.profit-display {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

.total-profit-row {
  border-top: 2px solid var(--border-color);
}

.total-profit-row td {
  padding: 8px;
}

/* Checkout modal form - full width */
#modal-checkout-form {
  width: 100%;
}

/* Checkout modal sections */
.checkout-section-delivery,
.checkout-section-products,
.checkout-section-payment {
  margin-bottom: 10px;
}

/* Products table - horizontal scroll on overflow */
.checkout-section-products .cm-order-card-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Payment section - visual separator */
.checkout-section-payment {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Order type selector */
.order-type-panel {
  background: var(--primary-lighter);
  border-radius: var(--radius);
  padding: 8px 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  background: var(--bg-light);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dropzone:hover {
  border-color: var(--primary-dark);
  background: var(--primary-lighter);
}

.dropzone .dz-message {
  margin: 0;
}

.dropzone .dz-message i {
  color: var(--primary);
}

.dropzone .dz-preview {
  margin: 10px;
}

.dropzone .dz-preview .dz-image {
  border-radius: var(--radius);
}

/* =====================================================
   OAUTH BUTTONS
   ===================================================== */
.oauth-divider {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.oauth-divider p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
}

.btn-oauth-google {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.btn-oauth-google:hover {
  background: var(--bg-light);
  border-color: var(--text-light);
  color: var(--text-dark);
  text-decoration: none;
}

.btn-oauth-telegram {
  text-align: center;
  margin-top: 5px;
}

/* =====================================================
   CART PAGE
   ===================================================== */
.cart-quantity-group {
  max-width: 200px;
}

/* =====================================================
   SEARCH FORM (search page)
   ===================================================== */
.search-form-block {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px 25px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.search-form-block .form-control {
  border-radius: var(--radius);
}

.search-form-block .btn-primary {
  border-radius: var(--radius-pill);
  padding: 10px 30px;
  margin-top: 10px;
}

/* =====================================================
   CONTAINER WIDTH OVERRIDE
   ===================================================== */
@media (min-width: 1200px) {
  .container {
    width: 1560px;
    max-width: 95vw;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  #top,
  #menu,
  footer,
  .breadcrumb,
  .btn,
  #column-left,
  #column-right {
    display: none;
  }

  #content {
    width: 100%;
    padding: 0;
    box-shadow: none;
  }
}

/* =====================================================
   DROPSHIPPER CABINET
   ===================================================== */

/* --- Cabinet wrapper --- */
.ds-cabinet {
  max-width: 90%;
  margin: 8px auto 0;
  padding: 0 15px;
}

/* --- Header (gradient bar) --- */
.ds-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  padding: 14px 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
}

.ds-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-header-lang select {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

.ds-header-lang select option {
  color: var(--text-dark);
  background: #fff;
}

.ds-header-name {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.ds-header-stats {
  display: flex;
  gap: 28px;
  align-items: center;
}

.ds-header-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.ds-header-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.ds-header-stat-value--hold {
  color: #ffd700;
}

.ds-header-gear {
  margin-left: 8px;
}

.ds-header-gear .btn-link {
  color: #fff;
  font-size: 24px;
  padding: 0;
  opacity: 0.8;
  transition: var(--transition);
}

.ds-header-gear .btn-link:hover {
  opacity: 1;
  color: #fff;
}

.ds-header-catalog {
  display: flex;
  align-items: center;
}

.ds-header-catalog .btn {
  background: #fff;
  color: var(--primary);
  padding: 8px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ds-header-catalog .btn:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* --- Tabs (pill style) --- */
.ds-tabs {
  text-align: center;
  margin-bottom: 10px;
}

.ds-tabs-menu {
  display: inline-flex;
  background: var(--bg-white);
  border-radius: var(--radius-pill);
  padding: 4px;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.ds-tabs-menu li {
  list-style: none;
}

.ds-tabs-menu li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
}

.ds-tabs-menu li a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
}

.ds-tabs-menu li.active a {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.ds-tabs-menu li a i {
  font-size: 14px;
}

/* --- Tab content area --- */
.ds-tab-content {
  min-height: 400px;
  padding: 28px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

/* --- Stat cards (4-column grid) --- */
.ds-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.ds-stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.ds-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ds-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
}

.ds-stat-card__value--success { color: var(--success); }
.ds-stat-card__value--danger  { color: var(--danger); }
.ds-stat-card__value--warning { color: var(--warning); }
.ds-stat-card__value--info    { color: var(--primary-light); }

.ds-stat-card__label {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* --- Generic card (replaces .panel) --- */
.ds-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  overflow: hidden;
}

.ds-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light);
}

.ds-card-header h3,
.ds-card-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.ds-card-header--success { border-left: 4px solid var(--success); }
.ds-card-header--primary { border-left: 4px solid var(--primary); }
.ds-card-header--info    { border-left: 4px solid var(--primary-light); }
.ds-card-header--warning { border-left: 4px solid var(--warning); }

.ds-card-body {
  padding: 24px;
}

/* --- Table (clean, borderless) --- */
.ds-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.ds-table thead th {
  background: var(--bg-light);
  color: var(--text-medium);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.ds-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

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

.ds-table tbody tr {
  transition: background 0.15s ease;
}

.ds-table tbody tr:hover {
  background: var(--bg-light);
}

/* --- Filter bar (replaces .well) --- */
.ds-filter-bar {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.ds-filter-bar .form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ds-filter-bar .form-inline .form-group {
  margin: 0;
}

.ds-filter-bar .form-control {
  border-radius: var(--radius);
  height: 38px;
  font-size: 13px;
}

.ds-filter-bar .btn {
  border-radius: var(--radius-pill);
  height: 38px;
  font-size: 13px;
  padding: 0 18px;
}

/* --- Badge (pill status) --- */
.ds-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.ds-badge--info {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.ds-badge--success {
  background: #d1fae5;
  color: #065f46;
}

.ds-badge--warning {
  background: #fef3c7;
  color: #92400e;
}

.ds-badge--danger {
  background: #fee2e2;
  color: #991b1b;
}

.ds-badge--default {
  background: var(--bg-light);
  color: var(--text-medium);
}

/* --- Action buttons (round) --- */
.ds-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  padding: 0;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.ds-action-btn:hover {
  transform: scale(1.1);
}

.ds-action-btn--success { background: #d1fae5; color: #065f46; }
.ds-action-btn--success:hover { background: var(--success); color: #fff; }
.ds-action-btn--warning { background: #fef3c7; color: #92400e; }
.ds-action-btn--warning:hover { background: var(--warning); color: #fff; }
.ds-action-btn--info    { background: var(--primary-lighter); color: var(--primary-dark); }
.ds-action-btn--info:hover { background: var(--primary); color: #fff; }
.ds-action-btn--danger  { background: #fee2e2; color: #991b1b; }
.ds-action-btn--danger:hover { background: var(--danger); color: #fff; }

/* --- Finance sub-tabs (segmented control) --- */
.ds-finance-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.ds-finance-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.ds-finance-tab-btn:hover {
  color: var(--primary);
  background: var(--bg-white);
}

.ds-finance-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* --- Settings nav (pill navigation) --- */
.ds-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 4px;
  margin: 0 0 24px;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.ds-settings-nav li {
  flex: 1 1 0;
  min-width: 0;
}

.ds-settings-nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
}

.ds-settings-nav li a:hover {
  color: var(--primary);
  background: var(--bg-white);
}

.ds-settings-nav li.active a {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* --- Order product row --- */
.ds-order-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ds-order-product:last-child {
  margin-bottom: 0;
}

.ds-order-product-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.ds-order-product-info {
  flex: 1;
  min-width: 0;
}

.ds-order-product-name {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.ds-order-product-name:hover {
  color: var(--primary-dark);
}

.ds-order-product-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

/* --- Empty state --- */
.ds-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}

.ds-empty-state i {
  font-size: 48px;
  color: var(--primary-light);
  margin-bottom: 16px;
  display: block;
}

.ds-empty-state h4 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ds-empty-state p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.ds-empty-state .btn {
  border-radius: var(--radius-pill);
}

/* --- Orders tab header --- */
.ds-orders-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

/* --- Filter form (flexbox instead of .form-inline) --- */
.ds-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ds-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ds-filter-fields .form-control {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  font-size: 13px;
  height: 38px;
  transition: var(--transition);
}

.ds-filter-fields .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ds-filter-input-sm { width: 110px; }
.ds-filter-input-md { width: 160px; }
.ds-filter-select { width: 170px; }

.ds-filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-btn-reset-modern {
  background: var(--bg-light);
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  height: 38px;
  line-height: 36px;
  padding: 0 18px;
  font-size: 13px;
  transition: var(--transition);
}

.ds-btn-reset-modern:hover {
  background: var(--border-color);
  color: var(--text-dark);
}

/* --- Orders table column widths --- */
.ds-table .col-order-id { width: 60px; }
.ds-table .col-order-date { width: 90px; }
.ds-table .col-order-client { width: 150px; }
.ds-table .col-order-price { width: 90px; }
.ds-table .col-order-profit { width: 90px; }
.ds-table .col-order-ttn { width: 150px; }
.ds-table .col-order-status { width: 100px; }
.ds-table .col-order-actions { width: 80px; }

/* --- No-wrap for action buttons --- */
.ds-nowrap { white-space: nowrap; }

/* --- Empty table cell --- */
.ds-empty-cell {
  text-align: center;
  color: var(--text-light);
  padding: 40px !important;
}

/* --- Pagination row --- */
.ds-pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

/* --- TTN copy link --- */
.ttn-copy {
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.ttn-copy:hover {
  color: var(--primary);
}

.ttn-copy.ttn-copied {
  color: var(--success);
}

.ttn-copied-tip {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  animation: ttnTipFade 1.5s ease forwards;
  vertical-align: middle;
}

@keyframes ttnTipFade {
  0% { opacity: 0; transform: translateY(2px); }
  15% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Toast notification --- */
.ds-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.ds-toast--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ds-toast--success { background: var(--success); }
.ds-toast--danger { background: var(--danger); }
.ds-toast--info { background: var(--primary); }

/* --- Confirmation modal --- */
.ds-confirm-modal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
}

.ds-confirm-modal .modal-body {
  padding: 24px;
}

.ds-confirm-modal .modal-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

.ds-confirm-footer {
  border-top: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* --- Edit order modal --- */
.ds-edit-modal .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.ds-modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-bottom: none;
  padding: 16px 24px;
}

.ds-modal-header .modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.ds-modal-header .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
  font-size: 24px;
}

.ds-modal-header .close:hover {
  opacity: 1;
}

.ds-modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* --- Section title in forms --- */
.ds-section-title {
  margin-top: 20px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* --- Autocomplete wrapper --- */
.ds-autocomplete-wrap {
  position: relative;
}

.ds-autocomplete-wrap .suggestions-dropdown {
  width: 100%;
}

/* --- Pill spinner for edit order (quantity & price) --- */
.ds-qty-spinner {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg-white);
}

.ds-qty-spin-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.ds-qty-spin-btn:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.ds-qty-spin-input {
  width: 60px;
  height: 30px;
  text-align: center;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-white);
  -moz-appearance: textfield;
  padding: 0;
}

.ds-qty-spin-input::-webkit-outer-spin-button,
.ds-qty-spin-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ds-qty-spin-input:focus {
  outline: none;
}

/* Wider input for price values */
.ds-qty-spinner--price .ds-qty-spin-input {
  width: 80px;
}

/* --- Edit order table column widths --- */
.ds-table .col-edit-qty { width: 130px; }
.ds-table .col-edit-price { width: 160px; }

/* --- Responsive filter --- */
@media (max-width: 767px) {
  .ds-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .ds-filter-fields {
    flex-direction: column;
  }
  .ds-filter-fields .form-control,
  .ds-filter-input-sm,
  .ds-filter-input-md,
  .ds-filter-select {
    width: 100%;
  }
  .ds-filter-buttons {
    justify-content: stretch;
  }
  .ds-filter-buttons .btn {
    flex: 1;
  }
  .ds-orders-header {
    justify-content: center;
  }
  .ds-pagination-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .ds-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* --- OAuth card --- */
.ds-oauth-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.ds-oauth-card:hover {
  box-shadow: var(--shadow-sm);
}

.ds-oauth-card .row {
  display: flex;
  align-items: center;
}

.ds-oauth-card-icon {
  font-size: 42px;
  text-align: center;
}

.ds-oauth-card-icon--google { color: #DB4437; }
.ds-oauth-card-icon--telegram { color: #0088cc; }

/* --- Notification toggle (redesigned) --- */
.ds-notification-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0;
  font-weight: normal;
}

.ds-notification-toggle:hover {
  background: var(--bg-light);
  border-color: var(--primary-light);
}

.ds-notification-toggle input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.ds-notification-toggle .toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-notification-toggle .toggle-label strong {
  font-size: 14px;
  color: var(--text-dark);
}

.ds-notification-toggle .toggle-label small {
  color: var(--text-light);
  font-size: 12px;
}

/* --- Responsive: Tabs mobile 2×2 grid --- */
@media (max-width: 768px) {
  .ds-cabinet {
    max-width: 100%;
    padding: 0 10px;
  }

  .ds-header {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
  }

  .ds-header-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ds-header-lang {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .ds-header-name {
    order: 1;
    width: 100%;
    font-size: 18px;
    margin-bottom: 6px;
  }

  .ds-header-stats {
    order: 2;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-bottom: 4px;
  }

  .ds-header-stat-value {
    font-size: 20px;
  }

  .ds-header-gear {
    position: absolute;
    right: 16px;
    top: 12px;
  }

  .ds-header {
    position: relative;
  }

  .ds-tabs-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 6px;
  }

  .ds-tabs-menu li a {
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: var(--radius);
  }

  .ds-tabs-menu li a i {
    font-size: 14px;
  }

  .ds-tab-content {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .ds-stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ds-stat-card {
    padding: 16px;
  }

  .ds-stat-card__value {
    font-size: 22px;
  }

  .ds-filter-bar .form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .ds-filter-bar .form-inline .form-group {
    width: 100%;
  }

  .ds-filter-bar .form-control {
    width: 100%;
  }

  .ds-finance-tabs {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .ds-finance-tab-btn {
    border-radius: var(--radius);
  }

  .ds-settings-nav {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .ds-settings-nav li a {
    border-radius: var(--radius);
  }
}

/* =====================================================
   ADDITIONAL BADGE VARIANTS
   ===================================================== */
.ds-badge--primary {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.ds-badge--shipped {
  background: #e0e7ff;
  color: #3730a3;
}

.ds-badge--pickup {
  background: #ccfbf1;
  color: #0f766e;
}

/* =====================================================
   DROPSHIPPER HEADER LAYOUT FIX
   ===================================================== */
.ds-header-catalog {
  flex-shrink: 0;
}

.ds-header-catalog .btn {
  background: #fff;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.ds-header-catalog .btn:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

.ds-header-name {
  flex: 1;
  text-align: center;
}

/* Reset button fix */
.ds-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  vertical-align: middle;
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.login-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.login-card h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.login-card .form-control {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--transition);
}

.login-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-btn-submit,
.login-card .btn-block {
  border-radius: var(--radius-pill);
}

.login-btn-register {
  margin-top: auto;
  border-radius: var(--radius-pill) !important;
}

.login-forgot-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--primary);
}

.login-forgot-link:hover {
  color: var(--primary-dark);
}

/* OAuth section on login */
.login-oauth-section {
  margin-top: 20px;
}

.login-oauth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0 16px;
}

.login-oauth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-color);
}

.login-oauth-divider span {
  position: relative;
  background: var(--bg-white);
  padding: 0 12px;
  color: var(--text-light);
  font-size: 13px;
}

.login-oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-telegram-wrapper {
  display: flex;
  justify-content: center;
}

@media (max-width: 767px) {
  .login-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .login-card {
    padding: 24px;
  }
}

/* =====================================================
   CART PAGE (Modern)
   ===================================================== */
.cart-items-list {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
}

.cart-page-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.cart-page-item:last-child {
  border-bottom: none;
}

.cart-page-item:hover {
  background: var(--bg-light);
}

.cart-page-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
}

.cart-page-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-page-item-info {
  flex: 1;
  min-width: 0;
}

.cart-page-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-page-item-name a {
  color: var(--text-dark);
}

.cart-page-item-name a:hover {
  color: var(--primary);
}

.cart-page-item-options small {
  display: block;
  color: var(--text-light);
  font-size: 12px;
}

.cart-page-item-model {
  font-size: 12px;
  margin-top: 2px;
}

.cart-page-item-qty {
  flex-shrink: 0;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 38px;
}

.cart-qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text-medium);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.cart-qty-btn:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.cart-qty-input {
  width: 45px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0;
  height: 38px;
  line-height: 38px;
}

.cart-page-item-price {
  flex-shrink: 0;
  text-align: right;
  min-width: 100px;
}

.cart-price-unit {
  font-size: 12px;
  color: var(--text-light);
}

.cart-price-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-page-item-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

.cart-btn-update {
  border-radius: var(--radius) !important;
  background: var(--bg-light);
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.cart-btn-update:hover {
  background: var(--primary-lighter);
  color: var(--primary);
  border-color: var(--primary);
}

.cart-btn-remove {
  border-radius: var(--radius) !important;
  background: #fee2e2;
  color: var(--danger);
  border: none;
  transition: var(--transition);
}

.cart-btn-remove:hover {
  background: var(--danger);
  color: #fff;
}

/* Cart modules section (replaces .panel-group) */
.cart-modules-section {
  margin-bottom: 24px;
}

.cart-modules-section .panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.cart-modules-section .panel-heading {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
}

.cart-modules-section .panel-body {
  padding: 16px;
}

/* Cart action buttons */
.cart-btn-continue {
  background: var(--bg-white);
  color: var(--text-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: var(--transition);
}

.cart-btn-continue:hover {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--text-light);
}

.cart-btn-checkout {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: var(--transition);
}

.cart-btn-checkout:hover {
  background: #059669;
  color: #fff;
}

/* Empty cart state */
.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.cart-empty-state i {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cart-empty-state h3 {
  color: var(--text-medium);
  margin-bottom: 8px;
}

.cart-empty-state p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.cart-empty-state .btn {
  border-radius: var(--radius-pill);
}

/* Cart totals */
.cart-page-summary {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.cart-page-totals {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  min-width: 300px;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-medium);
  border-bottom: 1px solid var(--border-color);
}

.cart-total-line:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  padding-top: 12px;
  margin-top: 4px;
}

.cart-total-label {
  font-weight: 500;
}

.cart-total-value {
  font-weight: 600;
}

/* Cart actions bar */
.cart-page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-page-actions .btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* Total order price input in checkout modal */
.total-sale-row td {
  padding: 10px 8px;
  background: var(--bg-light);
}

.total-sale-row input.sale-price-compact {
  border: 2px solid var(--primary);
  font-weight: 700;
  font-size: 13px;
}

/* Responsive cart */
@media (max-width: 768px) {
  .cart-page-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cart-page-item-image {
    width: 60px;
    height: 60px;
  }

  .cart-page-item-info {
    flex: 1;
    min-width: calc(100% - 80px);
  }

  .cart-page-item-qty,
  .cart-page-item-price,
  .cart-page-item-actions {
    flex: auto;
  }

  .cart-page-totals {
    min-width: 100%;
  }

  .cart-page-actions {
    flex-direction: column;
  }

  .cart-page-actions .btn {
    width: 100%;
  }
}

/* Dropshipper header mobile fix */
@media (max-width: 768px) {
  .ds-header-catalog {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .ds-header-catalog .btn {
    background: #fff;
    color: var(--primary);
  }
}

/* =====================================================
   CART DROPDOWN QUANTITY INPUT
   ===================================================== */
.cart-dropdown-qty {
  width: 40px;
  height: 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0 2px;
  background: var(--bg-light);
  -moz-appearance: textfield;
}

.cart-dropdown-qty::-webkit-outer-spin-button,
.cart-dropdown-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-dropdown-qty:focus {
  border-color: var(--primary);
  outline: none;
}

/* =====================================================
   LOGIN TELEGRAM CENTERING
   ===================================================== */
.login-telegram-wrapper iframe {
  margin: 0 auto !important;
}

.login-oauth-buttons {
  align-items: center;
}

.login-oauth-buttons .btn-oauth {
  width: 100%;
  max-width: 300px;
}

/* Hide number spinners on PRICE inputs (sale price, total order price) */
.order-summary-table .sale-price-input {
  -moz-appearance: textfield;
}

.order-summary-table .sale-price-input::-webkit-outer-spin-button,
.order-summary-table .sale-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#total-order-price {
  -moz-appearance: textfield;
}

#total-order-price::-webkit-outer-spin-button,
#total-order-price::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
