/*
Theme Name: TecnoBox Paraguay Official Brand Light
Theme URI: https://tecnobox.puretego.online
Author: Antigravity AI
Author URI: https://puretego.online
Description: Tema Premium WooCommerce exclusivo para TecnoBox Paraguay con Logo Recortado 100% Sin Margenes Blancos (401x116 px), Header Elegante y Mega-Menu Bar.
Version: 1.7.0
License: GNU General Public License v2 or later
Text Domain: tecnobox
*/

/* ==========================================================================
   TECNOBOX OFFICIAL BRAND DESIGN SYSTEM - TIGHT RECTANGULAR LOGO
   ========================================================================== */
:root {
  --tb-bg: #ffffff;
  --tb-bg-header: #ffffff;
  --tb-bg-card: #ffffff;
  --tb-bg-card-hover: #f8fafc;
  --tb-bg-subtle: #f1f5f9;
  --tb-border: #e2e8f0;
  --tb-border-glow: rgba(67, 176, 42, 0.4);
  
  /* Brand Official Colors */
  --tb-green: #43b02a;
  --tb-green-hover: #369721;
  --tb-green-glow: rgba(67, 176, 42, 0.25);
  --tb-yellow: #fbbc34;
  --tb-black: #181818;
  --tb-dark: #0f172a;
  --tb-danger: #ef4444;

  --tb-text-heading: #0f172a;
  --tb-text-main: #334155;
  --tb-text-muted: #64748b;
  --tb-text-dim: #94a3b8;
  
  --tb-radius-sm: 6px;
  --tb-radius-md: 12px;
  --tb-radius-lg: 18px;

  --tb-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  --tb-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
  --tb-glow: 0 0 20px rgba(67, 176, 42, 0.2);
  
  --tb-font-sans: 'Jost', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --tb-font-heading: 'Jost', 'HK Grotesk', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--tb-bg) !important;
  color: var(--tb-text-main);
  font-family: var(--tb-font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tb-green);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--tb-green-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tb-font-heading);
  font-weight: 700;
  color: var(--tb-text-heading);
  line-height: 1.25;
}

.tb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Bar */
.tb-topbar {
  background: var(--tb-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 0;
  font-size: 0.8rem;
  color: #e2e8f0;
}
.tb-topbar .tb-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tb-topbar-info {
  display: flex;
  gap: 18px;
}
.tb-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Header Principal con Logo Recortado */
.tb-header {
  background: #ffffff;
  border-bottom: 1px solid var(--tb-border);
  padding: 10px 0;
}

.tb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo Recortado Ajustado (401x116 px) */
.tb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.tb-logo-img {
  height: 62px !important;
  max-height: 70px !important;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.tb-logo:hover .tb-logo-img {
  transform: scale(1.03);
}

/* Navegación Principal */
.tb-nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.tb-nav a {
  color: var(--tb-text-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tb-nav a:hover,
.tb-nav li.current-menu-item a {
  color: var(--tb-green);
}
.tb-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--tb-green);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.tb-nav a:hover::after,
.tb-nav li.current-menu-item a::after {
  width: 100%;
}

/* Header Actions */
.tb-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--tb-radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}
.tb-btn-primary {
  background: var(--tb-green);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(67, 176, 42, 0.35);
}
.tb-btn-primary:hover {
  background: var(--tb-green-hover);
  transform: translateY(-2px);
  color: #ffffff;
}
.tb-btn-outline {
  background: transparent;
  border: 1.5px solid var(--tb-border);
  color: var(--tb-text-heading);
}
.tb-btn-outline:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
  background: rgba(67, 176, 42, 0.05);
}

.tb-cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--tb-radius-sm);
  background: var(--tb-bg-subtle);
  border: 1px solid var(--tb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tb-text-heading);
  font-size: 1.15rem;
}
.tb-cart-btn:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
}
.tb-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--tb-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ==========================================================================
   MEGA-MENU BAR SIN BARRA DE SCROLL (COMPACTO Y ELEGANTE)
   ========================================================================== */
.tb-megamenu-bar {
  background: #0f172a;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: visible !important;
}
.tb-megamenu-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Desplegable Principal */
.tb-megamenu-trigger {
  position: relative;
  background: var(--tb-green);
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.tb-megamenu-trigger:hover {
  background: var(--tb-green-hover);
}
.tb-megamenu-trigger .arrow {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}
.tb-megamenu-trigger:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown Grid */
.tb-megamenu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 760px;
  background: #ffffff;
  color: var(--tb-text-main);
  border: 1px solid var(--tb-border);
  border-radius: 0 0 var(--tb-radius-md) var(--tb-radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 22px;
  display: none;
  z-index: 1001;
}
.tb-megamenu-trigger:hover .tb-megamenu-dropdown {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.tb-megamenu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tb-megamenu-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tb-megamenu-cat-title {
  color: var(--tb-text-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--tb-border);
  padding-bottom: 5px;
}
.tb-megamenu-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tb-megamenu-col a {
  color: var(--tb-text-main);
  font-size: 0.82rem;
}
.tb-megamenu-col a:hover {
  color: var(--tb-green);
  padding-left: 4px;
}

/* Links Rápidos Inline SIN Barra de Scroll */
.tb-megamenu-links {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: visible !important;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tb-megamenu-links::-webkit-scrollbar {
  display: none !important;
}
.tb-megamenu-links a {
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.tb-megamenu-links a:hover {
  color: var(--tb-green);
}

.tb-megamenu-promo {
  color: #f87171;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--tb-radius-sm);
  white-space: nowrap;
}
.tb-megamenu-promo:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ==========================================================================
   HERO SLIDESHOW PROMOCIONAL NANO-BANANA
   ========================================================================== */
.tb-hero-slider-section {
  padding: 20px 0;
  background: var(--tb-bg);
}

.tb-slider-container {
  position: relative;
  border-radius: var(--tb-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--tb-border);
  background: #f8fafc;
}

.tb-slide {
  display: none;
  width: 100%;
}
.tb-slide.active {
  display: block;
  animation: fadeSlide 0.5s ease;
}
@keyframes fadeSlide {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.tb-slide-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.tb-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  border: 1px solid var(--tb-border);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10;
}
.tb-slider-btn:hover {
  background: var(--tb-green);
  color: #ffffff;
  border-color: var(--tb-green);
}
.tb-slider-btn.prev { left: 16px; }
.tb-slider-btn.next { right: 16px; }

.tb-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.tb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tb-dot.active, .tb-dot:hover {
  background: var(--tb-green);
  width: 28px;
  border-radius: 10px;
}

/* Features Grid */
.tb-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.tb-feature-item {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--tb-shadow);
}
.tb-feature-icon {
  font-size: 1.6rem;
  color: var(--tb-green);
}
.tb-feature-text h4 {
  font-size: 0.95rem;
  color: var(--tb-text-heading);
}
.tb-feature-text p {
  font-size: 0.8rem;
  color: var(--tb-text-muted);
}

/* Categories Grid & WooCommerce Grid */
.tb-section {
  padding: 45px 0;
}
.tb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}
.tb-section-title {
  font-size: 1.75rem;
  font-weight: 800;
}
.tb-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tb-cat-card {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-md);
  padding: 18px 12px;
  text-align: center;
  transition: all 0.3s ease;
}
.tb-cat-card:hover {
  border-color: var(--tb-green);
  transform: translateY(-4px);
  box-shadow: var(--tb-shadow-hover);
}
.tb-cat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.tb-cat-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--tb-text-heading);
}
.tb-cat-count {
  font-size: 0.75rem;
  color: var(--tb-text-muted);
}

.tb-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.tb-product-card {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-md);
  padding: 16px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.tb-product-card:hover {
  border-color: var(--tb-green);
  box-shadow: var(--tb-shadow-hover);
  transform: translateY(-4px);
}
.tb-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 2;
}
.tb-badge-sale { background: var(--tb-green); color: #fff; }
.tb-badge-new { background: #0f172a; color: #fff; }

.tb-product-thumb {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--tb-radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tb-product-card:hover .tb-product-thumb img {
  transform: scale(1.06);
}

.tb-product-cat {
  font-size: 0.75rem;
  color: var(--tb-green);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tb-product-title a {
  color: var(--tb-text-heading);
  font-weight: 700;
  font-size: 0.92rem;
}
.tb-product-bottom {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tb-product-price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tb-green);
}
.tb-add-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tb-green);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-add-cart-btn:hover {
  background: var(--tb-green-hover);
}

/* Sucursales Grid */
.tb-sucursales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tb-sucursal-card {
  background: #ffffff;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-md);
  padding: 22px;
  box-shadow: var(--tb-shadow);
}
.tb-sucursal-city {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--tb-green);
  text-transform: uppercase;
}
.tb-sucursal-name {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.tb-sucursal-info p {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--tb-text-main);
}
.tb-sucursal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

/* Footer */
.tb-footer {
  background: #111111;
  padding: 50px 0 25px 0;
  margin-top: 50px;
  color: #e2e8f0;
}
.tb-footer h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
  text-transform: uppercase;
}
.tb-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 35px;
  margin-bottom: 35px;
}
.tb-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tb-footer-col a {
  color: #94a3b8;
  font-size: 0.88rem;
}
.tb-footer-col a:hover {
  color: var(--tb-green);
}
.tb-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
  .tb-logo-img { height: 50px !important; max-height: 55px !important; }
  .tb-categories-grid { grid-template-columns: repeat(3, 1fr); }
  .tb-products-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-features-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-megamenu-links { display: none; }
}
@media (max-width: 600px) {
  .tb-logo-img { height: 44px !important; max-height: 48px !important; }
  .tb-nav { display: none; }
  .tb-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-products-grid { grid-template-columns: 1fr; }
  .tb-sucursales-grid { grid-template-columns: 1fr; }
  .tb-features-grid { grid-template-columns: 1fr; }
}
