@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

:root {
  /* Premium Light Theme */
  --background: #f8fafc;
  --foreground: #1e293b;

  /* Gold Accents - Refined */
  --primary: #c5a028; /* Darker Gold for better text contrast */
  --primary-hover: #a17f1a;
  --primary-text: #ffffff;

  /* UI Elements */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);

  --text-muted: #64748b;
  --danger: #dc2626;
  --radius: 0.75rem;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Urdu Typography */
.urdu-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    line-height: 2; /* Nastaliq needs more height */
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.01em;
  color: #0f172a;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* Utilities */
.btn {
  padding: 0.6rem 1.25rem;
  /* More compact */
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: white;
  color: var(--foreground);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  /* Button Font */
  font-weight: 600;
  font-size: 0.8rem;
  /* Smaller font */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
  border: none;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E5C048 0%, #D4AF37 100%);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-danger {
  background: #fff0f0;
  color: var(--danger);
  border-color: #ffe0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  /* Tighter padding */
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding: 1rem 2rem;
  }
}

/* Grid - Tighter gaps */
.grid {
  display: grid;
  gap: 1.25rem;
  /* Reduced from 2rem */
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Premium Cards - Compact */
.product-card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  /* Less rounded for compactness */
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  /* Compact input */
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--foreground);
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  font-family: 'Lato', sans-serif;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Modal / Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  /* Stronger blur */
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 95%;
  max-width: 1000px;
  /* Wider modal */
  max-height: 95vh;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

@media (min-width: 768px) {
  .modal-content {
    flex-direction: row;
  }
}