/*
Theme Name: Movil City
Theme URI: https://movilcity.pa
Author: Movil City Panamá
Description: Tema minimalista y estilizado para tienda de tecnología móvil.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: movilcity
Tags: e-commerce, woocommerce, minimal, modern, clean
*/

/* ===== RESET & BASE ===== */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== SELECTION ===== */
::selection {
  background: #e50914;
  color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e50914;
}

/* ===== CONTAINERS ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #e50914;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #000;
  border-color: #000;
}

.btn-secondary:hover {
  background: #000;
  color: #fff;
}

.btn-accent {
  background: #e50914;
  color: #fff;
}

.btn-accent:hover {
  background: #000;
  transform: translateY(-2px);
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: #fff;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.product-card-image {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 1;
  margin-bottom: 20px;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: all 0.3s;
}

.product-card:hover .product-card-overlay {
  background: rgba(0, 0, 0, 0.02);
  opacity: 1;
}

.product-card-overlay .btn {
  transform: translateY(20px);
  transition: transform 0.3s;
}

.product-card:hover .product-card-overlay .btn {
  transform: translateY(0);
}

.product-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #e50914;
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.product-card-badge.new {
  background: #000;
}

.product-card-info {
  padding: 0;
}

.product-card-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #000;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
}

.product-card-price del {
  color: #999;
  font-weight: 400;
  font-size: 14px;
  margin-right: 8px;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.category-card:hover {
  background: #000;
}

.category-card-content {
  text-align: center;
  z-index: 2;
  transition: all 0.3s;
}

.category-card:hover .category-card-content {
  color: #fff;
}

.category-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.category-card:hover .category-card-icon {
  transform: scale(1.2);
}

.category-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.category-card-count {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== SECTION SPACING ===== */
.section {
  padding: 120px 0;
}

.section-small {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .section-small {
    padding: 60px 0;
  }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e50914;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  line-height: 1.6;
}

/* ===== FORMS ===== */
.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e5e5;
  background: #fff;
  font-size: 15px;
  transition: all 0.3s;
  border-radius: 0;
}

.form-input:focus {
  outline: none;
  border-color: #000;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

/* ===== DIVIDERS ===== */
.divider {
  height: 1px;
  background: #e5e5e5;
  margin: 80px 0;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s;
  color: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* ================================================
   WOOCOMMERCE GLOBAL OVERRIDES - MOVIL CITY
   ================================================ */

/* Ocultar elementos de WooCommerce que rompen el diseño */
.woocommerce .woocommerce-breadcrumb {
    display: none !important;
}

.woocommerce .woocommerce-result-count {
    display: none !important;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 24px !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
}

.woocommerce-notices-wrapper .woocommerce-message {
    border-left: 4px solid #e50914 !important;
}

.woocommerce-notices-wrapper .woocommerce-error {
    border-left: 4px solid #dc2626 !important;
}

.woocommerce-notices-wrapper .woocommerce-info {
    border-left: 4px solid #666 !important;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    color: #fff !important;
}

.woocommerce-notices-wrapper a.button {
    background: #e50914 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 8px 16px !important;
}

/* ===== BOTONES DE WOOCOMMERCE ===== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #content input.button {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #e50914 !important;
    transform: translateY(-2px) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: #e50914 !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: #000 !important;
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* ===== PRODUCT GRID (por si Woo intenta usar el suyo) ===== */
.woocommerce ul.products {
    display: none !important;
}

/* ===== CARRITO ===== */
.woocommerce table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
}

.woocommerce table.shop_table th {
    background: #000 !important;
    color: #fff !important;
    padding: 16px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    border: none !important;
}

.woocommerce table.shop_table td {
    padding: 20px 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
}

.woocommerce table.shop_table img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background: #f8f8f8 !important;
    padding: 32px !important;
    border-radius: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: #e50914 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #000 !important;
}

/* ===== CHECKOUT ===== */
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    background: #fff !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 0 !important;
    padding: 14px 16px !important;
    color: #000 !important;
    font-family: inherit !important;
    transition: border-color 0.3s !important;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

.woocommerce-checkout .form-row label {
    color: #000 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

.woocommerce-checkout #order_review {
    background: #f8f8f8 !important;
    padding: 32px !important;
}

.woocommerce-checkout #order_review_heading {
    color: #000 !important;
    font-weight: 700 !important;
}

.woocommerce-checkout #place_order {
    background: #e50914 !important;
    color: #fff !important;
    width: 100% !important;
    padding: 18px !important;
    border: none !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
}

.woocommerce-checkout #place_order:hover {
    background: #000 !important;
}

/* ===== CUENTA DE USUARIO ===== */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f8f8f8 !important;
    padding: 16px !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 4px !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 12px 16px !important;
    color: #000 !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #000 !important;
    color: #fff !important;
}

/* ===== SIDEBAR DE FILTROS (si existe) ===== */
.woocommerce-widget-layered-nav ul {
    list-style: none !important;
    padding: 0 !important;
}

.woocommerce-widget-layered-nav ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.woocommerce-widget-layered-nav ul li a {
    color: #000 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.woocommerce-widget-layered-nav ul li a:hover {
    color: #e50914 !important;
}

/* ================================================
   DESCRIPCIÓN DE PRODUCTO — separación y estilo
   ================================================ */

/* Párrafos con espacio entre sí */
.mc-description p {
  margin: 0 0 18px;
  line-height: 1.8;
  color: #666;
}

.mc-description p:last-child {
  margin-bottom: 0;
}

/* Títulos (Contenido de la caja) con separación arriba */
.mc-description h2,
.mc-description h3,
.mc-description h4 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000;
  margin: 36px 0 16px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

/* Listas convertidas en "caja" destacada */
.mc-description ul,
.mc-description ol {
  list-style: none;
  margin: 0;
  padding: 24px 28px;
  background: #f8f8f8;
  border-left: 3px solid #e50914;
  display: grid;
  gap: 12px;
}

/* Items con check rojo */
.mc-description ul li,
.mc-description ol li {
  position: relative;
  padding-left: 26px;
  color: #444;
  line-height: 1.6;
  font-size: 15px;
}

.mc-description ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #e50914;
  font-weight: 800;
}

/* Negritas dentro de la lista en negro */
.mc-description ul li strong,
.mc-description ol li strong {
  color: #000;
}