/* ============================================
   King Stone - Price List (Mobile-First)
   Clean, elegant typography-driven design
   ============================================ */

:root {
  --bg-body: #f0ece4;
  --bg-card: #fffdf9;
  --gold: #c8a84e;
  --gold-dark: #a68a3a;
  --gold-subtle: rgba(200, 168, 78, 0.08);
  --gold-border: rgba(200, 168, 78, 0.25);
  --dark: #1c1c1c;
  --dark-surface: #252525;
  --text-primary: #2a2a2a;
  --text-secondary: #6b6560;
  --text-white: #f5f3ef;
  --border: rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-btn: 0 2px 10px rgba(200, 168, 78, 0.2);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  direction: rtl;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.eng-font {
  font-family: 'Times New Roman', Times, serif;
  letter-spacing: 3px;
}

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

/* ============================
   Global Header
   ============================ */
.global-header {
  width: 100%;
  max-width: 500px;
  text-align: center;
  margin-bottom: 20px;
  padding: 8px 0;
}

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.brand-icon {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 2px;
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 0;
}

.main-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 12px;
  position: relative;
  display: inline-block;
}

.main-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 6px auto 0;
}

/* ============================
   Category Card
   ============================ */
.category-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

/* Mini header inside card (visible in screenshot) */
.card-header-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.card-brand-icon {
  color: var(--gold);
  font-size: 0.85rem;
}

.card-brand-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-brand-sep {
  color: var(--gold-border);
  font-size: 1rem;
}

.card-brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Date badge */
.date-container {
  text-align: center;
  margin-bottom: 12px;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dark);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.date-badge i {
  font-size: 0.75rem;
}

/* ============================
   Category Block
   ============================ */
.category-block {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gold-border);
}

.category-title {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  padding: 10px 12px;
  letter-spacing: 0.5px;
}

/* ============================
   Pricing Table
   ============================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.pricing-table th {
  background: var(--dark-surface);
  color: var(--gold);
  padding: 9px 8px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
}

.pricing-table th + th {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  vertical-align: middle;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-table td + td {
  border-right: 1px solid var(--border);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:nth-child(even) td {
  background: var(--gold-subtle);
}

.pricing-table tbody tr {
  transition: background var(--transition);
}

.pricing-table tbody tr:active td {
  background: rgba(200, 168, 78, 0.12);
}

.pricing-table td.price {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.item-name-cell {
  text-align: right;
  font-weight: 600;
}

/* ============================
   Card Footer
   ============================ */
.card-footer-mini {
  margin-top: 12px;
  text-align: center;
}

.card-contact-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-contact-row i {
  font-size: 0.7rem;
}

.contact-sep {
  opacity: 0.3;
}

/* ============================
   Download Button (per category)
   ============================ */
.btn-download {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--dark);
  color: var(--gold);
  border: 1.5px solid var(--gold-border);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-download:active {
  transform: scale(0.97);
  opacity: 0.85;
}

/* ============================
   Global Footer
   ============================ */
.global-footer {
  width: 100%;
  max-width: 500px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 18px 16px;
  gap: 12px;
}

.address-box,
.phone-box {
  padding: 0;
}

.address-box h4,
.phone-box h4 {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.address-box h4 i,
.phone-box h4 i {
  font-size: 0.85rem;
}

.address-box ul,
.phone-box ul {
  list-style: none;
  padding: 0;
}

.address-box ul li {
  color: var(--text-white);
  font-size: 0.78rem;
  margin-bottom: 3px;
  line-height: 1.5;
  padding-right: 14px;
  position: relative;
}

.address-box ul li::before {
  content: '·';
  position: absolute;
  right: 2px;
  font-weight: 900;
  color: var(--gold);
  font-size: 1rem;
}

.phone-box ul li {
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ============================
   Buttons
   ============================ */
.btn {
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary {
  background: var(--dark);
  color: var(--text-white);
  border: 1.5px solid var(--gold-border);
  width: 100%;
}

.btn-secondary:active {
  opacity: 0.85;
  transform: scale(0.97);
}

/* ============================
   Responsive
   ============================ */

/* Small phones */
@media (max-width: 380px) {
  body {
    padding: 10px 6px;
  }

  .category-card {
    padding: 14px 10px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 7px 5px;
    font-size: 0.76rem;
  }

  .pricing-table td.price {
    font-size: 0.85rem;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .date-badge {
    font-size: 0.72rem;
    padding: 4px 12px;
  }
}

/* Standard mobile */
@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-title {
    font-size: 1.4rem;
  }
}

/* Tablets */
@media (min-width: 600px) {
  body {
    padding: 24px 16px;
  }

  .global-header,
  .category-card,
  .global-footer {
    max-width: 560px;
  }

  .category-card {
    padding: 22px 20px;
  }

  .pricing-table th {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .pricing-table td {
    font-size: 0.92rem;
    padding: 12px 10px;
  }

  .pricing-table td.price {
    font-size: 1.05rem;
  }

  .brand-name {
    font-size: 2.2rem;
  }

  .main-title {
    font-size: 1.8rem;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .global-header,
  .category-card,
  .global-footer {
    max-width: 620px;
  }

  .btn-download:hover {
    background: var(--dark-surface);
    border-color: var(--gold);
    box-shadow: var(--shadow-btn);
    transform: translateY(-1px);
  }

  .btn-secondary:hover {
    background: var(--dark-surface);
    transform: translateY(-1px);
  }
}
