/*
 Theme Name:   KangStore
 Theme URI:    https://kangstore.com
 Description:  KangStore - Flatsome Child Theme
 Author:       Trần Danh Trọng
 Author URI:   mailto:danhtrong.it@gmail.com
 Template:     flatsome
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  kangstore
*/

/* ============================================
   SVN-Gotham Font Family
   Thay thế hoàn toàn Rubik cũ
   ============================================ */

/* SVN-Gotham Thin - 100 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 100;
  src: url('./fonts/SVN-Gotham Thin.otf') format('opentype');
}

/* SVN-Gotham Thin Italic - 100 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 100;
  src: url('./fonts/SVN-Gotham Thin Italic.otf') format('opentype');
}

/* SVN-Gotham XLight - 200 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 200;
  src: url('./fonts/SVN-Gotham XLight.otf') format('opentype');
}

/* SVN-Gotham XLight Italic - 200 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 200;
  src: url('./fonts/SVN-Gotham XLight Italic.otf') format('opentype');
}

/* SVN-Gotham Light - 300 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/SVN-Gotham Light.otf') format('opentype');
}

/* SVN-Gotham Light Italic - 300 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 300;
  src: url('./fonts/SVN-Gotham Light Italic.otf') format('opentype');
}

/* SVN-Gotham Book - 350 (giữa Light và Regular) */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 350;
  src: url('./fonts/SVN-Gotham Book.otf') format('opentype');
}

/* SVN-Gotham Book Italic - 350 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 350;
  src: url('./fonts/SVN-Gotham Book Italic.otf') format('opentype');
}

/* SVN-Gotham Regular - 400 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/SVN-Gotham Regular.otf') format('opentype');
}

/* SVN-Gotham Italic - 400 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 400;
  src: url('./fonts/SVN-Gotham Italic.otf') format('opentype');
}

/* SVN-Gotham Bold - 700 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/SVN-Gotham Bold.otf') format('opentype');
}

/* SVN-Gotham Bold Italic - 700 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 700;
  src: url('./fonts/SVN-Gotham Bold Italic.otf') format('opentype');
}

/* SVN-Gotham Black - 900 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/SVN-Gotham Black.otf') format('opentype');
}

/* SVN-Gotham Black Italic - 900 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 900;
  src: url('./fonts/SVN-Gotham Black Italic.otf') format('opentype');
}

/* SVN-Gotham Ultra - 950 (siêu đậm) */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: normal;
  font-weight: 950;
  src: url('./fonts/SVN-Gotham Ultra.otf') format('opentype');
}

/* SVN-Gotham Ultra Italic - 950 */
@font-face {
  font-display: swap;
  font-family: 'SVN-Gotham';
  font-style: italic;
  font-weight: 950;
  src: url('./fonts/SVN-Gotham Ultra Italic.otf') format('opentype');
}

/* Apply SVN-Gotham font to body - Thay thế hoàn toàn Rubik */
body {
  font-family: 'SVN-Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Add your custom styles below this line */

/* ============================================
   Header Navigation Custom Styles
   ============================================ */

/* Navigation Links - Font Weight 500 & Remove Uppercase */
.header-nav.header-nav-main.nav > li > a {
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 16px !important;
}

/* Dropdown Links - Consistent Font Weight */
.header-nav.header-nav-main .nav-dropdown > li > a {
  font-weight: 500 !important;
  text-transform: none !important;
  font-size: 16px !important;
}

/* Active Menu Item */
.header-nav.header-nav-main.nav > li.active > a,
.header-nav.header-nav-main.nav > li.current-menu-item > a {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
}

/* Hover State */
.header-nav.header-nav-main.nav > li > a:hover {
  color: var(--primary-color) !important;
}

/* Override Flatsome nav-uppercase class */
.nav-uppercase > li > a {
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Smooth Font Rendering for SVN-Gotham in Navigation */
.header-nav.header-nav-main.nav > li > a,
.header-nav.header-nav-main .nav-dropdown > li > a {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Icon Spacing Adjustment */
.header-nav.header-nav-main.nav .has-dropdown .icon-angle-down {
  margin-left: 0.3em;
  font-size: 14px;
  opacity: 0.7;
}

/* Dropdown Menu Items */
.header-nav.header-nav-main .nav-dropdown > li > a {
  font-size: 0.95em;
  line-height: 1.5;
}

/* Dropdown Menu Hover */
.header-nav.header-nav-main .nav-dropdown > li > a:hover {
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

/* ============================================
   Menu Icons Styles
   ============================================ */

/* Icon Size - Đồng nhất tất cả icons */
.header-nav.header-nav-main .ux-menu-icon {
  width: 24px !important;
  height: 24px !important;
  margin-right: 8px;
  vertical-align: middle;
  transition: filter 0.3s ease;
}

/* Icon Color - Normal State (Default dark/gray) */
.header-nav.header-nav-main.nav > li > a .ux-menu-icon {
  filter: brightness(0) saturate(100%) opacity(0.7);
}

/* Icon Color - Hover State (Primary Color) */
.header-nav.header-nav-main.nav > li > a:hover .ux-menu-icon {
  filter: brightness(0) saturate(100%) invert(37%) sepia(95%) saturate(3500%) hue-rotate(350deg) brightness(95%) contrast(95%);
}

/* Icon Color - Active State (Primary Color) */
.header-nav.header-nav-main.nav > li.active > a .ux-menu-icon,
.header-nav.header-nav-main.nav > li.current-menu-item > a .ux-menu-icon {
  filter: brightness(0) saturate(100%) invert(37%) sepia(95%) saturate(3500%) hue-rotate(350deg) brightness(95%) contrast(95%);
}

/* Dropdown Icons (if any) */
.header-nav.header-nav-main .nav-dropdown .ux-menu-icon {
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px;
}

/* ============================================
   Kang Title Element Styles
   ============================================ */

/* Title Wrapper */
.kang-title-wrapper {
  display: block;
  position: relative;
}

.kang-title {
  display: block;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Gradient text support */
.kang-title.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animation support */
.kang-title.is-animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* Bottom Icon Decoration */
.kang-title-wrapper.has-bottom-icon {
  padding-bottom: 50px;
}

.kang-title-bottom-icon {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 15px;
  background-image: url('/wp-content/uploads/2025/11/after-title.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Bottom Icon */
@media (max-width: 768px) {
  .kang-title-wrapper.has-bottom-icon {
    padding-bottom: 40px;
  }
  
  .kang-title-bottom-icon {
    height: 30px;
    max-width: 150px;
    margin-top: 10px;
  }
}

/* Print styles */
@media print {
  .kang-title {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #000 !important;
  }
  
  .kang-title-bottom-icon {
    display: none !important;
  }
}


.tablepress thead th,
.tablepress tfoot th {

  font-weight: bold;
  vertical-align: middle;
}

.tablepress thead tr th {

  height: 35px;
  font-size: 17px;
}

.tablepress td,
.tablepress th {
  padding: 8px;
  border: none;
  background: none;
  text-align: center;
  color: #fff;
  border: 2px solid #fff;
}

.tablepress {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 1em;
  border: none;
}

.tablepress tbody tr.even td {
  background-color: #fbfbfb !important;
}

.uppercase,
h6,
th,
span.widget-title {
  line-height: 1.5 !important;
}

.tablepress tbody td {
  vertical-align: inherit !important;
}

.tablepress tbody td,
.tablepress tfoot th {
  border-top: none !important;
  font-size: 15px;
}

.tablepress .odd td {
  background-color: #f0f8ff !important;
}

.tablepress tr.row-1.odd {
  border-bottom: 2px solid #fff;
}

/* TABLE XANH LÁ */
.tablepurple tbody tr.even td {
  background-color: #fbfbfb !important;
}

.tablepurple .odd td {
  background-color: #ebdef0 !important;
}

.tablepurple thead th,
.tablepurple tfoot th {
  background-color: #d7bde2 !important;
}

.tablepurple td,
.tablepurple th {
  color: #6c3483 !important;
}

.tablepress-table-name {
  text-align: center;
}

.tablepress thead tr th {
  background-color: #111 !important;
  text-align: center;
}

.tablepress td,
.tablepress th {
  border: 1px solid #ccc;
}

.tablepress tbody tr.even td {
  background-color: #fff !important;
  text-align: center;
}

.tablepress>:where(tbody.row-striping)>:nth-child(even)>* {
  background-color: #fff !important;
}

.tablepress thead .dt-orderable-desc:hover, .tablepress thead .dt-ordering-asc,
.tablepress thead .dt-orderable-asc .dt-column-order, .tablepress thead .dt-orderable-desc .dt-column-order, .tablepress thead .dt-ordering-asc .dt-column-order, .tablepress thead .dt-ordering-desc .dt-column-order{
  color: #FFF !important;
}

