/*
 Theme Name:   TAC Child
 Theme URI:    https://www.thaiamuletscollection.com
 Description:  GeneratePress child theme for Thai Amulets Collection.
               Preserves all Blogger UX assets (WhatsApp CTA, Browse UI,
               Related Posts engine) with full WordPress + WooCommerce integration.
 Author:       Thai Amulets Collection
 Author URI:   https://www.thaiamuletscollection.com
 Template:     generatepress
 Version:      1.0.0
 License:      Proprietary
 Text Domain:  tac-child
*/

/* ─────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES — Match Blogger theme palette
   ───────────────────────────────────────────────────── */
:root {
  --tac-warm-50:     #FAFAF9;
  --tac-warm-100:    #F5F5F4;
  --tac-warm-200:    #E7E5E4;
  --tac-warm-300:    #D6D3D1;
  --tac-gold:        #B8860B;
  --tac-gold-dark:   #8B6508;
  --tac-gold-light:  #D4A017;
  --tac-text:        #1C1917;
  --tac-text-muted:  #78716C;
  --tac-green:       #16A34A;
  --tac-red:         #DC2626;
  --tac-amber:       #A16207;
  --tac-wa-green:    #25D366;
  --tac-wa-hover:    #1DA851;
  --tac-border:      #E7E5E4;
  --tac-shadow:      rgba(0, 0, 0, 0.06);

  /* Typography */
  --tac-font-body:    'Georgia', 'Times New Roman', serif;
  --tac-font-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tac-font-mono:    'Courier New', Courier, monospace;
}

/* ─────────────────────────────────────────────────────
   BASE TYPOGRAPHY
   ───────────────────────────────────────────────────── */
body {
  font-family: var(--tac-font-ui);
  color: var(--tac-text);
  background: var(--tac-warm-50);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--tac-text);
  font-weight: 700;
}

a {
  color: var(--tac-gold-dark);
  text-decoration: none;
}

a:hover {
  color: var(--tac-gold);
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────
   PRODUCT CARD — Amulet listings grid
   ───────────────────────────────────────────────────── */
.tac-product-card {
  background: #fff;
  border: 1px solid var(--tac-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
}

.tac-product-card:hover {
  box-shadow: 0 4px 20px var(--tac-shadow);
  transform: translateY(-2px);
}

.tac-product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.tac-product-card__body {
  padding: 12px 14px 16px;
}

.tac-product-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tac-text);
  margin: 0 0 6px;
  line-height: 1.4;
}

.tac-product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--tac-green);
}

.tac-product-card__price--sold {
  color: var(--tac-red);
}

.tac-product-card__price--request {
  color: var(--tac-amber);
  font-size: 13px;
}

/* SOLD badge overlay */
.tac-sold-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--tac-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Certificate badge */
.tac-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tac-gold-dark);
  background: rgba(184, 134, 11, 0.08);
  border: 1px solid rgba(184, 134, 11, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────
   WHATSAPP CTA BUTTON
   ───────────────────────────────────────────────────── */
.tac-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tac-wa-green);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.tac-wa-btn:hover {
  background: var(--tac-wa-hover);
  transform: translateY(-1px);
}

/* Floating WhatsApp button (bottom-right) */
.tac-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--tac-wa-green);
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.tac-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* Hide floating WA on mobile — already in mobile bottom nav */
@media (max-width: 768px) {
  .tac-wa-float { display: none; }
}

/* Sold state */
.tac-sold-message {
  color: var(--tac-text-muted);
  margin: 8px 0 4px;
  font-size: 14px;
}

.tac-similar-link {
  display: inline-block;
  color: var(--tac-gold-dark);
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────
   MONK BIOGRAPHY PAGE
   ───────────────────────────────────────────────────── */
.tac-monk-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--tac-border);
  border-radius: 8px;
}

.tac-monk-portrait {
  width: 180px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.tac-monk-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tac-monk-info-item {
  font-size: 14px;
}

.tac-monk-info-item strong {
  color: var(--tac-text-muted);
  font-weight: 600;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* ─────────────────────────────────────────────────────
   BROWSE CATEGORIES UI (Ported from Blogger)
   ───────────────────────────────────────────────────── */
.tac-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.tac-browse-card {
  background: #fff;
  border: 1px solid var(--tac-border);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.tac-browse-card:hover {
  border-color: var(--tac-gold);
  box-shadow: 0 2px 12px var(--tac-shadow);
  text-decoration: none;
}

.tac-browse-card__icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.tac-browse-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--tac-text);
  line-height: 1.3;
}

.tac-browse-card__count {
  font-size: 11px;
  color: var(--tac-text-muted);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────
   RELATED POSTS / PRODUCTS GRID
   ───────────────────────────────────────────────────── */
.tac-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

/* ─────────────────────────────────────────────────────
   AMULET SPECIFICATIONS TABLE
   ───────────────────────────────────────────────────── */
.tac-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}

.tac-specs-table th {
  background: var(--tac-warm-100);
  color: var(--tac-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--tac-border);
  width: 35%;
}

.tac-specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--tac-warm-200);
  color: var(--tac-text);
}

/* ─────────────────────────────────────────────────────
   FAQ SECTION
   ───────────────────────────────────────────────────── */
.tac-faq-section {
  margin: 32px 0;
}

.tac-faq-item {
  border: 1px solid var(--tac-border);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.tac-faq-question {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--tac-warm-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  color: var(--tac-text);
}

.tac-faq-answer {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tac-text);
}

/* ─────────────────────────────────────────────────────
   TRUST BADGES
   ───────────────────────────────────────────────────── */
.tac-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--tac-warm-100);
  border-radius: 8px;
  margin: 20px 0;
  align-items: center;
}

.tac-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tac-text-muted);
}

.tac-trust-item .icon {
  font-size: 18px;
}

/* ─────────────────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────────────────── */
.tac-breadcrumb {
  font-size: 13px;
  color: var(--tac-text-muted);
  margin-bottom: 16px;
}

.tac-breadcrumb a {
  color: var(--tac-text-muted);
}

.tac-breadcrumb a:hover {
  color: var(--tac-gold-dark);
}

.tac-breadcrumb__sep {
  margin: 0 6px;
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tac-monk-header {
    grid-template-columns: 1fr;
  }
  .tac-monk-portrait {
    width: 100%;
    height: 240px;
  }
  .tac-monk-info-grid {
    grid-template-columns: 1fr;
  }
  .tac-wa-btn {
    font-size: 15px;
    padding: 13px 20px;
  }
  .tac-browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
