/* ==========================================================================
   Warehouse Child Theme - Custom Styles
   ========================================================================== */

/* Border radius global: 8px */

/* Product miniature cards */
.product-miniature {
  border-radius: 8px;
  overflow: hidden;
}

/* Product miniature: foto sin padding, descripción con padding */
.product-miniature-grid {
  padding: 0 !important;
}

.products-grid .product-miniature-default .thumbnail-container {
  padding: 0;
}

.products-grid .product-miniature-default .product-thumbnail img {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.products-grid .product-miniature-default .product-description {
  padding: 0.8rem 1rem 1rem;
}

/* Sort dropdown */
.products-sort-nb-dropdown .select-title {
  border-radius: 8px;
}

.products-sort-nb-dropdown .dropdown-menu {
  border-radius: 8px;
  overflow: hidden;
}

.products-sort-nb-dropdown .select-title .fa-sort {
  margin-right: 0.4rem;
  font-size: 0.8em;
}

/* Filter button */
.products-selection .filter-button .btn {
  border-radius: 8px;
}

/* Category header card */
.category-header-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 1.5rem;
}

.category-header-card .category-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
  text-align: left;
}

.category-header-card .category-header-title:after,
.category-header-card .category-header-title:before {
  display: none;
}

.category-header-card .category-header-title span {
  margin: 0;
}

.category-header-card .category-additional-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #344054;
}

/* Logo */
#desktop_logo .logo {
  max-height: 60px;
  width: auto;
}

.col-mobile-logo .logo {
  max-height: 40px;
  width: auto;
}

/* Products selection bar */
.products-selection {
  border-top: none !important;
  border-bottom: none !important;
}

/* Breadcrumb */
.breadcrumb {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.breadcrumb ol li:not(:last-child)::after {
  content: ">" !important;
}

/* Pagination */
.pagination .page-list li {
  border-radius: 8px;
  overflow: hidden;
}

/* ==========================================================================
   Footer - Custom Design
   ========================================================================== */

/* Main footer container */
#footer-container-main.footer-custom {
  background: #002e00;
  color: #c8cec9;
  padding: 0 0 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Decorative top divider */
.footer-divider {
  height: 3px;
  background: linear-gradient(90deg, #006600, #ffab67, #006600);
  margin-bottom: 2.5rem;
  border-radius: 2px;
}

/* Footer columns */
.footer-main-row {
  gap: 0;
}

.footer-col {
  padding-bottom: 1.5rem;
}

/* Column titles */
#footer-container-main.footer-custom .block-title {
  color: #f0ece4;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: none;
  position: relative;
}

#footer-container-main.footer-custom .block-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #ffab67;
  margin-top: 0.5rem;
  border-radius: 1px;
}

#footer-container-main.footer-custom .block-title span {
  margin: 0;
  padding: 0;
}

/* Column 1: Brand */
.footer-brand {
  padding-right: 2rem;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
  border-color: #ffab67;
  transform: scale(1.04);
}

.footer-tagline {
  color: #a3ada5;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 102, 0, 0.2);
  color: #4daa4d;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(0, 102, 0, 0.35);
}

.origin-badge .fa {
  font-size: 0.85rem;
}

/* Column 2: Links */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links-list li a,
#footer-container-main.footer-custom .block-iqitlinksmanager a {
  color: #a3ada5;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links-list li a:hover,
#footer-container-main.footer-custom .block-iqitlinksmanager a:hover {
  color: #f0ece4;
  padding-left: 4px;
}

/* Column 3: Contact */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #a3ada5;
}

.contact-item > .fa {
  color: #ffab67;
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item div span {
  line-height: 1.45;
  font-size: 0.95rem;
}

.contact-item a {
  color: #a3ada5;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: #f0ece4;
}

.contact-schedule {
  margin-top: 0.2rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Column 4: Social + Trust */
.footer-social {
  margin-bottom: 1.3rem;
}

.footer-social .social-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social .social-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #a3ada5;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.footer-social .social-links li a:hover {
  background: #ffab67;
  border-color: #ffab67;
  color: #fff;
  transform: translateY(-2px);
}

/* Trust badges */
.footer-trust {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgba(255, 171, 103, 0.12);
  border-radius: 8px;
  color: #ffab67;
  font-size: 0.9rem;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  color: #f0ece4;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.trust-text span {
  color: #7d8a7f;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Copyright bar */
.footer-copyrights-custom {
  background: #ffffff;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #344054;
  border-top: 1px solid #eaecf0;
}

.footer-copyrights-custom .copyright-text p {
  margin: 0;
  color: #344054;
}

.footer-copyrights-custom .copyright-badges {
  text-align: right;
}

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.payment-methods .fa {
  font-size: 1.4rem;
  color: #667085;
  transition: color 0.2s ease;
}

.payment-methods .fa:hover {
  color: #344054;
}

.payment-methods .fa-lock {
  font-size: 0.9rem;
  color: #006600;
}

.secure-text {
  font-size: 0.8rem;
  color: #006600;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---- Footer Responsive ---- */
@media (max-width: 767px) {
  #footer-container-main.footer-custom {
    padding: 0 0 1.5rem;
  }

  .footer-divider {
    margin-bottom: 1.5rem;
  }

  .footer-brand {
    padding-right: 0;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .footer-brand .origin-badge {
    margin: 0 auto;
  }

  .footer-col-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* Toggle behavior on mobile */
  #footer-container-main.footer-custom .block-title {
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
    padding: 0.8rem 0;
  }

  #footer-container-main.footer-custom .block-title::after {
    display: none;
  }

  .footer-col-trust {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
  }

  .footer-copyrights-custom .copyright-text,
  .footer-copyrights-custom .copyright-badges {
    text-align: center;
  }

  .payment-methods {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .footer-col-brand {
    margin-bottom: 1.5rem;
  }

  .footer-col-trust {
    margin-top: 1.5rem;
  }
}

/* Hide original module blocks that render via displayFooter hook */
#footer-container-main.footer-custom .block-iqitlinksmanager,
#footer-container-main.footer-custom .block-iqitcontactpage {
  display: none;
}

/* ==========================================================================
   Mobile Menu - Custom Design
   ========================================================================== */

/* --- Container & backdrop --- */
#_mobile_iqitmegamenu-mobile,
.mobile-menu-dropdown #_mobile_iqitmegamenu-mobile {
  max-height: 100dvh !important;
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#iqitmegamenu-mobile {
  background: #ffffff;
}

/* --- Header (close button area) --- */
.mobile-menu__header-wrapper {
  background: #002e00;
  border-bottom: none;
  padding: 0.6rem 1.25rem !important;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu__close {
  width: 36px;
  height: 36px;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu__close:active {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(0.95);
}

/* Back button */
.mobile-menu__back-btn {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  padding: 0 !important;
}

.mobile-menu__title {
  font-size: 1rem !important;
  font-weight: 600;
  color: #ffffff;
}

/* --- Scrollable content area --- */
.mobile-menu__content {
  margin: 0 !important;
  padding: 0;
}

.mobile-menu__scroller {
  padding: 0.5rem 0 !important;
}

/* --- Menu items --- */
.mobile-menu__tab {
  font-size: 0.95rem !important;
  line-height: 1.4;
  border-bottom: 1px solid #f2f4f7 !important;
  margin: 0 1.25rem;
  padding: 0 !important;
  min-height: 3.5rem !important;
}

.mobile-menu__tab:last-child {
  border-bottom: none !important;
}

.mobile-menu__link {
  color: #344054 !important;
  font-weight: 500;
  padding: 0.45rem 0 !important;
  display: flex !important;
  align-items: center;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
  width: 100% !important;
}

.mobile-menu__link:active {
  color: #006600 !important;
}

/* Home icon tab */
.mobile-menu__link--only-icon {
  padding: 0.35rem 0 !important;
}

.mobile-menu__tab-icon {
  color: #667085;
  font-size: 1.1rem;
  margin-right: 0.75rem !important;
  width: 20px;
  text-align: center;
}

/* --- Arrow for submenus --- */
.mobile-menu__arrow {
  padding: 0.45rem 0 0.45rem 1rem !important;
  color: #98a2b3;
  transition: color 0.2s ease;
}

.mobile-menu__arrow .fa {
  font-size: 0.85rem;
}

.mobile-menu__arrow:active {
  color: #ffab67;
}

/* --- Submenu panels --- */
.mobile-menu__submenu--panel {
  background: #ffffff !important;
  padding: 0.5rem 0 !important;
}

.mobile-menu__submenu--panel .mobile-menu__tab {
  margin: 0 1.25rem;
}

/* Column titles in submenus */
.mobile-menu__column-title {
  font-size: 0.85rem !important;
  font-weight: 700;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  color: #98a2b3 !important;
  padding: 0.5rem 1.25rem 0.25rem;
  margin-bottom: 0;
}

/* Submenu links list */
.mobile-menu__links-list {
  padding: 0 !important;
  margin: 0;
}

.mobile-menu__links-list-li {
  border-bottom: 1px solid #f2f4f7;
  margin: 0 1.25rem;
}

.mobile-menu__links-list-li:last-child {
  border-bottom: none;
}

.mobile-menu__links-list-li a {
  color: #344054 !important;
  font-weight: 500;
  padding: 0.8rem 0;
  display: block;
  text-decoration: none !important;
}

/* Sub-category expander */
.mobile-menu__subcat-expander {
  color: #98a2b3;
  padding: 0.8rem 0 0.8rem 1rem;
}

/* Nested levels */
.mobile-menu__links-list--lvl-hidden {
  padding: 0 0 0 1rem !important;
  border-left: 2px solid #f2f4f7;
  margin-left: 0.5rem;
}

/* --- Accordion mode --- */
.mobile-menu__submenu--accordion {
  padding-left: 0 !important;
  border-left: 2px solid #ffab67;
  margin-left: 0.5rem;
}

.mobile-menu__submenu--accordion .mobile-menu__link {
  font-weight: 400;
  font-size: 0.9rem !important;
  color: #667085 !important;
  padding: 0.7rem 0 0.7rem 0.75rem !important;
}

/* Expand/collapse icons */
.mobile-menu__expand-icon,
.mobile-menu__close-icon {
  color: #98a2b3;
  font-size: 0.8rem;
}

/* Active tab in accordion */
.mobile-menu__tab--active > .mobile-menu__link {
  color: #006600 !important;
}

/* --- Legend badges (e.g. "New", "Sale") --- */
.mobile-menu__legend {
  font-size: 0.65rem !important;
  font-weight: 700;
  padding: 0.15em 0.5em !important;
  border-radius: 4px;
  background: #ffab67;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Footer (user account) --- */
.mobile-menu__footer {
  background: #002e00;
  border-top: none;
  padding: 0.6rem 1.25rem !important;
  margin-top: auto;
}

.mobile-menu__user a {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.mobile-menu__user .fa-user {
  width: 32px;
  height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.8rem;
  color: #ffffff;
}

/* --- Category images in submenu --- */
.mobile-menu__category-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem !important;
}

.mobile-menu__category-image img {
  border-radius: 8px;
}

/* --- Banner images in submenu --- */
.mobile-menu__banner-image {
  border-radius: 8px;
  overflow: hidden;
}

/* --- Brand images --- */
.mobile-menu__brand-img {
  border-radius: 8px;
}

/* --- Scrollbar styling --- */
.mobile-menu__content::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu__content::-webkit-scrollbar-thumb {
  background-color: #d0d5dd;
  border-radius: 4px;
}

.mobile-menu__submenu--panel::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu__submenu--panel::-webkit-scrollbar-thumb {
  background-color: #d0d5dd;
  border-radius: 4px;
}

/* --- Push mode specific --- */
.mobile-menu-push #_mobile_iqitmegamenu-mobile {
  width: 320px !important;
  border-radius: 0 !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

/* --- Smooth transitions --- */
.mobile-menu-dropdown #_mobile_iqitmegamenu-mobile {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-menu-push #_mobile_iqitmegamenu-mobile {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Above/below content hooks */
.mobile-menu__above-content:empty,
.mobile-menu__below-content:empty {
  display: none;
}
