/*
Theme Name: Bodega Theme
Theme URI: 
Author: Cesar
Author URI: 
Description: Tema para el sistema de Bodega con soporte para WooCommerce.
Version: 1.0
Text Domain: bodega
*/
:root {
  --primary: #FFC300;
  --primary-hover: #e6b000;
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-body: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #FFC300;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --sidebar-width: 80px;
  --sidebar-expanded-width: 260px;
  --radius-card: 1.5rem;
  --radius-button: 100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --warning: #f59e0b;
  --danger: #ef4444;
}

[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass: rgba(15, 23, 42, 0.05);
  --glass-border: rgba(15, 23, 42, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --accent: #FFC300;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  transition: var(--transition);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  /* Ensure scroll if menu is too tall */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.logo img {
  height: 32px;
  width: auto;
}

/* Login Styles */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: var(--transition);
}

.login-card {
  width: 90%;
  max-width: 400px;
  padding: 3rem;
  text-align: center;
}

.login-logo {
  height: 60px;
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-main);
}

.login-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: -1rem;
  text-align: center;
  display: none;
}


.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  background: var(--glass);
  color: var(--accent);
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 2rem 3rem;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg-card);
  /* Explicit opaque background instead of glass for better contrast */
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

/* Fix for Select Options (Browser Default Override) */
select option {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

button {
  background: var(--primary);
  color: #0f172a;
  border: none;
  border-radius: var(--radius-button);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

button:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.theme-toggle {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: 0.75rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  color: #0f172a;
  transform: rotate(15deg);
}

.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-delivered {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

#close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Voucher Details */
.voucher-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.voucher-signature-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.signature-box {
  text-align: center;
}

.sig-line {
  border-top: 1px solid var(--text-main);
  margin-bottom: 0.5rem;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  margin-top: 5px;
  width: calc(100% - 2rem);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: var(--shadow);
  display: none;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: var(--glass);
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

@media print {

  .sidebar,
  .header,
  .nav-item,
  button,
  .modal-header,
  #confirm-delivery {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .modal {
    position: static;
    display: block;
    background: none;
  }

  .card {
    box-shadow: none;
    border: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 80px;
    padding: 2rem 0.75rem;
  }

  .logo span {
    display: none;
  }

  .nav-item span {
    display: none;
  }

  .main-content {
    margin-left: 80px;
    padding: 1.5rem;
  }
}

/* Admin & Bulk Upload Styles */
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--glass);
  color: var(--primary);
}

.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-card);
  padding: 3rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--glass);
}

.upload-zone i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Print Layouts */
#print-container {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  #print-container,
  #print-container * {
    visibility: visible;
  }

  #print-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: black !important;
    background: white !important;
  }

  .thermal-layout {
    width: 80mm;
    padding: 5mm;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10pt;
  }

  .thermal-layout h2 {
    text-align: center;
    margin-bottom: 5mm;
  }

  .thermal-layout table {
    width: 100%;
    border-top: 1px dashed black;
    border-bottom: 1px dashed black;
    margin: 5mm 0;
  }

  .standard-layout {
    width: 100%;
    max-width: 210mm;
    padding: 15mm;
    font-family: 'Inter', sans-serif;
  }

  .standard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 5mm;
    margin-bottom: 10mm;
  }

  .standard-layout h1 {
    color: #000;
  }

  .print-footer {
    margin-top: 20mm;
    display: flex;
    justify-content: space-around;
  }

  .print-sig {
    border-top: 1px solid black;
    width: 60mm;
    text-align: center;
    padding-top: 2mm;
  }
}

/* Profile & Misc Enhancements */
.avatar {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: 50%;
  /* Perfect round */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
}

.avatar:hover {
  transform: scale(1.1);
  border-color: #fff;
}

/* Avatar Dropdown Code */
.user-profile {
  position: relative;
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  /* Wider to fit names */
  max-height: 400px;
  /* Allow taller dropdown */
  overflow-y: auto;
  /* Scroll internally */
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  z-index: 1000;
  display: none;
  animation: slideDown 0.2s ease;
}

.profile-dropdown.active {
  display: block;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: var(--glass);
  color: var(--accent);
}

.profile-menu-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.5rem 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Birthday Glow */
.birthday-glow {
  position: relative !important;
  animation: celebrate 2s infinite alternate;
}

.birthday-glow::after {
  content: 'ðŸŽ‚';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.2rem;
}

@keyframes celebrate {
  from {
    box-shadow: 0 0 5px var(--accent);
  }

  to {
    box-shadow: 0 0 20px var(--accent), 0 0 40px #ff00ff;
  }
}

/* User Table Specifics */
.user-row {
  transition: var(--transition);
}

.user-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #25d366;
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
}

.wa-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

/* White-labeling Logo */
.client-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

/* Chart adjustments */
canvas {
  max-width: 100%;
}

/* Shopping Cart Styles */
.cart-card {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
}

.cart-badge {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 1rem 0;
  min-height: 200px;
}

.cart-item {
  display: grid;
  grid-template-columns: 50px 1fr 80px 40px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.cart-item:hover {
  background: var(--glass);
}

.cart-item-image {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h5 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.cart-item-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
}

.cart-item-qty input {
  width: 100%;
  padding: 0.5rem;
  text-align: center;
}

.btn-remove {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.1);
}

.cart-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  margin-top: auto;
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.product-image {
  width: 100%;
  height: 150px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.product-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.product-stock {
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.qty-input {
  width: 60px;
  padding: 0.5rem;
  text-align: center;
  border-radius: 0.5rem;
}

.btn-add-cart {
  flex: 1;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-button);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Super Admin Mode - Hide ALL warehouse/product functions */
body.super-admin-mode .warehouse-function,
body.super-admin-mode #add-product-card,
body.super-admin-mode #add-product-form,
body.super-admin-mode [id*="product-photo"],
body.super-admin-mode .card:has(.card-header:contains("Agregar Producto")),
body.super-admin-mode form[id="add-product-form"] {
  display: none !important;
}
/* Ajustes WooCommerce Dark Mode */
.woocommerce-custom-wrapper h1, .woocommerce-custom-wrapper h2, .woocommerce-custom-wrapper span.price { color: var(--text-main) !important; }
.woocommerce ul.products li.product { background: rgba(0,0,0,0.2); padding: 1rem; border-radius: 12px; border: 1px solid var(--glass-border); }
.woocommerce ul.products li.product a img { border-radius: 8px; }
.woocommerce a.button { background: var(--primary) !important; color: #000 !important; border-radius: 100px !important; }

/* Arreglos del Browser Subagent */
.woocommerce-store-layout { display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--bg-dark); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--text-main); }
.woocommerce div.product .woocommerce-tabs .panel { background: var(--bg-card); color: var(--text-main); padding: 1rem; border-radius: 8px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background-color: var(--primary) !important; color: #000 !important; border-radius: 8px !important; }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { border: 1px solid var(--glass-border) !important; background: var(--bg-card) !important; color: var(--text-main); }
.woocommerce table.shop_table { border: 1px solid var(--glass-border) !important; border-collapse: collapse; }
.woocommerce table.shop_table th { background: var(--glass) !important; color: var(--text-main) !important; }
.woocommerce table.shop_table td { color: var(--text-main) !important; background: var(--bg-card) !important; }
.woocommerce-page .page-title { color: var(--text-main); }
.woocommerce-MyAccount-navigation ul li a { color: var(--text-main); }
.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--primary); font-weight:bold; }

/* POS LAYOUT FIX */
.store-layout { grid-template-columns: 280px 1fr !important; }
/* Ocultar precios en el frontend */
.woocommerce span.price, .woocommerce-Price-amount { display: none !important; }
/* Ocultar ordenamiento por precio en WC */
.woocommerce-ordering { display: none !important; }
/* Ocultar total en el carrito */
.cart_totals, .product-price, .product-subtotal { display: none !important; }


/* REVERT POS LAYOUT TO 3 COLUMNS */
.store-layout { grid-template-columns: 280px 1fr 350px !important; }
/* Ocultar precios en el mini cart */
.woocommerce-mini-cart__total, .woocommerce-mini-cart-item .quantity .amount { display: none !important; }
.woocommerce-mini-cart-item { padding: 10px; border-bottom: 1px solid var(--glass-border); display: block; }
.woocommerce-mini-cart__buttons { display: none !important; }
.widget_shopping_cart_content { font-size: 14px; color: var(--text-main); }


/* AJUSTES PARA EL CARRITO COMPLETO EN EL SIDEBAR POS */
.custom-pos-cart .woocommerce-cart-form__contents { width: 100%; display: block; border: none !important; }
.custom-pos-cart .woocommerce-cart-form__contents thead { display: none; }
.custom-pos-cart .woocommerce-cart-form__contents tr.cart_item { display: grid; grid-template-columns: 20px 40px 1fr 70px; gap: 10px; align-items: center; border-bottom: 1px solid var(--glass-border); padding: 12px 0; }
.custom-pos-cart .woocommerce-cart-form__contents td { padding: 0 !important; border: none !important; background: transparent !important; }
.custom-pos-cart .product-thumbnail img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.custom-pos-cart .product-name a { font-size: 12px; color: var(--text-main); text-decoration: none; display: block; line-height: 1.3; font-weight: 600; }
.custom-pos-cart .product-quantity { width: 100%; }
.custom-pos-cart .product-quantity .qty { width: 50px; padding: 5px; font-size: 12px; text-align: center; border-radius: 4px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.5); color: white; }
.custom-pos-cart .product-remove a { color: var(--danger) !important; font-size: 24px !important; font-weight: bold; display: flex; align-items: center; justify-content: center; height: 100%; text-decoration: none; }
.custom-pos-cart .product-remove a:hover { background: transparent !important; opacity: 0.7; }
.custom-pos-cart .actions { display: flex; justify-content: flex-end; padding-top: 15px; border: none !important; background: transparent !important; }
.custom-pos-cart button[name="update_cart"] { background: rgba(255,255,255,0.1) !important; color: white !important; padding: 8px 15px !important; font-size: 12px !important; border-radius: 6px !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.custom-pos-cart button[name="update_cart"]:hover { background: rgba(255,255,255,0.2) !important; }
.custom-pos-cart .coupon { display: none !important; }
.custom-pos-cart .cart-empty { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 2rem; }

/* CHECKOUT LIMPIO PARA BODEGA INTERNA */
.woocommerce-checkout .woocommerce-billing-fields h3, 
.woocommerce-checkout .woocommerce-additional-fields h3 { display: none !important; }


/* OCULTAR COMPLETAMENTE TODOS LOS PRECIOS PARA NO-ADMINS */
.bodega-hide-prices .product-price,
.bodega-hide-prices .product-subtotal,
.bodega-hide-prices .cart-subtotal,
.bodega-hide-prices .order-total,
.bodega-hide-prices th.product-total,
.bodega-hide-prices td.product-total,
.bodega-hide-prices th.product-price,
.bodega-hide-prices td.product-price,
.bodega-hide-prices .woocommerce-Price-amount,
.bodega-hide-prices .amount,
.bodega-hide-prices .tax-rate {
    display: none !important;
}

/* DESTRUIR FORMULARIOS DE DIRECCION Y FACTURACION EN CHECKOUT */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2,
.woocommerce-checkout #customer_details {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* EN CHECKOUT, HACER QUE EL FORMULARIO RELEVANTE OCUPE EL 100% */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
}

/* ========================================== */
/* ESTILOS DE LA PANTALLA DE LOGIN FULLSCREEN */
/* ========================================== */

body.logged-out {
    background-color: #111; /* Color de fondo por defecto antes de que cargue la imagen */
}

/* Ocultar barra lateral y header si no hay sesiÃ³n */
body.logged-out .sidebar,
body.logged-out .header {
    display: none !important;
}

/* Centrar el formulario en toda la pantalla */
body.logged-out .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.65); /* Filtro oscuro sobre la imagen de fondo */
    backdrop-filter: blur(5px); /* Efecto Glassmorphism */
}

/* Tarjeta del Login de WooCommerce */
body.logged-out .woocommerce {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--glass-border);
}

/* Estilizar el tÃ­tulo del login */
body.logged-out .woocommerce h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
}

body.logged-out .woocommerce h2::before {
    content: 'ðŸ” ';
}

/* Campos de texto mÃ¡s grandes */
body.logged-out .woocommerce-form-login input.input-text {
    padding: 12px;
    font-size: 16px;
}

/* BotÃ³n gigante para entrar */
body.logged-out .woocommerce-form-login .button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 15px;
    border-radius: 8px;
    font-weight: bold;
}

/* Ocultar texto de registro si lo hubiera */
body.logged-out .u-column2 {
    display: none !important;
}
body.logged-out .u-column1 {
    width: 100% !important;
    float: none !important;
}

/* REFUERZO DE OCULTAMIENTO DE PRECIOS */
body.bodega-hide-prices-strict .product-price,
body.bodega-hide-prices-strict .product-subtotal,
body.bodega-hide-prices-strict .cart-subtotal,
body.bodega-hide-prices-strict .order-total,
body.bodega-hide-prices-strict th.product-total,
body.bodega-hide-prices-strict td.product-total,
body.bodega-hide-prices-strict th.product-price,
body.bodega-hide-prices-strict td.product-price,
body.bodega-hide-prices-strict .woocommerce-Price-amount,
body.bodega-hide-prices-strict .amount,
body.bodega-hide-prices-strict .tax-rate,
body.bodega-hide-prices-strict .wc-block-checkout__totals {
    display: none !important;
    visibility: hidden !important;
}

/* DESTRUIR BLOQUES NATIVOS DE WC SI SE ESCAPAN */
.woocommerce-checkout .wc-block-checkout__billing-address,
.woocommerce-checkout .wc-block-checkout__shipping-address,
.woocommerce-checkout .wc-block-checkout__contact-fields {
    display: none !important;
}


/* Asegurar que se ocultan los campos de facturacion pero que la columna principal (customer_details) quede visible para la OT */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    display: none !important;
}

.woocommerce-checkout #customer_details {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    float: none !important;
}

/* Centrar el boton de Confirmar Solicitud y los Terminos */
#payment .place-order {
    display: flex !important;
    justify-content: center !important;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 !important;
    width: 100% !important;
    text-align: center !important;
}

#place_order {
    font-size: 1.2rem !important;
    padding: 15px 40px !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    background-color: var(--primary) !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(255, 195, 0, 0.4);
}

.woocommerce-checkout #order_review {
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto;
}

/* OCULTAR EL MENSAJE DE "NO HAY METODOS DE PAGO" */
#payment .woocommerce-error,
#payment .woocommerce-info,
#payment .woocommerce-message,
#payment ul.payment_methods {
    display: none !important;
}

/* Asegurarse que la columna 2 (donde viven los campos extra) este visible */
.woocommerce-checkout .col-2 {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    float: none !important;
}

/* Destruir el bloque de Dirección de Facturación en la Pantalla de Gracias */
section.woocommerce-customer-details {
    display: none !important;
}

/* Sidebar Hover Additions */
.sidebar { overflow-x: hidden; z-index: 2000; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease; }
.sidebar:hover { width: var(--sidebar-expanded-width); box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
.sidebar .logo span, .sidebar .logo h2, .sidebar .nav-item span { opacity: 0; white-space: nowrap; transition: opacity 0.2s ease; pointer-events: none; }
.sidebar:hover .logo span, .sidebar:hover .logo h2, .sidebar:hover .nav-item span { opacity: 1; pointer-events: auto; }

/* Logo Resize Additions */
.sidebar .logo img { max-width: 40px !important; transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar:hover .logo img { max-width: 180px !important; }
