/* ============================================================
   Jovian Studio — Custom CSS Override
   Theme: Flatsome v3.18.7 adaptation for Laravel
   ============================================================ */

/* ---- Font Faces ---- */

/* Inter — Body / Navigation */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; /* Vietnamese */
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF; /* Latin-ext */
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* Latin */
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Josefin Sans — Headings */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/josefin-sans/Qw3PZQNVED7rKGKxtqIqX5E-AVSJrOCfjY46_DjQbMlhLzTs.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; /* Vietnamese */
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/josefin-sans/Qw3PZQNVED7rKGKxtqIqX5E-AVSJrOCfjY46_DjQbMhhLzTs.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF; /* Latin-ext */
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/josefin-sans/Qw3PZQNVED7rKGKxtqIqX5E-AVSJrOCfjY46_DjQbMZhLw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* Latin */
}

/* Dancing Script — Accent / Alt font */
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dancing-script/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Rep8ltA.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; /* Vietnamese */
}
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dancing-script/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3ROp8ltA.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF; /* Latin-ext */
}
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dancing-script/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* Latin */
}

/* fl-icons — Flatsome icon font */
@font-face {
  font-family: "fl-icons";
  font-display: block;
  src: url('../css/icons/fl-icons.eot');
  src:
    url('../css/icons/fl-icons.eot?#iefix') format('embedded-opentype'),
    url('../css/icons/fl-icons.woff2') format('woff2'),
    url('../css/icons/fl-icons.ttf') format('truetype'),
    url('../css/icons/fl-icons.woff') format('woff'),
    url('../css/icons/fl-icons.svg#fl-icons') format('svg');
}

/* ---- Container max-width (set by WordPress kirki, missing in flatsome.css) ---- */
.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Flatsome row & col system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.row.row-collapse {
  margin-left: 0;
  margin-right: 0;
}
.row.row-collapse > .col {
  padding-left: 0;
  padding-right: 0;
}
.col {
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
  min-width: 0;
}

/* Large columns (≥ 850px) */
@media (min-width: 850px) {
  .col.large-9  { width: 75%; }
  .col.large-3  { width: 25%; }
  .col.large-12 { width: 100%; }
}
/* Medium (550px - 849px) */
@media (min-width: 550px) and (max-width: 849px) {
  .col.medium-10 { width: 83.333%; }
  .col.medium-12 { width: 100%; }
}
/* Small (< 550px) */
@media (max-width: 549px) {
  .col.small-12 { width: 100%; }
}

/* row align-center = justify-content: center */
.row.align-center { justify-content: center; }

/* ---- CSS Variables ---- */
:root {
  --primary-color: #0088a5;
  --fs-color-primary: #0088a5;
  --fs-color-secondary: #555555;
  --fs-color-success: #7a9c59;
  --fs-color-alert: #b20000;
  --fs-experimental-link-color: #0088a5;
  --fs-experimental-link-color-hover: #015e73;
}

/* ---- Global overrides ---- */
body {
  color: #111111;
  font-size: 100%;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6,
.heading-font {
  color: #111111;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.alt-font {
  font-family: 'Dancing Script', sans-serif;
  font-weight: 400 !important;
  font-style: normal !important;
  vertical-align: -0.1em;
  letter-spacing: 0.02em !important;
  margin-left: -0.2em;
}

a:where(:not(.wp-element-button)) {
  text-decoration: none;
}

/* ---- Header ---- */
.header-main { height: 90px; }
#logo img { max-height: 90px; }
#logo { width: 200px; }
.header-bottom { background-color: #f1f1f1; }
.header-main .nav > li > a { line-height: 15px; }

.header.show-on-scroll .header-main,
.stuck .header-main { height: 70px !important; }
.stuck #logo img { max-height: 70px !important; }

.transparent .header-main { height: 90px; }
.transparent #logo img { max-height: 90px; }
.has-transparent + .page-title:first-of-type,
.has-transparent + #main > .page-title,
.has-transparent + #main > div > .page-title,
.has-transparent + #main .page-header-wrapper:first-of-type .page-title {
  padding-top: 90px;
}

@media (max-width: 549px) {
  .header-main { height: 90px; }
  #logo img { max-height: 90px; }
}

/* ---- Navigation ---- */
.nav > li > a {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-style: normal;
}

.header-nav-main {
  max-width: 620px;
  margin: auto;
}
.header-nav-main.nav > li > a {
  padding-left: 9px !important;
  padding-right: 9px !important;
}

.nav:not(.nav-sidebar) > li {
  line-height: 1.3 !important;
}

/* Nav color */
.header:not(.transparent) .header-nav-main.nav > li > a { color: #111111; }
.header:not(.transparent) .header-nav-main.nav > li > a:hover,
.header:not(.transparent) .header-nav-main.nav > li.active > a,
.header:not(.transparent) .header-nav-main.nav > li.current > a,
.header:not(.transparent) .header-nav-main.nav > li > a.active,
.header:not(.transparent) .header-nav-main.nav > li > a.current { color: #0088a5; }

.header.transparent:not(.stuck) .header-nav-main.nav > li > a { color: #ffffff; }
.header.transparent:not(.stuck) .header-nav-main.nav > li > a:hover,
.header.transparent:not(.stuck) .header-nav-main.nav > li.active > a,
.header.transparent:not(.stuck) .header-nav-main.nav > li.current > a,
.header.transparent:not(.stuck) .header-nav-main.nav > li > a.active,
.header.transparent:not(.stuck) .header-nav-main.nav > li > a.current { color: #ffffff; opacity: 0.8; }

.header-nav-main.nav-line-bottom > li > a:before,
.header-nav-main.nav-line-grow > li > a:before,
.header-nav-main.nav-line > li > a:before,
.header-nav-main.nav-box > li > a:hover,
.header-nav-main.nav-box > li.active > a,
.header-nav-main.nav-pills > li > a:hover,
.header-nav-main.nav-pills > li.active > a {
  color: #fff !important;
  background-color: #0088a5;
}

.nav-dropdown { font-size: 100%; }

/* ---- Off-canvas ---- */
.off-canvas-right .mfp-content,
.off-canvas-left .mfp-content { --drawer-width: 300px; }
.off-canvas .mfp-content.off-canvas-cart { --drawer-width: 360px; }

/* ---- Tooltips ---- */
.tooltipster-base {
  --tooltip-color: #fff;
  --tooltip-bg-color: #000;
}

/* ---- Sản phẩm — tỉ lệ ảnh 2:3 ---- */
.product-thumbnails .col-inner {
  padding-top: 150% !important;
}
.product-thumbnails img {
  height: 100% !important;
  aspect-ratio: 2/3 !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.product-images img {
  aspect-ratio: 2/3 !important;
  object-fit: cover;
}
.product-gallery-stacked-thumbnails .flickity-prev-next-button.previous {
  left: calc(-5px - 3%);
}
.product-gallery-stacked-thumbnails .flickity-prev-next-button.next {
  right: calc(-5px - 3%);
}
@media screen and (max-width: 549px) {
  .product-gallery-stacked-thumbnails .flickity-prev-next-button {
    width: 25px !important;
    top: 30%;
  }
}

/* ---- Equal box heights ---- */
.has-equal-box-heights .box-image { padding-top: 150%; }
@media screen and (min-width: 550px) {
  .products .box-vertical .box-image {
    min-width: 1200px !important;
    width: 1200px !important;
  }
}

/* ---- Product category cards ---- */
.product-category.col .header-title {
  font-size: calc(1.1vw + .6rem);
  line-height: 1.1;
}
.product-category.col .box-text {
  padding-bottom: 10px;
  height: 20% !important;
}
.product-small.col .product-title {
  font-size: calc(1.1vw + .6rem);
  line-height: 1.1;
  font-family: "Josefin Sans", sans-serif;
}
.product-title { letter-spacing: -0.4px; }

/* ---- Product detail title ---- */
h1.product-title.entry-title {
  font-size: calc(2vw + 1.5em);
  line-height: 1.2;
  margin-bottom: 0;
}

/* ---- Sticky column ---- */
@media (min-width: 850px) {
  .is-sticky-column:not([data-sticky-mode]) {
    top: 30px !important;
  }
}

/* ---- Page title ---- */
.page-title-small + main .product-container > .row { padding-top: 0; }

/* ---- Nav vertical ---- */
.nav-vertical-fly-out > li + li {
  border-top-width: 1px;
  border-top-style: solid;
}

/* ---- Loading ---- */
.bg { opacity: 0; transition: opacity 1s; -webkit-transition: opacity 1s; }
.bg-loaded { opacity: 1; }

/* ---- Phim video label ---- */
h4.phim-title {
  margin: 1em 0 0;
  text-transform: uppercase;
  font-size: 1rem;
  opacity: 0.7;
}

/* ---- Sticky Contact Buttons (Zalo/FB/Phone) ---- */
#tnContact {
  position: fixed;
  bottom: 30px;
  right: 15px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0;
}
#tnContact li {
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
#tnContact li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}
#tnContact li a:hover { transform: scale(1.1); }
#tnContact li a.iconzalo { background: #0068ff; }
#tnContact li a.iconsms { background: #1877f2; }
#tnContact li a.iconcall {
  background: #4caf50;
  animation: pulse 1.5s infinite;
}
#tnContact .label {
  display: none;
  position: absolute;
  right: 55px;
  white-space: nowrap;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
}
#tnContact li:hover .label { display: block; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,80,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(76,175,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

/* ---- WooCommerce no-JS fallback ---- */
.woocommerce-product-gallery { opacity: 1 !important; }

/* ---- Dropdown menu display on hover ---- */
@media (min-width: 850px) {
  li.has-dropdown:hover > .nav-dropdown {
    left: -15px !important;
    max-height: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .nav-right li.has-dropdown:hover > .nav-dropdown {
    left: auto !important;
    right: -15px !important;
  }
}

