:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e2e8f0;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  text-align: center;
  padding: 40px 20px 24px;
}

.site-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-dark);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

@media (min-width: 560px) {
  .products {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
  cursor: zoom-in;
}

.product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-align: right;
}

.order-now-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.order-now-btn:hover {
  background: var(--accent);
  color: #fff;
}

.price {
  margin: 6px 0 0;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

/* Order form */
.order-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.order-section h2 {
  margin-top: 0;
  font-size: 19px;
  font-weight: 700;
}

form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

button#submitBtn {
  margin-top: 18px;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button#submitBtn:hover {
  background: var(--accent-dark);
}

button#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.success-msg {
  background: var(--success-bg);
  color: var(--success-text);
}

.error-msg {
  background: var(--error-bg);
  color: var(--error-text);
}

.hidden {
  display: none !important;
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 13, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  left: 20px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
