/* Autodíly & Akumulátory - Custom Styles */

:root {
  /* Primary - tmavě modrá */
  --bs-primary: #1e3a5f;
  --bs-primary-rgb: 30, 58, 95;

  /* Secondary - červená (CTA) */
  --bs-secondary: #e63946;
  --bs-secondary-rgb: 230, 57, 70;

  /* Link colors */
  --bs-link-color-rgb: 30, 58, 95;
  --bs-link-color: #1e3a5f;
  --bs-link-hover-color: #152d4a;

  /* Success - override green to match theme */
  --bs-success: #e63946;
  --bs-success-rgb: 230, 57, 70;

  /* Layout */
  --boxed-max-width: 1320px;
  --boxed-bg-color: #f5f5f5;
}

/* Override Bootstrap primary button (parent theme has green #72bf44) */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #152d4a;
  --bs-btn-hover-border-color: #152d4a;
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-color: #fff;
}

/* Override Bootstrap success/green accents */
.btn-outline-success {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-color: #fff;
}

.btn-success {
  --bs-btn-bg: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-bg: #cf2f3b;
  --bs-btn-hover-border-color: #cf2f3b;
}

/* Category title underline accent */
.text-success,
.border-success {
  color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

/* Font Outfit - modern, clean, professional */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

body {
  font-family: "Outfit", sans-serif;
}

/* Primary button - tmavě modrá */
.btn-primary {
  --bs-btn-bg: #1e3a5f;
  --bs-btn-border-color: #1e3a5f;
  --bs-btn-hover-bg: #152d4a;
  --bs-btn-hover-border-color: #152d4a;
  --bs-btn-active-bg: #0f2035;
  --bs-btn-active-border-color: #0f2035;
}

/* Secondary button - červená (CTA) */
.btn-secondary {
  --bs-btn-bg: #e63946;
  --bs-btn-border-color: #e63946;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #d62b39;
  --bs-btn-hover-border-color: #d62b39;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #c0232f;
  --bs-btn-active-border-color: #c0232f;
}

/* Add to cart button - červená (výraznější CTA) */
.add-to-cart,
.product-add-to-cart .btn-primary,
.product-miniature .btn-primary,
button[data-button-action="add-to-cart"] {
  --bs-btn-bg: #e63946;
  --bs-btn-border-color: #e63946;
  --bs-btn-hover-bg: #d62b39;
  --bs-btn-hover-border-color: #d62b39;
  --bs-btn-active-bg: #c0232f;
  --bs-btn-active-border-color: #c0232f;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

/* Product page - add to cart larger */
.product__add-to-cart .add-to-cart {
  font-size: 1.15rem;
  padding: 0.85rem 2rem;
  font-weight: 700;
  color: #fff !important;
}

/* Quantity input same height as add to cart button */
.product__add-to-cart .row.g-2 {
  align-items: stretch;
}

.product__add-to-cart .quantity-button {
  height: auto;
}

.product__add-to-cart .quantity-button .input-group {
  height: 100%;
  margin-bottom: 0 !important;
}

.product__add-to-cart .quantity-button .input-group .btn,
.product__add-to-cart .quantity-button .input-group .form-control {
  height: 100%;
}

/* Product listing - reduce gap between title and price */
.product-miniature .product-list-reviews:empty,
.product-miniature .product-list-reviews {
  display: none;
}

/* Hide quick view button in product listing */
.product-miniature .product-miniature__quickview {
  display: none;
}

.product-miniature .product-miniature__infos__top {
  padding-bottom: 0;
}

.product-miniature .product-miniature__infos__bottom {
  margin-top: 0;
}

/* Hide availability info on product page */
.product__add-to-cart .product-availability {
  display: none;
}

a {
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

a:hover {
  color: var(--bs-link-hover-color);
}

/* ===========================================
   BOXED LAYOUT
   =========================================== */

body {
  background-color: var(--boxed-bg-color);
}

/* Main wrapper - boxed container */
#wrapper,
#header,
#footer {
  max-width: var(--boxed-max-width);
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
}

/* Header boxed */
header#header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Header top bar - full width inside box */
.header__top {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

/* Header nav container */
.header__nav,
.header__top .container {
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Main content wrapper */
#wrapper {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Footer boxed */
#footer {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  background-color: transparent;
}

/* Slider/Carousel - full width inside box */
.carousel {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  width: calc(100% + 3rem);
}


/* Responsive adjustments */
@media (max-width: 1400px) {
  :root {
    --boxed-max-width: 100%;
  }

  body {
    background-color: #fff;
  }

  #wrapper,
  #header,
  #footer {
    box-shadow: none;
  }
}

/* ===========================================
   HOMEPAGE - HERO SLIDER
   =========================================== */

.hero-slider {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  width: calc(100% + 3rem);
  margin-bottom: 0;
}

.hero-slider__container {
  position: relative;
  overflow: hidden;
  height: 420px;
}

.hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slider__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slider__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider__image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 32, 53, 0.85) 0%,
    rgba(30, 58, 95, 0.4) 100%
  );
}

.hero-slider__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 3rem 5rem;
}

.hero-slider__text {
  max-width: 650px;
  color: #fff;
}

.hero-slider__title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: #fff;
}

.hero-slider__subtitle {
  font-size: 1.125rem;
  margin-bottom: 1.75rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-slider__cta .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-slider__cta .btn-outline-light {
  border-width: 2px;
}

.hero-slider__cta .btn-outline-light:hover {
  background-color: #fff;
  color: #333;
}

/* Slider arrows */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-slider__arrow--prev {
  left: 1rem;
}

.hero-slider__arrow--next {
  right: 1rem;
}

.hero-slider__arrow .material-icons {
  font-size: 1.75rem;
}

/* Slider dots */
.hero-slider__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hero-slider__dot--active {
  background: #fff;
  border-color: #fff;
  width: 28px;
  border-radius: 5px;
}

/* Hero Slider - Responsive */
@media (max-width: 768px) {
  .hero-slider__container {
    height: 340px;
  }

  .hero-slider__content {
    padding: 2rem 4rem;
  }

  .hero-slider__title {
    font-size: 1.5rem;
  }

  .hero-slider__subtitle {
    font-size: 0.95rem;
  }

  .hero-slider__cta .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .hero-slider__arrow {
    width: 36px;
    height: 36px;
  }

  .hero-slider__arrow .material-icons {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-slider__container {
    height: 300px;
  }
}

/* ===========================================
   HOMEPAGE - CATEGORY CARDS GRID (ps-category-card)
   =========================================== */

.ps-category-cards {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.ps-category-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.ps-category-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.12);
  transform: translateY(-4px);
}

.ps-category-card__header {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.ps-category-card__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ps-category-card__image--placeholder {
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

.ps-category-card__header:hover .ps-category-card__image {
  transform: scale(1.05);
}

/* Gradient overlay on image */
.ps-category-card__header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 32, 53, 0.8) 0%,
    rgba(30, 58, 95, 0.1) 60%,
    transparent 100%
  );
  z-index: 1;
  transition: opacity 0.3s ease;
}

.ps-category-card__header:hover::before {
  opacity: 0.85;
}

.ps-category-card__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.01em;
}

.ps-category-card__links {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  flex: 1;
}

.ps-category-card__links li {
  border-bottom: none;
}

.ps-category-card__links a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.ps-category-card__links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ps-category-card__links a:hover {
  color: var(--bs-primary);
  background: rgba(30, 58, 95, 0.04);
}

.ps-category-card__links a:hover::before {
  background: var(--bs-secondary);
  width: 6px;
  height: 6px;
}

/* Category Cards - Responsive */
@media (max-width: 768px) {
  .ps-category-card__image {
    height: 110px;
  }

  .ps-category-card__title {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .ps-category-card__links a {
    padding: 0.4rem 1rem;
    font-size: 0.825rem;
  }
}

/* ===========================================
   HOMEPAGE - FEATURED PRODUCTS SECTION
   =========================================== */

.page-home .featured-products {
  padding: 2rem 0;
}

.page-home .featured-products .products-section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #333;
}

.page-home .featured-products .products-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--bs-primary);
  margin: 0.75rem auto 0;
}

/* ===========================================
   HOMEPAGE - TRUST BADGES
   =========================================== */

.trust-badges {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  width: calc(100% + 3rem);
  background: #1e3a5f;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}

.trust-badges__grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-badges__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.trust-badges__icon {
  font-size: 1.75rem;
  color: #e63946;
}

.trust-badges__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.trust-badges__text strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-badges__text span {
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .trust-badges__grid {
    gap: 1.25rem;
  }

  .trust-badges__item {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .trust-badges__icon {
    font-size: 1.5rem;
  }

  .trust-badges__text strong {
    font-size: 0.8rem;
  }

  .trust-badges__text span {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .trust-badges__item {
    flex: 0 0 100%;
    justify-content: center;
  }
}

/* Hide other homepage modules */
.page-home #content > section:not(.featured-products):not(.hero-slider):not(.hero-banner):not(.ps-category-cards):not(.trust-badges) {
  display: none;
}

/* ===========================================
   PRODUCT LISTING - Miniature Cards
   =========================================== */

/* Card container */
.product-miniature .card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: none;
}

.product-miniature .card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.1);
  transform: translateY(-3px);
}

/* Image container */
.product-miniature__image-container {
  position: relative;
  background: #f8f9fa;
  overflow: hidden;
}

.product-miniature__image {
  transition: transform 0.4s ease;
}

.product-miniature .card:hover .product-miniature__image {
  transform: scale(1.04);
}

/* Product flags (Nové, Sleva, etc.) */
.product-miniature .product-flag {
  border-radius: 0 0 6px 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
}

.product-miniature .product-flag.new {
  background: var(--bs-primary);
}

.product-miniature .product-flag.on-sale,
.product-miniature .product-flag.discount {
  background: var(--bs-secondary);
}

/* Info section */
.product-miniature__infos {
  padding: 1rem 1.15rem !important;
}

/* Název produktu */
.product-miniature__title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1a1d21;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.product-miniature__title:hover {
  color: var(--bs-primary);
}

/* Menší mezera mezi názvem produktu a cenou */
.product-miniature__infos__top {
  margin-bottom: 0.25rem;
}

.product-miniature__infos__bottom {
  padding-top: 0;
}

/* Prices */
.product-miniature__prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-miniature__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.product-miniature__regular-price {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: line-through;
}

/* Add to cart row */
.product-miniature form {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.product-miniature form .btn-primary {
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

/* Quantity input styling */
.product-miniature .quantity-button .input-group {
  border-radius: 8px;
  overflow: hidden;
}

.product-miniature .quantity-button .input-group .btn:first-child {
  border-radius: 8px 0 0 8px;
}

.product-miniature .quantity-button .input-group .btn:last-of-type {
  border-radius: 0 8px 8px 0;
}

.product-miniature .quantity-button .input-group .form-control {
  border-radius: 0;
}

/* Wishlist heart */
.product-miniature .wishlist-button-add {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.product-miniature .wishlist-button-add:hover {
  background: #fff;
  color: var(--bs-secondary);
  transform: scale(1.1);
}

/* Subcategory pills in category page */
.subcategories .card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.subcategories .card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

/* Category header */
#js-product-list-header h1,
.category-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1d21;
  position: relative;
  padding-bottom: 0.75rem;
}

#js-product-list-header h1::after,
.category-header h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--bs-secondary);
  border-radius: 2px;
}

/* Product count & sort bar */
.products-sort-order .sort-by-row {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

/* Pagination styling */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 2px;
  border: 1px solid #e9ecef;
  color: var(--bs-primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.pagination .active .page-link {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

/* Left column - category tree */
.block-categories .category-sub-menu a {
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}

.block-categories .category-sub-menu a:hover {
  color: var(--bs-primary);
  background: rgba(30, 58, 95, 0.04);
}

/* Faceted search */
.facet .facet__title {
  font-weight: 600;
  color: #1a1d21;
}

/* ===========================================
   MODERN HEADER STYLES
   =========================================== */

/* Header Top - Modern compact style */
.header-top {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .header-top {
    border-bottom: none;
  }
}

.header-top a:not(.dropdown-item) {
  color: var(--header-top-color);
  transition: color 0.2s ease;
  font-weight: 500;
}

.header-top a:not(.dropdown-item):hover,
.header-top a:not(.dropdown-item):hover *,
.header-top a:not(.dropdown-item):hover .material-icons {
  color: var(--bs-primary);
}

.header-top-desktop {
  padding: 0.5rem 0;
}

.header-top__right {
  gap: 0.5rem;
}

.header-top__right > *:not(:last-child) {
  margin-right: 0;
}

.header-top__left a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-top__left a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--bs-primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header-top__left a:hover::before {
  opacity: 1;
}

/* Header bottom - enforce order: Logo(1) | Menu(2) | Search(3) | User(4) | Cart(5) */
@media (min-width: 768px) {
  .header-bottom__row {
    flex-wrap: nowrap !important;
  }

  .header-bottom__row .logo {
    order: 1;
    flex-shrink: 0;
  }

  .header-bottom__row .ps_mainmenu,
  .header-bottom__row [id*="mainmenu"],
  .header-bottom__row .menu {
    order: 2;
    flex-shrink: 0;
  }

  .header-bottom__row #search_widget,
  .header-bottom__row .search-widget,
  .header-bottom__row [class*="search"] {
    order: 3;
  }

  #header-bottom-actions {
    order: 4;
    flex-shrink: 0;
  }

  #header-bottom-actions .user-info,
  #header-bottom-actions #_desktop_user_info {
    order: 1;
  }

  #header-bottom-actions .blockcart,
  #header-bottom-actions #_desktop_cart {
    order: 2;
  }
}

/* ===========================================
   HEADER BOTTOM - Modern style
   =========================================== */

.header-bottom {
  padding: 0.5rem 0;
  border-bottom: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .header-bottom {
    padding: 0.75rem 0;
  }

  .header-bottom__row {
    min-height: 4.5rem;
  }
}

.header-bottom .navbar-brand {
  max-width: 180px;
  padding: 0;
  transition: transform 0.2s ease;
}

.header-bottom .navbar-brand:hover {
  transform: scale(1.02);
}

.header-bottom .navbar-brand img.logo {
  width: auto;
  max-height: 40px;
  display: block;
}

/* Logo container padding and centering */
.header-bottom__row .logo {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-bottom__row .logo .header-bottom__h1 {
  display: flex;
  align-items: center;
}

.header-bottom__row .logo .navbar-brand {
  display: flex;
  align-items: center;
}

/* Modern navigation links */
.header-bottom .nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.75rem 1rem !important;
  transition: color 0.2s ease;
}

.header-bottom .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bs-primary);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.header-bottom .nav-link:hover::after {
  width: 80%;
}

.header-bottom .nav-link:active,
.header-bottom .nav-link.active {
  color: var(--bs-primary);
}

.header-bottom .nav-link:active::after,
.header-bottom .nav-link.active::after {
  width: 80%;
}

.header-bottom .nav-link:active:hover {
  color: var(--bs-primary);
}

/* Dropdown improvements */
.header-bottom .dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
  animation: fadeInDown 0.2s ease;
}

.header-bottom .dropdown-item {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease;
}

.header-bottom .dropdown-item:hover {
  background: var(--bs-gray-100);
  transform: translateX(4px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   HEADER BLOCK - Action buttons (cart, user, etc)
   =========================================== */

.header-block__action-btn {
  display: flex;
  gap: 0.2em;
  align-items: center;
  padding: var(--header-block-spacing-y) var(--header-block-spacing-x);
  color: var(--header-top-color);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background: transparent;
}

.header-block__action-btn:hover,
.header-block__action-btn:focus {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);
}

@media (min-width: 768px) {
  .header-block__action-btn {
    padding: 0.625rem 0.875rem;
  }
}

.header-block__icon {
  font-size: 1.375rem;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .header-block__icon {
    margin-right: 0.35em;
  }
}

.header-block__action-btn:hover .header-block__icon {
  transform: scale(1.1);
}

.header-block__title {
  font-weight: 500;
  font-size: 0.875rem;
}

.header-block__badge {
  position: absolute;
  top: 0.25em;
  right: -0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.35em;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bs-white);
  text-align: center;
  background: var(--bs-primary);
  border-radius: 50rem;
  box-shadow: 0 2px 4px rgba(var(--bs-primary-rgb), 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
  .header-block__badge {
    position: static;
    min-width: 1.75em;
    height: 1.75em;
    margin-left: 0.5em;
    font-size: 0.75rem;
    color: var(--bs-white);
    background: var(--bs-primary);
    animation: none;
  }
}

/* Header block active state */
@media (min-width: 992px) {
  .header-block--active .header-block__action-btn {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
  }

  .header-block--active .header-block__icon {
    color: var(--bs-primary);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ===========================================
   MODERN SEARCH BOX
   =========================================== */

.header-bottom #search_widget,
.search__offcanvas #search_widget {
  min-width: 22rem;
  overflow: visible;
}

@media (max-width: 767.98px) {
  .header-bottom #search_widget,
  .search__offcanvas #search_widget {
    min-width: inherit;
  }
}

.header-bottom #search_widget input,
.search__offcanvas #search_widget input {
  height: 2.75rem;
  padding-right: 3.5rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  background: var(--bs-gray-100);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.header-bottom #search_widget input::placeholder,
.search__offcanvas #search_widget input::placeholder {
  color: var(--bs-gray-500);
  font-weight: 400;
}

.header-bottom #search_widget input:hover,
.search__offcanvas #search_widget input:hover {
  background: var(--bs-gray-50);
  border-color: var(--bs-gray-200);
}

.header-bottom #search_widget input:focus,
.search__offcanvas #search_widget input:focus {
  background: var(--bs-white);
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.12);
}

@media (max-width: 767.98px) {
  .header-bottom #search_widget input,
  .search__offcanvas #search_widget input {
    font-size: 1rem;
    height: 3rem;
  }
}

.header-bottom #search_widget .search,
.search__offcanvas #search_widget .search {
  right: 0.75rem;
  color: var(--bs-gray-500);
  transition: all 0.2s ease;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.header-bottom #search_widget .search:hover,
.search__offcanvas #search_widget .search:hover {
  background: var(--bs-primary);
  color: var(--bs-white);
}

.header-bottom #search_widget .clear,
.search__offcanvas #search_widget .clear {
  right: 3rem;
  color: var(--bs-gray-500);
  transition: color 0.2s ease;
}

.header-bottom #search_widget .clear:hover,
.search__offcanvas #search_widget .clear:hover {
  color: var(--bs-gray-700);
}

/* Search dropdown results */
.search-widgets__dropdown {
  border: none !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden;
}

.search-widgets__results {
  padding: 0.75rem !important;
}

.search-result__link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.search-result__link:hover {
  background: var(--bs-gray-100);
  transform: translateX(4px);
}

.search-result__name {
  font-weight: 500;
}

.search-result__image {
  border-radius: 0.5rem;
}

/* ===========================================
   HEADER MODERN - Additional styles
   =========================================== */

/* Smooth sticky header */
.header {
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Main menu improvements */
.top-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Category dropdown */
.category-top-menu .dropdown-toggle::after {
  transition: transform 0.2s ease;
}

.category-top-menu.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* User info block */
.user-info .dropdown-menu {
  min-width: 200px;
  padding: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.user-info .dropdown-menu .dropdown-divider {
  margin: 0.5rem 0;
}

.user-info .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.user-info .dropdown-item i {
  margin-right: 0.5rem;
  font-size: 1.125rem;
}

.user-info .dropdown-item:hover {
  background: var(--bs-gray-100);
  transform: translateX(4px);
}

/* Cart block improvements */
.blockcart .header-block__action-btn {
  position: relative;
}

/* Logo container */
.logo a {
  display: block;
}

.logo img {
  transition: opacity 0.2s ease;
}

.logo:hover img {
  opacity: 0.9;
}

/* ===========================================
   MODERN FOOTER STYLES
   =========================================== */

/* Footer variables */
#footer {
  --footer-bg: #1a1d21;
  --footer-bg-dark: #12141a;
  --footer-text: #9ca3af;
  --footer-heading: #ffffff;
  --footer-link: #9ca3af;
  --footer-link-hover: #e63946;
  --footer-border: rgba(255, 255, 255, 0.08);
}

/* Footer wrapper */

/* ===========================================
   FOOTER - Newsletter Section (Before)
   =========================================== */

#footer .footer__before {
  background: #e8eaed;
  border-top: 1px solid #ddd;
}

#footer .footer__before .container {
  padding-left: 0;
  padding-right: 0;
}

#footer .email-subscription {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

/* Newsletter block styling */
#footer .block_newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

#footer .block_newsletter .block_newsletter__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1d21;
  margin-bottom: 0.5rem;
}

#footer .block_newsletter .block_newsletter__label {
  color: #6b7280;
  font-size: 0.9375rem;
}

#footer .block_newsletter form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#footer .block_newsletter input[type="email"] {
  min-width: 280px;
  height: 3rem;
  padding: 0 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}

#footer .block_newsletter input[type="email"]:focus {
  border-color: var(--bs-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.1);
}

#footer .block_newsletter button,
#footer .block_newsletter .btn {
  height: 3rem;
  padding: 0 1.75rem;
  background: var(--bs-primary);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

#footer .block_newsletter button:hover,
#footer .block_newsletter .btn:hover {
  background: var(--bs-link-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

@media (max-width: 768px) {
  #footer .block_newsletter {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  #footer .block_newsletter form {
    width: 100%;
    flex-direction: column;
  }

  #footer .block_newsletter input[type="email"] {
    min-width: 100%;
    width: 100%;
  }

  #footer .block_newsletter button,
  #footer .block_newsletter .btn {
    width: 100%;
  }
}

/* ===========================================
   FOOTER - Main Section
   =========================================== */

#footer .footer__main {
  background: var(--footer-bg);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  border-radius: 0 0 0.75rem 0.75rem;
}

/* Footer top row - link columns */
#footer .footer__main__top {
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
}

/* Footer block styling */
#footer .footer__block {
  margin-bottom: 2rem;
}

/* Footer headings */
#footer .footer__block__title,
#footer .footer__block h2,
#footer .footer__block h3,
#footer .footer__block .h3,
#footer .footer__block .h4 {
  color: var(--footer-heading) !important;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bs-primary);
  display: inline-block;
}

/* Footer links list */
#footer .footer__block__content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer__block__content-list li {
  margin-bottom: 0.5rem;
}

#footer .footer__block__content-list a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0;
  transition: all 0.2s ease;
  position: relative;
}

#footer .footer__block__content-list a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--footer-link-hover);
  transition: width 0.25s ease;
}

#footer .footer__block__content-list a:hover {
  color: var(--footer-link-hover);
  padding-left: 0.5rem;
}

#footer .footer__block__content-list a:hover::before {
  width: 100%;
}

/* Store info block */
#footer .footer__block__content-contact {
  color: var(--footer-text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

#footer .footer__block__content-contact a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer .footer__block__content-contact a:hover {
  color: var(--footer-link-hover);
}

#footer .footer__block__content-contact .contact__infos,
#footer .footer__block__content-contact .contact__phone,
#footer .footer__block__content-contact .contact__fax,
#footer .footer__block__content-contact .contact__email {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

#footer .footer__block__content-contact i,
#footer .footer__block__content-contact .material-icons {
  color: var(--bs-primary);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Footer bottom row */
#footer .footer__main__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Payment icons / social links area */
#footer .footer__main__bottom .links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ===========================================
   FOOTER - Copyright Section
   =========================================== */

#footer .copyright {
  background: transparent;
  color: var(--footer-text);
  font-size: 0.875rem;
  text-align: center;
  padding: 1.25rem 1.5rem;
  margin: 0;
  border-top: none;
}

#footer .copyright a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer .copyright a:hover {
  color: var(--footer-link-hover);
}

/* ===========================================
   FOOTER - Mobile Accordion
   =========================================== */

@media (max-width: 767.98px) {
  #footer .footer__block {
    border-bottom: 1px solid var(--footer-border);
    margin-bottom: 0;
  }

  #footer .footer__block:last-child {
    border-bottom: none;
  }

  #footer .footer__block__title,
  #footer .footer__block__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: none;
    cursor: pointer;
  }

  #footer .footer__block__toggle i {
    color: var(--footer-text);
    transition: transform 0.25s ease;
  }

  #footer .footer__block__toggle:not(.collapsed) i {
    transform: rotate(180deg);
  }

  #footer .footer__block__content {
    padding-bottom: 1rem;
  }

  #footer .footer__main__top {
    padding-bottom: 0;
  }
}

/* ===========================================
   FOOTER - Responsive Adjustments
   =========================================== */

@media (max-width: 1400px) {
  #footer .footer__before,
  #footer .footer__main,
  #footer .copyright {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 768px) {
  #footer .footer__block {
    margin-bottom: 0;
  }
}

/* ===========================================
   FOOTER - Trust Badges / Features Bar (Optional)
   =========================================== */

.footer-features {
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 2rem 0;
}

.footer-features__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-features__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-features__item i,
.footer-features__item .material-icons {
  color: var(--bs-primary);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .footer-features__list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* ===========================================
   PRODUCT PAGE - 30/70 Layout
   =========================================== */

@media (min-width: 992px) {
  .product.js-product-container .product__left {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .product.js-product-container .product__col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
