/**
 * EuroSport Theme - ALP.com.ua Style
 * Dark header, sidebar categories, green accents
 */

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

/* =============================================
   CSS VARIABLES - ALP STYLE
   ============================================= */
:root {
  /* Brand Colors */
  --brand-green: #4CAF50;
  --brand-green-dark: #388E3C;
  --brand-green-light: #81C784;
  --brand-orange: #FF9800;
  --brand-red: #F44336;

  /* Header/Dark Colors */
  --header-bg: #1a1a1a;
  --header-dark: #111111;
  --header-text: #ffffff;

  /* Neutral Colors */
  --black: #000000;
  --dark: #222222;
  --gray-900: #333333;
  --gray-800: #444444;
  --gray-700: #555555;
  --gray-600: #777777;
  --gray-500: #999999;
  --gray-400: #bbbbbb;
  --gray-300: #dddddd;
  --gray-200: #eeeeee;
  --gray-100: #f5f5f5;
  --white: #ffffff;

  /* Functional Colors */
  --success: #4CAF50;
  --danger: #F44336;
  --warning: #FF9800;
  --info: #2196F3;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

  /* Border Radius */
  --radius-sm: 3px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-900);
  background-color: var(--gray-100);
  margin: 0;
  padding: 0;
}

a {
  color: var(--gray-800);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-green);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
  margin-top: 0;
}

/* =============================================
   TOP BAR - Contact Info
   ============================================= */
#top {
  background: var(--header-dark);
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid #333;
}

#top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#top,
#top a,
#top .nav a,
#top .list-inline-item {
  color: var(--gray-400) !important;
}

#top a:hover {
  color: var(--brand-green) !important;
}

#top .dropdown-menu {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 150px;
}

#top .dropdown-item {
  color: var(--gray-800);
  padding: 8px 15px;
  font-size: 13px;
}

#top .dropdown-item:hover {
  background: var(--brand-green);
  color: var(--white);
}

/* =============================================
   HEADER - Main Header with Logo & Search
   ============================================= */
header {
  background: var(--header-bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  gap: 30px;
}

header .row {
  width: 100%;
  align-items: center;
}

/* Logo */
#logo {
  flex-shrink: 0;
}

#logo a {
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -1px;
}

#logo a span:first-child {
  color: var(--brand-green) !important;
}

#logo a span:last-child {
  color: var(--white) !important;
}

/* Search Bar */
#search {
  flex-grow: 1;
  max-width: 600px;
}

#search .input-group {
  display: flex;
}

#search .form-control {
  background: var(--white);
  border: 2px solid var(--brand-green);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 18px;
  font-size: 14px;
  color: var(--gray-800);
  height: 48px;
}

#search .form-control:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--brand-green);
}

#search .form-control::placeholder {
  color: var(--gray-500);
}

#search .btn {
  background: var(--brand-green);
  border: 2px solid var(--brand-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 20px;
  color: var(--white);
  font-weight: 500;
  height: 48px;
  display: flex;
  align-items: center;
}

#search .btn:hover {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}

/* Header Cart */
#header-cart {
  flex-shrink: 0;
}

#header-cart .btn,
#header-cart .dropdown-toggle {
  background: var(--brand-green) !important;
  border: none !important;
  border-radius: var(--radius);
  padding: 12px 20px;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#header-cart .btn:hover {
  background: var(--brand-green-dark) !important;
}

#header-cart .dropdown-menu {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  padding: 15px;
}

/* Header Icons/Links */
header .list-inline-item a {
  color: var(--gray-400);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

header .list-inline-item a:hover {
  color: var(--brand-green);
}

/* =============================================
   NAVIGATION MENU
   ============================================= */
#menu {
  background: var(--brand-green) !important;
  padding: 0 !important;
  border: none !important;
  margin-bottom: 0;
}

#menu.navbar {
  padding: 0;
  min-height: auto;
}

#menu .container {
  padding: 0;
}

#menu .navbar-nav {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#menu .nav-item {
  position: relative;
}

#menu .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  font-size: 13px;
  padding: 14px 18px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  white-space: nowrap;
}

#menu .nav-link:hover {
  background: var(--brand-green-dark) !important;
  color: var(--white) !important;
}

#menu .dropdown-menu {
  background: var(--white);
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin-top: 0;
  min-width: 220px;
}

#menu .dropdown-item {
  color: var(--gray-800);
  padding: 12px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.2s;
}

#menu .dropdown-item:last-child {
  border-bottom: none;
}

#menu .dropdown-item:hover {
  background: var(--brand-green);
  color: var(--white);
  padding-left: 22px;
}

/* Mobile Menu */
#menu .navbar-toggler {
  background: var(--white);
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius);
}

#menu #category {
  color: var(--white);
  font-weight: 600;
  padding: 14px 18px;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
main {
  padding: 0 0 25px 0;
  min-height: 500px;
}

#content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

#column-left .list-group {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

#column-left .list-group-item {
  border: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  background: var(--white);
  transition: all 0.2s;
}

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

#column-left .list-group-item:hover {
  background: var(--brand-green);
  color: var(--white);
  padding-left: 20px;
}

#column-left .list-group-item.active {
  background: var(--brand-green);
  color: var(--white);
  border-color: var(--brand-green);
}

/* Sidebar Titles */
#column-left h3,
.box-heading {
  background: var(--dark);
  color: var(--white);
  padding: 12px 15px;
  margin: 0 0 0 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* =============================================
   PRODUCT CARDS - ALP Style
   ============================================= */
.product-thumb {
  background: #f2f2f2;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: all 0.3s;
  overflow: hidden;
}

.product-thumb:hover {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Product Image */
.product-thumb .image {
  position: relative;
  background: #f2f2f2;
  padding: 15px;
  text-align: center;
}

.product-thumb .image a {
  display: block;
}

.product-thumb .image img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s;
  }

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

/* Product Labels */
.product-thumb .label-sale,
.product-thumb .label-new {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.product-thumb .label-sale {
  background: var(--brand-red);
  color: var(--white);
}

.product-thumb .label-new {
  background: var(--brand-green);
  color: var(--white);
}

/* Product Info */
.product-thumb .content,
.product-thumb .caption {
  padding: 15px;
}

.product-thumb .description {
  display: none;
}

/* Product Title */
.product-thumb h4,
.product-thumb .title {
  margin: 0 0 10px 0;
  min-height: 40px;
}

.product-thumb h4 a,
.product-thumb .title a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb h4 a:hover,
.product-thumb .title a:hover {
  color: var(--brand-green);
}

/* Product Rating */
.product-thumb .rating {
  margin-bottom: 8px;
}

.product-thumb .rating .fa-star,
.product-thumb .rating .fas.fa-star {
  color: var(--brand-orange);
  font-size: 12px;
}

.product-thumb .rating .fa-star-o,
.product-thumb .rating .far.fa-star {
  color: var(--gray-400);
  font-size: 12px;
}

/* Product Price */
.product-thumb .price {
  margin-bottom: 12px;
}

.product-thumb .price,
.product-thumb .price-new {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-green);
}

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

.product-thumb .price-tax {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 400;
  margin-top: 3px;
}

/* Product Buttons */
.product-thumb .button-group {
  display: flex;
  gap: 5px;
}

.product-thumb .button-group button,
.product-thumb .button-group .btn {
  border: none;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buy/Cart Button */
.product-thumb .button-group button:first-child,
.product-thumb .button-group form:first-child button {
  flex: 1;
  background: var(--brand-green);
  color: var(--white);
  text-transform: uppercase;
}

.product-thumb .button-group button:first-child:hover,
.product-thumb .button-group form:first-child button:hover {
  background: var(--brand-green-dark);
}

/* Wishlist/Compare Buttons */
.product-thumb .button-group button:not(:first-child),
.product-thumb .button-group form:not(:first-child) button {
  background: var(--gray-200);
  color: var(--gray-600);
  width: 38px;
  padding: 10px;
}

.product-thumb .button-group button:not(:first-child):hover,
.product-thumb .button-group form:not(:first-child) button:hover {
  background: var(--gray-300);
  color: var(--brand-green);
}

/* =============================================
   CATEGORY PAGE
   ============================================= */
.category-info {
  margin-bottom: 20px;
}

.category-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

/* Sort/Limit Controls */
.product-filter {
  background: var(--gray-100);
  padding: 12px 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#input-sort,
#input-limit {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  background: var(--white);
}

#input-sort:focus,
#input-limit:focus {
  border-color: var(--brand-green);
  outline: none;
}

/* =============================================
   PRODUCT PAGE
   ============================================= */
#product-info,
#product {
  background: var(--white);
}

#product-info h1,
#product h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.4;
}

/* Product Gallery */
.product-gallery {
  margin-bottom: 20px;
}

.product-gallery .image-main {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 10px;
}

.product-gallery .image-main img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.product-gallery .thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-gallery .thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-gallery .thumbnails img:hover,
.product-gallery .thumbnails img.active {
  border-color: var(--brand-green);
}

/* Product Price Box */
.price-box {
  background: var(--gray-100);
  border: 2px solid var(--brand-green);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.price-main,
#product .price-new {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-green);
}

.price-old-main {
  font-size: 18px;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-left: 10px;
}

/* Stock Status */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

.stock-status.in-stock {
  background: rgba(76, 175, 80, 0.15);
  color: var(--brand-green);
}

.stock-status.out-stock {
  background: rgba(244, 67, 54, 0.15);
  color: var(--brand-red);
}

/* Quantity Input */
.quantity-input,
.input-group.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 130px;
  margin-bottom: 15px;
}

.quantity-input button,
.input-group.quantity .btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-input button:hover,
.input-group.quantity .btn:hover {
  background: var(--gray-200);
}

.quantity-input input,
#input-quantity {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-300);
  border-right: 1px solid var(--gray-300);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
}

/* Add to Cart Button */
#button-cart,
.btn-add-cart {
  background: var(--brand-green);
  border: none;
  border-radius: var(--radius);
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#button-cart:hover,
.btn-add-cart:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* =============================================
   CART PAGE
   ============================================= */
.table {
  background: var(--white);
}

.table thead {
  background: var(--gray-100);
}

.table th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--gray-700);
  padding: 15px;
  border-bottom: 2px solid var(--gray-300);
}

.table td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}

.table img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

/* Cart Total */
.cart-total {
  background: var(--gray-100);
  padding: 20px;
  border-radius: var(--radius);
}

.cart-total .total {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-green);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  background: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: var(--white) !important;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 20px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--brand-green-dark) !important;
  border-color: var(--brand-green-dark) !important;
}

.btn-secondary {
  background: var(--gray-600) !important;
  border-color: var(--gray-600) !important;
}

.btn-danger {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
}

.btn-inverse {
  background: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: var(--white) !important;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: var(--white);
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  font-size: 13px;
}

.breadcrumb-item a {
  color: var(--gray-600);
}

.breadcrumb-item a:hover {
  color: var(--brand-green);
}

.breadcrumb-item.active {
  color: var(--gray-800);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--gray-400);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  gap: 4px;
}

.pagination .page-link {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 8px 14px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 13px;
}

.pagination .page-link:hover {
  background: var(--gray-100);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.pagination .page-item.active .page-link {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--white);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--header-dark);
  color: var(--gray-400);
  padding: 40px 0 20px;
  margin-top: 40px;
}

footer h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-green);
  display: inline-block;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  color: var(--gray-400);
  font-size: 13px;
  transition: all 0.2s;
}

footer a:hover {
  color: var(--brand-green);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-contact i {
  color: var(--brand-green);
  width: 20px;
  margin-right: 8px;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
}

/* =============================================
   FORMS
   ============================================= */
.form-control {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--gray-700);
}

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

.alert-success {
  background: rgba(76, 175, 80, 0.15);
  color: var(--brand-green);
}

.alert-danger {
  background: rgba(244, 67, 54, 0.15);
  color: var(--brand-red);
}

.alert-warning {
  background: rgba(255, 152, 0, 0.15);
  color: var(--brand-orange);
}

.alert-info {
  background: rgba(33, 150, 243, 0.15);
  color: var(--info);
}

/* =============================================
   HOME PAGE
   ============================================= */
#slideshow0 {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

#content h2,
#content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-green);
  display: inline-block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  header .container {
    flex-wrap: wrap;
  }

  #search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
  }

  #menu .nav-link {
    padding: 12px 14px !important;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  #logo a {
    font-size: 24px;
  }

  main {
    padding: 15px 0;
  }

  .product-thumb .image img {
    height: 150px;
  }

  .product-thumb h4 a,
  .product-thumb .title a {
    font-size: 12px;
  }

  .product-thumb .price,
  .product-thumb .price-new {
    font-size: 16px;
  }

  .product-thumb .button-group button:first-child {
    font-size: 11px;
    padding: 8px 10px;
  }

  footer {
    padding: 30px 0 15px;
  }

  footer h5 {
    margin-top: 20px;
  }
}

/* =============================================
   FIX BOOTSTRAP CONFLICTS
   ============================================= */
.bg-primary {
  background-color: var(--brand-green) !important;
}

.navbar.bg-primary {
  background-color: var(--brand-green) !important;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--gray-800);
}

.card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
}

.card-header {
  background: var(--gray-100);
  font-weight: 600;
}


/* =============================================
   CART ALERT NOTIFICATION
   ============================================= */
#alert .alert-success {
  background: #fff;
  color: #333;
  border: 2px solid #28a745;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  animation: slideDown 0.3s ease;
}
#alert .alert-success .fa-circle-check {
  color: #28a745;
  font-size: 18px;
  margin-right: 8px;
}
#alert .alert-success .btn-close {
  font-size: 12px;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   FULL RESPONSIVE - EUROSPORT
   ============================================= */

/* --- TABLETS (max-width: 991px) --- */
@media (max-width: 991px) {
  header .row {
    flex-wrap: wrap;
  }
  header .container {
    gap: 10px;
  }
  #search {
    order: 3;
    max-width: 100%;
  }
  #header-cart .btn {
    padding: 10px 15px;
    font-size: 13px;
  }
  .product-title {
    font-size: 20px !important;
  }
  .product-price {
    font-size: 26px !important;
  }
  .btn-buy {
    font-size: 16px !important;
    padding: 12px 20px !important;
  }
  .specs-table td {
    padding: 8px 10px !important;
    font-size: 13px;
  }
}

/* --- SMALL TABLETS / LARGE PHONES (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 10px 0;
  }
  header .row {
    align-items: center;
  }
  header .col-md-3,
  header .col-lg-4 {
    flex: 0 0 auto;
    width: auto;
  }
  header .col-md-5 {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    margin-top: 8px;
  }
  header .col-md-4,
  header .col-lg-3 {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    margin-bottom: 0 !important;
  }
  #logo a {
    font-size: 22px !important;
  }
  #search .form-control {
    height: 42px;
    font-size: 14px;
    padding: 8px 14px;
  }
  #search .btn {
    height: 42px;
    padding: 8px 15px;
  }
  #header-cart .btn,
  #header-cart .dropdown-toggle {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Main content */
  main {
    padding: 0 0 15px 0;
  }
  #content {
    padding: 15px;
  }

  /* Product page */
  .product-main-card {
    padding: 15px;
  }
  .product-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }
  .product-price {
    font-size: 24px !important;
  }
  .product-price-box {
    padding: 15px;
    margin: 15px 0;
  }
  .product-actions {
    flex-direction: column;
  }
  .btn-buy {
    width: 100% !important;
    font-size: 16px !important;
    padding: 14px !important;
  }
  .btn-wishlist {
    width: 100% !important;
    height: auto !important;
    padding: 12px !important;
  }
  .specs-card {
    padding: 15px;
  }

  /* Cart dropdown */
  #header-cart .dropdown-menu {
    min-width: 280px;
    right: -10px !important;
  }
  #header-cart .dropdown-menu .table img {
    width: 40px;
    height: 40px;
  }

  /* Cart page */
  .table th,
  .table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  .table img {
    width: 50px !important;
    height: 50px !important;
  }

  /* Buttons - touch friendly */
  .btn {
    min-height: 44px;
  }
  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Footer */
  footer {
    padding: 20px 0 15px;
    margin-top: 20px;
  }

  /* Scroll to top button */
  #btn-scroll-top {
    width: 44px !important;
    height: 44px !important;
    bottom: 20px !important;
    right: 15px !important;
    font-size: 18px !important;
  }
}

/* --- PHONES (max-width: 576px) --- */
@media (max-width: 576px) {
  /* Header */
  header {
    padding: 8px 0;
  }
  #logo a {
    font-size: 20px !important;
  }
  #header-cart .btn,
  #header-cart .dropdown-toggle {
    padding: 7px 10px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  #search .form-control {
    height: 40px;
    font-size: 14px;
  }
  #search .btn {
    height: 40px;
  }

  /* Cart dropdown - full width */
  #header-cart .dropdown-menu {
    position: fixed !important;
    left: 5px !important;
    right: 5px !important;
    top: auto !important;
    width: calc(100vw - 10px) !important;
    min-width: auto !important;
    max-height: 70vh;
    overflow-y: auto;
    transform: none !important;
  }

  /* Product page */
  .product-main-card {
    padding: 12px;
    border-radius: 8px;
  }
  .product-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }
  .product-price {
    font-size: 22px !important;
  }
  .product-price-box {
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
  }
  .product-gallery .thumb-item {
    width: 50px !important;
    height: 50px !important;
  }
  .product-code {
    font-size: 12px;
  }

  /* Sticky product bar */
  #sticky-product-bar {
    top: 65px !important;
  }
  #sticky-product-bar .container > div {
    gap: 8px !important;
    padding: 6px 0 !important;
  }
  #sticky-product-bar #sticky-product-img {
    width: 35px !important;
    height: 35px !important;
  }
  #sticky-product-bar #sticky-product-name {
    font-size: 12px !important;
    max-width: 120px;
  }
  #sticky-product-bar span[style*="font-size:18px"] {
    font-size: 15px !important;
  }
  #sticky-product-bar #sticky-buy-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* Cart page table */
  .table th,
  .table td {
    padding: 8px 5px;
    font-size: 12px;
  }
  .table .input-group {
    flex-wrap: nowrap;
  }
  .table .input-group .form-control {
    min-width: 35px;
    padding: 4px;
    min-height: 36px;
  }
  .table .input-group .btn {
    padding: 4px 8px;
    min-height: 36px;
  }
  .table img {
    width: 40px !important;
    height: 40px !important;
  }

  /* Checkout */
  #np-shipping-block {
    padding: 12px !important;
    border-radius: 8px !important;
  }
  #np-shipping-block .btn-group {
    flex-direction: column !important;
  }
  #np-shipping-block .btn-group .btn {
    border-radius: 6px !important;
    margin-bottom: 4px;
    border: 1px solid #28a745 !important;
  }
  #np-shipping-block h5 {
    font-size: 16px;
  }

  /* Alerts */
  #alert {
    max-width: calc(100vw - 20px) !important;
    width: calc(100vw - 20px) !important;
    top: 70px !important;
  }

  /* General */
  h1 {
    font-size: 20px !important;
  }
  h2 {
    font-size: 18px !important;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* --- VERY SMALL PHONES (max-width: 375px) --- */
@media (max-width: 375px) {
  #logo a {
    font-size: 18px !important;
  }
  #header-cart .btn,
  #header-cart .dropdown-toggle {
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
  .product-title {
    font-size: 15px !important;
  }
  .product-price {
    font-size: 20px !important;
  }
  #sticky-product-bar #sticky-product-name {
    display: none !important;
  }
  .table th,
  .table td {
    padding: 6px 4px;
    font-size: 11px;
  }
}

/* --- LARGE DESKTOP (min-width: 1400px) --- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}
