/* Cart Page Specific Styles */

/* REMOVE these navbar overrides - let main.css handle the navbar */
/*
.navbar-cart {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-cart .nav-menu a {
  color: #2c2c2c !important;
  text-shadow: none;
}

.navbar-cart .nav-menu a:hover {
  color: #666 !important;
}

.navbar-cart .cart-link.active {
  background: #2c2c2c !important;
  color: #ffffff !important;
}
*/

/* Only keep cart-specific active state styling */
.cart-link.active {
  background: #2c2c2c !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

/* Cart Header */
.cart-header {
  background: #fafafa;
  padding: 12rem 0 4rem 0;
  text-align: center;
}

.cart-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cart-header p {
  font-size: 1.2rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cart Layout */
.cart-content {
  padding: 4rem 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: #fafafa;
  border-radius: 20px;
}

.empty-cart h2 {
  font-size: 2rem;
  color: #2c2c2c;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.empty-cart p {
  color: #666;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.continue-shopping {
  background: #2c2c2c;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.continue-shopping:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-header h1 {
    font-size: 2rem;
  }
}

/* Cart Items Styles */
.cart-list {
  display: none;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: white;
}

.item-image-container {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
}

.item-image {
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.item-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.item-details {
  flex-grow: 1;
}

.item-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.item-description {
  color: #666;
  margin-bottom: 0.5rem;
}

.item-size {
  color: #666;
  font-size: 0.9rem;
}

.item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c2c2c;
}

.item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #2c2c2c;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: #2c2c2c;
  color: white;
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.item-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c2c2c;
}

.remove-btn {
  background: none;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: #dc3545;
  color: white;
}

/* Size Selection Styles */
.size-selection {
  margin-bottom: 1rem;
}

.size-selection label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.size-dropdown {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-dropdown:hover {
  border-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.size-dropdown:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(44, 44, 44, 0.1);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: 1px solid #2c2c2c;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: #2c2c2c;
  color: #ffffff;
}

.quantity-display {
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
}

.remove-item {
  background: #fff;
  color: #666;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.remove-item:hover {
  color: #c82333;
}

.item-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.item-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c2c2c;
}

.cart-summary {
  background: #fafafa;
  padding: 2rem;
  border-radius: 20px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.cart-summary h3 {
  font-size: 1.5rem;
  color: #2c2c2c;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-row.total {
  border-top: 2px solid #2c2c2c;
  padding-top: 1rem;
  margin-top: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.checkout-btn {
  width: 100%;
  background: #2c2c2c;
  color: #ffffff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin: 2rem 0 1rem 0;
}

.checkout-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.continue-link {
  display: block;
  text-align: center;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.continue-link:hover {
  color: #2c2c2c;
}

/* Update your checkout progress styles with better centering */

.checkout-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem auto;
  position: relative;
  max-width: 500px; /* Constrain width */
  padding: 0 1rem; /* Reduce padding */
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto; /* Don't flex-grow, keep fixed size */
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  border: 3px solid #e0e0e0;
  background: white;
  color: #999;
  position: relative;
  overflow: hidden;
}

.step-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  transition: all 0.4s ease;
  text-align: center;
  white-space: nowrap;
}

/* Active step styling */
.step.active .step-number {
  background: #2c2c2c;
  color: white;
  border-color: #2c2c2c;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(44, 44, 44, 0.3);
}

.step.active .step-label {
  color: #2c2c2c;
  font-weight: 600;
}

/* Completed step styling */
.step.completed .step-number {
  background: #28a745 !important; /* Force green background */
  color: white !important;
  border-color: #28a745 !important;
  position: relative;
  font-size: 0; /* Hide the number */
  opacity: 1 !important; /* Force full opacity */
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important; /* Add green glow */
}

.step.completed .step-number::before {
  content: "✓";
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: checkmarkPop 0.3s ease;
  opacity: 1 !important; /* Force checkmark opacity */
  color: white !important;
}

.step.completed .step-label {
  color: #28a745 !important;
  font-weight: 600;
  opacity: 1 !important;
}

/* FIXED Progress line - NO OVERFLOW */
.checkout-steps::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 75px; /* Start after first circle */
  right: 75px; /* End before last circle */
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
  border-radius: 2px;
}

.progress-line {
  position: absolute;
  top: 25px;
  left: 75px; /* Start after first circle */
  height: 3px;
  background: #28a745; /* Green progress */
  z-index: 1;
  width: 0%;
  max-width: calc(100% - 150px); /* Prevent overflow */
  transition: width 0.8s ease;
  border-radius: 2px;
  transform-origin: left;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .checkout-steps {
    max-width: 350px;
    padding: 0 0.5rem;
  }

  .checkout-steps::before {
    left: 45px;
    right: 45px;
  }

  .progress-line {
    left: 45px;
    max-width: calc(100% - 90px);
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .checkout-steps {
    max-width: 350px;
    padding: 0 0.5rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .checkout-steps::before {
    left: calc(20px + 0.5rem);
    right: calc(20px + 0.5rem);
  }

  .progress-line {
    left: calc(20px + 0.5rem);
  }
}

/* Add this CSS to your checkout page or CSS file */
.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  border: 3px solid #e0e0e0;
  background: white;
  color: #999;
}

.step-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  transition: all 0.4s ease;
}

/* Active step styling */
.step.active .step-number {
  background: #2c2c2c;
  color: white;
  border-color: #2c2c2c;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(44, 44, 44, 0.3);
}

.step.active .step-label {
  color: #2c2c2c;
  font-weight: 600;
}

/* Completed step styling */
.step.completed .step-number {
  background: #28a745 !important; /* Force green background */
  color: white !important;
  border-color: #28a745 !important;
  position: relative;
  font-size: 0; /* Hide the number */
  opacity: 1 !important; /* Force full opacity */
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important; /* Add green glow */
}

.step.completed .step-number::before {
  content: "✓";
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: checkmarkPop 0.3s ease;
  opacity: 1 !important; /* Force checkmark opacity */
  color: white !important;
}

.step.completed .step-label {
  color: #28a745 !important;
  font-weight: 600;
  opacity: 1 !important;
}

/* Progress line between steps */
.checkout-steps::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
}

.progress-line {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background: #28a745;
  z-index: 1;
  width: 0;
  transition: width 0.8s ease;
}

/* Checkout sections */
.checkout-section {
  display: none;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease;
}

.checkout-section.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Payment method animations */
.payment-option {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.payment-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.payment-option.active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(44, 44, 44, 0.2);
}

/* Button animations */
.checkout-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 44, 44, 0.3);
}

.checkout-btn.loading {
  pointer-events: none;
}

.checkout-btn.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Success animation */
.success-animation {
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Add this CSS for the confirmation screen */

.confirmation-container {
  position: fixed; /* Make it overlay everything */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(
    255,
    255,
    255,
    0.95
  ); /* White background with slight transparency */
  backdrop-filter: blur(10px); /* Blur the background */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  padding: 2rem;
  z-index: 9999; /* Bring to top of everything */
}

.confirmation-content {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
  animation: fadeInUp 0.6s ease;
  position: relative;
  z-index: 10000;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Icon Animation */

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  animation: scaleIn 0.5s ease 0.3s both;
}

.checkmark svg {
  width: 100%;
  height: 100%;
  opacity: 1; /* This is already set to 1, which is good */
}

.success-icon {
  margin-bottom: 2rem;
  opacity: 1; /* Ensure parent container is also 100% opaque */
}

.checkmark-circle {
  stroke: #28a745 !important; /* Force green color */
  stroke-width: 4 !important; /* Increase stroke width even more */
  stroke-miterlimit: 10;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.5s both;
  opacity: 1 !important; /* Force 100% opacity */
  stroke-opacity: 1 !important; /* Force stroke opacity */
  fill: none !important; /* Ensure no fill conflicts */
}

.checkmark-check {
  stroke: #28a745 !important; /* Force green color */
  stroke-width: 4 !important; /* Increase stroke width even more */
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 1s both;
  opacity: 1 !important; /* Force 100% opacity */
  stroke-opacity: 1 !important; /* Force stroke opacity */
  fill: none !important; /* Ensure no fill conflicts */
}

/* Also force the SVG container to be 100% opaque */
.checkmark svg {
  width: 100%;
  height: 100%;
  opacity: 1 !important; /* Force container opacity */
}

.success-icon {
  margin-bottom: 2rem;
  opacity: 1 !important; /* Force parent opacity */
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  animation: scaleIn 0.5s ease 0.3s both;
  opacity: 1 !important; /* Force checkmark container opacity */
}

/* Typography */
.confirmation-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.confirmation-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.confirmation-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.6s both;
}

/* Info Items */
.confirmation-info {
  text-align: left;
  margin: 2rem 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.7s both;
}

.info-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Action Buttons */
.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  animation: fadeInUp 0.6s ease 0.8s both;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #2c2c2c;
  color: white;
  border: 2px solid #2c2c2c;
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 44, 44, 0.3);
}

.btn-outline {
  background: transparent;
  color: #2c2c2c;
  border: 2px solid #2c2c2c;
}

.btn-outline:hover {
  background: #2c2c2c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 44, 44, 0.3);
}

/* Order Preview */
.order-preview {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
  animation: fadeInUp 0.6s ease 0.9s both;
}

.order-preview h4 {
  margin-bottom: 1rem;
  color: #2c2c2c;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .confirmation-container {
    padding: 1rem;
  }

  .confirmation-content {
    padding: 2rem 1.5rem;
  }

  .confirmation-title {
    font-size: 2.5rem;
  }

  .confirmation-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
