/*
Theme Name: Ford Lướt
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
@font-face {
    font-family: 'Quicksand';
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Bold.eot');
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Bold.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Bold.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Bold.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}






@font-face {
    font-family: 'Quicksand';
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Light.eot');
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Light.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Light.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Light.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Medium.eot');
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Medium.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Medium.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Medium.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Regular.eot');
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Regular.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Regular.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Regular.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-SemiBold.eot');
    src: url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-SemiBold.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-SemiBold.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Quicksan/Quicksand-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Bold.eot');
    src: url('/wp-content/themes/ford-luot/font/Roboto/roboto/RobotoCondensed-Bold.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Bold.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Bold.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-BoldItalic.eot');
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-BoldItalic.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-BoldItalic.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-BoldItalic.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Italic.eot');
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Italic.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Italic.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Italic.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Light.eot');
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Light.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Light.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Light.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Regular.eot');
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Regular.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Regular.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Regular.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-LightItalic.eot');
    src: url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-LightItalic.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-LightItalic.woff2') format('woff2'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-LightItalic.woff') format('woff'),
        url('/wp-content/themes/ford-luot/font/Roboto/RobotoCondensed-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* ===== Admin meta box (edit product) ===== */
.post-type-product .ford-luot-metabox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 8px;
  box-sizing: border-box;
}
.post-type-product .ford-luot-metabox-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #111;
}
.post-type-product .ford-luot-metabox-item input[type="text"],
.post-type-product .ford-luot-metabox-item input[type="number"],
.post-type-product .ford-luot-metabox-item select,
.post-type-product .ford-luot-metabox-item textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
/* Responsive admin */
@media (max-width: 900px) {
  .post-type-product .ford-luot-metabox-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .post-type-product .ford-luot-metabox-grid { grid-template-columns: 1fr; }
}

/* ===== Frontend: Thông tin xe ===== */
.single-product .fordluot-thong-tin-xe,
.product .fordluot-thong-tin-xe {
  margin: 18px 0;
  padding: 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 20px rgba(20,20,20,0.03);
  box-sizing: border-box;
  width: 100%;
}
.fordluot-ttx-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

/* Mặc định: AUTO-FIT – tự chia cột theo min width */
.fordluot-ttx-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(var(--min-col, 220px), 1fr));
}
/* Nếu đặt data-fixed="true" thì dùng breakpoint cố định */
.fordluot-ttx-grid[data-fixed="true"] { grid-template-columns: repeat(var(--mobile-cols, 1), 1fr); }
@media (min-width: 768px) {
  .fordluot-ttx-grid[data-fixed="true"] { grid-template-columns: repeat(var(--tablet-cols, 2), 1fr); }
}
@media (min-width: 1200px) {
  .fordluot-ttx-grid[data-fixed="true"] { grid-template-columns: repeat(var(--cols, 4), 1fr); }
}

/* Item */
.fordluot-ttx-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.4;
}
.fordluot-ttx-label {
  font-weight: 600;
  color: #374151;
  margin-right: 6px;
  white-space: nowrap;
}
.fordluot-ttx-value { color: #0b5cab; }

/* Nhỏ hơn 480px: vi chỉnh chữ/padding */
@media (max-width: 480px) {
  .fordluot-ttx-item { font-size: 13px; padding: 9px 10px; }
}



/* Hiển thị thông tin xe ở shop grid dạng 2 cột */
.thong-tin-xe-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
    gap: 8px;
    margin-top: 5px;
    font-size: 12px;
}

.thong-tin-xe-shop-grid strong {
    color: #333;
    font-weight: 600;
}

.thong-tin-xe-shop-grid .value {
    display: block;      /* xuống dòng */
    color: #0073aa;      /* màu xanh */
    margin-top: 2px;
    font-weight: 600;
}





/* =============================
   Flatsome + UX Builder Fix Khoảng Trống Thừa
   Áp dụng cho tất cả sản phẩm WooCommerce
   ============================= */

/* 1. Reset padding/margin cho tất cả col-inner */
.col-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Reset margin/padding cho tất cả row */
.row, .row-small, .row-medium, .row-large {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Reset mô tả sản phẩm */
.product-short-description {
    margin: 0 !important;
    padding: 0 !important;
}
.product-short-description ul {
    margin: 0 !important;
    padding-left: 20px; /* giữ indent gọn cho danh sách */
}
.product-short-description li {
    margin-bottom: 5px; /* khoảng cách giữa các item */
}
/* Ẩn p trống nếu còn sót */
.product-short-description p:empty {
    display: none !important;
}

/* 4. Reset các text element trong UX Builder */
.text {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* 5. Giảm khoảng cách giữa các button trong cùng row */
.row-small .col-inner {
    padding: 0 !important;
}
.row-small .button {
    margin: 0 !important;
    border-radius: 10px; /* giữ bo góc theo style trước */
}

/* 6. Breadcrumb, title, price container */
.product-breadcrumb-container,
.product-title-container,
.product-price-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* 7. Giảm khoảng cách giữa các sections nội dung */
.product-breadcrumb-container + .product-title-container,
.product-title-container + .product-price-container,
.product-price-container + .product-short-description,
.product-short-description + .text,
.text + .row {
    margin-top: 5px !important; /* khoảng cách hợp lý, có thể chỉnh nhỏ hơn */
}

/* 8. Responsive giữ khoảng cách hợp lý trên mobile */
@media (max-width: 768px) {
    .row .col {
        padding: 0 5px !important;
    }
    .product-short-description ul {
        padding-left: 15px !important;
    }
    .text {
        line-height: 1.3 !important;
    }
}

