/* ===============================================
   Astravon Mercura — Global CSS
   Author: House Astravon
   Purpose: Universal resets, typography, colors, and base layout
   =============================================== */

/* ----------------------
   CSS Reset / Normalize
------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  line-height: 1.6;
  font-size: 16px;
  background-color: #f9f9f9; /* Base background */
  color: #1b1b1b;           /* Default text color */
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ----------------------
   CSS Variables / Colors
------------------------- */
:root {
  --primary-color: #4a3fff;      /* Sovereign blue */
  --secondary-color: #ff4a4a;    /* Accent red */
  --accent-color: #ffb600;       /* Gold accent */
  --bg-color: #f9f9f9;
  --text-color: #333131;
  --light-gray: #e5e5e5;
  --dark-gray: #333333;
  --border-radius: 0.5rem;
  --transition-speed: 0.3s;
  --max-width: 1200px;
  --container-padding: 1.5rem;
}

/* ----------------------
   Utility / Layout Helpers
------------------------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* ----------------------
   Typography
------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* ----------------------
   Buttons
------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-speed) ease-in-out;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* ----------------------
   Forms
------------------------- */
input, textarea, select, button {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  transition: border-color var(--transition-speed);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ----------------------
   Cards
------------------------- */
.card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ----------------------
   Grid System
------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----------------------
   Footer
------------------------- */
footer {
  background-color: var(--dark-gray);
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ----------------------
   Misc
------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 1rem 0;
}

a:hover {
  color: var(--accent-color);
  transition: color var(--transition-speed);
}

.digital-receipt-container {
  position:fixed;
  top: 0;
  left:0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 500px;
  font-family: 'Poppins', sans-serif;
  background: #0f0f1c; /* Cosmic Black */
  color: #f4f4f4;
  border: 2px solid #d4af37; /* Royal Gold */
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
  z-index: 9999;
}

.receipt-actions{
  display:flex;
  justify-content:space-between;
  margin-top:1rem;
}

.receipt-actions button{
  padding:8px 14px;
  border:none;
  border-radius:6px;
  cursor:pointer;
  background:#d4af37;
  color:black;
  font-weight:600;
}

.receipt-header h1 {
  color: #ffd700;
  text-align: center;
  margin-bottom: 0;
}

.receipt-header .tagline, .receipt-id {
  text-align: center;
  font-size: 0.9rem;
  margin: 2px 0;
  color: #e6c200;
}

.receipt-info {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
}

.receipt-footer .p {
  color: #e5e5e5;
}

.qr-code img {
  width: 80px;
  height: 80px;
}

.customer-details p {
  margin: 2px 0;
  font-size: 0.9rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.items-table th, .items-table td {
  border-bottom: 1px solid #d4af37;
  text-align: left;
  padding: 4px 0;
}

.payments-summary p, .payments-summary ul {
  margin: 2px 0;
}

.payments-summary ul {
  list-style: none;
  padding-left: 0;
}

.receipt-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #e6c200;
}

.pos-tab {
  margin-left: 5px;
}