:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#1f2937;background:#f6f7f9;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{background:#17324d;color:#fff;padding:18px max(20px,4vw);display:flex;gap:16px;align-items:center;flex-wrap:wrap}.brand{font-size:1.25rem}.tagline{opacity:.9}.phone{margin-left:auto;color:#fff;text-decoration:none;font-weight:700}main{max-width:1100px;margin:0 auto;padding:24px 18px}.hero,.panel,.values>div,.card,.contact{background:#fff;border-radius:14px;padding:20px;margin:16px 0;box-shadow:0 2px 12px rgba(0,0,0,.07)}.hero{padding:32px 24px}.hero h1{margin-top:0;font-size:clamp(1.8rem,5vw,3rem)}.values{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.values>div{margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.grid .card{margin:0}h2{margin-top:28px}input,textarea,select{display:block;width:100%;max-width:650px;margin:10px 0;padding:12px;border:1px solid #cbd5e1;border-radius:9px;font:inherit}textarea{min-height:100px;resize:vertical}button{border:0;border-radius:9px;padding:11px 16px;font:inherit;font-weight:700;cursor:pointer;background:#17324d;color:#fff}button:hover{filter:brightness(.95)}.linkbutton{background:none;color:#17324d;padding:0;text-align:left;text-decoration:underline}.contact a{font-weight:700}footer{text-align:center;padding:28px;color:#475569}hr{border:0;border-top:1px solid #e2e8f0;margin:22px 0}.error{color:#b91c1c}.success{color:#166534}.cart-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e5e7eb}@media(max-width:650px){header{display:block}.phone{display:inline-block;margin-top:8px}.tagline{margin-top:5px}}


.product-image{width:100%;height:260px;object-fit:contain;border-radius:10px;margin-bottom:14px;display:block;background:#f5f5f5}.card{overflow:hidden}

 .order-tracking {
  margin-top: 25px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.tracking-step {
  min-height: 72px;
  padding: 10px 6px;
  text-align: center;
  border-radius: 10px;
  background: #e2e8f0;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tracking-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #cbd5e1;
  color: #475569;
  font-size: .78rem;
}

.tracking-step-label {
  line-height: 1.2;
}

.tracking-step.active {
  background: #17324d;
  color: #fff;
}

.tracking-step.active .tracking-step-number {
  background: #fff;
  color: #17324d;
}

.tracking-step.completed {
  background: #166534;
  color: #fff;
}

.tracking-step.completed .tracking-step-number {
  background: #fff;
  color: #166534;
}

.tracking-status-line {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.tracking-cancelled {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

.tracking-payment {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f9;
}

@media (max-width: 700px) {
  .tracking-steps {
    grid-template-columns: 1fr;
  }

  .tracking-step {
    min-height: 52px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }
}

/* ================= PRODUCT IMAGE VIEWER ================= */

.product-image-viewer[hidden] {
    display: none;
}

.product-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.product-image-viewer-panel {
    position: relative;
    width: min(900px, 96vw);
    max-height: 94vh;
    overflow: auto;
    padding: 24px;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
    text-align: center;
}

.product-image-large {
    display: block;
    width: auto;
    max-height: 70vh;
    margin: 0 auto 16px;
    object-fit: contain;
    border-radius: 8px;
}

.product-image-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.product-image-name {
    margin: 8px 0 16px;
    font-size: 1.15rem;
    font-weight: 800;
}

.product-image-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-image-actions .linkbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    box-sizing: border-box;
}

@media (max-width: 650px) {
    .product-image-viewer {
        padding: 10px;
    }

    .product-image-viewer-panel {
        width: 100%;
        padding: 18px 12px;
    }

    .product-image-large {
        max-height: 65vh;
    }
}

/* ================= PRODUCT IMAGE VIEWER ================= */

.product-image-viewer[hidden] {
    display: none;
}

.product-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.product-image-viewer-panel {
    position: relative;
    width: min(900px, 96vw);
    max-height: 94vh;
    overflow: auto;
    padding: 24px;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
    text-align: center;
}

.product-image-large {
    display: block;
    width: auto;
    max-height: 70vh;
    margin: 0 auto 16px;
    object-fit: contain;
    border-radius: 8px;
}

.product-image-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.product-image-name {
    margin: 8px 0 16px;
    font-size: 1.15rem;
    font-weight: 800;
}

.product-image-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-image-actions .linkbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    box-sizing: border-box;
}

@media (max-width: 650px) {
    .product-image-viewer {
        padding: 10px;
    }

    .product-image-viewer-panel {
        width: 100%;
        padding: 18px 12px;
    }

    .product-image-large {
        max-height: 65vh;
    }
}

/* ================= CUSTOMER ORDER STATUS BADGES ================= */

.order-status-badge,
.payment-status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.order-status-badge {
  background: #e2e8f0;
  color: #334155;
}

.order-status-badge.status-confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.order-status-badge.status-processing {
  background: #fef3c7;
  color: #92400e;
}

.order-status-badge.status-out-for-delivery {
  background: #dcfce7;
  color: #166534;
}

.order-status-badge.status-delivered {
  background: #bbf7d0;
  color: #14532d;
}

.order-status-badge.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.payment-status-badge {
  background: #fef3c7;
  color: #92400e;
}

.payment-status-badge.status-paid {
  background: #dcfce7;
  color: #166534;
}

.payment-status-badge.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.tracking-history {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.tracking-history h4 {
  margin: 0 0 10px;
}

.tracking-history-list {
  display: grid;
  gap: 8px;
}

.tracking-history-item {
  padding: 10px;
  border-left: 4px solid #17324d;
  border-radius: 6px;
  background: #ffffff;
}

.tracking-history-item strong {
  display: block;
  text-transform: capitalize;
}

.tracking-history-item span {
  display: block;
  margin-top: 3px;
  font-size: .78rem;
  color: #64748b;
}

.tracking-history-item p {
  margin: 5px 0 0;
  font-size: .85rem;
  color: #475569;
}
