/* =============================================
   ORDER PAGE - CLEAN & OPTIMIZED CSS (MOBILE-FIRST)
============================================= */

/* ==============================
   Cards Container (MOBILE BASE)
============================== */
.order-cards-container {
  display: grid;
  grid-template-columns: 1fr; /* single column on mobile */
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
  padding: 0 1rem;
  align-items: start;
}

/* Card Link - entire card clickable */
.order-card-link {
  width: 100%;
  max-width: 350px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: outline 0.2s ease;
}

/* Bullet-proof link states */
.order-card-link,
.order-card-link:visited,
.order-card-link:hover,
.order-card-link:focus,
.order-card-link:active {
  text-decoration: none !important;
  color: inherit !important;
}

/* Focus for keyboard navigation */
.order-card-link:focus-visible {
  outline: 3px solid #CD7F32;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Individual Card */
.order-card {
  background-color: #f8f6f2;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 470px;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Card Image */
.order-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #CD7F32;
}

/* Card Content – make it flex column for vertical stacking */
.order-card-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed to start so title/price are at top */
  gap: 0.5rem; /* Unified small gap between elements */
}

/* Title – keep centered, but add bottom margin for breathing room */
.order-card-content h2 {
  color: #003366;
  font-size: 1.35rem;
  margin: 0.5rem 0 0.25rem; /* Reduced bottom margin */
  font-weight: 700;
  text-align: center;
}

/* Price – move up, tighten spacing */
.order-price {
  font-size: 1.25rem;          /* Slightly larger for emphasis */
  font-weight: 700;
  color: #5a4634;
  margin: 0.1rem 0 0.75rem;   /* Very small top margin, keep some bottom space */
  text-align: center;          /* Center it under title */
}

/* Description paragraphs – now below price */
.order-card-content p {
  color: #003366;
  margin: 0.4rem 0 0.8rem;     /* Adjusted spacing */
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;          /* Center for consistency */
}

/* ==============================
   Order Steps Section
============================== */
.order-steps {
  max-width: 720px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 1rem;
}

.order-steps h2 {
  color: #003366;
  font-size: 1.9rem;
  margin-bottom: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.order-steps ol {
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
  padding-left: 2rem;
  counter-reset: step-counter;
}

.order-steps ol li {
  margin-bottom: 1.4rem;
  font-size: 1.2rem;
  color: #003366;
  line-height: 1.6;
  position: relative;
  padding-left: 0.5rem;
}

/* ==============================
   Shipping Note
============================== */
.shipping-note {
  color: #4a3f2f;
  margin: 3.5rem auto 1rem;
  max-width: 580px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  line-height: 1.55;
  text-align: center;
  background-color: #f8f6f2;
  padding: 1.6rem 2rem;
  border-radius: 12px;
  border-left: 3px solid #CD7F32;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-style: italic;
}

/* From Order to Finished Pet-Paw Page Link */
.order-process-link {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0 auto 30px;
  text-align: left;
  max-width: 750px;
}

.order-process-link a {
  text-decoration: none;
  text-underline-offset: 3px;
  color: #072b3f;
  transition: color 0.2s ease;
}

.order-process-link a:hover {
  color: #CD7F32;
}

/* View Cart Button (hidden on mobile) */
#view-cart-box {
  display: none;
}

/* Button inside */
#view-cart-box button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: url('../images/paw-cursor.png') 8 0, pointer;
}

/* =============================================
   Progressive Enhancements – Desktop
============================================= */

@media (min-width: 900px) {

  .order-cards-container {
    grid-template-columns: repeat(3, 1fr);   /* FORCE 3 across */
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    gap: 2.5rem;
  }

  /* Taller cards on desktop */
  .order-card {
    min-height: 460px;   /* about double your old 420px */
    min-width: 260px;
  }

  /* Card content spacing */
  .order-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
  }

  /* Name */
  .order-card-content .order-card-name {
    margin: 0.2rem 0 0rem;
  }

  /* Price hugs the name */
  .order-card-content p.order-price {
    margin: 0.05rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
  }

  /* Description spacing */
  .order-card-content p:not(.order-price) {
    margin: 0.4rem 0 0;
  }

  /* Floating cart */
  #view-cart-box {
    display: block;
    position: absolute;
    top: 2rem;
    right: 16rem;
    width: 180px;
    padding: 0.9rem 1.1rem;
    background-color: rgba(173,216,230,0.8);
    color: #001f4d;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    text-align: center;
    z-index: 3;
    cursor: url('../images/paw-cursor.png') 8 0, pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }

  #view-cart-box:hover {
    background-color: #5ba0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #fff4d6;
  }
}
