/* Kho Pha Chế Sao Vàng (shopnguyenlieu) — trang chủ y hệt mockup (vàng #FFCC2A + đen than #1F1E1F màu gốc), cỡ đo theo mockup x1.69 (10-04) */
:root { --sv-y: #FFD12E; --sv-y2: #FFC20E; --sv-ink: #1F1E1F; --sv-text: #444; --sv-muted: #777; --sv-or: #EA6A12; --sv-line: #ECEAE5; }
body, p, li, a, input, select, textarea, button, h1, h2, h3, h4, td, th, label, .nav > li > a { font-family: "Roboto", sans-serif !important; }
h1 a, h2 a, h3 a, h4 a { font-family: inherit !important; }
.sv-sec, .sv-footer, #header { word-break: normal !important; }
/* ---------- topbar + header 2 tầng ---------- */
#top-bar { background: #F2F2F0 !important; }
#top-bar .flex-row { min-height: 37px; height: 37px; }
#top-bar .nav > li.html { border: 0 !important; padding: 0 !important; margin: 0 !important; }
#top-bar .sv-tb { color: #333; font-size: 14.5px; line-height: 37px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
#top-bar .sv-tb a { color: #333 !important; font-size: 14.5px !important; }
#header .header-main { background: #fff !important; height: 105px; }
#header .header-main .header-inner { height: 105px; }
#header #logo { width: 240px !important; margin: 0 !important; top: 0 !important; }
#header #logo a { position: relative; top: 0 !important; margin: 0 !important; display: block !important; height: 78px; padding: 12px 0 0 66px; background: url(icons/logo.png) left center / 52px 78px no-repeat; font-size: 0 !important; color: var(--sv-ink) !important; text-transform: uppercase !important; white-space: nowrap; }
#header #logo a::before { content: "Kho pha chế"; display: block; font-size: 22px; font-weight: 900; line-height: 26px; letter-spacing: -.2px; }
#header #logo a::after { content: "Sao vàng"; display: block; font-size: 26px; font-weight: 900; line-height: 30px; letter-spacing: .4px; }
@media (min-width: 850px) { #header .header-main .flex-left { flex: 1 1 auto; justify-content: flex-start; margin-left: 50px; } }
#header .header-main .header-search-form { width: 625px; flex: 0 0 auto; } #header .header-search-form .searchform { width: 625px; } #header .header-search-form .searchform-wrapper { margin: 0 !important; }
#header .header-search-form input[type=search] { height: 52px !important; border-radius: 26px !important; background: #fff url(icons/search.png) right 22px center / 22px 22px no-repeat !important; border: 1px solid #D9D9D9 !important; box-shadow: none !important; padding: 0 56px 0 22px !important; font-size: 15.5px !important; color: var(--sv-ink); }
#header .header-search-form .ux-search-submit, #header .header-search-form button[type=submit], #header .header-search-form .flex-col:last-child, #header .header-search-form .search-form-categories { display: none !important; }
#header .flex-right .header-nav-main > li { margin: 0 0 0 30px !important; }
#header .flex-right .header-nav-main > li > a { padding: 0 !important; }
#header .sv-hl { display: flex !important; align-items: center; gap: 16px; padding: 0 !important; line-height: 1.2 !important; }
#header .sv-hl img { width: 34px; height: 34px; }
#header .sv-hl small { display: block; color: #222; font-size: 16px; font-weight: 400; }
#header .sv-hl b { display: block; color: var(--sv-ink); font-size: 19px; font-weight: 700; }
#header .cart-item .header-cart-link { padding: 0 !important; position: relative; }
#header .cart-item .icon-shopping-cart, #header .cart-item .icon-shopping-bag { font-size: 0 !important; display: inline-block; width: 38px; height: 38px; background: url(icons/cart.png) center / contain no-repeat; }
#header .cart-item .icon-shopping-cart::before, #header .cart-item .icon-shopping-bag::before { display: none !important; }
#header .cart-item .icon-shopping-cart::after, #header .cart-item .icon-shopping-bag::after { content: attr(data-icon-label); position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--sv-y); color: var(--sv-ink); font: 700 12px/22px "Roboto", sans-serif; text-align: center; display: block !important; }
#header .header-cart-title, #header .cart-price { display: none !important; }
#header .header-bottom { background: var(--sv-y) !important; min-height: 55px; }
#header .header-bottom .flex-row { height: 55px; min-height: 55px; }
#header .header-bottom .flex-center { width: 100%; }
#header .header-bottom-nav { justify-content: space-between; flex-wrap: nowrap !important; width: 100%; padding: 0 18px; }
#header .header-bottom-nav > li { margin: 0 !important; border: 0 !important; white-space: nowrap; }
#header .header-bottom-nav > li > a { font-size: 16.5px !important; font-weight: 700 !important; color: var(--sv-ink) !important; text-transform: none !important; letter-spacing: 0 !important; padding: 0 !important; line-height: 55px !important; background: transparent !important; }
#header .header-bottom-nav > li > a::before, #header .header-bottom-nav > li > a::after { display: none !important; }
.mobile-nav i, .mobile-nav .icon-menu { color: var(--sv-ink) !important; }
.home .page-title { display: none !important; }
/* ---------- chung ---------- */
.sv-sec p:not([class]), .sv-footer p:not([class]) { display: contents; }
.sv-sec p, .sv-footer p { margin-bottom: 0; }
.sv-sec .col, .sv-footer .col { padding-bottom: 0 !important; }
.sv-sec ul, .sv-footer ul { margin: 0; padding: 0; list-style: none; } .sv-sec li, .sv-footer li { margin: 0 !important; }
.sv-sec img[src=""] { visibility: hidden; }
.sv-h2 { color: var(--sv-ink) !important; font-size: 37px !important; font-weight: 900 !important; line-height: 46px !important; letter-spacing: -.5px; margin: 0 !important; }
.sv-sub { color: var(--sv-text); font-size: 19px; margin: 2px 0 18px; }
.sv-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sv-head h2 { flex: 0 1 auto; width: fit-content; min-width: 0; }
.sv-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--sv-or) !important; font-size: 19px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.sv-more i, .sv-lk i { display: inline-block; width: 16px; height: 16px; background: url(icons/arr-or.png) center / contain no-repeat; }
.sv-lk { display: inline-flex; align-items: center; gap: 6px; color: var(--sv-or) !important; font-size: 15.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.sv-btn { display: inline-flex; align-items: center; gap: 14px; height: 60px; padding: 0 40px; border-radius: 6px; background: var(--sv-ink); color: #fff !important; font-size: 20px; font-weight: 700; }
.sv-btn img { width: 20px; height: 20px; }
/* ---------- hero ---------- */
.section.sv-hero-sec { padding: 16px 0 0 !important; }
.sv-hero { display: grid; grid-template-columns: minmax(0, 941fr) minmax(0, 432fr); gap: 13px; height: 417px; }
.sv-hm { position: relative; border-radius: 6px; overflow: hidden; background: var(--sv-y2) right center / cover no-repeat; padding: 82px 0 0 40px; }
.sv-h1 { color: var(--sv-ink) !important; font-size: 42px !important; font-weight: 900 !important; line-height: 54px !important; letter-spacing: -.6px; margin: 0 0 12px !important; }
.sv-lead { color: var(--sv-ink); font-size: 21px; margin-bottom: 30px; }
.sv-hs { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.sv-sb { position: relative; border-radius: 6px; overflow: hidden; background: #2a2622 center / cover no-repeat; padding: 44px 0 0 26px; display: block; }
.sv-sb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 70%); }
.sv-sb b { position: relative; display: block; color: #fff; font-size: 31px; font-weight: 900; line-height: 38px; letter-spacing: -.4px; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.sv-sb span { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 6px; background: var(--sv-y); color: var(--sv-ink); font-size: 15px; font-weight: 700; }
.sv-sb span i { width: 16px; height: 16px; background: url(icons/arr-d.png) center / contain no-repeat; }
/* ---------- danh mục ---------- */
.section.sv-cat-sec { padding: 22px 0 28px !important; }
.sv-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.sv-cat { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--sv-ink) !important; font-size: 17px; font-weight: 500; white-space: nowrap; }
.sv-cat span { width: 90px; height: 90px; border-radius: 50%; background: #FFF3D2; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.sv-cat:hover span { background: var(--sv-y); }
.sv-cat img { width: 50px; height: 50px; }
/* ---------- bán chạy ---------- */
.section.sv-pr-sec { padding: 22px 0 30px !important; }
.sv-prs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sv-pr { position: relative; border: 1px solid var(--sv-line); border-radius: 4px; padding: 16px 20px 18px; background: #fff; display: flex; flex-direction: column; }
.sv-off { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--sv-y); color: var(--sv-ink); font-size: 14px; font-weight: 700; border-radius: 12px; padding: 2px 10px; }
.sv-pr-img { display: block; height: 196px; margin-bottom: 14px; } .sv-pr-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sv-pr h3 { font-size: 16.5px !important; font-weight: 400 !important; line-height: 24px; margin: 0 0 8px !important; min-height: 48px; } .sv-pr h3 a { color: var(--sv-ink) !important; }
.sv-price { margin-bottom: 14px; } .sv-pr .sv-cart { margin-top: auto; } .sv-price b { font-size: 20px; font-weight: 700; color: var(--sv-ink); } .sv-price del { color: #999; font-size: 14px; margin-left: 10px; }
.sv-cart { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 4px; background: var(--sv-y); color: var(--sv-ink) !important; font-size: 15px; font-weight: 700; }
.sv-cart:hover { background: var(--sv-y2); } .sv-pr .added_to_cart { font-size: 13px; text-align: center; margin-top: 6px; color: var(--sv-or); }
/* ---------- gói setup ---------- */
.section.sv-su-sec { padding: 30px 0 30px !important; }
.sv-pks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.sv-pk { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.sv-pk-img { height: 182px; overflow: hidden; } .sv-pk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-pk-b { padding: 14px 32px 20px; }
.sv-pk-b h3 { color: var(--sv-ink) !important; font-size: 23px !important; font-weight: 700 !important; line-height: 30px; margin: 0 0 8px !important; }
.sv-pk-b li { position: relative; padding-left: 36px; color: #444; font-size: 16.5px; line-height: 30px; }
.sv-pk-b li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--sv-y2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sv-pk-f { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.sv-pk-q { color: var(--sv-or) !important; font-size: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.sv-pk-c { display: inline-flex; align-items: center; justify-content: center; height: 47px; padding: 0 30px; border-radius: 4px; background: var(--sv-ink); color: #fff !important; font-size: 16px; font-weight: 500; }
/* ---------- công thức ---------- */
.section.sv-rc-sec { padding: 26px 0 26px !important; }
.sv-rcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.sv-rc { border: 1px solid var(--sv-line); border-radius: 4px; overflow: hidden; }
.sv-rc-img { display: block; height: 178px; overflow: hidden; } .sv-rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-rc-b { padding: 14px 20px 18px; }
.sv-rc-b h3 { font-size: 20px !important; font-weight: 700 !important; line-height: 27px; margin: 0 0 6px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sv-rc-b h3 a { color: var(--sv-ink) !important; }
.sv-rc-e { color: #555; font-size: 16px; margin-bottom: 10px; }
/* ---------- cam kết ---------- */
.section.sv-ft-sec { padding: 0 !important; }
.sv-fts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 34px 0; }
.sv-ft { display: flex; align-items: flex-start; gap: 24px; padding: 0 20px 0 30px; border-left: 1px solid rgba(31,30,31,.25); color: var(--sv-ink) !important; } .sv-ft:first-child { border-left: 0; padding-left: 26px; }
.sv-ft img { width: 54px; height: 54px; flex: 0 0 54px; }
.sv-ft h3 { color: var(--sv-ink) !important; font-size: 18.5px !important; font-weight: 700 !important; line-height: 24px; margin: 0 0 6px !important; }
.sv-ft h3 + div { color: #3A372F; font-size: 15.5px; line-height: 22px; }
/* ---------- footer ---------- */
#footer .absolute-footer { display: none !important; }
.sv-footer { padding: 26px 0 0 !important; }
.sv-fg { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 290fr) minmax(0, 300fr) minmax(0, 310fr); gap: 0 10px; }
.sv-fc h4 { color: var(--sv-y) !important; font-size: 19.5px !important; font-weight: 700 !important; margin: 0 0 10px !important; }
.sv-fdesc { color: #E3E3E3; font-size: 16.5px; line-height: 24px; margin-bottom: 12px; }
.sv-fc li { margin-bottom: 7px !important; color: #E3E3E3; font-size: 16.5px; line-height: 24px; } .sv-fc li a { color: #E3E3E3 !important; }
.sv-fct li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 20px; align-items: start; } .sv-fct li img { width: 20px; height: 20px; margin-top: 2px; }
.sv-fnl form > div, .sv-nl-f { display: flex; }
.sv-fnl form { position: relative; }
.sv-fnl .wpcf7-form-control-wrap { flex: 1 1 auto; }
.sv-fnl input[type=email] { height: 47px; margin: 0 !important; border: 0 !important; border-radius: 4px 0 0 4px !important; box-shadow: none !important; padding: 0 16px !important; font-size: 15px !important; background: #fff; }
.sv-fnl .sv-nl-b, .sv-fnl input[type=submit] { height: 47px; margin: 0 !important; border: 0; border-radius: 0 4px 4px 0; background: var(--sv-y) !important; color: var(--sv-ink) !important; font-size: 16px !important; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 0 20px !important; }
.sv-fnl .wpcf7-spinner { position: absolute; right: 4px; top: 54px; margin: 0; }
.sv-fnl .wpcf7-response-output { color: #fff; font-size: 13px; margin: 8px 0 0 !important; }
.sv-fbot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #3A3A3A; margin-top: 26px; padding: 16px 0 20px; color: #E3E3E3; font-size: 14.5px; }
.sv-fso { display: flex; gap: 18px; } .sv-fso img { width: 26px; height: 26px; }
/* ---------- mobile ---------- */
@media (max-width: 849px) {
  #header .header-main, #header .header-main .header-inner { height: 70px; }
  #header #logo, #header #logo a { width: auto !important; }
  #header #logo a { height: 54px; padding: 6px 0 0 44px; background-size: 36px 54px; }
  #header #logo a::before { font-size: 15px; line-height: 18px; } #header #logo a::after { font-size: 18px; line-height: 22px; }
  #top-bar .sv-tb { font-size: 12.5px; }
  .sv-h2 { font-size: 27px !important; line-height: 34px !important; }
  .sv-hero { grid-template-columns: minmax(0, 1fr); height: auto; }
  .sv-hm { padding: 230px 18px 26px; background-size: auto 230px; background-position: 85% top; background-color: var(--sv-y2); }
  .sv-h1 { font-size: 27px !important; line-height: 35px !important; } .sv-h1 br { display: none; } .sv-lead { font-size: 16px; margin-bottom: 18px; } .sv-btn { height: 50px; font-size: 17px; padding: 0 26px; }
  .sv-hs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; } .sv-sb { height: 150px; padding: 18px 0 0 14px; } .sv-sb b { font-size: 18px; line-height: 23px; } .sv-sb span { height: 34px; padding: 0 12px; font-size: 13px; }
  .sv-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; } .sv-cat { font-size: 12.5px; white-space: normal; text-align: center; gap: 6px; } .sv-cat span { width: 62px; height: 62px; } .sv-cat img { width: 34px; height: 34px; }
  .sv-prs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-pr { padding: 12px; } .sv-pr-img { height: 140px; } .sv-pr h3 { font-size: 14.5px !important; line-height: 20px; min-height: 40px; } .sv-price b { font-size: 17px; } .sv-more { font-size: 15px; }
  .sv-pks, .sv-rcs { grid-template-columns: minmax(0, 1fr); gap: 16px; } .sv-pk-b { padding: 12px 18px 18px; } .sv-pk-q { font-size: 16px; } .sv-rc-b h3 { white-space: normal; font-size: 18px !important; }
  .sv-fts { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 24px 0; } .sv-ft { border-left: 0; padding: 0 !important; } .sv-ft h3 + div br { display: none; }
  .sv-fg { grid-template-columns: minmax(0, 1fr); row-gap: 22px; } .sv-fdesc br { display: none; }
  .sv-fbot { flex-direction: column; gap: 10px; }
}
@media (min-width: 1200px) { .sv-ft h3 { white-space: nowrap; font-size: 18px !important; } .sv-ft { padding: 0 14px 0 22px; gap: 18px; } }
/* mid-fix */
@media (min-width: 850px) and (max-width: 1399px) { #header .header-main .header-search-form, #header .header-search-form .searchform { width: 400px !important; max-width: 400px !important; } #header .header-main .flex-left { margin-left: 30px !important; } #header .header-bottom-nav > li > a { font-size: 15px !important; } }
@media (min-width: 850px) and (max-width: 1199px) { #header #logo { width: 190px !important; max-width: 190px !important; } #header #logo a { font-size: 0 !important; padding-left: 50px; background-size: 40px 60px; } #header #logo a::before { font-size: 17px; line-height: 20px; } #header #logo a::after { font-size: 20px; line-height: 24px; } #header .header-main .header-search-form { display: block !important; width: 260px !important; max-width: 260px !important; } #header .header-search-form .searchform { width: 260px !important; } #header .header-bottom-nav { padding: 0; } #header .header-bottom-nav > li > a { font-size: 13px !important; } }
@media (min-width: 850px) and (max-width: 1199px) { #header .header-main .header-search-form, #header .header-search-form .searchform { width: 200px !important; max-width: 200px !important; } #header .header-main .flex-left { margin-left: 16px !important; } #header .flex-right .header-nav-main > li { margin-left: 16px !important; } }
/* /mid-fix */
/* _midwidth: header Flatsome ở 850-1399px (laptop nhỏ/tablet ngang) — menu dựng theo mockup 1440 tràn phải; dùng chung mọi site */
@media (min-width: 850px) and (max-width: 1399px) {
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 14px !important; }
  #header .header-search-form { max-width: 300px !important; width: 300px !important; margin-left: 20px !important; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo { width: auto !important; max-width: 210px !important; } #logo a { font-size: 21px !important; }
  #header .header-main .flex-right .header-button-1, #header .header-main .flex-right li.html, #header .header-search-form, #top-bar .flex-right { display: none !important; }
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 3px !important; margin-right: 3px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 13px !important; }
  #header .flex-col { min-width: 0; } #header .header-inner, #header .header-bottom .container { overflow: hidden; }
}
.col-inner a[href^="mailto"], .col-inner a[href^="tel"] { overflow-wrap: anywhere; }
