/*
Theme Name: MaxiDeals MX
Theme URI: https://maxidealsmx.com
Author: MaxiDeals
Description: Custom discount / liquidation store theme for MaxiDeals MX. Free shipping included, SPEI payments, clear urgency.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: maxidealsmx
*/

/* ============================================
   MaxiDeals MX – Discount Store Design
   ============================================ */

:root {
  --navy: #0A2540;
  --orange: #FF6B00;
  --orange-dark: #E55A00;
  --bg: #F8F9FB;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --muted: #5A6570;
  --border: #E2E6EA;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.site-header {
  background: var(--navy);
  color: white;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header a, .main-nav a, .cart-link { color: white !important; }
.logo a { color: white !important; }

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; font-weight: 700; color: var(--navy); text-decoration: none; }

.badge-free-shipping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #A7F3D0;
}
.badge-free-shipping::before { content: "✓"; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #123456 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.hero h1 { font-size: 42px; margin: 0 0 12px; }
.hero p { font-size: 18px; opacity: 0.9; margin: 0 0 24px; }

.btn-primary {
  background: var(--orange);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card .body { padding: 16px; }
.product-card h3 { margin: 8px 0; font-size: 16px; }
.price { font-size: 22px; font-weight: 800; color: var(--orange); }
.price del { font-size: 14px; color: var(--muted); margin-left: 8px; font-weight: 500; }
.product-card img { width: 100%; height: 220px; object-fit: cover; background: #f3f4f6; }
.product-card .product-card-body { padding: 16px; }
.product-card h2, .product-card .woocommerce-loop-product__title {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.product-card .price { font-size: 22px; font-weight: 800; color: var(--orange); margin: 8px 0; }
.product-card .price del { font-size: 14px; color: var(--muted); margin-left: 8px; font-weight: 500; }
.product-card .button, .product-card .add_to_cart_button {
  background: var(--orange);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.product-card .button:hover { background: var(--orange-dark); }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 24px 0; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

.woocommerce-products-header__title { font-size: 32px; color: var(--navy); margin-bottom: 8px; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 16px; }

.onsale {
  background: var(--orange) !important;
  color: white !important;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}


.site-footer {
  background: var(--navy);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer h4 { margin: 0 0 12px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
}
