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

:root {
  --primary: #0a66b9;
  --primary-dark: #084d8f;
  --primary-light: #e8f0fe;
  --secondary: #17a2b8;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --dark: #1e293b;
  --gray: #6c757d;
  --light: #f8f9fa;
  --white: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.5;
  background: var(--white);
}

/* Floating Buttons */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 14px;
}

.call-sticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
}

@media (max-width: 640px) {
  .whatsapp-float span, .call-sticky span { display: none; }
  .whatsapp-float, .call-sticky { border-radius: 50%; padding: 14px; }
  .whatsapp-float i, .call-sticky i { font-size: 24px; margin: 0; }
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.logo i {
  margin-right: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.admin-link {
  background: var(--primary);
  color: white !important;
  padding: 0.4rem 1rem;
  border-radius: 30px;
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-wa {
  background: #25D366;
  color: white;
}

.btn-wa:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #d9e6f5 100%);
  padding: 4rem 5%;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 5%;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.product-img {
  height: 200px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.2rem;
}

.product-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-available {
  background: var(--success);
  color: white;
}

.badge-sold {
  background: var(--danger);
  color: white;
}

/* Why Us */
.why-us {
  background: var(--light);
  padding: 3rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.why-card h3 {
  margin-bottom: 0.5rem;
}

/* About Preview */
.about-preview {
  padding: 3rem 0;
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image i {
  color: var(--primary);
  margin: 0 1rem;
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Filters */
.filters-container {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-input, .filter-select {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 0.9rem;
  flex: 1;
  min-width: 130px;
}

/* Product Details */
.product-detail {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.detail-image {
  flex: 1;
}

.detail-image img {
  width: 100%;
  border-radius: 20px;
}

.detail-info {
  flex: 1;
}

.detail-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  margin: 1rem 0;
}

/* Contact Page */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info-card, .contact-form-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 20px;
}

.contact-form-card input, .contact-form-card textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
}

@media (max-width: 768px) {
  .contact-page {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem 5% 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  margin-top: 2rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
}

/* Admin Styles */
.admin-container {
  padding: 2rem 5%;
  min-height: 70vh;
}

.admin-login {
  max-width: 400px;
  margin: 3rem auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-dashboard {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--light);
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
}

.product-table {
  width: 100%;
  overflow-x: auto;
}

.product-table table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th, .product-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  z-index: 2000;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
}

.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  margin: 0 0.2rem;
}