/* CSS Variables */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header Styles */
header {
  background-color: var(--secondary-color);
  color: white;
  padding: 1.1rem 0;
  box-shadow: var(--box-shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 50px;
  width: auto;
  border-radius: 30px;
  object-fit: contain;
}

.nav-links {
  display: flex;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  margin-right: 20px;
  padding: 0.5rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Main Content Styles */
main {
  flex: 1;
  padding: 2rem 0;
}

.order-tracking-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tracking-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2.5rem;
  transition: var(--transition);
}

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

.tracking-desc {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.7;
}

.tracking-form-box {
  margin-top: 1.5rem;
}

.form-row {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

button[type="submit"]:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Result Styles */
#result {
  margin-top: 1.5rem;
}

.error,
.not-found {
  background-color: #ffeaea;
  color: var(--danger-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--danger-color);
}

.order-result {
  background-color: #f0f9ff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.order-result h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.order-result p {
  margin-bottom: 1rem;
}

.order-items {
  margin: 1.5rem 0;
}

.hz-order-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hz-item-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hz-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hz-item-name-wrap {
  flex: 1;
}

.hz-item-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hz-item-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.hz-item-meta-small {
  color: #888;
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.25rem;
}

/* Order Totals Table */
.order-totals {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.totals-table tr {
  border-bottom: 1px solid #eee;
}

.totals-table tr:last-child {
  border-bottom: none;
}

.totals-table td {
  padding: 0.5rem 0;
}

.totals-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.totals-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.totals-table tr:last-child td {
  font-size: 1.1rem;
  color: var(--secondary-color);
}

/* Address Section */
.addr-section {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.address-box {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.address-box h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.addr {
  line-height: 1.6;
  color: #555;
}

.addr a {
  color: var(--primary-color);
  transition: var(--transition);
}

.addr a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 0.1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 760px) {

  /* Using vw for smaller screens */
  body {
    font-size: 3.5vw;
  }

  .header-container {
    padding: 0 4vw;
  }

  .logo {
    font-size: 5vw;
  }

  .logo-img {
    height: 10vw;
  }

  .nav-links a {
    font-size: 3.5vw;
    margin-right: 4vw;
  }

  .order-tracking-wrapper {
    padding: 0 4vw;
  }

  .tracking-container {
    padding: 5vw;
  }

  .tracking-title {
    font-size: 6vw;
  }

  .tracking-desc {
    font-size: 3.5vw;
  }

  input[type="text"],
  input[type="email"] {
    padding: 2.5vw 3vw;
    font-size: 3.5vw;
  }

  button[type="submit"] {
    padding: 2.5vw 3vw;
    font-size: 3.5vw;
  }

  .footer-container {
    padding: 0 4vw;
  }

  .footer-bottom {
    font-size: 0.65rem;
  }

  .hz-order-item {
    flex-direction: column;
    text-align: center;
    gap: 2vw;
  }

  .hz-item-thumb {
    width: 100%;
    max-width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .order-result {
    padding: 4vw;
  }

  .order-result h3 {
    font-size: 4.5vw;
  }

  .order-result p {
    font-size: 3.5vw;
  }

  .hz-item-name {
    font-size: 4vw;
  }

  .hz-item-meta {
    font-size: 3.2vw;
  }

  .hz-item-meta-small {
    font-size: 3vw;
  }

  .addr-section {
    flex-direction: column;
    gap: 4vw;
  }

  .address-box {
    min-width: auto;
    padding: 4vw;
  }

  .address-box h4 {
    font-size: 4vw;
  }

  .addr {
    font-size: 3.5vw;
  }

  .totals-table td {
    font-size: 3.5vw;
    padding: 1vw 0;
  }

  .totals-table tr:last-child td {
    font-size: 4vw;
  }
}

@media (min-width: 761px) {

  /* Using rem for larger screens */
  body {
    font-size: 1rem;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .order-tracking-wrapper {
    padding: 0 1.5rem;
  }

  .tracking-container {
    padding: 2.5rem;
  }

  .tracking-title {
    font-size: 2rem;
  }

  .tracking-desc {
    font-size: 1.1rem;
  }

  input[type="text"],
  input[type="email"] {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  button[type="submit"] {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .footer-container {
    padding: 0 1.5rem;
  }

  .hz-item-name {
    font-size: 1rem;
  }

  .hz-item-meta {
    font-size: 0.9rem;
  }

  .hz-item-meta-small {
    font-size: 0.8rem;
  }

  .address-box h4 {
    font-size: 1.1rem;
  }

  .addr {
    font-size: 0.95rem;
  }

  .totals-table td {
    font-size: 1rem;
  }

  .totals-table tr:last-child td {
    font-size: 1.1rem;
  }
}