
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --accent-primary: #0a4b08;
  --accent-secondary: #0b6119;
  --accent-success: #02422d;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-dark);
}

body {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
    /* ===== END: CSS GLOBAL STYLES ===== */

    /* ===== START: CSS NAVIGATION STYLES ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  width: 100%;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
  font-family: 'Poppins', sans-serif;
}

.nav-links button:hover {
  color: var(--accent-primary);
}

    /* ===== END: CSS NAVIGATION STYLES ===== */

    /* ===== START: CSS PAGE STYLES ===== */
main {
  width: 100%;
  display: block;
}

.page {
  display: none;
  min-height: calc(100vh - 80px);
  width: 100%;
}

.page.active {
  display: block;
}

    /* ===== END: CSS PAGE STYLES ===== */

    /* ===== START: CSS HERO STYLES ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 2rem;
  text-align: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  padding-top: 80px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-primary), #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

    /* ===== END: CSS HERO STYLES ===== */

    /* ===== START: CSS BUTTON STYLES ===== */
.btn-cta {
  padding: 0.9rem 2.5rem;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid var(--accent-primary);
  color: white;
  background: linear-gradient(135deg, var(--accent-primary), #1e40af);
  display: inline-block;
  margin: 0.5rem;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #1e40af, var(--accent-primary));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-repair {
  padding: 0.9rem 2.5rem;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid var(--accent-success);
  color: var(--accent-success);
  background: transparent;
  display: inline-block;
  margin: 0.5rem;
}

.btn-repair:hover {
  background: var(--accent-success);
  color: white;
  transform: translateY(-2px);
}

    /* ===== END: CSS BUTTON STYLES ===== */

    /* ===== START: CSS PRODUCTS PAGE STYLES ===== */
.catalog-section {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 100px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.product-img {
  width: 100%;
  height: 150px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 3rem;
}

.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.stock-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(16, 185, 145, 0.1);
  color: var(--accent-success);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.product-card .price {
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-view {
  flex: 1;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-view:hover {
  background: var(--accent-primary);
  color: white;
}

.btn-buy-now {
  flex: 1;
  padding: 0.8rem;
  background: var(--accent-primary);
  border: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-buy-now:hover {
  background: var(--accent-secondary);
}

    /* ===== END: CSS PRODUCTS PAGE STYLES ===== */

    /* ===== START: CSS FORM STYLES ===== */
.service-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 100px;
}

.service-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.8rem;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

    /* ===== END: CSS FORM STYLES ===== */

    /* ===== START: CSS REPAIR FORM STYLES ===== */
.repair-form {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.device-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.device-options label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s;
}

.device-options label:hover {
  border-color: var(--accent-primary);
}

.device-options input {
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent-success);
  border: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: #059669;
}

.success-message {
  background: rgba(16, 185, 145, 0.1);
  border: 1px solid var(--accent-success);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  color: var(--accent-success);
  font-size: 0.85rem;
  display: none;
}

    /* ===== END: CSS REPAIR FORM STYLES ===== */

    /* ===== START: CSS CHECKOUT MODAL STYLES ===== */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.checkout-modal.open {
  display: flex;
}

.checkout-content {
  background: var(--bg-primary);
  border-radius: 12px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.checkout-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.checkout-body {
  padding: 1.5rem;
}

.checkout-section {
  margin-bottom: 2rem;
}

.checkout-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.order-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.checkout-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.9rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-cancel:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-place-order {
  flex: 1;
  padding: 0.9rem;
  background: var(--accent-primary);
  border: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-place-order:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.checkout-success {
  background: rgba(16, 185, 145, 0.1);
  border: 1px solid var(--accent-success);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1rem;
  color: var(--accent-success);
  font-size: 0.85rem;
  display: none;
  text-align: center;
}

.checkout-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-success);
}

.checkout-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

    /* ===== END: CSS CHECKOUT MODAL STYLES ===== */

    /* ===== START: CSS PRODUCT DETAILS MODAL STYLES ===== */
.product-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.product-details-modal.open {
  display: flex;
}

.details-content {
  background: var(--bg-primary);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.details-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.details-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.details-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.details-body {
  padding: 2rem;
  text-align: center;
}

.details-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.details-brand {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.details-price {
  color: var(--accent-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.details-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.details-specs {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.spec-item:last-child {
  border-bottom: none;
}

.details-actions {
  display: flex;
  gap: 1rem;
}

.btn-details-cancel {
  flex: 1;
  padding: 0.9rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-details-cancel:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-details-buy {
  flex: 1;
  padding: 0.9rem;
  background: var(--accent-primary);
  border: none;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-details-buy:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

    /* ===== END: CSS PRODUCT DETAILS MODAL STYLES ===== */

    /* ===== START: CSS RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .device-options {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .btn-cta, .btn-repair {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}