/* Order Success Page - Hero + Order Details */

/* Hero section */
.order-success-hero {
  padding: 40px 24px 40px;
  background: #ffffff;
}

.order-success-inner {
  max-width: 1580px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.order-success-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 48px;
}

.order-success-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-success-breadcrumb a:hover {
  color: #374151;
}

.order-success-breadcrumb-sep {
  color: #9ca3af;
}

.order-success-hero-illustration {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
}

.order-success-hero-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  background: #0f766e;
  border-radius: 24px;
  transform: rotate(-12deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-success-hero-shape svg {
  color: #22c55e;
  transform: rotate(12deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.order-success-hero-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.order-success-hero-dots span {
  position: absolute;
  border-radius: 50%;
}

.order-success-hero-dots .dot-blue {
  width: 8px;
  height: 8px;
  background: #1e3a5f;
}

.order-success-hero-dots .dot-red {
  width: 6px;
  height: 6px;
  background: #ef4444;
}

.order-success-hero-dots .dot-leaf {
  width: 20px;
  height: 20px;
  background: #86efac;
  border-radius: 50% 0 50% 50%;
}

.order-success-hero-dots .dot1 { left: 15%; top: 20%; }
.order-success-hero-dots .dot2 { right: 10%; top: 25%; }
.order-success-hero-dots .dot3 { right: 20%; bottom: 30%; }
.order-success-hero-dots .dot4 { left: 10%; bottom: 25%; }
.order-success-hero-dots .leaf1 { left: 5%; top: 35%; transform: rotate(-30deg); }
.order-success-hero-dots .leaf2 { right: 8%; bottom: 15%; transform: rotate(45deg); }

.order-success-title {
  font-size: 36px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 16px;
}

.order-success-text {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 28px;
}

.order-success-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #0f766e;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.order-success-btn:hover {
  background: #0d5c56;
}

/* Order Details section - two-column layout */
.order-details-section {
  padding: 0 24px 40px;
  background: #f7f7f7;
}

.order-details-inner {
  max-width: 1580px;
  margin: 0 auto;
}

.order-details-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .order-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Order cards - white, rounded, shadow */
.order-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.order-details-left .order-card + .order-card {
  margin-top: 24px;
}

.order-details-right .order-card + .order-card {
  margin-top: 24px;
}

.order-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 20px;
}

/* Order Details card - key/value rows with icons */
.order-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.order-detail-content {
  flex: 1;
  min-width: 0;
}

.order-detail-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

.order-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.order-detail-value .status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #fef08a;
  color: #ca8a04;
}

.order-detail-value .paid {
  color: #059669;
}

/* Shipment Address card */
.order-shipment-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.order-shipment-row:last-child {
  border-bottom: none;
}

.order-shipment-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.order-shipment-value {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.order-shipment-value a {
  color: #212529;
  text-decoration: none;
}

.order-shipment-value a:hover {
  color: #0f766e;
}

/* Give as feedback card */
.order-feedback-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  font-size: 14px;
  color: #212529;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical;
}

.order-feedback-textarea::placeholder {
  color: #9ca3af;
}

.order-feedback-form .order-feedback-input {
  width: 100%;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 14px;
  color: #212529;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.order-feedback-form .order-feedback-input::placeholder {
  color: #9ca3af;
}

.order-feedback-submit {
  margin-top: 16px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0f766e;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.order-feedback-submit:hover {
  background: #0d5c56;
}

/* Cart Items card */
.order-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.order-cart-img-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.order-cart-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.order-cart-info {
  flex: 1;
  min-width: 0;
}

.order-cart-name {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.order-cart-qty {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.order-cart-price {
  flex-shrink: 0;
  text-align: right;
}

.order-cart-price-old {
  font-size: 13px;
  color: #6b7280;
  text-decoration: line-through;
  display: block;
}

.order-cart-price-new {
  font-size: 14px;
  font-weight: 600;
  color: #0f766e;
}

/* Order Summary card */
.order-summary-rows {
  margin-bottom: 12px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

.order-summary-row span:first-child {
  color: #6b7280;
}

.order-summary-row span:last-child {
  color: #212529;
  font-weight: 500;
}

.order-summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0;
}

.order-summary-total {
  font-weight: 700 !important;
}

.order-summary-total span:first-child {
  color: #212529 !important;
}

.order-summary-total span:last-child {
  font-size: 18px;
  font-weight: 700 !important;
}

/* Features section */
.order-features {
  padding: 40px 20px;
  background: #f9fafb;
}

.order-features-inner {
  max-width: 1580px;
  margin: 0 auto;
}

.order-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .order-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .order-features-grid {
    grid-template-columns: 1fr;
  }
}

.order-features-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.order-features-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.order-features-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.order-features-title {
  font-size: 17px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 12px;
}

.order-features-desc {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Recently Viewed carousel - full width */
.order-recently-viewed {
  width: 100%;
  padding: 40px 20px;
  background: #f9fafb;
}

.order-rv-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
}

.order-rv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.order-rv-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.order-rv-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-rv-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: background 0.2s;
}

.order-rv-btn:hover {
  background: #e5e7eb;
}

.order-rv-wrap {
  overflow: hidden;
  width: 100%;
}

.order-rv-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
}

.order-rv-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  min-width: 0;
  transition: all 0.3s ease;
}

.order-rv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.order-rv-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
}

.order-rv-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.order-rv-img-wrap {
  position: relative;
  /* background: #fef2f2; */
  border-radius: 10px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.order-rv-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.order-rv-hover-icons {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.order-rv-card-hover-icons .order-rv-img-wrap:hover .order-rv-hover-icons {
  opacity: 1;
}

.order-rv-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: background 0.2s, color 0.2s;
}

.order-rv-icon-btn:hover {
  background: #fff;
  color: #0f766e;
}

.order-rv-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #212529;
  margin: 0 0 10px;
}

.order-rv-rating {
  font-size: 14px;
  color: #f59e0b;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.order-rv-reviews {
  color: #6b7280;
  font-weight: 400;
}

.order-rv-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.order-rv-price-current {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
}

.order-rv-price-old {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 14px;
}

.order-rv-discount {
  color: #ef4444;
  font-size: 14px;
}

.order-rv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-rv-addcart {
  flex: 1;
  min-width: 0;
}

.order-rv-wishlist {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.2s, color 0.2s;
}

.order-rv-wishlist:hover,
.order-rv-wishlist.active {
  background: #f3f4f6;
  color: #ef4444;
}

.order-rv-wishlist.active svg {
  fill: currentColor;
}

.order-rv-addcart {
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.order-rv-addcart:hover {
  background: #0d5c56;
}

@media (max-width: 1200px) {
  .order-rv-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .order-rv-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .order-rv-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    -webkit-scroll-snap-type: x mandatory;
  }

  .order-rv-track::-webkit-scrollbar {
    display: none;
  }

  .order-rv-card {
    flex: 0 0 calc(100% - 48px);
    min-width: 260px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    -webkit-scroll-snap-align: center;
  }
}

@media (max-width: 639px) {
  .order-recently-viewed {
    padding: 48px 16px;
  }

  .order-rv-inner {
    padding: 0 16px;
  }

  .order-rv-header {
    margin-bottom: 20px;
  }

  .order-rv-title {
    font-size: 24px;
  }

  .order-rv-card {
    flex: 0 0 calc(100vw - 64px);
    min-width: calc(100vw - 64px);
  }
}

/* Scroll to top button */
.order-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.4);
  transition: background 0.2s, transform 0.2s;
  z-index: 100;
}

.order-scroll-top:hover {
  background: #0d5c56;
  transform: translateY(-2px);
}

.order-scroll-top svg {
  width: 24px;
  height: 24px;
}
