/*
Theme Name: An Thịnh Vượng VN
Theme URI: https://anthinhvuong.vn/
Description: Child theme ổn định cho website An Thịnh Vượng trên tên miền anthinhvuong.vn.
Author: An Thịnh Vượng
Template: flatsome
Version: 4.0.0
Text Domain: atv-vn
*/

:root {
  --atv-blue: #1428a0;
  --atv-blue-dark: #082b72;
  --atv-blue-soft: #eef5ff;
  --atv-orange: #ff7900;
  --atv-orange-dark: #e86500;
  --atv-text: #172033;
  --atv-muted: #667085;
  --atv-border: #dbe6f3;
  --atv-radius: 10px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--atv-text);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 12pt;
  line-height: 1.55;
  background: #fff;
}

/* Header */
.header-wrapper { box-shadow: 0 4px 18px rgba(5, 42, 112, .08); }
.header-main { min-height: 76px; }
#logo img { max-height: 64px !important; width: auto; object-fit: contain; }
.header-nav > li > a,
.nav > li > a { color: var(--atv-blue-dark); font-size: 12pt; font-weight: 700; }
.header-nav > li.active > a,
.header-nav > li > a:hover,
.nav > li > a:hover { color: var(--atv-orange); }
.nav-dropdown { border-radius: var(--atv-radius); border: 1px solid var(--atv-border); box-shadow: 0 18px 45px rgba(8,43,114,.15); }

/* Buttons */
.button,
button,
input[type="submit"],
.atv-button {
  border-radius: 7px !important;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.button.primary,
input[type="submit"],
.atv-button--primary {
  background: linear-gradient(135deg, var(--atv-orange), #ff9a25) !important;
  border-color: var(--atv-orange) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(255,121,0,.22);
}
.button.primary:hover,
input[type="submit"]:hover,
.atv-button--primary:hover { background: var(--atv-orange-dark) !important; transform: translateY(-1px); }
.button.secondary,
.atv-button--secondary { background: var(--atv-blue) !important; border-color: var(--atv-blue) !important; color: #fff !important; }

/* Product and category cards */
.product-small.box,
.product-category .box,
.atv-card {
  border: 1px solid var(--atv-border);
  border-radius: var(--atv-radius);
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-small.box:hover,
.product-category .box:hover,
.atv-card:hover {
  transform: translateY(-4px);
  border-color: #b9cce7;
  box-shadow: 0 16px 34px rgba(8,43,114,.12);
}
.product-small .box-text { padding: 14px 14px 16px; }
.product-title a { color: var(--atv-blue-dark); font-weight: 700; }
.price-wrapper .price,
.price .amount { color: var(--atv-orange); font-weight: 800; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  border: 1px solid #cbd8e8;
  border-radius: 7px;
  box-shadow: none;
  min-height: 44px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--atv-blue); box-shadow: 0 0 0 3px rgba(20,40,160,.10); }

/* Titles */
.section-title-main,
.page-title-inner h1,
.product-title,
h1, h2, h3 { color: var(--atv-blue-dark); }
.section-title-main { border-color: var(--atv-orange) !important; }

/* Footer */
.footer-wrapper { background: linear-gradient(135deg, #06275f, #0b4ba8); color: #fff; }
.footer-wrapper a, .footer-wrapper p, .footer-wrapper span { color: rgba(255,255,255,.9); }
.footer-wrapper a:hover { color: #fff; }
.absolute-footer { background: #051f4c; }

/* Floating contacts */
.atv-contact-dock { position: fixed; right: 18px; bottom: 22px; z-index: 9999; display: grid; gap: 9px; }
.atv-contact-dock__item { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #fff !important; font-weight: 800; box-shadow: 0 10px 28px rgba(4,30,75,.25); transition: transform .2s ease; }
.atv-contact-dock__item:hover { transform: translateY(-3px); }
.atv-contact-dock__item--phone { background: var(--atv-orange); }
.atv-contact-dock__item--zalo { background: var(--atv-blue); }
.atv-contact-dock__label { position: absolute; right: 62px; white-space: nowrap; background: #fff; color: var(--atv-blue-dark); border: 1px solid var(--atv-border); border-radius: 6px; padding: 7px 10px; opacity: 0; pointer-events: none; transform: translateX(6px); transition: .2s ease; box-shadow: 0 8px 20px rgba(4,30,75,.12); }
.atv-contact-dock__item:hover .atv-contact-dock__label { opacity: 1; transform: translateX(0); }

/* Avoid old fixed layouts */
.row, .section-content > .row { background-color: transparent; }
.category-page-row { max-width: 1200px; width: calc(100% - 30px); margin: 0 auto; }

@media (max-width: 849px) {
  body { font-size: 11pt; }
  .header-main { min-height: 62px; }
  #logo img { max-height: 52px !important; }
  .atv-contact-dock { right: 12px; bottom: 14px; }
  .atv-contact-dock__item { width: 48px; height: 48px; }
  .atv-contact-dock__label { display: none; }
}
