/*
 Theme Name:   Flatsome Child - Apus Tarot Shop
 Theme URI:    https://apustarotshop.com
 Description:  Flatsome child theme cho Apus Tarot Shop - Cửa hàng bài Tarot chính hãng tại Hà Nội
 Author:       apustarotshop.com
 Author URI:   https://apustarotshop.com
 Template:     flatsome
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  flatsome-child-apustarot
*/

/* ============================================
   BRAND DESIGN TOKENS
   ============================================ */
:root {
  --apus-primary: #2C2C54;        /* Tím đậm mystical */
  --apus-secondary: #9B59B6;      /* Tím sáng */
  --apus-accent: #F1C40F;         /* Vàng gold */
  --apus-dark: #1A1A2E;           /* Nền tối */
  --apus-text: #555555;
  --apus-light: #F5F5F5;
  --apus-white: #FFFFFF;
  --apus-border: #E7E7E7;
  --apus-font: 'Quicksand', sans-serif;
  --apus-radius: 6px;
  --apus-gold-gradient: linear-gradient(135deg, #F1C40F, #F39C12);
  --apus-purple-gradient: linear-gradient(135deg, #2C2C54, #9B59B6);
}

/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */
body {
  font-family: var(--apus-font);
  color: var(--apus-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--apus-font);
  font-weight: 700;
  color: var(--apus-dark);
}

/* ============================================
   HEADER CUSTOMIZATION
   ============================================ */
.header-main {
  background-color: var(--apus-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo img {
  max-height: 60px;
}

/* Top bar */
.header-top {
  background-color: var(--apus-primary);
  color: var(--apus-white);
  font-size: 13px;
}

.header-top a {
  color: var(--apus-white) !important;
}

/* Navigation */
.nav > li > a {
  font-family: var(--apus-font);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.nav > li > a:hover,
.nav > li.active > a {
  color: var(--apus-secondary) !important;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* Section Title */
.section-title-apus {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-apus h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--apus-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title-apus h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--apus-accent);
}

/* Product Cards (WooCommerce style) */
.apus-product-card {
  background: var(--apus-white);
  border-radius: var(--apus-radius);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.apus-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.apus-product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.apus-product-card:hover img {
  transform: scale(1.05);
}

.apus-product-card h3 {
  padding: 15px 20px 5px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.apus-product-card h3 a {
  color: var(--apus-dark);
  text-decoration: none;
}

.apus-product-card .price {
  text-align: center;
  padding: 5px 20px 15px;
  font-size: 18px;
  font-weight: 700;
  color: var(--apus-secondary);
}

/* Category Cards */
.apus-category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--apus-radius);
  margin-bottom: 20px;
}

.apus-category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.apus-category-card:hover img {
  transform: scale(1.08);
}

.apus-category-card .category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(44,44,84,0.85));
  padding: 30px 20px 15px;
  color: var(--apus-white);
}

.apus-category-card .category-overlay h3 {
  color: var(--apus-white);
  font-size: 18px;
  margin: 0 0 5px;
}

/* Testimonial Section */
.apus-testimonial {
  background-color: var(--apus-light);
  padding: 60px 0;
}

.apus-testimonial-card {
  background: var(--apus-white);
  border-radius: var(--apus-radius);
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  border-left: 4px solid var(--apus-accent);
}

.apus-testimonial-card p {
  font-style: italic;
  line-height: 1.8;
  color: var(--apus-text);
}

.apus-testimonial-card .author {
  font-weight: 700;
  color: var(--apus-dark);
  margin-top: 15px;
}

/* About Section */
.apus-about {
  background-color: var(--apus-light);
  padding: 60px 0;
}

/* Parallax/Banner */
.apus-banner-dark {
  background: var(--apus-dark);
  color: var(--apus-white);
}

/* Policy/Feature Boxes */
.apus-policy-box {
  text-align: center;
  padding: 30px 20px;
}

.apus-policy-box i {
  font-size: 48px;
  color: var(--apus-accent);
  margin-bottom: 20px;
  display: block;
}

.apus-policy-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.apus-policy-box p {
  font-size: 14px;
  color: var(--apus-text);
  line-height: 1.6;
}

/* Blog Grid */
.apus-blog-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--apus-radius);
  margin-bottom: 20px;
}

.apus-blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.apus-blog-card:hover img {
  transform: scale(1.08);
}

.apus-blog-card .blog-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 30px 20px 15px;
  color: var(--apus-white);
}

.apus-blog-card .blog-overlay h3 {
  color: var(--apus-white);
  font-size: 16px;
  margin: 0 0 5px;
}

/* Gallery items */
.apus-gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.apus-gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.apus-gallery-item:hover img {
  transform: scale(1.08);
}

.apus-gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(44,44,84,0.85));
  padding: 30px 15px 15px;
  color: var(--apus-white);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.apus-gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.apus-gallery-item h3 {
  color: var(--apus-white);
  font-size: 15px;
  margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.apus-btn {
  display: inline-block;
  padding: 10px 30px;
  background: var(--apus-secondary);
  color: var(--apus-white);
  text-decoration: none;
  border-radius: var(--apus-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--apus-secondary);
}

.apus-btn:hover {
  background: transparent;
  color: var(--apus-secondary);
}

.apus-btn-gold {
  background: var(--apus-accent);
  border-color: var(--apus-accent);
  color: var(--apus-dark);
}

.apus-btn-gold:hover {
  background: transparent;
  color: var(--apus-accent);
}

.apus-btn-dark {
  background: var(--apus-dark);
  border-color: var(--apus-dark);
}

.apus-btn-dark:hover {
  background: transparent;
  color: var(--apus-dark);
}

/* ============================================
   FOOTER (custom footer.php)
   ============================================ */
.apus-footer {
  background-color: var(--apus-primary);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.8;
}

.apus-footer-main {
  padding: 50px 0 30px;
}

.apus-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.apus-footer-col {
  flex: 1;
  min-width: 250px;
}

.apus-footer-title {
  color: var(--apus-accent) !important;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.apus-footer-social a {
  color: var(--apus-accent);
  font-size: 24px;
  margin-right: 15px;
  transition: opacity 0.3s;
}

.apus-footer-social a:hover {
  opacity: 0.7;
}

.apus-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.apus-footer-links li {
  margin-bottom: 8px;
}

.apus-footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.apus-footer-links a:hover {
  color: var(--apus-accent);
}

.apus-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.apus-footer-contact li {
  margin-bottom: 10px;
}

.apus-footer-contact i {
  color: var(--apus-accent);
  width: 20px;
  margin-right: 8px;
}

.apus-footer-contact a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.apus-footer-contact a:hover {
  color: var(--apus-accent);
}

.apus-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.apus-footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* Hide Flatsome default footer if present */
.footer-1, .footer-2, .absolute-footer {
  display: none !important;
}

/* ============================================
   FLOATING CTA (Zalo/Phone)
   ============================================ */
.apus-float-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apus-float-cta a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.apus-float-cta a:hover {
  transform: scale(1.1);
}

.apus-float-cta .cta-phone {
  background: linear-gradient(135deg, #e8434c, #d61114);
}

.apus-float-cta .cta-zalo {
  background: linear-gradient(135deg, #3985f7, #1272e8);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section-title-apus h2 {
    font-size: 24px;
  }
  
  .apus-product-card img {
    height: 200px;
  }
  
  .apus-category-card img {
    height: 180px;
  }
  
  .apus-gallery-item img {
    height: 200px;
  }
  
  .apus-gallery-item .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
  }
}
