/* Custom CSS */
:root {
  --primary-color: #ff2949;
  --primary-hover: #e01c3a;
  --secondary-color: #343a40;
}

header {
  position: fixed;
  width: 100%;
  z-index: 999999;
}

main {
  padding-top: 108px;
}

.mobileBanner{
  display: none;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
}

/* Override Bootstrap primary color */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 41, 73, 0.3);
}

.text-primary {
  color: var(--primary-color) !important;
}

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

.border-primary {
  border-color: var(--primary-color) !important;
}

.sale-badge {
  display: block;
  position: absolute;
  background: #ff2949;
  padding: 2px 18px 4px 18px;
  left: 50%;
  transform: translate(-50%, 0);
  color: white;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

/* Pagination */
.page-item.active .page-link {
  background-color: #ff2949 !important;
  border-color: #ff2949 !important;
  color: white !important;
}
.page-link {
  color: #ff2949 !important;
}

/* Navigation */
.navbar-brand {
  font-weight: 700;
}

/* Send mail btn*/
.sendEmailBtn {
  margin: 0 auto;
  display: block;
  margin-top: 35px;
}

.navbar {
  height: 80px;
  position: relative;
  z-index: 1030;
}

.logo {
  width: 145px;
}

.navbar-light .navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--primary-color);
}

/* Enhanced banner carousel caption styling */
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px 30px;
  bottom: 40px;
}

.banner-text-overlay h2 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Reduced carousel height significantly */
.carousel-item img {
  max-height: 350px;
}

@media (max-width: 768px) {
  .carousel-item img {
    max-height: 250px;
  }
}

/* Redesigned category cards with colorful backgrounds */
/* New Category Cards */
.category-card-new {
  position: relative;
  border-radius: 16px;
  padding: 30px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-card-new:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.mainCarouselImg img{
  object-fit: cover !important;
}

.category-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card-new:hover::before {
  opacity: 1;
}

.category-color-1 {
  background: linear-gradient(135deg, #fff5f7 0%, #ffdddd 100%);
}

.category-color-2 {
  background: linear-gradient(135deg, #f0f7ff 0%, #b0e4ff94 100%);
}

.category-color-3 {
  background: linear-gradient(135deg, #fff5f7 0%, #ffdddd 100%);
}

.category-color-4 {
  background: linear-gradient(135deg, #f0f7ff 0%, #b0e4ff94 100%);
}

.category-content {
  flex: 1;
  z-index: 2;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  margin-right: 25px;
}

.category-count {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
  font-weight: 500;
}

.category-image-wrapper {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.category-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Added mobile breakpoint for single column categories below 550px */
@media (max-width: 550px) {
  .category-card-new {
    min-height: 160px;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .category-image-wrapper {
    width: 90px;
    height: 90px;
  }
}

/* Added promotional banner styling */
/* Promotional Banners */
.promo-banner {
  border-radius: 16px;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promo-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.promo-banner-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
}

.promo-banner-secondary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
}

.promo-content {
  z-index: 2;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.promo-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.promo-text {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 0;
}

.promo-icon {
  font-size: 80px;
  opacity: 0.15;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.promo-banner .btn-light {
  background: white;
  color: var(--primary-color);
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-banner .btn-light:hover {
  background: #f8f9fa;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Improved product card styling for better e-shop feel */
/* New Product Cards */
.product-card-new {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: white;
  position: relative;
}

.product-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 41, 73, 0.3);
}

.product-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 15px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-new:hover .product-img {
  transform: scale(1.1);
}

.product-img-placeholder {
  height: 220px;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
  text-transform: uppercase;
}

.product-badge-sale {
  background: var(--primary-color);
  color: white;
}

.product-badge-featured {
  background: #ffc107;
  color: #333;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-name a {
  color: #333;
  transition: color 0.2s ease;
}

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

.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
}

.price-old {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
}

.price-new {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-add-cart {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 41, 73, 0.2);
}

.btn-add-cart:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 41, 73, 0.4);
}

.btn-add-cart:active {
  transform: scale(0.95);
}

/* Section Titles */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

/* .section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
} */

/* Mobile Navigation Fixes */
@media (max-width: 991.98px) {
  .navbar {
    height: auto;
    padding: 0.5rem 0;
    z-index: 1030;
  }

  .checkoutLoginBtns {
    display: flex;
    width: 100% !important;
    justify-content: space-between;
    margin-top: 15px !important;
  }

  .searchMob {
    flex-direction: column;
    gap: 15px;
  }

  .product-card .card-img-top {
    height: unset !important;
  }

  .card-body {
    display: flex !important;
    flex-direction: column !important;
  }

  .shipDiff {
    display: none !important;
  }

  .card-body .d-flex {
    margin-top: auto !important;
  }

  .dropdown-menu-end {
    background-color: transparent !important;
  }
  .dropdown-menu-end > li {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .d-flex.w-100.align-items-center.d-lg-none {
    position: relative;
    z-index: 1031;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }

  .d-flex.w-100.align-items-center.d-lg-none .nav-link {
    color: #333 !important;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .d-flex.w-100.align-items-center.d-lg-none .nav-link:hover {
    color: var(--primary-color) !important;
  }

  .d-flex.w-100.align-items-center.d-lg-none .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    box-shadow: none;
    margin-left: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-brand {
    margin-right: auto;
    flex-grow: 1;
  }

  .navbar-brand img {
    height: 40px;
  }

  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
  }

  .navbar-collapse .d-flex {
    margin: 1rem 0;
    max-width: 100%;
  }

  .categoryCard {
    width: 33% !important;
  }

  .navbar-collapse .input-group {
    max-width: 100% !important;
  }

  .navbar-collapse .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: #f8f9fa;
    margin-left: 1rem;
    border-radius: 0.375rem;
    padding: 0.5rem 0;
  }

  .navbar-collapse .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .navbar-collapse .dropdown-item:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
  }

  .navbar-collapse .navbar-nav {
    gap: 0;
    margin-top: 0.5rem;
  }

  .navbar-collapse .nav-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f1f3f4;
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-collapse .nav-link {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-collapse .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color) !important;
  }

  .navbar-collapse .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
  }

  .navbar-collapse .btn-outline-secondary {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
  }

  /* Mobile responsive adjustments for new components */
  .value-prop-card {
    padding: 20px;
    margin-bottom: 15px;
  }

  .value-prop-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .category-card-new {
    padding: 20px;
    min-height: 150px;
  }

  .category-title {
    font-size: 1.1rem;
  }

  .category-image-wrapper {
    width: 80px;
    height: 80px;
  }

  .promo-banner {
    padding: 25px;
    min-height: 150px;
  }

  .promo-title {
    font-size: 1.3rem;
  }

  .promo-icon {
    font-size: 60px;
    right: 15px;
  }

  .product-img {
    height: 180px;
  }

  .product-img-placeholder {
    height: 180px;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

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

.product-card .card-img-top {
  height: 300px;
  object-fit: cover;
}

/* Category Cards */
.category-card {
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card .card-img-top {
  object-fit: cover;
}

/* Footer */
footer {
  background-color: #f8f9fa;
  padding: 3rem 0;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #6c757d;
  text-decoration: none;
}

footer ul li a:hover {
  color: var(--primary-color);
}

/* Carousel */
.carousel-item img {
  object-fit: contain;
  background: #fafafa;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff0000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff0000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}



@media (max-width: 820px) {
  .headerText {
    font-size: 1.8em !important;
    left: 6% !important;
  }
}

@media (max-width: 768px) {
  #mainCarousel {
    display: none;
  }

  .mobileBanner{
    display: block;
    background: url('https://www.miaua.sk/mobile_banner.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    margin-bottom: 15px;
  }

  .categoriesClass {
    margin-top: 35px;
  }

  .col-md-4 {
    width: 50% !important;
  }

  .fixCol{
    width: unset !important;
  }

  .mtbmdFix{
    margin-top: 0  !important;
    margin-bottom: 0  !important;
  }

  .headerText {
    font-size: 1.5em !important;
    max-width: 47vw !important;
    font-weight: 700 !important;
  }

  .newestHeader {
    text-align: center;
  }
  .allProducts {
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
  }

  .checkoutLoginBtns {
    display: flex;
    width: 100% !important;
    justify-content: space-between;
    margin-top: 15px !important;
  }
}

@media (max-width: 350px) {
  .headerText {
    font-size: 1em !important;
    font-weight: 600 !important;
  }
}

/* Enhanced brand carousel with better hover effects */
.brand-link {
  transition: transform 0.3s ease;
  display: block;
  padding: 15px;
  border-radius: 8px;
}

.brand-link:hover {
  transform: translateY(-5px);
  background: #f8f9fa;
}

.brand-image {
  transition: all 0.3s ease;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
}

.brand-link:hover .brand-image {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Quantity Control */
.quantity-control {
  max-width: 120px;
}

.quantity-control .form-control {
  text-align: center;
}

.quantity-btn {
  width: 38px;
}

/* Product Description */
.product-description {
  line-height: 1.8;
}

/* noUiSlider custom styling */
.noUi-connect {
  background: #ff2949;
}

.noUi-horizontal {
  height: 8px;
}

.noUi-horizontal .noUi-handle {
  width: 20px;
  height: 20px;
  right: -10px;
  top: -7px;
  border-radius: 50%;
  background-color: #ff2949;
  box-shadow: none;
  border: 2px solid #fff;
  cursor: pointer;
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-target {
  border-radius: 4px;
  border: none;
  box-shadow: none;
  background-color: #e9ecef;
}

.noUi-handle:hover,
.noUi-handle:active {
  background-color: #d81b39;
}

/* Product card styling */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.125);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image-container {
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.product-image {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;       /* fallback for non-webkit browsers */
}


.product-title {
  font-size: 1rem;
  height: 2.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Header text*/
.headerText {
    position: absolute;
    top: 50%;
    left: 16%;
    font-size: 2em !important;
    font-weight: 600;
    color: white;
    transform: translate(-4%, -50%);
    line-height: 1.2em;
    max-width: 35vw;
    text-shadow: none;
}

/* Cart page styling */

.cart-item-image {
  width: 90px;
}

.cart-item-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #e9ecef;
  background-color: #fff;
}

.quantity-control {
  width: 120px;
  margin: 0 auto;
}

.quantity-control .form-control {
  text-align: center;
  padding: 0.25rem;
}

.quantity-control .btn {
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

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

.cart-quantity-input {
  -moz-appearance: textfield;
}

.table > :not(caption) > * > * {
  padding: 0.75rem 0.5rem;
}

.remove-item-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Order summary card */
.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
