/* ======================================================
   T-PARK - Appliance Store Theme for OpenCart 3
   Color Scheme: Blue (#2563eb) + Dark Slate (#1e293b)
   ====================================================== */

/* === CSS Variables === */
:root {
  --tp-primary: #2563eb;
  --tp-primary-hover: #1d4ed8;
  --tp-primary-light: #eff6ff;
  --tp-primary-dark: #1e40af;
  --tp-dark: #1e293b;
  --tp-dark-light: #334155;
  --tp-dark-deep: #0f172a;
  --tp-text: #334155;
  --tp-text-light: #64748b;
  --tp-gray-bg: #f8fafc;
  --tp-gray-border: #e2e8f0;
  --tp-green: #16a34a;
  --tp-red: #dc2626;
  --tp-radius: 8px;
  --tp-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --tp-shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
  --tp-transition: all 0.2s ease;
}

/* === Global === */
body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--tp-gray-bg);
  color: var(--tp-text);
  font-size: 14px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--tp-dark);
  font-weight: 700;
}
a { color: var(--tp-primary); transition: var(--tp-transition); }
a:hover { color: var(--tp-primary-hover); text-decoration: none; }

#container { margin-bottom: 0; }
#content { min-height: 400px; padding-bottom: 30px; }

/* === Top Bar (hidden) === */
#top { display: none; }

/* === Header === */
header {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container { max-width: 1280px; }

/* Flex header layout */
.tp-header {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

/* Logo */
.tp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.tp-logo img { height: 36px; width: auto; }
.tp-logo span {
  color: var(--tp-dark);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.tp-logo:hover span { color: var(--tp-primary); }
#logo { margin: 0; }

/* Search */
.tp-search { flex: 1; min-width: 0; }
#search { margin-bottom: 0; }
#search .input-group {
  border: 2px solid var(--tp-gray-border);
  border-radius: var(--tp-radius);
  overflow: hidden;
  transition: var(--tp-transition);
}
#search .input-group:focus-within {
  border-color: var(--tp-primary);
}
#search .input-lg {
  height: 42px;
  font-size: 14px;
  border: none;
  box-shadow: none;
  padding: 0 14px;
  line-height: 42px;
}
#search .input-lg:focus { box-shadow: none; }
#search .btn-lg {
  background: var(--tp-primary);
  border: none;
  color: #fff;
  padding: 0 20px;
  font-size: 16px;
  text-shadow: none;
  line-height: 38px;
}
#search .btn-lg:hover {
  background: var(--tp-primary-hover);
}

/* Phone */
.tp-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tp-dark);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.tp-phone:hover { color: var(--tp-primary); }
.tp-phone .fa-phone {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tp-primary-light);
  color: var(--tp-primary);
  border-radius: 50%;
  font-size: 14px;
}

/* Icon buttons */
.tp-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tp-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-text-light);
  text-decoration: none;
  transition: var(--tp-transition);
  border-radius: 50%;
}
.tp-icon:hover {
  color: var(--tp-primary);
  background: var(--tp-primary-light);
}
.tp-icon .fa { font-size: 20px; }

/* Account dropdown */
.tp-icons .dropdown { position: relative; }
.tp-icons .dropdown-menu {
  border-radius: var(--tp-radius);
  border: 1px solid var(--tp-gray-border);
  box-shadow: var(--tp-shadow-hover);
  padding: 6px 0;
  min-width: 180px;
}
.tp-icons .dropdown-menu li > a {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--tp-text);
}
.tp-icons .dropdown-menu li > a:hover {
  background: var(--tp-primary-light);
  color: var(--tp-primary);
  background-image: none;
}

/* Cart */
.tp-cart { flex-shrink: 0; }
#cart { margin-bottom: 0; }
#cart > .btn {
  background: var(--tp-primary);
  border: none;
  color: #fff;
  border-radius: var(--tp-radius);
  padding: 10px 20px;
  font-size: 13px;
  line-height: 20px;
  text-shadow: none;
  background-image: none;
  white-space: nowrap;
}
#cart > .btn:hover {
  background: var(--tp-primary-hover);
}
#cart.open > .btn {
  background: #fff;
  border: 1px solid var(--tp-gray-border);
  color: var(--tp-text);
}
#cart .dropdown-menu {
  background: #fff;
  border: 1px solid var(--tp-gray-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-hover);
  right: 0;
  left: auto;
}

/* Mobile */
.tp-mobile-search { padding: 0 0 10px; }
@media (max-width: 767px) {
  .tp-header { height: 56px; gap: 12px; }
  .tp-logo span { font-size: 18px; }
  .tp-phone { display: none !important; }
  .tp-icon { width: 36px; height: 36px; }
  .tp-icon .fa { font-size: 18px; }
  #cart > .btn { padding: 8px 12px; font-size: 12px; }
}

/* === Menu Bar === */
#menu {
  background: var(--tp-dark);
  background-image: none;
  border: none;
  border-radius: 0;
  min-height: 48px;
  margin-bottom: 0;
  padding: 0;
}
#menu .container { max-width: 1280px; }

/* Menu layout */
.tp-menu {
  display: flex;
  align-items: center;
  height: 48px;
}

/* Catalog Button */
.tp-catalog-wrap {
  position: relative;
}
.tp-catalog-btn {
  background: var(--tp-primary);
  color: #fff;
  border: none;
  padding: 0 24px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--tp-transition);
  white-space: nowrap;
}
.tp-catalog-btn:hover,
.tp-catalog-btn.active {
  background: var(--tp-primary-hover);
}
.tp-catalog-btn .fa-bars {
  font-size: 16px;
  color: #fff;
}

/* Catalog Dropdown */
.tp-catalog-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 1050;
  background: #fff;
  border-radius: 0 0 var(--tp-radius) var(--tp-radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 280px;
  animation: tpSlideDown 0.2s ease;
}
@keyframes tpSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category List */
.tp-catalog-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.tp-catalog-list > li {
  position: relative;
}
.tp-catalog-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: var(--tp-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--tp-transition);
  border-left: 3px solid transparent;
}
.tp-catalog-list > li > a:hover,
.tp-catalog-list > li:hover > a {
  background: var(--tp-primary-light);
  color: var(--tp-primary);
  border-left-color: var(--tp-primary);
}
.tp-cat-arrow {
  font-size: 12px;
  color: #94a3b8;
  transition: var(--tp-transition);
}
.tp-catalog-list > li:hover .tp-cat-arrow {
  color: var(--tp-primary);
}

/* Subcategory Panel (for categories with children) */
.tp-subcategory-panel {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  min-width: 400px;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.1);
  padding: 16px 20px;
}
.tp-subcategory-inner {
  display: flex;
  gap: 20px;
}
.tp-subcategory-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 160px;
}
.tp-subcategory-inner a {
  display: block;
  padding: 4px 0;
  color: var(--tp-text);
  font-size: 13px;
  text-decoration: none;
}
.tp-subcategory-inner a:hover {
  color: var(--tp-primary);
}
.tp-see-all {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--tp-gray-border);
  color: var(--tp-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.tp-see-all:hover { color: var(--tp-primary-hover); }

/* Quick Links in menu bar */
.tp-menu-links {
  display: flex;
  align-items: center;
  margin-left: 8px;
  gap: 0;
}
.tp-menu-links a {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 0 16px;
  line-height: 48px;
  text-decoration: none;
  transition: var(--tp-transition);
  white-space: nowrap;
}
.tp-menu-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Mobile Menu */
@media (max-width: 767px) {
  .tp-menu { flex-wrap: wrap; height: auto; }
  .tp-catalog-btn {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  .tp-catalog-dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 0;
    min-width: 100%;
  }
  .tp-catalog-list > li > a {
    padding: 12px 16px;
  }
  .tp-subcategory-panel {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-left: 2px solid var(--tp-primary-light);
    margin-left: 16px;
    min-width: auto;
  }
  .tp-menu-links { display: none; }
}

/* === Breadcrumb === */
.breadcrumb {
  background: #fff;
  border: 1px solid var(--tp-gray-border);
  border-radius: var(--tp-radius);
  padding: 10px 0;
  margin: 20px 0;
}
.breadcrumb > li { padding: 0 16px; }
.breadcrumb > li a { color: var(--tp-text-light); }
.breadcrumb > li a:hover { color: var(--tp-primary); }
.breadcrumb > li:after {
  border-color: var(--tp-gray-border);
}

/* === Product Cards === */
.product-thumb {
  border: 1px solid var(--tp-gray-border);
  border-radius: var(--tp-radius);
  background: #fff;
  transition: var(--tp-transition);
  overflow: auto;
  margin-bottom: 20px;
}
.product-thumb:hover {
  border-color: var(--tp-primary);
  box-shadow: var(--tp-shadow-hover);
  transform: translateY(-2px);
}
.product-thumb .image {
  text-align: center;
  padding: 12px;
  background: #fff;
}
.product-thumb .image a { display: block; }
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img {
  transition: var(--tp-transition);
  margin-left: auto;
  margin-right: auto;
}
.product-thumb:hover .image img {
  transform: scale(1.03);
}
.product-thumb .caption {
  padding: 0 16px;
  min-height: 160px;
}
.product-thumb h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
.product-thumb h4 a {
  color: var(--tp-dark);
  text-decoration: none;
}
.product-thumb h4 a:hover {
  color: var(--tp-primary);
}
.product-thumb .caption p {
  font-size: 12px;
  color: var(--tp-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-thumb .price {
  color: var(--tp-dark);
  font-size: 16px;
}
.product-thumb .price-new {
  color: var(--tp-dark);
  font-weight: 800;
  font-size: 17px;
}
.product-thumb .price-old {
  color: #999;
  font-size: 13px;
}
.product-thumb .price-tax {
  color: var(--tp-text-light);
  font-size: 11px;
}

/* Product Card Buttons */
.product-thumb .button-group {
  border-top: 1px solid var(--tp-gray-border);
  background-color: var(--tp-gray-bg);
  overflow: auto;
  border-radius: 0 0 var(--tp-radius) var(--tp-radius);
}
.product-thumb .button-group button {
  background: var(--tp-gray-bg);
  border: none;
  color: var(--tp-text-light);
  font-size: 12px;
  font-weight: 600;
  line-height: 38px;
  text-transform: uppercase;
  transition: var(--tp-transition);
  display: inline-block;
  float: left;
  width: 60%;
  text-align: center;
}
.product-thumb .button-group button + button {
  width: 20%;
  border-left: 1px solid var(--tp-gray-border);
}
.product-thumb .button-group button:first-child {
  background: var(--tp-primary);
  color: #fff;
}
.product-thumb .button-group button:first-child:hover {
  background: var(--tp-primary-hover);
}
.product-thumb .button-group button:hover {
  background: var(--tp-dark);
  color: #fff;
  cursor: pointer;
}
.product-list .product-thumb .button-group {
  border-left: 1px solid var(--tp-gray-border);
}

/* Rating Stars */
.rating .fa-star { color: #f59e0b; font-size: 15px; }
.rating .fa-star-o { color: #d1d5db; font-size: 15px; }
.rating .fa-star + .fa-star-o { color: #f59e0b; }
.rating .fa-stack { font-size: 8px; }

/* === Product Page === */
.thumbnails .image-additional { float: left; margin-left: 20px; }
.image-additional a {
  border: 1px solid var(--tp-gray-border);
  border-radius: 4px;
  padding: 4px;
  display: block;
  margin-bottom: 15px;
  transition: var(--tp-transition);
}
.image-additional a:hover {
  border-color: var(--tp-primary);
}
#product-info h1,
#product h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--tp-dark);
}
#product .list-unstyled li,
.product-info .list-unstyled li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--tp-text-light);
}
h2.price { margin: 0; }
#product h2.price,
.product-info h2.price {
  margin: 15px 0;
}
#product .price-new,
.product-info .price-new {
  color: var(--tp-primary);
  font-size: 28px;
  font-weight: 800;
}
#product .price-old,
.product-info .price-old {
  font-size: 16px;
  color: #999;
}
#button-cart {
  background: var(--tp-primary);
  border: none;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 28px;
  color: #fff;
  text-shadow: none;
  background-image: none;
}
#button-cart:hover {
  background: var(--tp-primary-hover);
}
.input-group .input-group-addon {
  background: var(--tp-gray-bg);
  border-color: var(--tp-gray-border);
  font-weight: 600;
}

/* Tabs */
.nav-tabs {
  border-bottom: 2px solid var(--tp-gray-border);
  margin-bottom: 0;
}
.nav-tabs > li > a {
  color: var(--tp-text-light);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 12px 20px;
  border-radius: 0;
}
.nav-tabs > li > a:hover {
  color: var(--tp-primary);
  background: none;
  border-color: transparent;
  border-bottom-color: var(--tp-primary);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--tp-primary);
  border: none;
  border-bottom: 2px solid var(--tp-primary);
  background: none;
}
.tab-content {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--tp-gray-border);
  border-top: none;
  border-radius: 0 0 var(--tp-radius) var(--tp-radius);
}

/* Spec Table */
.table thead td, .table thead th {
  background: var(--tp-dark);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
}
.table tbody td {
  font-size: 13px;
  padding: 10px 16px;
}
.table-striped > tbody > tr:nth-of-type(even),
.table tbody tr:nth-child(even) td {
  background: var(--tp-gray-bg);
}

/* === Category Page === */
#product-category h2,
.category-info h1 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tp-primary);
  display: inline-block;
}
#product-category h3 {
  font-size: 16px;
  color: var(--tp-dark);
  margin-bottom: 12px;
}
.input-group .input-group-addon {
  font-size: 12px;
  font-weight: 600;
}

/* Compare Button */
#compare-total {
  background: var(--tp-dark);
  border-color: var(--tp-dark);
  border-radius: var(--tp-radius);
  color: #fff;
  text-shadow: none;
  background-image: none;
}
#compare-total:hover {
  background: var(--tp-dark-light);
}

/* === Pagination === */
.pagination > li > a,
.pagination > li > span {
  color: var(--tp-dark);
  border-color: var(--tp-gray-border);
  font-size: 13px;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover {
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  color: #fff;
}
.pagination > li > a:hover {
  background: var(--tp-primary-light);
  color: var(--tp-primary);
  border-color: var(--tp-gray-border);
}

/* === Footer === */
footer {
  margin-top: 0 !important;
  padding: 48px 0 0 !important;
  background: var(--tp-dark-deep) !important;
  border: none !important;
  border-top: 3px solid var(--tp-primary) !important;
  color: #cbd5e1;
}
footer .container { max-width: 1280px; }

/* Footer flex layout */
.tp-footer {
  display: flex !important;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}
.tp-footer-about {
  flex: 1 1 300px;
  max-width: 340px;
}
.tp-footer-col {
  flex: 1 1 180px;
}

/* About column */
.tp-footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.tp-footer-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.tp-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-footer-phone,
.tp-footer-email {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--tp-transition);
  white-space: nowrap;
}
.tp-footer-phone:hover,
.tp-footer-email:hover {
  color: var(--tp-primary);
}
.tp-footer-phone .fa,
.tp-footer-email .fa {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.15);
  color: var(--tp-primary);
  border-radius: 50%;
  font-size: 13px;
}

/* Footer column titles */
.tp-footer-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tp-primary);
  display: inline-block;
}

/* Footer lists */
footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
footer ul li { margin-bottom: 0; }
footer ul li a {
  display: block;
  padding: 6px 0;
  color: #94a3b8 !important;
  font-size: 13px;
  text-decoration: none !important;
  transition: var(--tp-transition);
}
footer ul li a:hover {
  color: #fff !important;
  padding-left: 6px;
}

/* Footer bottom bar */
.tp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* Footer mobile */
@media (max-width: 767px) {
  .tp-footer { gap: 28px; }
  .tp-footer-about { max-width: 100%; }
  footer { padding: 32px 0 0 !important; }
  .tp-footer-brand { font-size: 20px; }
}

/* === Home Page === */
#common-home {
  max-width: 1280px;
}

/* Hero Section */
.tp-hero {
  background: linear-gradient(135deg, var(--tp-dark) 0%, var(--tp-dark-light) 100%);
  border-radius: var(--tp-radius);
  padding: 48px 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.tp-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.tp-hero h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.tp-hero-subtitle {
  color: var(--tp-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.tp-hero-desc {
  color: #94a3b8;
  font-size: 15px;
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .tp-hero { padding: 24px 20px; }
  .tp-hero h1 { font-size: 22px; }
  .tp-hero-subtitle { font-size: 15px; }
}

/* Benefits Strip */
.tp-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0;
}
.tp-benefit {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--tp-gray-border);
  border-radius: var(--tp-radius);
  padding: 20px;
  text-align: center;
  transition: var(--tp-transition);
}
.tp-benefit:hover {
  box-shadow: var(--tp-shadow-hover);
  border-color: var(--tp-primary);
  transform: translateY(-2px);
}
.tp-benefit .fa {
  font-size: 28px;
  color: var(--tp-primary);
  margin-bottom: 10px;
  display: block;
}
.tp-benefit-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-dark);
  margin-bottom: 4px;
}
.tp-benefit-desc {
  font-size: 12px;
  color: var(--tp-text-light);
  margin: 0;
}

/* Section Headers on Home */
.tp-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tp-dark);
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tp-primary);
  display: inline-block;
}

/* Module wrappers */
#common-home .product-thumb { margin-bottom: 20px; }

/* === Sidebar === */
#column-left .list-group a,
#column-right .list-group a {
  border-color: var(--tp-gray-border);
  font-size: 13px;
  padding: 10px 16px;
  color: var(--tp-text);
  transition: var(--tp-transition);
  border-radius: 0;
}
#column-left .list-group a:first-child {
  border-radius: var(--tp-radius) var(--tp-radius) 0 0;
}
#column-left .list-group a:last-child {
  border-radius: 0 0 var(--tp-radius) var(--tp-radius);
}
#column-left .list-group a:hover,
#column-left .list-group a.active,
#column-left .list-group a.active:hover {
  background: var(--tp-primary-light);
  color: var(--tp-primary);
  border-color: var(--tp-gray-border);
  text-shadow: none;
}
#column-left h3, #column-right h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tp-dark);
  margin-bottom: 12px;
}

/* === Buttons Global === */
.btn-primary {
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  border-radius: var(--tp-radius);
  background-image: none;
  text-shadow: none;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary:focus {
  background: var(--tp-primary-hover);
  border-color: var(--tp-primary-hover);
  background-image: none;
  background-position: 0 0;
}
.btn-primary.disabled, .btn-primary[disabled] {
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  opacity: 0.65;
}
.btn-default {
  background: #fff;
  border-color: var(--tp-gray-border);
  color: var(--tp-text);
  background-image: none;
  text-shadow: none;
}
.btn-default:hover {
  background: var(--tp-gray-bg);
  border-color: var(--tp-gray-border);
  color: var(--tp-dark);
}
.btn-info {
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  background-image: none;
  text-shadow: none;
  color: #fff;
}
.btn-info:hover {
  background: var(--tp-primary-hover);
  border-color: var(--tp-primary-hover);
  background-image: none;
}
.btn-success {
  background: var(--tp-green);
  border-color: var(--tp-green);
  background-image: none;
  text-shadow: none;
}
.btn-success:hover {
  background: #15803d;
  border-color: #15803d;
  background-image: none;
}
.btn-danger {
  background: var(--tp-red);
  border-color: var(--tp-red);
  background-image: none;
  text-shadow: none;
}
.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  background-image: none;
}
.btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  background-image: none;
  text-shadow: none;
  color: #fff;
}
.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
  background-image: none;
}
.btn-inverse {
  background: var(--tp-dark);
  border-color: var(--tp-dark);
  background-image: none;
  text-shadow: none;
}
.btn-inverse:hover {
  background: var(--tp-dark-light);
  background-image: none;
}
.btn-link {
  color: var(--tp-primary);
}

.btn {
  border-radius: 4px;
  box-shadow: none;
  font-size: 13px;
}

/* === Dropdown menus global === */
.dropdown-menu li > a:hover {
  background-color: var(--tp-primary);
  background-image: none;
}

/* === Alert === */
.alert {
  border-radius: var(--tp-radius);
  padding: 12px 16px;
}

/* === Forms === */
.form-control:focus {
  border-color: var(--tp-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* === Cards === */
.panel {
  border-radius: var(--tp-radius);
  border-color: var(--tp-gray-border);
  box-shadow: var(--tp-shadow);
}
.panel-heading {
  border-radius: var(--tp-radius) var(--tp-radius) 0 0;
}
.well {
  border-radius: var(--tp-radius);
  border-color: var(--tp-gray-border);
  background: #fff;
  box-shadow: var(--tp-shadow);
}

/* === Carousel (brand carousel etc.) === */
.swiper-container, .owl-carousel { margin-bottom: 20px; }

/* === In-stock badge === */
.stock-in { color: var(--tp-green); font-weight: 600; }

/* === Mobile Responsive === */
@media (max-width: 767px) {
  header { padding: 8px 0; }
  #logo img { max-width: 120px; }
  #search .input-group { border-width: 1px; }
  #search .input-lg { height: 38px; font-size: 13px; }
  #search .btn-lg { padding: 0 14px; font-size: 14px; }
  #product h1 { font-size: 18px; }
  #product .price-new { font-size: 22px; }
  .product-thumb .caption { min-height: 0; padding: 0 10px; }
  .product-thumb h4 { font-size: 12px; }
  .product-thumb .price-new { font-size: 15px; }
  #menu .nav > li > a { font-size: 13px; padding: 10px 12px; }
  footer { padding-top: 24px; }
  footer h5 { font-size: 13px; }
  .tp-benefits { flex-direction: column; }
  .tp-benefit { min-width: 100%; }
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--tp-gray-bg); }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tp-dark); }

/* === Slideshow overrides === */
.slideshow { margin-bottom: 20px; }
.slideshow .swiper-viewport {
  border: none;
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
}

/* === Loading spinner === */
.spinner-border { color: var(--tp-primary); }

/* === Fix some OC3 BS3 defaults we want to override === */
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
h5 { font-size: 13px; }
label { font-size: 13px; }

@media (max-width: 1200px) {
  .product-grid .product-thumb .caption {
    min-height: 180px;
    padding: 0 10px;
  }
}
@media (max-width: 767px) {
  .product-list .product-thumb .caption {
    min-height: 0;
    margin-left: 0;
    padding: 0 10px;
  }
  .product-grid .product-thumb .caption {
    min-height: 0;
  }
}
