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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to { 
    transform: rotate(360deg); 
  }
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* ==================== ORDER PAGE LAYOUT ==================== */
.order-container {
  min-height: calc(100vh - 200px);
  padding: 1.5rem 0;
  background: var(--color1);
}

.order-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: slideDown 0.8s ease-out;
  padding: 0 1rem;
}

.order-header h2 {
  color: var(--color5);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.order-header .subtitle {
  color: var(--color4);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
  text-align: center;
  padding: 2rem 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid var(--color2);
  border-top: 4px solid var(--color5);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==================== CATEGORY FILTER ==================== */
.category-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  animation: fadeIn 1s ease-out;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--color2);
  border: 2px solid var(--color4);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color5);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.9rem;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.filter-btn:active::before {
  width: 200px;
  height: 200px;
}

.filter-btn:active {
  background: var(--color3);
  color: var(--color1);
  transform: scale(0.95);
}

.filter-btn.active {
  background: var(--color4);
  color: var(--color1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (min-width: 769px) {
  .category-filter {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .filter-btn:hover::before {
    width: 200px;
    height: 200px;
  }
  
  .filter-btn:hover {
    background: var(--color3);
    color: var(--color1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
}

/* ==================== EQUIPMENT CATALOG ==================== */
.equipment-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .equipment-catalog {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 992px) {
  .equipment-catalog {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
}

.catalog-card {
  background: var(--color2);
  border: 3px solid var(--color4);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: zoomIn 0.6s ease-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.catalog-card:active {
  transform: scale(0.98);
}

@media (min-width: 769px) {
  .catalog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    border-color: var(--color5);
  }
}

.catalog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--color4);
  transition: transform 0.4s;
  background: var(--color1);
}

@media (min-width: 769px) {
  .catalog-card:hover .catalog-image {
    transform: scale(1.1);
  }
}

.catalog-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-category {
  display: inline-block;
  background: var(--color4);
  color: var(--color1);
  padding: 0.4rem 0.9rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.catalog-content h4 {
  color: var(--color5);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 0.5rem;
  font-weight: bold;
  line-height: 1.3;
}

.catalog-price {
  color: var(--color5);
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  font-weight: bold;
  margin: 0.5rem 0;
}

.catalog-stock {
  color: var(--color4);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.catalog-description {
  color: var(--color5);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

/* ==================== QUANTITY SELECTOR ==================== */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.quantity-selector button {
  width: 45px;
  height: 45px;
  background: var(--color4);
  color: var(--color1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.quantity-selector button:active {
  background: var(--color5);
  transform: scale(0.9);
}

@media (min-width: 769px) {
  .quantity-selector button:hover {
    background: var(--color5);
    transform: scale(1.1);
  }
}

.quantity-selector input {
  width: 70px;
  text-align: center;
  padding: 0.75rem;
  border: 2px solid var(--color4);
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  background: var(--color1);
}

.btn-add-cart {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color5), var(--color4));
  color: var(--color1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  -webkit-tap-highlight-color: transparent;
}

.btn-add-cart:active {
  transform: scale(0.97);
}

@media (min-width: 769px) {
  .btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  }
}

.btn-add-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==================== CART SECTION ==================== */
.cart-section {
  background: var(--color2);
  padding: 1.5rem;
  border-radius: 15px;
  border: 3px solid var(--color4);
  margin: 0 1rem 2rem;
  animation: slideUp 0.6s ease-out;
}

@media (min-width: 576px) {
  .cart-section {
    padding: 2rem;
  }
}

.cart-section h3 {
  color: var(--color5);
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--color1);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  align-items: center;
  border: 2px solid var(--color4);
  transition: all 0.3s;
}

@media (min-width: 769px) {
  .cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color4);
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .cart-item-image {
    width: 90px;
    height: 90px;
  }
}

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

.cart-item-info h5 {
  color: var(--color5);
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  word-wrap: break-word;
}

.cart-item-info p {
  color: var(--color4);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 600;
}

.cart-item-remove {
  padding: 0.6rem 1rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 1.2rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.cart-item-remove:active {
  background: #c82333;
  transform: scale(0.9);
}

@media (min-width: 769px) {
  .cart-item-remove:hover {
    background: #c82333;
    transform: scale(1.05);
  }
}

/* ==================== CART SUMMARY ==================== */
.cart-summary {
  background: var(--color1);
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid var(--color4);
  margin-top: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color3);
  color: var(--color5);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row.total {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: bold;
  color: var(--color5);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--color4);
}

.btn-checkout {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--color5), var(--color4));
  color: var(--color1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-top: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  -webkit-tap-highlight-color: transparent;
}

.btn-checkout:active {
  transform: scale(0.97);
}

@media (min-width: 769px) {
  .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    animation: pulse 0.6s ease-in-out;
  }
}

/* ==================== CHECKOUT SECTION ==================== */
.checkout-section {
  background: var(--color2);
  padding: 1.5rem;
  border-radius: 15px;
  border: 3px solid var(--color4);
  margin: 0 1rem 2rem;
  animation: slideUp 0.6s ease-out;
}

@media (min-width: 576px) {
  .checkout-section {
    padding: 2rem;
  }
}

@media (min-width: 992px) {
  .checkout-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

.checkout-header {
  text-align: center;
  margin-bottom: 2rem;
}

.checkout-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: zoomIn 0.8s ease-out;
}

.checkout-header h3 {
  color: var(--color5);
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.checkout-subtitle {
  color: var(--color4);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* ==================== FORM SECTIONS ==================== */
.form-section {
  background: var(--color1);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--color4);
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color3);
}

.section-icon {
  font-size: 1.5rem;
}

.section-header h4 {
  color: var(--color5);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: bold;
}

/* ==================== FORM GROUPS ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color5);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.label-icon {
  font-size: 1.2rem;
}

.required {
  color: #dc3545;
  font-weight: bold;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  padding-right: 3rem;
  border: 2px solid var(--color4);
  border-radius: 10px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  transition: all 0.3s;
  background: var(--color2);
  color: var(--color5);
  -webkit-appearance: none;
}

.input-wrapper input:focus,
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color5);
  box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.1);
}

.input-wrapper input:valid {
  border-color: #28a745;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  opacity: 0;
  transition: opacity 0.3s;
}

.input-wrapper input:valid ~ .input-icon {
  opacity: 1;
}

.textarea-wrapper {
  position: relative;
}

.textarea-wrapper textarea,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color4);
  border-radius: 10px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--color2);
  color: var(--color5);
}

.textarea-wrapper textarea:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color5);
  box-shadow: 0 0 0 3px rgba(96, 108, 56, 0.1);
}

/* ==================== RENTAL DURATION INFO ==================== */
.rental-duration-info {
  margin-top: 1rem;
}

.duration-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color2);
  padding: 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--color4);
}

.duration-icon {
  font-size: 2rem;
}

.duration-label {
  color: var(--color4);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.duration-value {
  color: var(--color5);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: bold;
}

/* ==================== TERMS SECTION ==================== */
.terms-section {
  background: var(--color1);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--color4);
  margin-bottom: 1.5rem;
}

.terms-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.terms-icon {
  font-size: 1.5rem;
}

.terms-header h4 {
  color: var(--color5);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: bold;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color5);
  padding: 0.75rem 0;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.5;
}

.check-icon {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.terms-agreement {
  background: var(--color2);
  padding: 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--color4);
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.checkmark {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--color4);
  border-radius: 6px;
  background: var(--color2);
  position: relative;
  transition: all 0.3s;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark {
  background: var(--color5);
  border-color: var(--color5);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.checkbox-label {
  color: var(--color5);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.5;
}

/* ==================== FORM ACTIONS ==================== */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 576px) {
  .form-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-submit,
.btn-cancel {
  padding: 1.25rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  -webkit-tap-highlight-color: transparent;
  flex: 1;
}

@media (min-width: 576px) {
  .btn-submit,
  .btn-cancel {
    flex: 0 1 auto;
    min-width: 200px;
  }
}

.btn-submit {
  background: linear-gradient(135deg, var(--color5), var(--color4));
  color: var(--color1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-submit:active {
  transform: scale(0.97);
}

@media (min-width: 769px) {
  .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    animation: pulse 0.6s ease-in-out;
  }
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-cancel {
  background: #dc3545;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-cancel:active {
  transform: scale(0.97);
  background: #c82333;
}

@media (min-width: 769px) {
  .btn-cancel:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
  }
}

.btn-icon {
  font-size: 1.3rem;
}

/* ==================== SUCCESS MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-wrapper {
  position: relative;
  z-index: 10000;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem;
}

.modal-content {
  background: var(--color2);
  border-radius: 15px;
  border: 3px solid var(--color4);
  padding: 2rem;
  position: relative;
  animation: zoomIn 0.4s ease-out;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color5);
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:active {
  transform: rotate(90deg) scale(0.9);
  background: var(--color3);
}

@media (min-width: 769px) {
  .modal-close:hover {
    transform: rotate(90deg);
    background: var(--color3);
  }
}

.success-modal {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: zoomIn 0.6s ease-out 0.2s both;
}

.success-modal h2 {
  color: var(--color5);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
}

.order-details {
  background: var(--color1);
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid var(--color4);
  margin-bottom: 1.5rem;
}

.order-details p {
  color: var(--color5);
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.order-number {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: bold;
  color: var(--color5);
  margin: 1rem 0;
}

.order-message {
  color: var(--color5);
  font-weight: 600;
  margin-top: 1rem;
}

.order-info {
  color: var(--color4);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .modal-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color5), var(--color4));
  color: var(--color1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary:active {
  transform: scale(0.97);
}

@media (min-width: 769px) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  }
}

.btn-secondary {
  background: var(--color3);
  color: var(--color5);
  border: 2px solid var(--color4);
}

.btn-secondary:active {
  transform: scale(0.97);
  background: var(--color4);
  color: var(--color1);
}

@media (min-width: 769px) {
  .btn-secondary:hover {
    background: var(--color4);
    color: var(--color1);
    transform: translateY(-2px);
  }
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color5);
  color: var(--color1);
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10000;
  transition: bottom 0.3s ease-out;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  max-width: 90%;
  text-align: center;
}

.toast.show {
  bottom: 2rem;
}

/* ==================== MESSAGE BOX ==================== */
#message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  display: none;
  animation: slideDown 0.3s ease-out;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

#message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

#message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 576px) {
  .order-container {
    padding: 1rem 0;
  }
  
  .cart-section,
  .checkout-section {
    margin: 0 0.5rem 1.5rem;
    padding: 1rem;
  }
  
  .form-section {
    padding: 1rem;
  }
}

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

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--color5);
  outline-offset: 2px;
}
