* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #adadad 100%);
  color: #1a202c;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
  padding: 20px;
  margin-top: 8rem;
}
@media (max-width: 768px) {
    .container {
    margin-top: 2.5rem !important;
}
}

/* Receipt Section - Modern Card Design */
.receipt {
  width: 900px;
  background: white;
  padding: 50px;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.receipt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #272727 0%, #ffffff 100%);
}

.receipt-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #030303;
  margin-bottom: 8px;
}

.shop-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a202c;
  letter-spacing: -0.5px;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  color: #718096;
}

.items-header {
  margin: 30px 0 15px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-item {
  flex: 2;
  text-align: left;
}

.header-quantity {
  min-width: 150px;
  margin-left: 20px;
  text-align: center;
}

.header-price {
  min-width: 100px;
  text-align: right;
}

.items {
  list-style: none;
  margin: 20px 0;
}

.items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 15px;
  color: #2d3748;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s ease;
}

.items li:hover {
  background: #f7fafc;
  margin: 0 -10px;
  padding: 20px 10px;
}

.item-details {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 2px solid #331f08;
  background: white;
  cursor: pointer;
  font-size: 18px;
  color: #525252;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #4e2d06;
  color: white;
  transform: scale(1.05);
}

.qty-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  padding: 6px 12px;
  border: 0.5px solid #c2c2c2;
  border-radius: 2px;
  color: #2d3748;
}

.item-price {
  min-width: 100px;
  text-align: right;
  font-weight: 600;
  color: #2d3748;
}

.delete-btn {
  background: none;
  border: none;
  color: #f56565;
  font-size: 1.3em;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.delete-btn:hover {
  color: #c53030;
  opacity: 1;
  transform: scale(1.1);
}

.total {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 3px solid #2d3748;
  font-weight: 700;
  font-size: 20px;
  color: #1a202c;
}

.payable-to {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 2px solid #e2e8f0;
  font-size: 14px;
  color: #4a5568;
}

.payable-to h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2d3748;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payable-to p {
  margin: 8px 0;
}

.download-btn {
  width: 100%;
  margin-top: 30px;
  padding: 16px;
  border: none;
  background: linear-gradient(135deg, #331f08 0%, #583001 100%);
  color: white;
  cursor: pointer;
  border-radius: 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 159, 0, 0.6);
}

/* Order Form - Modern Sidebar */
.order-form {
  flex: 1;
  background: white;
  padding: 40px;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.form-row input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 14px;
  transition: all 0.2s ease;
  color: #2d3748;
}

.form-row input:focus {
  outline: none;
  border-color: #0c0c0c;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.payment-section {
  margin: 30px 0;
}

.payment-option {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.payment-option:hover {
  background: #f7fafc;
}

.payment-option input[type="radio"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.payment-option label {
  cursor: pointer;
}

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.confirm-btn {
  background: linear-gradient(135deg, #331f08 0%, #8a4a00 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.continue-btn {
  background: #e2e8f0;
  color: #4a5568;
}

.continue-btn:hover {
  background: #cbd5e0;
  transform: translateY(-1px);
}

.alt-btnl,
.alt-btn {
  background: white;
  color: #331f08;
  border: 2px solid #000000;
}

.alt-btnl:hover,
.alt-btn:hover {
  background: #f8f8f8;
  color: rgb(145, 145, 145);
}

.compare-btn {
  background: #ffee8e;
  color: rgb(27, 0, 0);
  display: none;
}

.compare-btn:hover {
  background: #38a169;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
    gap: 20px;
  }
  
  .receipt {
    width: 100%;
    padding: 30px 20px;
  }

  .order-form {
    position: relative;
    top: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .shop-name {
    font-size: 24px;
  }

  .quantity-controls {
    margin-left: 10px;
  }

  .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }
  
  .order-form,
  .download-btn,
  .qty-btn,
  .delete-btn {
    display: none !important;
  }
  
  .receipt {
    box-shadow: none;
    padding: 20px;
  }
}

/* PDF-specific class for quantity display */
.items li.pdf-quantity-only .qty-display {
  margin: 0 auto;
  min-width: 50px;
  text-align: center;
}