/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Chathura', sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Base responsive setup */
html {
  font-size: 100%;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

/* Fix the header to the top */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #000;
  /* match body bg or set your desired color */
}

/* Navigation bar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.SearchIconNavBar {
  width: 25px;
}

.nav-links,
.nav-actions {
  display: flex;
  gap: 20px;
  width: 220px;
}

hr {
  height: 40px;
  line-height: 20px;
  border: 1px solid white;
  transform: translate(0%, +35%);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 40px;
  letter-spacing: 1px;
  transition: opacity 0.3s;
  white-space: nowrap;
  display: inline-block;
}@media (hover: hover) {


    .nav-link:hover {
  opacity: 0.7;
}


}

.logo {
  font-size: 70px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: 1px;
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Main content styles */
.checkout-main {
  padding-top: 140px;
  /* Account for fixed header */
  padding: 140px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Success message styles */
.success-container {
  text-align: center;
  margin-bottom: 60px;
}

.success-icon i {
  margin-bottom: 10px;
  font-size: 100px;
  color: #14AE5C;
  background-color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  line-height: 1;
}

.success-message {
  font-size: 80px;
  line-height: 0.8;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

.success-subtitle {
  font-size: 40px;
  line-height: 0.8;
  font-weight: normal;
  margin-bottom: 10px;
  color: #fff;
}

.thrift-shift {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  color: #fff;
}

.email-update {
  font-size: 40px;
  line-height: 0.8;
  font-weight: normal;
  color: #fff;
}

/* Progress tracker styles */
.progress-container {
  margin-bottom: 80px;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.progress-line {
  position: relative;
  width: 100%;
  height: 120px;
}

.progress-line::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: #333;
  z-index: 1;
}

.progress-step {
  position: absolute;
  z-index: 2;
}

.progress-step:nth-child(1) {
  left: 10%;
}

.progress-step:nth-child(2) {
  left: 36.67%;
}

.progress-step:nth-child(3) {
  left: 63.33%;
}

.progress-step:nth-child(4) {
  left: 90%;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.progress-step.completed .step-circle {
  font-size: 50px;
  color: white;
  background-color: #000;
}

.step-label {
  text-align: center;
  transform: translateX(-50%);
}

.step-label {
  text-align: center;
}

.step-title {
  font-size: 30px;
  font-weight: normal;
  line-height: 0.8;
  color: #fff;
  margin-top: 10px;
}

.step-date {
  font-size: 30px;
  font-weight: normal;
  line-height: 0.8;
  color: #ccc;
}

/* Order details styles */
.order-details {
  background-color: #000;
  border: 1px solid #fff;
  padding: 20px;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.order-title {
  font-size: 80px;
  font-weight: bold;
  line-height: 0.8;
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

.order-id {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  color: #ccc;
  margin-bottom: 30px;
}

.order-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

/* Product section */
.product-item {
  display: flex;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid #fff;
  padding-bottom: 20px;
}

.product-item-details {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.product-image {
  max-width: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  color: #fff;
}

.product-seller,
.product-quantity,
.product-size {
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  color: #ccc;
}

.product-price {
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  color: #fff;
}

/* Details section */
.details-section {
  padding-top: 10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}

.section-title {
  font-size: 30px;
  font-weight: bold;
  line-height: 0.8;
  color: #fff;
  margin-bottom: 20px;
}

.address {
  font-size: 30px;
  font-weight: bold;
  line-height: 0.8;
  color: #ccc;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-row {
  width: 200px;
  display: flex;
  justify-content: space-between;
  font-size: 30px;
  font-weight: bold;
  line-height: 0.8;
  color: #fff;
}

.price-row.total {
  border-top: 1px solid #fff;
  padding: 20px 0px 20px 0px;
  font-weight: 500;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: 30px;
}

.footer-note {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  line-height: 0.8;
  opacity: 0.88;
  background-color: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 0px 5px 0px;
}

.plant-icon {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 130;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:first-child {
  transform-origin: top left;
}

.mobile-menu-toggle span:nth-child(2) {
  transform-origin: center;
}

.mobile-menu-toggle span:last-child {
  transform-origin: bottom left;
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg);
  width: 100%;
  position: relative;
  top: -1px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
  transform: rotate(-45deg);
  width: 100%;
  position: relative;
  bottom: -1px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 120;
  padding: 80px 30px 30px;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-drawer.active {
  left: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  color: white;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 20px 0;
  transition: opacity 0.2s ease;
}@media (hover: hover) {


    .mobile-nav-link:hover {
  opacity: 0.7;
}


}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ====== RESPONSIVE STYLES ====== */

/* Tablet Styles (768px - 1023px) */
@media screen and (max-width: 1300px) {

  /* Navigation adjustments */
  .navbar {
    padding: 20px;
  }

  .nav-links,
  .nav-actions {
    gap: 10px;
    width: auto;
  }

  .nav-link {
    font-size: 30px;
  }

  hr {
    height: 30px;
  }

  /* Main content */
  .logo {
    font-size: 60px;
    line-height: 60px;
  }

  .success-message {
    font-size: 70px;
  }

  .success-subtitle,
  .email-update {
    font-size: 35px;
  }

  .order-title {
    font-size: 70px;
  }

  .product-name,
  .product-seller,
  .product-quantity,
  .product-size,
  .product-price {
    font-size: 35px;
  }

  .section-title,
  .address,
  .price-row {
    font-size: 28px;
  }

  .product-image {
    max-width: 120px;
  }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 767px) {

  /* Navigation adjustments */
  .navbar {
    padding: 30px 20px;
    justify-content: space-between;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide desktop navigation */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-link {
    font-size: 24px;
  }

  .logo {
    font-size: 60px;
    line-height: 50px;
  }

  .checkout-main {
    padding: 100px 20px 20px;
  }

  .success-message {
    font-size: 55px;
  }

  .success-subtitle,
  .email-update {
    font-size: 30px;
  }

  .progress-container {
    margin-bottom: 50px;
  }

  .progress-line {
    height: 160px;
  }

  .step-title {
    font-size: 25px;
  }

  .step-date {
    font-size: 25px;
  }

  .order-title {
    font-size: 60px;
  }

  .order-id {
    font-size: 35px;
  }

  .product-item {
    flex-direction: column;
  }

  .product-item-details {
    flex-direction: column;
  }

  .product-price {
    margin-top: 10px;
  }

  .details-section {
    flex-direction: column;
    gap: 30px;
  }

  .footer-note {
    font-size: 25px;
  }
}

/* Small Mobile Styles (up to 479px) */
@media screen and (max-width: 479px) {

  /* Navigation adjustments */
  .logo {
    font-size: 50px;
    line-height: 40px;
  }

  .nav-link {
    font-size: 22px;
  }

  .success-message {
    font-size: 45px;
  }

  .success-subtitle,
  .email-update {
    font-size: 25px;
  }

  /* Fix the progress tracker layout for mobile */
  .progress-container {
    margin-bottom: 120px;
    position: relative;
  }

  .progress-line {
    height: 240px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    position: relative;
    padding: 0 15px;
  }

  /* Remove all connecting lines for mobile */
  .progress-line::before {
    display: none;
  }

  /* Remove vertical connecting line */
  .progress-line::after {
    display: none;
  }

  /* Remove bottom connecting line */
  .progress-container::after {
    display: none;
  }

  .progress-step {
    position: relative;
    margin-bottom: 15px;
    left: auto !important;
    top: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  /* Position steps specifically for the Z pattern */
  .progress-step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .progress-step:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .progress-step:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }

  .progress-step:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
  }

  .step-circle {
    transform: none;
    margin-bottom: 10px;
  }

  .step-label {
    transform: none;
    text-align: center;
    width: 100%;
  }

  .order-title {
    font-size: 50px;
  }

  .order-id {
    font-size: 30px;
  }

  .product-name,
  .product-seller,
  .product-quantity,
  .product-size,
  .product-price {
    font-size: 30px;
  }

  .section-title,
  .address,
  .price-row {
    font-size: 25px;
  }
}