/* ============================================
   PROTEKIP - header
   ============================================ */

/* ============================================================
   SUBBAR — barra de búsqueda global debajo del navbar
   ============================================================ */

.protekip-subbar {
  background: #0d0d0d;
  border-bottom: 1px solid #1c1c1c;
  padding: 14px 0;
  display: none;
  position: relative;
  z-index: 500;
}

.protekip-subbar.is-open {
  display: block !important;
  animation: protekip-subbar-in 0.18s ease;
}

/* Siempre visible en la página de listado de productos */
body.template-category .protekip-subbar {
  display: block !important;
}

@keyframes protekip-subbar-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.protekip-subbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* -- Área de búsqueda -- */
.protekip-subbar-search-area {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.protekip-subbar-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Search wrap — hace que el componente TN ocupe todo el ancho */
.protekip-subbar-search-wrap {
  width: 100%;
  position: relative;
}

/* Dropdown de sugerencias: anclado al input, mismo ancho */
.protekip-subbar-search-wrap .card {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: #111111 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6) !important;
  margin: 0 !important;
  max-height: 360px !important;
  overflow-y: auto !important;
}

.protekip-subbar-search-wrap .protekip-subbar-form,
.protekip-subbar-search-wrap .input-group {
  width: 100% !important;
  border: 1px solid var(--seif-red) !important;
  border-radius: 6px !important;
  overflow: hidden;
  background: #111111 !important;
}

.protekip-subbar-search-wrap input[type="search"],
.protekip-subbar-search-wrap .protekip-subbar-input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  padding: 9px 14px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.protekip-subbar-search-wrap input[type="search"]::placeholder {
  color: #444444 !important;
}

.protekip-subbar-search-wrap button[type="submit"],
.protekip-subbar-search-wrap .protekip-subbar-submit {
  background: transparent !important;
  border: none !important;
  border-left: 1px solid #2a0a0a !important;
  color: #666666 !important;
  padding: 9px 14px !important;
  transition: color 0.2s !important;
}

.protekip-subbar-search-wrap button[type="submit"]:hover {
  color: var(--seif-red) !important;
}

/* -- Tarjetas selector -- */
.protekip-subbar-cards {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.protekip-subbar-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  min-width: 210px;
  background: linear-gradient(135deg, #1a0a0a 0%, #2a1010 100%);
  border: 1px solid #7a1515;
}

.protekip-subbar-card::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  background-image: radial-gradient(circle, rgba(160,20,20,0.4) 1px, transparent 1px);
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
}

.protekip-subbar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  text-decoration: none !important;
}

.protekip-subbar-card-icon {
  color: var(--seif-red);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.protekip-subbar-card-icon svg {
  width: 26px;
  height: 26px;
}

.protekip-subbar-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.protekip-subbar-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.2;
}

.protekip-subbar-card-sub {
  font-size: 0.68rem;
  color: #888888;
  font-family: var(--font-body);
}

.protekip-subbar-card-arrow {
  color: var(--seif-red);
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
  position: relative;
  z-index: 1;
}

.protekip-subbar-card:hover .protekip-subbar-card-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Card producto — naranja */
.protekip-subbar-card-producto {
  background: linear-gradient(135deg, #1a0d06 0%, #2a1508 100%) !important;
  border-color: #7a3210 !important;
}

.protekip-subbar-card-producto::after {
  background-image: radial-gradient(circle, rgba(180,80,20,0.4) 1px, transparent 1px) !important;
}

.protekip-subbar-card-producto .protekip-subbar-card-icon,
.protekip-subbar-card-producto .protekip-subbar-card-arrow {
  color: #d45f1a !important;
}

/* Botón cerrar */
.protekip-subbar-close {
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.protekip-subbar-close:hover {
  border-color: var(--seif-red);
  color: #ffffff;
}

/* Mobile */
@media (max-width: 900px) {
  .protekip-subbar-inner {
    flex-direction: column;
    gap: 10px;
  }
  .protekip-subbar-search-area,
  .protekip-subbar-cards { width: 100%; }
  .protekip-subbar-card { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
  .protekip-subbar-cards { flex-direction: column; gap: 8px; }
  .protekip-subbar-card { min-width: 0; }
}

body header,
body .head-main,
body .js-head-main {
  background: linear-gradient(to bottom, #222222 0%, #141414 100%) !important;
}

body .head-logo-row {
  padding: 5px 0 !important;
}

/* Alinear items del menú a la derecha */
body header .nav-desktop-list {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  margin-right: 24px !important;
}

/* Cada ítem del nav ocupa el alto completo del header */
body header .nav-desktop-list .nav-item-desktop {
  display: flex !important;
  align-items: center !important;
}

/* Nav links */
body header .nav-item a,
body header .js-desktop-nav a {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--seif-gray) !important;
  transition: color 0.2s;
}

body header .nav-item a:hover,
body header .js-desktop-nav a:hover {
  color: var(--seif-red) !important;
  background-color: transparent !important;
}

/* Iconos sin fondo rojo */
body header .btn,
body header button {
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px !important;
}

body header .btn:hover,
body header button:hover {
  background-color: transparent !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body header svg {
  fill: var(--seif-white) !important;
  color: var(--seif-white) !important;
}

body header .btn:hover svg,
body header button:hover svg {
  fill: var(--seif-red) !important;
}

/* Badge carrito */
body .js-cart-widget-amount {
  background-color: var(--seif-red) !important;
  color: var(--seif-white) !important;
}

/* Dropdown compacto — ancho por contenido, abre bajo el ítem */
body .nav-dropdown.nav-main-item {
  position: relative !important;
  overflow: visible !important;
}

body .nav-desktop-list,
body .nav-desktop {
  overflow: visible !important;
}

body .protekip-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 22px !important;
  width: max-content !important;
  min-width: 200px !important;
  padding: 0 !important;
  background: linear-gradient(to bottom, #222222 0%, #141414 100%) !important;
  border-top: 2px solid var(--seif-red) !important;
  border-bottom: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  max-height: none !important;
  overflow: visible !important;
}

body .protekip-dropdown-inner {
  padding: 6px 0 !important;
  width: auto !important;
}

body .protekip-dropdown .desktop-list-subitems {
  column-count: 1 !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .protekip-dropdown .desktop-list-subitems > .nav-item,
body .protekip-dropdown .desktop-list-subitems > .nav-item > .nav-item-container {
  width: 100% !important;
  display: block !important;
}

/* Links del dropdown */
body .protekip-dropdown .nav-list-link {
  display: block !important;
  padding: 9px 20px !important;
  font-family: var(--font-heading) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--seif-gray) !important;
  white-space: nowrap !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
  transition: color 0.2s, background-color 0.2s !important;
}

body .protekip-dropdown .nav-list-link:hover {
  color: var(--seif-white) !important;
  background-color: rgba(255,255,255,0.06) !important;
}

/* Indicador › en ítems con subcategorías — alineado a la derecha */
body .protekip-dropdown .item-with-subitems > .nav-item-container > .nav-list-link,
body .protekip-dropdown .item-with-subitems > .nav-list-link {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 24px !important;
}

body .protekip-dropdown .item-with-subitems > .nav-item-container > .nav-list-link::after,
body .protekip-dropdown .item-with-subitems > .nav-list-link::after {
  content: '›' !important;
  color: var(--seif-red) !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

/* Sub-dropdown lateral */
body .protekip-dropdown .item-with-subitems {
  position: relative !important;
}

body .protekip-dropdown .item-with-subitems > .list-subitems {
  display: none !important;
  position: absolute !important;
  left: 100% !important;
  top: 0 !important;
  width: max-content !important;
  min-width: 200px !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: linear-gradient(to bottom, #1e1e1e 0%, #111111 100%) !important;
  border-top: none !important;
  box-shadow: 8px 8px 24px rgba(0,0,0,0.6) !important;
}

body .protekip-dropdown .item-with-subitems:hover > .list-subitems {
  display: block !important;
}

/* Mobile menu */
@media (max-width: 768px) {
  body .js-mobile-nav,
  body .navigation-panel {
    background-color: var(--seif-black) !important;
  }

  body .js-mobile-nav a,
  body .navigation-panel a {
    color: var(--seif-white) !important;
    border-bottom: 1px solid var(--seif-border);
  }

  body .js-mobile-nav a:hover,
  body .navigation-panel a:hover {
    color: var(--seif-red) !important;
    background-color: var(--seif-card-hover) !important;
  }
}

/* ============================================
   PROTEKIP - Carrito de compras
   ============================================ */

/* Separador entre productos */
.cart-item {
  border-bottom: 1px solid #2a2a2a !important;
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
}

.cart-item:last-of-type {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* Imagen del producto: gradiente igual al listado */
.cart-item-image-col {
  background: radial-gradient(ellipse at center, #888888 0%, #4a4a4a 60%, #252525 100%) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  flex-shrink: 0;
}

.cart-item-image,
.cart-item-image-md {
  object-fit: contain !important;
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  padding: 4px !important;
}

/* Versión página de carrito: imagen más grande */
.cart-item-image-col.cart-item-image-col-md {
  border-radius: 10px !important;
}

.cart-item-image-md {
  width: 96px !important;
  height: 96px !important;
}

/* Cantidad: forzar layout horizontal — y + en la misma línea */
.cart-item-quantity .form-quantity {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #1e1e1e !important;
  width: auto !important;
  float: none !important;
}

.cart-item-quantity .form-row {
  display: contents !important;
}

.cart-item-quantity .form-quantity-icon {
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #cccccc !important;
  cursor: pointer;
}

.cart-item-quantity .form-quantity-icon:hover {
  color: #ffffff !important;
  background: #2a2a2a !important;
}

.cart-item-quantity .js-cart-quantity-container {
  flex: 0 0 auto !important;
  padding: 0 !important;
  width: auto !important;
}

.cart-item-quantity input {
  width: 48px !important;
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-size: 0.95rem !important;
  padding: 0 !important;
  height: 40px !important;
}

/* Botón borrar */
.cart-item [data-component="line-item.remove"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: var(--seif-red) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 7px 9px !important;
  font-family: var(--font-heading) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none !important;
}

.cart-item [data-component="line-item.remove"]:hover {
  background: var(--seif-red-hover) !important;
  color: #ffffff !important;
}

/* Nombre del producto */
.cart-item-name {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.cart-item-name:hover {
  color: var(--seif-red) !important;
}

/* Precio subtotal */
.js-cart-item-subtotal {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  color: #ffffff !important;
}

/* Atajos de búsqueda */
.protekip-search-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 4px;
  flex-wrap: wrap;
}

.protekip-search-shortcuts-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555555;
  font-family: var(--font-heading);
  font-weight: 600;
  flex-shrink: 0;
}

.protekip-search-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #aaaaaa;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.protekip-search-shortcut:hover {
  background: #2a0a0a;
  border-color: var(--seif-red);
  color: #ffffff;
  text-decoration: none !important;
}

.protekip-search-shortcut svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Título "Carrito de compras" */
.protekip-cart-title {
  display: inline-block !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: #ffffff !important;
  border-left: 4px solid var(--seif-red) !important;
  padding-left: 14px !important;
  line-height: 1.2 !important;
}