/* ===== MOBILE-FIRST PROFESSIONAL CHECKOUT STYLES ===== */

:root {
  --primary: #f8f4f0;
  --accent: #d4af37;
  --accent-light: #e8d9b0;
  --text: #3a3a3a;
  --text-light: #7a7a7a;
  --white: #ffffff;
  --soft-beige: #f5f0e1;
  --soft-nude: #f7e9d7;
  --success: #28a745;
  --warning: #ffc107;
  --info: #17a2b8;
  --danger: #dc3545;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --gold-gradient: linear-gradient(135deg, #d4af37, #bf953f);
  --card-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
  --border-light: #e8e8e8;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR INTEGRATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding-top: 80px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f4f0 0%, #f5f0e1 100%);
}

.checkout-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== MOBILE-FIRST HEADER ===== */
.checkout-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 24px 0;
}

.header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
}

.header-icon i {
  font-size: 32px;
  color: var(--white);
}

.checkout-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.checkout-header p {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== MOBILE PRODUCT CARD ===== */
.mobile-product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.mobile-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.product-image-container {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
}

.product-image-container img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--soft-beige);
}

.product-badge {
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(50%);
  background: var(--gold-gradient);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow);
}

.product-details-mobile h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.product-description {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-highlights {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-highlights span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  background: var(--soft-beige);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ===== MOBILE PRICING CARD ===== */
.mobile-pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.pricing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--soft-beige);
}

.pricing-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.pricing-header i {
  color: var(--accent);
  font-size: 20px;
}

.pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.price-row:last-child {
  border-bottom: none;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
  font-weight: 700;
}

.price-row span:first-child {
  color: var(--text-light);
  font-weight: 500;
}

.price {
  font-weight: 600;
  color: var(--text);
}

.price.discount {
  color: var(--success);
}

.price.total-price {
  font-size: 20px;
  color: var(--accent);
}

/* ===== MOBILE DELIVERY CARD ===== */
.mobile-delivery-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--soft-beige);
}

.delivery-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-header i {
  color: var(--accent);
  font-size: 20px;
}

.delivery-badge {
  background: var(--success);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delivery-info-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--soft-beige);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.delivery-item.full-width {
  flex-direction: column;
  gap: 12px;
}

.delivery-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delivery-icon i {
  color: var(--white);
  font-size: 18px;
}

.delivery-content {
  flex: 1;
}

.delivery-content label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.delivery-content span {
  display: block;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

/* ===== MOBILE CHECKOUT FORM ===== */
.mobile-checkout-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.form-section {
  margin-bottom: 24px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--soft-beige);
}

.section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.section-header i {
  color: var(--accent);
  font-size: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label.required::after {
  content: ' *';
  color: var(--danger);
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  font-family: inherit;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 16px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--soft-beige);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  transition: var(--transition);
}

.input-wrapper textarea + .input-icon {
  top: 24px;
  transform: none;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
  color: var(--accent);
}

.coupon-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: var(--soft-beige);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.coupon-info i {
  color: var(--accent);
  font-size: 16px;
}

.coupon-info span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.coupon-info strong {
  color: var(--accent);
  font-weight: 700;
}

/* ===== PAYMENT METHODS ===== */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-method-card {
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-card input[type="radio"] {
  display: none;
}

.payment-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--white);
  transition: var(--transition);
  position: relative;
  min-height: 80px;
}

.payment-method-card:hover .payment-content {
  border-color: var(--accent-light);
  background: var(--soft-beige);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.payment-method-card input[type="radio"]:checked + .payment-content {
  border-color: var(--accent);
  background: var(--soft-beige);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Mobile-specific payment card improvements */
@media (max-width: 480px) {
  .payment-content {
    padding: 16px;
    gap: 12px;
  }
  
  .payment-icon {
    width: 40px;
    height: 40px;
  }
  
  .payment-icon i {
    font-size: 18px;
  }
  
  .payment-details h4 {
    font-size: 15px;
  }
  
  .payment-details p {
    font-size: 13px;
  }
  
  .payment-amount {
    font-size: 16px;
  }
  
  .cod-note {
    font-size: 11px;
  }
}

.payment-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-icon i {
  color: var(--white);
  font-size: 20px;
}

.payment-details {
  flex: 1;
}

.payment-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.payment-details p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.payment-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.cod-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--warning);
  font-weight: 600;
}

.payment-check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-check i {
  font-size: 20px;
  color: var(--border-light);
  transition: var(--transition);
}

.payment-method-card input[type="radio"]:checked + .payment-content .payment-check i {
  color: var(--accent);
}

/* ===== TERMS SECTION ===== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--soft-beige);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* ===== SUBMIT SECTION ===== */
.submit-section {
  margin-top: 32px;
}

.mobile-submit-btn {
  width: 100%;
  background: var(--gold-gradient);
  color: var(--white);
  border: none;
  border-radius: 16px;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.mobile-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.mobile-submit-btn:hover::before {
  left: 100%;
}

.mobile-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-arrow {
  opacity: 0.8;
  transition: var(--transition);
}

.mobile-submit-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .checkout-container {
    max-width: 600px;
    padding: 40px;
  }
  
  .checkout-header {
    margin-bottom: 32px;
    padding: 32px 0;
  }
  
  .header-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
  }
  
  .header-icon i {
    font-size: 40px;
  }
  
  .checkout-header h1 {
    font-size: 32px;
  }
  
  .checkout-header p {
    font-size: 18px;
  }
  
  .mobile-product-card,
  .mobile-pricing-card,
  .mobile-delivery-card,
  .mobile-checkout-form {
    padding: 24px;
    margin-bottom: 24px;
  }
  
  .product-image-container img {
    width: 140px;
    height: 140px;
  }
  
  .product-details-mobile h3 {
    font-size: 22px;
  }
  
  .product-description {
    font-size: 16px;
  }
  
  .pricing-header h3,
  .delivery-header h3,
  .section-header h3 {
    font-size: 20px;
  }
  
  .mobile-submit-btn {
    padding: 24px;
    font-size: 20px;
  }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 480px) {
  .checkout-container {
    padding: 16px;
  }
  
  .checkout-header {
    margin-bottom: 20px;
    padding: 20px 0;
  }
  
  .header-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }
  
  .header-icon i {
    font-size: 28px;
  }
  
  .checkout-header h1 {
    font-size: 24px;
  }
  
  .checkout-header p {
    font-size: 14px;
  }
  
  .mobile-product-card,
  .mobile-pricing-card,
  .mobile-delivery-card,
  .mobile-checkout-form {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .product-image-container img {
    width: 100px;
    height: 100px;
  }
  
  .product-details-mobile h3 {
    font-size: 18px;
  }
  
  .product-description {
    font-size: 13px;
  }
  
  .product-highlights {
    gap: 8px;
  }
  
  .product-highlights span {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .pricing-header h3,
  .delivery-header h3,
  .section-header h3 {
    font-size: 16px;
  }
  
  .delivery-item {
    padding: 12px;
    gap: 12px;
  }
  
  .delivery-icon {
    width: 36px;
    height: 36px;
  }
  
  .delivery-icon i {
    font-size: 16px;
  }
  
  .delivery-content label {
    font-size: 11px;
  }
  
  .delivery-content span {
    font-size: 14px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .input-wrapper input,
  .input-wrapper textarea {
    padding: 14px 14px 14px 44px;
    font-size: 15px;
  }
  
  .input-icon {
    font-size: 16px;
    left: 14px;
  }
  
  .mobile-submit-btn {
    padding: 18px;
    font-size: 16px;
  }
  
  .btn-content {
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .checkout-container {
    max-width: 700px;
    padding: 60px;
  }
  
  .checkout-header {
    margin-bottom: 40px;
    padding: 40px 0;
  }
  
  .header-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 32px;
  }
  
  .header-icon i {
    font-size: 48px;
  }
  
  .checkout-header h1 {
    font-size: 36px;
  }
  
  .checkout-header p {
    font-size: 20px;
  }
  
  .mobile-product-card,
  .mobile-pricing-card,
  .mobile-delivery-card,
  .mobile-checkout-form {
    padding: 32px;
    margin-bottom: 32px;
  }
  
  .product-image-container img {
    width: 160px;
    height: 160px;
  }
  
  .product-details-mobile h3 {
    font-size: 24px;
  }
  
  .product-description {
    font-size: 18px;
  }
  
  .pricing-header h3,
  .delivery-header h3,
  .section-header h3 {
    font-size: 22px;
  }
  
  .mobile-submit-btn {
    padding: 28px;
    font-size: 22px;
  }
}

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

.mobile-product-card,
.mobile-pricing-card,
.mobile-delivery-card,
.mobile-checkout-form {
  animation: fadeInUp 0.6s ease-out;
}

.mobile-product-card {
  animation-delay: 0.1s;
}

.mobile-pricing-card {
  animation-delay: 0.2s;
}

.mobile-delivery-card {
  animation-delay: 0.3s;
}

.mobile-checkout-form {
  animation-delay: 0.4s;
}

/* ===== LOADING STATES ===== */
.mobile-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.mobile-submit-btn:disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .mobile-submit-btn {
    display: none;
  }
  
  .main-content {
    padding-top: 0;
  }
  
  .checkout-container {
    max-width: none;
    padding: 0;
  }
  
  .mobile-product-card,
  .mobile-pricing-card,
  .mobile-delivery-card,
  .mobile-checkout-form {
    box-shadow: none;
    border: 1px solid #000;
    break-inside: avoid;
  }
}
