/* ============================================
   King Stone - Price List
   Premium Light Warm Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
  /* Light palette */
  --bg-body: #f5f1eb;
  --bg-card: #ffffff;
  --bg-card-alt: #faf8f5;

  /* Warm golds */
  --gold: #b08830;
  --gold-light: #c9a04a;
  --gold-dark: #8e6e22;
  --gold-glow: rgba(176, 136, 48, 0.08);
  --gold-border: rgba(176, 136, 48, 0.18);
  --gold-subtle: rgba(176, 136, 48, 0.04);

  /* Dark surfaces (for headers/badges) */
  --dark: #2a2622;
  --dark-surface: #332e28;
  --dark-medium: #3d3730;

  /* Text */
  --text-primary: #2a2622;
  --text-secondary: #7a726a;
  --text-muted: #a8a098;
  --text-white: #f5f2ed;

  /* Misc */
  --border: rgba(0, 0, 0, 0.07);
  --border-light: rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --shadow-btn: 0 2px 10px rgba(176, 136, 48, 0.18);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   Reset & Base
   ============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ============================
   Animations
   ============================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   Global Header
   ============================ */
.global-header {
  width: 100%;
  max-width: 500px;
  text-align: center;
  margin-bottom: 24px;
  padding: 16px 0 8px;
  animation: fadeInUp 0.5s ease-out;
}

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

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

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

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

.main-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 14px;
  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);
  animation: fadeInUp 0.4s ease-out both;
  transition: box-shadow var(--transition);
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================
   Card Mini Header
   ============================ */
.card-header-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: nowrap;
  white-space: nowrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

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

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

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

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

.date-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--gold-light);
  padding: 5px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

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

.category-title {
  background: var(--dark);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  padding: 10px 12px;
}

/* ============================
   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-light);
  padding: 9px 8px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold-border);
}

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

.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(--bg-card-alt);
}

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

.pricing-table tbody tr:active td {
  background: var(--gold-glow);
}

.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: 10px;
  background: var(--dark);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  direction: ltr;
}

.card-contact-row .phone-num {
  direction: ltr;
  unicode-bidi: embed;
  display: inline;
}

.contact-sep {
  opacity: 0.3;
  margin: 0 2px;
}

/* ============================
   Download Button
   ============================ */
.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: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--dark);
  color: var(--gold-light);
  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;
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.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-light);
  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-light);
  font-size: 1rem;
}

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

/* ============================
   Buttons
   ============================ */
.btn {
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  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-primary {
  background: var(--dark);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-border);
}

.btn-primary:hover {
  box-shadow: var(--shadow-btn);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  width: 100%;
}

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

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

@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; }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .main-title { font-size: 1.4rem; }
}

@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.4rem; }
  .main-title { font-size: 1.8rem; }
}

@media (min-width: 768px) {
  .global-header, .category-card, .global-footer { max-width: 620px; }
  .category-card:hover { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); }
  .btn-download:hover {
    background: var(--dark-surface);
    border-color: var(--gold);
    box-shadow: var(--shadow-btn);
    transform: translateY(-1px);
  }
  .btn-secondary:hover {
    border-color: var(--gold-border);
    transform: translateY(-1px);
  }
  .pricing-table tbody tr:hover td {
    background: var(--gold-glow);
  }
}
