/*
 Theme Name:   Flatsome Child - Nông Sản Kỳ Anh
 Theme URI:    https://nongsankyanh.com
 Description:  Flatsome child theme cho Nông Sản Sạch, Hữu Cơ Kỳ Anh
 Author:       nongsankyanh.com
 Template:     flatsome
 Version:      1.0.0
 Text Domain:  flatsome-child-nska
*/

:root {
  --nska-primary: #3979C5;
  --nska-primary-dark: #0A4D9C;
  --nska-green: #27AE60;
  --nska-green-dark: #1E8449;
  --nska-orange: #E67E22;
  --nska-dark: #353131;
  --nska-text: #555;
  --nska-light: #F5F7FA;
  --nska-white: #FFFFFF;
  --nska-radius: 8px;
}

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--nska-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  color: var(--nska-dark);
}

/* Header */
.header-main { background: var(--nska-white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.logo img { max-height: 50px; }

.header-top {
  background: linear-gradient(150deg, var(--nska-primary), var(--nska-primary-dark));
  color: var(--nska-white);
  font-size: 13px;
}
.header-top a { color: var(--nska-white) !important; }

.nav > li > a {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}
.nav > li > a:hover,
.nav > li.active > a { color: var(--nska-green) !important; }

/* Slogan bar */
.nska-slogan {
  background: linear-gradient(150deg, var(--nska-primary), var(--nska-primary-dark));
  color: var(--nska-white);
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Category Grid */
.nska-cat-item {
  text-align: center;
  padding: 15px 10px;
  transition: all 0.3s ease;
  border-radius: var(--nska-radius);
}
.nska-cat-item:hover { background: var(--nska-light); transform: translateY(-3px); }
.nska-cat-item img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 10px; }
.nska-cat-item p {
  font-size: 14px; font-weight: 600;
  color: var(--nska-dark); line-height: 1.3;
  margin: 0;
}

/* Product Card */
.nska-product {
  background: var(--nska-white);
  border-radius: var(--nska-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.nska-product:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.nska-product img { width: 100%; height: 220px; object-fit: cover; }
.nska-product .card-body { padding: 12px 15px; }
.nska-product .product-name { font-size: 15px; font-weight: 600; color: var(--nska-dark); margin: 0 0 8px; line-height: 1.3; }
.nska-product .product-price { font-size: 18px; font-weight: 700; color: var(--nska-orange); }
.nska-product .sale-tag {
  position: absolute; top: 10px; left: 10px;
  background: #E74C3C; color: white;
  padding: 3px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}

/* Section Title */
.nska-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--nska-dark);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 30px;
}
.nska-section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--nska-green);
}

/* Banner */
.nska-banner-grid { gap: 15px; }
.nska-banner-grid img {
  width: 100%;
  border-radius: var(--nska-radius);
  transition: transform 0.3s ease;
}
.nska-banner-grid img:hover { transform: scale(1.02); }

/* Buttons */
.nska-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--nska-green);
  color: var(--nska-white);
  text-decoration: none;
  border-radius: var(--nska-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}
.nska-btn:hover { background: var(--nska-green-dark); color: var(--nska-white); }

/* Footer */
.footer-1 { background: var(--nska-dark); }
.footer-1 .footer-title { color: var(--nska-white); font-weight: 700; }

/* Floating CTA */
.nska-float-cta {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.nska-float-cta a {
  width: 50px; height: 50px;
  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;
  text-decoration: none;
}
.nska-float-cta a:hover { transform: scale(1.1); }
.nska-float-cta .cta-phone { background: linear-gradient(135deg, #e8434c, #d61114); }
.nska-float-cta .cta-zalo { background: linear-gradient(135deg, #3985f7, #1272e8); }

@media (max-width: 768px) {
  .nska-section-title { font-size: 20px; }
  .nska-product img { height: 160px; }
  .nska-cat-item img { width: 45px; height: 45px; }
  .nska-cat-item p { font-size: 12px; }
}
