/*
Theme Name: Đoan Áo Xanh Theme
Theme URI: https://doanaoxanh.com/
Author: Đoan Áo Xanh Team
Description: Giao diện Thương mại Điện tử hiện đại chuyên thiết bị môi trường & thùng rác công nghiệp tại Cà Mau.
Version: 1.0.0
Text Domain: doanaoxanh
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-900: #064e3b;
  --primary-800: #065f46;
  --primary-700: #047857;
  --primary-600: #059669;
  --primary-500: #10b981;
  --primary-400: #34d399;
  --primary-100: #d1fae5;
  --primary-50: #ecfdf5;

  --accent-amber: #f59e0b;
  --accent-orange: #ea580c;
  --accent-red: #ef4444;

  --dark-surface: #0a1f18;
  --dark-card: #122c23;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(5, 150, 105, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Topbar */
.topbar {
  background: linear-gradient(90deg, var(--primary-900), var(--primary-800));
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.875rem;
}

.topbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-badge {
  background: var(--accent-amber);
  color: var(--slate-900);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--primary-600);
  font-weight: 600;
  text-transform: uppercase;
}

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-full);
  background: var(--slate-50);
  font-size: 0.925rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--primary-100);
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

.hotline-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cart-quote {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cart-count {
  background: var(--accent-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-nav {
  background: var(--primary-900);
  color: white;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-link {
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--accent-amber);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #042f22 0%, #064e3b 50%, #065f46 100%);
  color: white;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--primary-400);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  color: #34d399;
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  color: var(--slate-900);
  font-weight: 800;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  cursor: pointer;
}

.hero-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-400);
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Trust Bar */
.trust-bar {
  background: white;
  padding: 30px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--slate-200);
}

.trust-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.trust-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trust-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.trust-text p {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Products Section */
.products-section {
  padding: 60px 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-subtitle {
  color: var(--primary-600);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
}

.filter-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid var(--slate-200);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-pill {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--primary-600);
  color: white;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
}

.product-image-box {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-eco {
  background: var(--primary-600);
  color: white;
}

.badge-hot {
  background: var(--accent-orange);
  color: white;
}

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.775rem;
  color: var(--primary-700);
  font-weight: 700;
  text-transform: uppercase;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
}

.price-main {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-700);
}

.btn-add-quote {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

.btn-add-quote:hover {
  background: var(--primary-600);
  color: white;
}

/* Calculator Section */
.calculator-section {
  background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-card) 100%);
  color: white;
  padding: 70px 0;
  margin: 40px 0;
}

.calculator-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.calc-card {
  background: white;
  color: var(--slate-900);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Modals & Drawers */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-backdrop.active, .drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}

.drawer-panel {
  position: fixed;
  top: 0; right: -450px;
  width: 100%; max-width: 440px; height: 100%;
  background: white;
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}

.drawer-backdrop.active .drawer-panel {
  right: 0;
}

.drawer-header {
  padding: 20px;
  background: var(--primary-900);
  color: white;
  display: flex;
  justify-content: space-between;
}

.drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.drawer-footer {
  padding: 20px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

.floating-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 800;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
}

.float-zalo { background: #0068ff; font-weight: 800; }
.float-phone { background: var(--primary-600); }

/* Footer */
.footer {
  background: var(--dark-surface);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 24px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}
