/* ===================================
REPAIR FLOW STYLES
=================================== */
.repair-flow {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.repair-step {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.repair-step.active {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

.repair-content {
  max-width: 800px;
}

.repair-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 3rem;
}

/* Device Selection Grid */
.device-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.device-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.device-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.device-icon {
  font-size: 3rem;
}

.device-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Form Styles */
.repair-form .form-group,
.repair-content .form-group {
  margin-bottom: 1.5rem;
}

.repair-form label,
.repair-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.repair-select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.repair-select:hover {
  border-color: var(--dark-gray);
}

.repair-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-help {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: 0.5rem;
}

/* Issue Selection */
.issue-selection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.issue-option {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.issue-option:hover {
  border-color: var(--dark-gray);
}

.issue-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  cursor: pointer;
}

.issue-option input[type="radio"]:checked ~ span {
  font-weight: 600;
}

.issue-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.02);
}

.issue-option span {
  font-size: 1.1rem;
}

/* Repair Actions */
.repair-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Repair Summary Sidebar */
.repair-summary {
  background: var(--light-gray);
  border-radius: 25px;
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.repair-summary h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.repair-summary h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.summary-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 25px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.summary-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 20px;
  flex-shrink: 0;
}

.summary-info {
  flex: 1;
}

.summary-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.summary-subtitle {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.summary-section {
  margin-bottom: 2rem;
}

.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-list li {
  font-size: 0.95rem;
  color: var(--secondary-color);
}

.price-detail {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.price-detail strong {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.price-note {
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-style: italic;
}

/* Confirmation */
.confirmation-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  grid-column: 1 / -1;
}

.confirmation-content .success-icon {
  width: 100px;
  height: 100px;
  background-color: var(--success-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto 2rem;
}

.confirmation-message {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.confirmation-details {
  background: var(--light-gray);
  border-radius: 25px;
  padding: 2rem;
  text-align: left;
  margin: 3rem 0;
}

.confirmation-details h3 {
  margin-bottom: 1.5rem;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.next-steps p {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  line-height: 1.6;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Responsive Design for Repair Flow */
@media (max-width: 1024px) {
  .repair-step.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .repair-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .repair-content h1 {
    font-size: 2rem;
  }

  .device-selection-grid {
    grid-template-columns: 1fr;
  }

  .repair-actions {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .confirmation-actions {
    flex-direction: column;
  }
}

/* ===================================
LOADING SCREEN
=================================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  animation: fadeOut 0.5s ease 2s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loading-logo {
  width: 155px;
  height: 155px;
}

/* Prevent scrolling while loading */
body.loading {
  overflow: hidden;
}

/* ===================================
RESET & BASE STYLES
=================================== */
html, body {
  overscroll-behavior: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #000000;
  --background-color: #FFFFFF;
  --light-gray: #F5F5F7;
  --medium-gray: #D2D2D7;
  --dark-gray: #86868B;
  --border-color: #E5E5E5;
  --success-color: #34C759;
  --error-color: #FF3B30;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --header-height: 5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

/* ===================================
BACKDROP BLUR EFFECT
=================================== */
.backdrop-blur {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 900;
  display: grid;
  height: var(--header-height);
  pointer-events: none;
}

.backdrop-blur > span {
  grid-area: 1/1;
  transition: opacity 0.2s linear;
}

.backdrop-blur > span:first-child {
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  -webkit-mask: linear-gradient(0deg, transparent, #000 8%);
  mask: linear-gradient(0deg, transparent, #000 8%);
}

.backdrop-blur > span:nth-child(2) {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask: linear-gradient(0deg, transparent 8%, #000 16%);
  mask: linear-gradient(0deg, transparent 8%, #000 16%);
}

.backdrop-blur > span:nth-child(3) {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask: linear-gradient(0deg, transparent 16%, #000 24%);
  mask: linear-gradient(0deg, transparent 16%, #000 24%);
}

.backdrop-blur > span:nth-child(4) {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask: linear-gradient(0deg, transparent 24%, #000 36%);
  mask: linear-gradient(0deg, transparent 24%, #000 36%);
}

.backdrop-blur > span:nth-child(5) {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-mask: linear-gradient(0deg, transparent 36%, #000 48%);
  mask: linear-gradient(0deg, transparent 36%, #000 48%);
}

.backdrop-blur > span:nth-child(6) {
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  -webkit-mask: linear-gradient(0deg, transparent 48%, #000 60%);
  mask: linear-gradient(0deg, transparent 48%, #000 60%);
}

.backdrop-blur::after {
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 60%, transparent);
  grid-area: 1/1;
}

/* ===================================
HEADER
=================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 2rem;
}

.header-content {
  display: contents;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  z-index: 1001;
}

.logo svg {
  width: 40px;
  height: 40px;
}

/* Center Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 600;
}

/* Header Actions (Cart) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.cart-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.8);
}

.cart-btn:hover {
  background-color: var(--light-gray);
}

.cart-icon {
  font-size: 1.1rem;
}

.cart-count {
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
}

/* ===================================
FOOTER
=================================== */
.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid #333;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-section {
  text-align: center;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===================================
MAIN CONTENT
=================================== */
.main-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: 2rem;
  transition: var(--transition);
}

/* ===================================
FILTERS SECTION
=================================== */
.filters-section {
  background-color: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.filter-select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--background-color);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:hover {
  border-color: var(--accent-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.reset-filters {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.reset-filters:hover {
  background-color: var(--background-color);
  color: black;
}

/* ===================================
PRODUCTS GRID
=================================== */
.products-section {
  margin-top: 2rem;
}

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

.product-card {
  background-color: var(--background-color);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background-color: var(--light-gray);
}

.product-info {
  padding: 1.25rem;
}

.product-category {
  font-size: 0.85rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-condition {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.product-card .btn {
  width: 100%;
}

.product-sold {
  background-color: var(--light-gray);
  opacity: 0.7;
}

.product-sold .product-info {
  position: relative;
}

.sold-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--error-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--dark-gray);
}

.no-results p {
  font-size: 1.2rem;
}

/* ===================================
PRODUCT DETAIL PAGE
=================================== */
.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 500;
  transition: var(--transition);
}

.back-link:hover {
  gap: 0.75rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: var(--background-color);
  border-radius: 25px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 25px;
  background-color: var(--light-gray);
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.thumbnail {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 25px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--accent-color);
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.product-header .product-category {
  font-size: 0.9rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-header .product-condition {
  font-size: 1rem;
  color: var(--secondary-color);
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-pricing .product-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0;
}

.product-description {
  line-height: 1.8;
  color: var(--secondary-color);
}

.product-specs {
  background-color: var(--light-gray);
  padding: 1.5rem;
  border-radius: 25px;
}

.product-specs h3 {
  margin-bottom: 1rem;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 500;
  color: var(--secondary-color);
}

.spec-value {
  color: var(--primary-color);
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.product-actions .btn {
  flex: 1;
}

/* ===================================
BUTTONS
=================================== */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: #000000;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--medium-gray);
}

.btn:disabled {
  background-color: var(--medium-gray);
  color: var(--dark-gray);
  cursor: not-allowed;
  transform: none;
}

/* ===================================
FLOATING CHAT BUTTON
=================================== */
.floating-chat-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  border: none;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition);
  z-index: 1000;
}

.floating-chat-btn:hover {
  transform: scale(1.1);
  background-color: #000000;
}

/* ===================================
MODALS
=================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--background-color);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-hover);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-gray);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

/* Chat Modal */
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Cart Modal */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 25px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 25px;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-name {
  font-weight: 600;
}

.cart-item-price {
  color: var(--accent-color);
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--error-color);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

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

.cart-summary {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ===================================
PAGE CONTAINER (About, Repair)
=================================== */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.page-container h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-container section {
  margin-bottom: 3rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--secondary-color);
}

/* ===================================
REPAIR PAGE
=================================== */
.repair-intro {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.service-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1rem;
}

.service-card li {
  padding: 0.5rem 0;
  color: var(--secondary-color);
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: 1rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.process-step {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.repair-warranty {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
}

.repair-contact {
  text-align: center;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 12px;
}

/* ===================================
ABOUT PAGE
=================================== */
.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.value-card {
  padding: 1.5rem;
  background-color: var(--light-gray);
  border-radius: 25px;
}

.value-card h3 {
  margin-bottom: 0.75rem;
  color: var(--accent-color);
}

.expertise-list {
  list-style: none;
  margin-top: 1rem;
}

.expertise-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.expertise-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.5rem;
}

.about-sustainability {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
}

.location-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.info-block {
  padding: 1.5rem;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.info-block h3 {
  margin-bottom: 0.75rem;
}

.info-block a {
  color: var(--accent-color);
  text-decoration: none;
}

.info-block a:hover {
  text-decoration: underline;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  padding: 1.5rem;
  background-color: var(--light-gray);
  border-radius: 12px;
  font-style: italic;
}

.testimonial-author {
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--secondary-color);
}

.about-contact {
  text-align: center;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 12px;
}

/* ===================================
CHECKOUT PAGE
=================================== */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.checkout-section {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.checkout-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 8px;
}

.checkout-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.checkout-item-price {
  color: var(--accent-color);
  font-weight: 600;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-actions .btn {
  flex: 1;
}

/* ===================================
CONFIRMATION PAGE
=================================== */
.confirmation-container {
  max-width: 800px;
  margin: 0 auto;
}

.confirmation-success {
  text-align: center;
  padding: 3rem;
  background-color: var(--light-gray);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--success-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
}

.confirmation-success h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.confirmation-message {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.order-number {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.order-number strong {
  color: var(--accent-color);
}

.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.confirmation-section {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.confirmation-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.confirmation-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.confirmation-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.delivery-info {
  line-height: 1.8;
}

.delivery-info p {
  margin-bottom: 0.5rem;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.next-steps p {
  display: flex;
  gap: 0.75rem;
  line-height: 1.6;
}

.confirmation-actions {
  text-align: center;
  margin-top: 2rem;
}

/* ===================================
RESPONSIVE DESIGN
=================================== */
@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav-overlay {
    display: flex;
  }

  .main-content {
    padding: 1rem;
  }

  .filters-container {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    order: 2;
  }

  .service-grid,
  .values-grid,
  .testimonials-grid,
  .location-info {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .floating-chat-btn {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .page-container h1 {
    font-size: 2rem;
  }

  .confirmation-success h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-item,
  .checkout-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-image,
  .checkout-item-image {
    margin: 0 auto;
  }

  .form-actions {
    flex-direction: column;
  }
}

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

.product-card,
.service-card,
.value-card {
  animation: fadeIn 0.5s ease-out;
}

/* ===================================
UTILITY CLASSES
=================================== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===================================
RETAIL PARTNERS BUTTON IN HEADER
ADD THIS TO YOUR styles.css FILE
=================================== */

.retail-link-btn {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-block;
}

.retail-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Adjust header actions spacing */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .retail-link-btn {
    display: none; /* Hide in mobile, show in mobile nav instead */
  }
  
  .mobile-nav-overlay a[href="retail-partners.html"] {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
  }
}

/* ===================================
ENHANCED FORM STYLING FOR RETAIL PORTAL
=================================== */

.retail-portal input[type="email"],
.retail-portal input[type="password"],
.retail-portal input[type="text"],
.retail-portal textarea,
.retail-portal select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.retail-portal input:focus,
.retail-portal textarea:focus,
.retail-portal select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.retail-portal .form-group {
  margin-bottom: 0;
}

.retail-portal .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 0.95rem;
}

/* ===================================
BUTTON ENHANCEMENTS
=================================== */

.retail-portal .btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.retail-portal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.retail-portal .btn-primary:active {
  transform: translateY(0);
}

/* ===================================
LOADING ANIMATIONS
=================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
SCROLLBAR STYLING FOR TABLES
=================================== */

.price-table::-webkit-scrollbar,
.refurb-modal-content::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.price-table::-webkit-scrollbar-track,
.refurb-modal-content::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 10px;
}

.price-table::-webkit-scrollbar-thumb,
.refurb-modal-content::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 10px;
}

.price-table::-webkit-scrollbar-thumb:hover,
.refurb-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gray);
}